blob: a90d4c1cccf9b93e3cec6982635d4f7d7578be53 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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 Lattner916a91122009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000250fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000270fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000529 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000530fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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 Lattner7e5c8aa2009-08-22 04:37:30 +0000718PACKAGE_VERSION='2.7svn'
719PACKAGE_STRING='llvm 2.7svn'
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>
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000727# include <sys/types.h>
728#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000732#if STDC_HEADERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000747# include <strings.h>
748#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000750# include <inttypes.h>
751#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000753# include <stdint.h>
754#endif
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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
Anton Korobeynikov1207b902009-08-18 00:40:51 +0000811HOST_OS
812TARGET_OS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000813LINKALL
814NOLINKALL
815LLVM_ON_UNIX
816LLVM_ON_WIN32
Nick Lewyckyd2813d02009-09-29 05:48:51 +0000817ARCH
818ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000819CC
820CFLAGS
821LDFLAGS
822CPPFLAGS
823ac_ct_CC
824EXEEXT
825OBJEXT
826CPP
827GREP
828EGREP
829LLVM_CROSS_COMPILING
830BUILD_CC
831BUILD_EXEEXT
Jim Grosbache4c032e2008-10-02 22:56:44 +0000832BUILD_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000833CVSBUILD
834ENABLE_OPTIMIZED
David Greene19b1cbd2009-04-17 14:50:39 +0000835ENABLE_PROFILING
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000836DISABLE_ASSERTIONS
837ENABLE_EXPENSIVE_CHECKS
838EXPENSIVE_CHECKS
839DEBUG_RUNTIME
Jeffrey Yasskined62bf32009-09-27 17:47:29 +0000840DEBUG_SYMBOLS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000841JIT
842TARGET_HAS_JIT
843ENABLE_DOXYGEN
844ENABLE_THREADS
845ENABLE_PIC
846TARGETS_TO_BUILD
Douglas Gregor1dc5ff42009-06-16 20:12:29 +0000847LLVM_ENUM_TARGETS
848LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +0000849LLVM_ENUM_ASM_PARSERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000850ENABLE_CBE_PRINTF_A
851EXTRA_OPTIONS
Nick Lewyckyf9c14662009-02-03 07:10:30 +0000852BINUTILS_INCDIR
Mikhail Glushenkov9e045892009-07-04 14:23:08 +0000853ENABLE_LLVMC_DYNAMIC
854ENABLE_LLVMC_DYNAMIC_PLUGINS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000855CXX
856CXXFLAGS
857ac_ct_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000858NM
859ifGNUmake
860LN_S
861CMP
862CP
863DATE
864FIND
865MKDIR
866MV
867RANLIB
868RM
869SED
870TAR
871BINPWD
872GRAPHVIZ
873DOT
David Greenedb740ef2009-07-09 17:16:26 +0000874FDP
875NEATO
876TWOPI
877CIRCO
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000878GV
879DOTTY
880PERL
881HAVE_PERL
882INSTALL_PROGRAM
883INSTALL_SCRIPT
884INSTALL_DATA
885BZIP2
886DOXYGEN
887GROFF
888GZIP
889POD2HTML
890POD2MAN
891RUNTEST
892TCLSH
893ZIP
Gordon Henriksen4ac92092007-09-18 12:27:13 +0000894OCAMLC
895OCAMLOPT
Gordon Henriksen38eefac2007-09-20 16:48:18 +0000896OCAMLDEP
Gordon Henriksen8af51f62008-03-10 15:49:38 +0000897OCAMLDOC
Edwin Török20176752008-10-22 09:56:27 +0000898GAS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000899INSTALL_LTDL_TRUE
900INSTALL_LTDL_FALSE
901CONVENIENCE_LTDL_TRUE
902CONVENIENCE_LTDL_FALSE
903LIBADD_DL
904ECHO
905AR
906STRIP
907CXXCPP
908F77
909FFLAGS
910ac_ct_F77
911LIBTOOL
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +0000912LLVMGCCCOMMAND
913LLVMGXXCOMMAND
Douglas Gregord1e1dbc2009-05-11 18:05:52 +0000914LLVMGCC
915LLVMGXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000916USE_UDIS86
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +0000917USE_OPROFILE
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000918HAVE_PTHREAD
919HUGE_VAL_SANITY
920ALLOCA
921MMAP_FILE
922LLVMCC1
923LLVMCC1PLUS
924LLVMGCCDIR
925LLVMGCCLIBEXEC
926LLVMGCC_VERSION
927LLVMGCC_MAJVERS
928LLVMGCC_LANGS
929SHLIBEXT
930LLVM_PREFIX
931LLVM_BINDIR
932LLVM_LIBDIR
933LLVM_DATADIR
934LLVM_DOCSDIR
935LLVM_ETCDIR
936LLVM_INCLUDEDIR
937LLVM_INFODIR
938LLVM_MANDIR
939LLVM_CONFIGTIME
Gordon Henriksen016ec472007-10-02 09:50:32 +0000940BINDINGS_TO_BUILD
941ALL_BINDINGS
Gordon Henriksen058a4c62007-10-02 16:42:22 +0000942OCAML_LIBDIR
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +0000943ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +0000944RPATH
Nick Lewycky6eab6652009-03-05 08:20:44 +0000945RDYNAMIC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000946LIBOBJS
947LTLIBOBJS'
948ac_subst_files=''
949 ac_precious_vars='build_alias
950host_alias
951target_alias
952CC
953CFLAGS
954LDFLAGS
955CPPFLAGS
956CPP
957CXX
958CXXFLAGS
959CCC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000960CXXCPP
961F77
962FFLAGS'
963ac_subdirs_all='projects/sample
964projects/privbracket
965projects/llvm-stacker
966projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000967projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000968projects/llvm-reopt
969projects/llvm-gcc
970projects/llvm-java
971projects/llvm-tv
972projects/llvm-poolalloc
973projects/poolalloc
974projects/llvm-kernel'
975
976# Initialize some variables set by options.
977ac_init_help=
978ac_init_version=false
979# The variables have the same names as the options, with
980# dashes changed to underlines.
981cache_file=/dev/null
982exec_prefix=NONE
983no_create=
984no_recursion=
985prefix=NONE
986program_prefix=NONE
987program_suffix=NONE
988program_transform_name=s,x,x,
989silent=
990site=
991srcdir=
992verbose=
993x_includes=NONE
994x_libraries=NONE
995
996# Installation directory options.
997# These are left unexpanded so users can "make install exec_prefix=/foo"
998# and all the variables that are supposed to be based on exec_prefix
999# by default will actually change.
1000# Use braces instead of parens because sh, perl, etc. also accept them.
1001# (The list follows the same order as the GNU Coding Standards.)
1002bindir='${exec_prefix}/bin'
1003sbindir='${exec_prefix}/sbin'
1004libexecdir='${exec_prefix}/libexec'
1005datarootdir='${prefix}/share'
1006datadir='${datarootdir}'
1007sysconfdir='${prefix}/etc'
1008sharedstatedir='${prefix}/com'
1009localstatedir='${prefix}/var'
1010includedir='${prefix}/include'
1011oldincludedir='/usr/include'
1012docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1013infodir='${datarootdir}/info'
1014htmldir='${docdir}'
1015dvidir='${docdir}'
1016pdfdir='${docdir}'
1017psdir='${docdir}'
1018libdir='${exec_prefix}/lib'
1019localedir='${datarootdir}/locale'
1020mandir='${datarootdir}/man'
1021
1022ac_prev=
1023ac_dashdash=
1024for ac_option
1025do
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1031 fi
1032
1033 case $ac_option in
1034 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *) ac_optarg=yes ;;
1036 esac
1037
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1039
1040 case $ac_dashdash$ac_option in
1041 --)
1042 ac_dashdash=yes ;;
1043
1044 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1045 ac_prev=bindir ;;
1046 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1047 bindir=$ac_optarg ;;
1048
1049 -build | --build | --buil | --bui | --bu)
1050 ac_prev=build_alias ;;
1051 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1052 build_alias=$ac_optarg ;;
1053
1054 -cache-file | --cache-file | --cache-fil | --cache-fi \
1055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1056 ac_prev=cache_file ;;
1057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1059 cache_file=$ac_optarg ;;
1060
1061 --config-cache | -C)
1062 cache_file=config.cache ;;
1063
1064 -datadir | --datadir | --datadi | --datad)
1065 ac_prev=datadir ;;
1066 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1067 datadir=$ac_optarg ;;
1068
1069 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1070 | --dataroo | --dataro | --datar)
1071 ac_prev=datarootdir ;;
1072 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1073 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1074 datarootdir=$ac_optarg ;;
1075
1076 -disable-* | --disable-*)
1077 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001079 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001080 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001082 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001083 eval enable_$ac_feature=no ;;
1084
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1089
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
1094
1095 -enable-* | --enable-*)
1096 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001098 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001101 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001102 eval enable_$ac_feature=\$ac_optarg ;;
1103
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1112
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1116
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1123
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1128
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1134
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1141
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1146
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1151
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1158
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1163
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1170
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1175
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1179
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1183
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1187
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1196
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1201
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1208
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1215
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1232
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1237
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1242
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1246
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1252
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1263
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1268
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1273
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1280
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1285
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1288
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1291
1292 -with-* | --with-*)
1293 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001298 ac_package=`echo $ac_package| sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001299 eval with_$ac_package=\$ac_optarg ;;
1300
1301 -without-* | --without-*)
1302 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001304 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001305 { echo "$as_me: error: invalid package name: $ac_package" >&2
1306 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001307 ac_package=`echo $ac_package | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001308 eval with_$ac_package=no ;;
1309
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1313
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1320
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1327
1328 -*) { echo "$as_me: error: unrecognized option: $ac_option
1329Try \`$0 --help' for more information." >&2
1330 { (exit 1); exit 1; }; }
1331 ;;
1332
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338 { (exit 1); exit 1; }; }
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1341
1342 *)
1343 # FIXME: should be removed in autoconf 3.0.
1344 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 ;;
1349
1350 esac
1351done
1352
1353if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 { echo "$as_me: error: missing argument to $ac_option" >&2
1356 { (exit 1); exit 1; }; }
1357fi
1358
1359# Be sure to have absolute directory names.
1360for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1364do
1365 eval ac_val=\$$ac_var
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
1370 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1371 { (exit 1); exit 1; }; }
1372done
1373
1374# There might be people who depend on the old broken behavior: `$host'
1375# used to hold the argument of --host etc.
1376# FIXME: To remove some day.
1377build=$build_alias
1378host=$host_alias
1379target=$target_alias
1380
1381# FIXME: To remove some day.
1382if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1386 If a cross compiler is detected then cross compile mode will be used." >&2
1387 elif test "x$build_alias" != "x$host_alias"; then
1388 cross_compiling=yes
1389 fi
1390fi
1391
1392ac_tool_prefix=
1393test -n "$host_alias" && ac_tool_prefix=$host_alias-
1394
1395test "$silent" = yes && exec 6>/dev/null
1396
1397
1398ac_pwd=`pwd` && test -n "$ac_pwd" &&
1399ac_ls_di=`ls -di .` &&
1400ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1401 { echo "$as_me: error: Working directory cannot be determined" >&2
1402 { (exit 1); exit 1; }; }
1403test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 { echo "$as_me: error: pwd does not report name of working directory" >&2
1405 { (exit 1); exit 1; }; }
1406
1407
1408# Find the source files, if location was not specified.
1409if test -z "$srcdir"; then
1410 ac_srcdir_defaulted=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir=`$as_dirname -- "$0" ||
1413$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$0" : 'X\(//\)[^/]' \| \
1415 X"$0" : 'X\(//\)$' \| \
1416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1417echo X"$0" |
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)[^/].*/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\/\)$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\).*/{
1431 s//\1/
1432 q
1433 }
1434 s/.*/./; q'`
1435 srcdir=$ac_confdir
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 srcdir=..
1438 fi
1439else
1440 ac_srcdir_defaulted=no
1441fi
1442if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1444 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1445 { (exit 1); exit 1; }; }
1446fi
1447ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1450 { (exit 1); exit 1; }; }
1451 pwd)`
1452# When building in place, set srcdir=.
1453if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 srcdir=.
1455fi
1456# Remove unnecessary trailing slashes from srcdir.
1457# Double slashes in file names in object file debugging info
1458# mess up M-x gdb in Emacs.
1459case $srcdir in
1460*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461esac
1462for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467done
1468
1469#
1470# Report the --help message.
1471#
1472if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1475 cat <<_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001476\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001477
1478Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481VAR=VALUE. See below for descriptions of some of the useful variables.
1482
1483Defaults for the options are specified in brackets.
1484
1485Configuration:
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495
1496Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 [PREFIX]
1501
1502By default, \`make install' will install all the files in
1503\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505for instance \`--prefix=\$HOME'.
1506
1507For better control, use the options below.
1508
1509Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1529_ACEOF
1530
1531 cat <<\_ACEOF
1532
1533System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1537_ACEOF
1538fi
1539
1540if test -n "$ac_init_help"; then
1541 case $ac_init_help in
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001542 short | recursive ) echo "Configuration of llvm 2.7svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001543 esac
1544 cat <<\_ACEOF
1545
1546Optional Features:
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001549 --enable-optimized Compile with optimizations enabled (default is NO)
1550 --enable-profiling Compile with profiling enabled (default is NO)
1551 --enable-assertions Compile with assertion checks enabled (default is
1552 YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001553 --enable-expensive-checks
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001554 Compile with expensive debug checks enabled (default
1555 is NO)
1556 --enable-debug-runtime Build runtime libs with debug symbols (default is
1557 NO)
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00001558 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1559 optimization is on and YES if it's off)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001560 --enable-jit Enable Just In Time Compiling (default is YES)
1561 --enable-doxygen Build doxygen documentation (default is NO)
1562 --enable-threads Use threads if available (default is YES)
1563 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001564 is YES)
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00001565 --enable-targets Build specific host targets: all or
1566 target1,target2,... Valid targets are: host, x86,
1567 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1568 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1569 and cpp (default=all)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001570 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1571 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001572 --enable-bindings Build specific language bindings:
1573 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001574 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00001575 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1576 Win32)
1577 --enable-llvmc-dynamic-plugins
1578 Enable dynamic LLVMC plugins (default is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001579 --enable-ltdl-install install libltdl
1580 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001581 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001582 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001583 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001584 --enable-fast-install[=PKGS]
1585 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001586 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001587 --disable-libtool-lock avoid locking (might break parallel builds)
1588
1589Optional Packages:
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1593 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001594 --with-llvmgcc Specify location of llvm-gcc driver (default
1595 searches PATH)
1596 --with-llvmgxx Specify location of llvm-g++ driver (default
1597 searches PATH)
Duncan Sands9f1e2ee2009-05-13 13:13:18 +00001598 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001599 --with-ocaml-libdir Specify install location for ocaml bindings (default
1600 is stdlib)
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001601 --with-binutils-include Specify path to binutils/include/ containing
1602 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001603 --with-tclinclude directory where tcl headers are
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1606 both]
1607 --with-tags[=TAGS] include additional configurations [automatic]
1608 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +00001609 --with-oprofile=<prefix>
1610 Tell OProfile >= 0.9.4 how to symbolize JIT output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001611
1612Some influential environment variables:
1613 CC C compiler command
1614 CFLAGS C compiler flags
1615 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1616 nonstandard directory <lib dir>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 CPP C preprocessor
1620 CXX C++ compiler command
1621 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001622 CXXCPP C++ preprocessor
1623 F77 Fortran 77 compiler command
1624 FFLAGS Fortran 77 compiler flags
1625
1626Use these variables to override the choices made by `configure' or to help
1627it to find libraries and programs with nonstandard names/locations.
1628
1629Report bugs to <llvmbugs@cs.uiuc.edu>.
1630_ACEOF
1631ac_status=$?
1632fi
1633
1634if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" || continue
1638 ac_builddir=.
1639
1640case "$ac_dir" in
1641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642*)
1643 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 esac ;;
1650esac
1651ac_abs_top_builddir=$ac_pwd
1652ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653# for backward compatibility:
1654ac_top_builddir=$ac_top_build_prefix
1655
1656case $srcdir in
1657 .) # We are building in place.
1658 ac_srcdir=.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1665 *) # Relative name.
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1669esac
1670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1671
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1675 echo &&
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1678 echo &&
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1680 else
1681 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1682 fi || ac_status=$?
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1684 done
1685fi
1686
1687test -n "$ac_init_help" && exit $ac_status
1688if $ac_init_version; then
1689 cat <<\_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001690llvm configure 2.7svn
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001691generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001692
1693Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16942002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1695This configure script is free software; the Free Software Foundation
1696gives unlimited permission to copy, distribute and modify it.
1697
Tanya Lattner916a91122009-08-22 21:01:26 +00001698Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001699_ACEOF
1700 exit
1701fi
1702cat >config.log <<_ACEOF
1703This file contains any messages produced by compilers while
1704running configure, to aid debugging if configure makes a mistake.
1705
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001706It was created by llvm $as_me 2.7svn, which was
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001707generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001708
1709 $ $0 $@
1710
1711_ACEOF
1712exec 5>>config.log
1713{
1714cat <<_ASUNAME
1715## --------- ##
1716## Platform. ##
1717## --------- ##
1718
1719hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1720uname -m = `(uname -m) 2>/dev/null || echo unknown`
1721uname -r = `(uname -r) 2>/dev/null || echo unknown`
1722uname -s = `(uname -s) 2>/dev/null || echo unknown`
1723uname -v = `(uname -v) 2>/dev/null || echo unknown`
1724
1725/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1726/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1727
1728/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1729/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1730/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1731/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1732/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1733/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1734/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1735
1736_ASUNAME
1737
1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739for as_dir in $PATH
1740do
1741 IFS=$as_save_IFS
1742 test -z "$as_dir" && as_dir=.
1743 echo "PATH: $as_dir"
1744done
1745IFS=$as_save_IFS
1746
1747} >&5
1748
1749cat >&5 <<_ACEOF
1750
1751
1752## ----------- ##
1753## Core tests. ##
1754## ----------- ##
1755
1756_ACEOF
1757
1758
1759# Keep a trace of the command line.
1760# Strip out --no-create and --no-recursion so they do not pile up.
1761# Strip out --silent because we don't want to record it for future runs.
1762# Also quote any args containing shell meta-characters.
1763# Make two passes to allow for proper duplicate-argument suppression.
1764ac_configure_args=
1765ac_configure_args0=
1766ac_configure_args1=
1767ac_must_keep_next=false
1768for ac_pass in 1 2
1769do
1770 for ac_arg
1771 do
1772 case $ac_arg in
1773 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 continue ;;
1777 *\'*)
1778 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 case $ac_pass in
1781 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1782 2)
1783 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1784 if test $ac_must_keep_next = true; then
1785 ac_must_keep_next=false # Got value, back to normal.
1786 else
1787 case $ac_arg in
1788 *=* | --config-cache | -C | -disable-* | --disable-* \
1789 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1790 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1791 | -with-* | --with-* | -without-* | --without-* | --x)
1792 case "$ac_configure_args0 " in
1793 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1794 esac
1795 ;;
1796 -* ) ac_must_keep_next=true ;;
1797 esac
1798 fi
1799 ac_configure_args="$ac_configure_args '$ac_arg'"
1800 ;;
1801 esac
1802 done
1803done
1804$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1805$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1806
1807# When interrupted or exit'd, cleanup temporary files, and complete
1808# config.log. We remove comments because anyway the quotes in there
1809# would cause problems or look ugly.
1810# WARNING: Use '\'' to represent an apostrophe within the trap.
1811# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1812trap 'exit_status=$?
1813 # Save into config.log some information that might help in debugging.
1814 {
1815 echo
1816
1817 cat <<\_ASBOX
1818## ---------------- ##
1819## Cache variables. ##
1820## ---------------- ##
1821_ASBOX
1822 echo
1823 # The following way of writing the cache mishandles newlines in values,
1824(
1825 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1826 eval ac_val=\$$ac_var
1827 case $ac_val in #(
1828 *${as_nl}*)
1829 case $ac_var in #(
1830 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1831echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1832 esac
1833 case $ac_var in #(
1834 _ | IFS | as_nl) ;; #(
1835 *) $as_unset $ac_var ;;
1836 esac ;;
1837 esac
1838 done
1839 (set) 2>&1 |
1840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1841 *${as_nl}ac_space=\ *)
1842 sed -n \
1843 "s/'\''/'\''\\\\'\'''\''/g;
1844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1845 ;; #(
1846 *)
1847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848 ;;
1849 esac |
1850 sort
1851)
1852 echo
1853
1854 cat <<\_ASBOX
1855## ----------------- ##
1856## Output variables. ##
1857## ----------------- ##
1858_ASBOX
1859 echo
1860 for ac_var in $ac_subst_vars
1861 do
1862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 echo "$ac_var='\''$ac_val'\''"
1867 done | sort
1868 echo
1869
1870 if test -n "$ac_subst_files"; then
1871 cat <<\_ASBOX
1872## ------------------- ##
1873## File substitutions. ##
1874## ------------------- ##
1875_ASBOX
1876 echo
1877 for ac_var in $ac_subst_files
1878 do
1879 eval ac_val=\$$ac_var
1880 case $ac_val in
1881 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882 esac
1883 echo "$ac_var='\''$ac_val'\''"
1884 done | sort
1885 echo
1886 fi
1887
1888 if test -s confdefs.h; then
1889 cat <<\_ASBOX
1890## ----------- ##
1891## confdefs.h. ##
1892## ----------- ##
1893_ASBOX
1894 echo
1895 cat confdefs.h
1896 echo
1897 fi
1898 test "$ac_signal" != 0 &&
1899 echo "$as_me: caught signal $ac_signal"
1900 echo "$as_me: exit $exit_status"
1901 } >&5
1902 rm -f core *.core core.conftest.* &&
1903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1904 exit $exit_status
1905' 0
1906for ac_signal in 1 2 13 15; do
1907 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908done
1909ac_signal=0
1910
1911# confdefs.h avoids OS command line length limits that DEFS can exceed.
1912rm -f -r conftest* confdefs.h
1913
1914# Predefined preprocessor variables.
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_NAME "$PACKAGE_NAME"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_VERSION "$PACKAGE_VERSION"
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_STRING "$PACKAGE_STRING"
1933_ACEOF
1934
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938_ACEOF
1939
1940
1941# Let the site file select an alternate cache file if it wants to.
1942# Prefer explicitly selected file to automatically selected ones.
1943if test -n "$CONFIG_SITE"; then
1944 set x "$CONFIG_SITE"
1945elif test "x$prefix" != xNONE; then
1946 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1947else
1948 set x "$ac_default_prefix/share/config.site" \
1949 "$ac_default_prefix/etc/config.site"
1950fi
1951shift
1952for ac_site_file
1953do
1954 if test -r "$ac_site_file"; then
1955 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956echo "$as_me: loading site script $ac_site_file" >&6;}
1957 sed 's/^/| /' "$ac_site_file" >&5
1958 . "$ac_site_file"
1959 fi
1960done
1961
1962if test -r "$cache_file"; then
1963 # Some versions of bash will fail to source /dev/null (special
1964 # files actually), so we avoid doing that.
1965 if test -f "$cache_file"; then
1966 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967echo "$as_me: loading cache $cache_file" >&6;}
1968 case $cache_file in
1969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970 *) . "./$cache_file";;
1971 esac
1972 fi
1973else
1974 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975echo "$as_me: creating cache $cache_file" >&6;}
1976 >$cache_file
1977fi
1978
1979# Check that the precious variables saved in the cache have kept the same
1980# value.
1981ac_cache_corrupted=false
1982for ac_var in $ac_precious_vars; do
1983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984 eval ac_new_set=\$ac_env_${ac_var}_set
1985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986 eval ac_new_val=\$ac_env_${ac_var}_value
1987 case $ac_old_set,$ac_new_set in
1988 set,)
1989 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1992 ,set)
1993 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1996 ,);;
1997 *)
1998 if test "x$ac_old_val" != "x$ac_new_val"; then
1999 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2000echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2001 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2002echo "$as_me: former value: $ac_old_val" >&2;}
2003 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2004echo "$as_me: current value: $ac_new_val" >&2;}
2005 ac_cache_corrupted=:
2006 fi;;
2007 esac
2008 # Pass precious variables to config.status.
2009 if test "$ac_new_set" = set; then
2010 case $ac_new_val in
2011 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2012 *) ac_arg=$ac_var=$ac_new_val ;;
2013 esac
2014 case " $ac_configure_args " in
2015 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2016 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2017 esac
2018 fi
2019done
2020if $ac_cache_corrupted; then
2021 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025 { (exit 1); exit 1; }; }
2026fi
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052ac_ext=c
2053ac_cpp='$CPP $CPPFLAGS'
2054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2056ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057
2058
2059
Tanya Lattner916a91122009-08-22 21:01:26 +00002060LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002061
2062
2063
2064
2065
2066
2067
2068ac_aux_dir=
2069for ac_dir in autoconf "$srcdir"/autoconf; do
2070 if test -f "$ac_dir/install-sh"; then
2071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/install-sh -c"
2073 break
2074 elif test -f "$ac_dir/install.sh"; then
2075 ac_aux_dir=$ac_dir
2076 ac_install_sh="$ac_aux_dir/install.sh -c"
2077 break
2078 elif test -f "$ac_dir/shtool"; then
2079 ac_aux_dir=$ac_dir
2080 ac_install_sh="$ac_aux_dir/shtool install -c"
2081 break
2082 fi
2083done
2084if test -z "$ac_aux_dir"; then
2085 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2086echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2087 { (exit 1); exit 1; }; }
2088fi
2089
2090# These three variables are undocumented and unsupported,
2091# and are intended to be withdrawn in a future Autoconf release.
2092# They can cause serious problems if a builder's source tree is in a directory
2093# whose full name contains unusual characters.
2094ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2095ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2096ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2097
2098
2099
2100if test ${srcdir} != "." ; then
2101 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2102 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2103echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2104 { (exit 1); exit 1; }; }
2105 fi
2106fi
2107
2108for i in `ls ${srcdir}/projects`
2109do
2110 if test -d ${srcdir}/projects/${i} ; then
2111 case ${i} in
2112 CVS) ;;
2113 sample) subdirs="$subdirs projects/sample"
2114 ;;
2115 privbracket) subdirs="$subdirs projects/privbracket"
2116 ;;
2117 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2118 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00002119 # llvm-test is the old name of the test-suite, kept here for backwards
2120 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002121 llvm-test) subdirs="$subdirs projects/llvm-test"
2122 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00002123 test-suite) subdirs="$subdirs projects/test-suite"
2124 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002125 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2126;;
2127 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2128 ;;
2129 llvm-java) subdirs="$subdirs projects/llvm-java"
2130 ;;
2131 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2132 ;;
2133 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2134 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002135 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002136 ;;
2137 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2138 ;;
2139 *)
2140 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2141echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2142 ;;
2143 esac
2144 fi
2145done
2146
2147
2148# Make sure we can run config.sub.
2149$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2152 { (exit 1); exit 1; }; }
2153
2154{ echo "$as_me:$LINENO: checking build system type" >&5
2155echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2156if test "${ac_cv_build+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159 ac_build_alias=$build_alias
2160test "x$ac_build_alias" = x &&
2161 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162test "x$ac_build_alias" = x &&
2163 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165 { (exit 1); exit 1; }; }
2166ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2169 { (exit 1); exit 1; }; }
2170
2171fi
2172{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173echo "${ECHO_T}$ac_cv_build" >&6; }
2174case $ac_cv_build in
2175*-*-*) ;;
2176*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177echo "$as_me: error: invalid value of canonical build" >&2;}
2178 { (exit 1); exit 1; }; };;
2179esac
2180build=$ac_cv_build
2181ac_save_IFS=$IFS; IFS='-'
2182set x $ac_cv_build
2183shift
2184build_cpu=$1
2185build_vendor=$2
2186shift; shift
2187# Remember, the first character of IFS is used to create $*,
2188# except with old shells:
2189build_os=$*
2190IFS=$ac_save_IFS
2191case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2192
2193
2194{ echo "$as_me:$LINENO: checking host system type" >&5
2195echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2196if test "${ac_cv_host+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199 if test "x$host_alias" = x; then
2200 ac_cv_host=$ac_cv_build
2201else
2202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2205 { (exit 1); exit 1; }; }
2206fi
2207
2208fi
2209{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210echo "${ECHO_T}$ac_cv_host" >&6; }
2211case $ac_cv_host in
2212*-*-*) ;;
2213*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214echo "$as_me: error: invalid value of canonical host" >&2;}
2215 { (exit 1); exit 1; }; };;
2216esac
2217host=$ac_cv_host
2218ac_save_IFS=$IFS; IFS='-'
2219set x $ac_cv_host
2220shift
2221host_cpu=$1
2222host_vendor=$2
2223shift; shift
2224# Remember, the first character of IFS is used to create $*,
2225# except with old shells:
2226host_os=$*
2227IFS=$ac_save_IFS
2228case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2229
2230
2231{ echo "$as_me:$LINENO: checking target system type" >&5
2232echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2233if test "${ac_cv_target+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235else
2236 if test "x$target_alias" = x; then
2237 ac_cv_target=$ac_cv_host
2238else
2239 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2240 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2241echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2242 { (exit 1); exit 1; }; }
2243fi
2244
2245fi
2246{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2247echo "${ECHO_T}$ac_cv_target" >&6; }
2248case $ac_cv_target in
2249*-*-*) ;;
2250*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2251echo "$as_me: error: invalid value of canonical target" >&2;}
2252 { (exit 1); exit 1; }; };;
2253esac
2254target=$ac_cv_target
2255ac_save_IFS=$IFS; IFS='-'
2256set x $ac_cv_target
2257shift
2258target_cpu=$1
2259target_vendor=$2
2260shift; shift
2261# Remember, the first character of IFS is used to create $*,
2262# except with old shells:
2263target_os=$*
2264IFS=$ac_save_IFS
2265case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2266
2267
2268# The aliases save the names the user supplied, while $host etc.
2269# will get canonicalized.
2270test -n "$target_alias" &&
2271 test "$program_prefix$program_suffix$program_transform_name" = \
2272 NONENONEs,x,x, &&
2273 program_prefix=${target_alias}-
2274
2275{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2276echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2277if test "${llvm_cv_os_type+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280 case $host in
2281 *-*-aix*)
2282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2284 llvm_cv_os_type="AIX"
2285 llvm_cv_platform_type="Unix" ;;
2286 *-*-irix*)
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="IRIX"
2290 llvm_cv_platform_type="Unix" ;;
2291 *-*-cygwin*)
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="Cygwin"
2295 llvm_cv_platform_type="Unix" ;;
2296 *-*-darwin*)
2297 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002298 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002299 llvm_cv_os_type="Darwin"
2300 llvm_cv_platform_type="Unix" ;;
2301 *-*-freebsd*)
2302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304 llvm_cv_os_type="FreeBSD"
2305 llvm_cv_platform_type="Unix" ;;
2306 *-*-openbsd*)
2307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309 llvm_cv_os_type="OpenBSD"
2310 llvm_cv_platform_type="Unix" ;;
2311 *-*-netbsd*)
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="NetBSD"
2315 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002316 *-*-dragonfly*)
2317 llvm_cv_link_all_option="-Wl,--whole-archive"
2318 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2319 llvm_cv_os_type="DragonFly"
2320 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002321 *-*-hpux*)
2322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324 llvm_cv_os_type="HP-UX"
2325 llvm_cv_platform_type="Unix" ;;
2326 *-*-interix*)
2327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329 llvm_cv_os_type="Interix"
2330 llvm_cv_platform_type="Unix" ;;
2331 *-*-linux*)
2332 llvm_cv_link_all_option="-Wl,--whole-archive"
2333 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2334 llvm_cv_os_type="Linux"
2335 llvm_cv_platform_type="Unix" ;;
2336 *-*-solaris*)
2337 llvm_cv_link_all_option="-Wl,-z,allextract"
2338 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2339 llvm_cv_os_type="SunOS"
2340 llvm_cv_platform_type="Unix" ;;
2341 *-*-win32*)
2342 llvm_cv_link_all_option="-Wl,--whole-archive"
2343 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2344 llvm_cv_os_type="Win32"
2345 llvm_cv_platform_type="Win32" ;;
2346 *-*-mingw*)
2347 llvm_cv_link_all_option="-Wl,--whole-archive"
2348 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2349 llvm_cv_os_type="MingW"
2350 llvm_cv_platform_type="Win32" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002351 *-unknown-eabi*)
2352 llvm_cv_link_all_option="-Wl,--whole-archive"
2353 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2354 llvm_cv_os_type="Freestanding"
2355 llvm_cv_platform_type="Unix" ;;
2356 *-unknown-elf*)
2357 llvm_cv_link_all_option="-Wl,--whole-archive"
2358 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2359 llvm_cv_os_type="Freestanding"
2360 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002361 *)
2362 llvm_cv_link_all_option=""
2363 llvm_cv_no_link_all_option=""
2364 llvm_cv_os_type="Unknown"
2365 llvm_cv_platform_type="Unknown" ;;
2366esac
2367fi
2368{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2369echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2370
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002371{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2372echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2373if test "${llvm_cv_target_os_type+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375else
2376 case $target in
2377 *-*-aix*)
2378 llvm_cv_target_os_type="AIX" ;;
2379 *-*-irix*)
2380 llvm_cv_target_os_type="IRIX" ;;
2381 *-*-cygwin*)
2382 llvm_cv_target_os_type="Cygwin" ;;
2383 *-*-darwin*)
2384 llvm_cv_target_os_type="Darwin" ;;
2385 *-*-freebsd*)
2386 llvm_cv_target_os_type="FreeBSD" ;;
2387 *-*-openbsd*)
2388 llvm_cv_target_os_type="OpenBSD" ;;
2389 *-*-netbsd*)
2390 llvm_cv_target_os_type="NetBSD" ;;
2391 *-*-dragonfly*)
2392 llvm_cv_target_os_type="DragonFly" ;;
2393 *-*-hpux*)
2394 llvm_cv_target_os_type="HP-UX" ;;
2395 *-*-interix*)
2396 llvm_cv_target_os_type="Interix" ;;
2397 *-*-linux*)
2398 llvm_cv_target_os_type="Linux" ;;
2399 *-*-solaris*)
2400 llvm_cv_target_os_type="SunOS" ;;
2401 *-*-win32*)
2402 llvm_cv_target_os_type="Win32" ;;
2403 *-*-mingw*)
2404 llvm_cv_target_os_type="MingW" ;;
2405 *-unknown-eabi*)
2406 llvm_cv_target_os_type="Freestanding" ;;
2407 *)
2408 llvm_cv_target_os_type="Unknown" ;;
2409esac
2410fi
2411{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2412echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2413
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002414if test "$llvm_cv_os_type" = "Unknown" ; then
2415 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2416echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2417 { (exit 1); exit 1; }; }
2418fi
2419
2420OS=$llvm_cv_os_type
2421
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002422HOST_OS=$llvm_cv_os_type
2423
2424TARGET_OS=$llvm_cv_target_os_type
2425
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002426
2427LINKALL=$llvm_cv_link_all_option
2428
2429NOLINKALL=$llvm_cv_no_link_all_option
2430
2431
2432case $llvm_cv_platform_type in
2433 Unix)
2434
2435cat >>confdefs.h <<\_ACEOF
2436#define LLVM_ON_UNIX 1
2437_ACEOF
2438
2439 LLVM_ON_UNIX=1
2440
2441 LLVM_ON_WIN32=0
2442
2443 ;;
2444 Win32)
2445
2446cat >>confdefs.h <<\_ACEOF
2447#define LLVM_ON_WIN32 1
2448_ACEOF
2449
2450 LLVM_ON_UNIX=0
2451
2452 LLVM_ON_WIN32=1
2453
2454 ;;
2455esac
2456
2457{ echo "$as_me:$LINENO: checking target architecture" >&5
2458echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2459if test "${llvm_cv_target_arch+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461else
2462 case $target in
2463 i?86-*) llvm_cv_target_arch="x86" ;;
2464 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2465 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2466 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2467 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyd4c842f2009-04-18 18:11:26 +00002468 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002469 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002470 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002471 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00002472 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00002473 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00002474 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002475 *) llvm_cv_target_arch="Unknown" ;;
2476esac
2477fi
2478{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2479echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2480
2481if test "$llvm_cv_target_arch" = "Unknown" ; then
2482 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2483echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2484fi
2485
Nick Lewyckyd2813d02009-09-29 05:48:51 +00002486# Determine the LLVM native architecture for the target
2487case "$llvm_cv_target_arch" in
2488 x86) LLVM_NATIVE_ARCH="X86" ;;
2489 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2490 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2491esac
2492
2493ARCH=$llvm_cv_target_arch
2494
2495
2496ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002497ac_cpp='$CPP $CPPFLAGS'
2498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501if test -n "$ac_tool_prefix"; then
2502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2503set dummy ${ac_tool_prefix}gcc; ac_word=$2
2504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506if test "${ac_cv_prog_CC+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002518 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 +00002519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523done
2524done
2525IFS=$as_save_IFS
2526
2527fi
2528fi
2529CC=$ac_cv_prog_CC
2530if test -n "$CC"; then
2531 { echo "$as_me:$LINENO: result: $CC" >&5
2532echo "${ECHO_T}$CC" >&6; }
2533else
2534 { echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6; }
2536fi
2537
2538
2539fi
2540if test -z "$ac_cv_prog_CC"; then
2541 ac_ct_CC=$CC
2542 # Extract the first word of "gcc", so it can be a program name with args.
2543set dummy gcc; ac_word=$2
2544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 if test -n "$ac_ct_CC"; then
2550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2551else
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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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 ac_cv_prog_ac_ct_CC="gcc"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 break 2
2562 fi
2563done
2564done
2565IFS=$as_save_IFS
2566
2567fi
2568fi
2569ac_ct_CC=$ac_cv_prog_ac_ct_CC
2570if test -n "$ac_ct_CC"; then
2571 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2572echo "${ECHO_T}$ac_ct_CC" >&6; }
2573else
2574 { echo "$as_me:$LINENO: result: no" >&5
2575echo "${ECHO_T}no" >&6; }
2576fi
2577
2578 if test "x$ac_ct_CC" = x; then
2579 CC=""
2580 else
2581 case $cross_compiling:$ac_tool_warned in
2582yes:)
2583{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2584whose name does not start with the host triplet. If you think this
2585configuration is useful to you, please write to autoconf@gnu.org." >&5
2586echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2587whose name does not start with the host triplet. If you think this
2588configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2589ac_tool_warned=yes ;;
2590esac
2591 CC=$ac_ct_CC
2592 fi
2593else
2594 CC="$ac_cv_prog_CC"
2595fi
2596
2597if test -z "$CC"; then
2598 if test -n "$ac_tool_prefix"; then
2599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2600set dummy ${ac_tool_prefix}cc; ac_word=$2
2601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2603if test "${ac_cv_prog_CC+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002615 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 +00002616 ac_cv_prog_CC="${ac_tool_prefix}cc"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2619 fi
2620done
2621done
2622IFS=$as_save_IFS
2623
2624fi
2625fi
2626CC=$ac_cv_prog_CC
2627if test -n "$CC"; then
2628 { echo "$as_me:$LINENO: result: $CC" >&5
2629echo "${ECHO_T}$CC" >&6; }
2630else
2631 { echo "$as_me:$LINENO: result: no" >&5
2632echo "${ECHO_T}no" >&6; }
2633fi
2634
2635
2636 fi
2637fi
2638if test -z "$CC"; then
2639 # Extract the first word of "cc", so it can be a program name with args.
2640set dummy cc; ac_word=$2
2641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643if test "${ac_cv_prog_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2648else
2649 ac_prog_rejected=no
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002656 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 +00002657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2658 ac_prog_rejected=yes
2659 continue
2660 fi
2661 ac_cv_prog_CC="cc"
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
2669if test $ac_prog_rejected = yes; then
2670 # We found a bogon in the path, so make sure we never use it.
2671 set dummy $ac_cv_prog_CC
2672 shift
2673 if test $# != 0; then
2674 # We chose a different compiler from the bogus one.
2675 # However, it has the same basename, so the bogon will be chosen
2676 # first if we set CC to just the basename; use the full file name.
2677 shift
2678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2679 fi
2680fi
2681fi
2682fi
2683CC=$ac_cv_prog_CC
2684if test -n "$CC"; then
2685 { echo "$as_me:$LINENO: result: $CC" >&5
2686echo "${ECHO_T}$CC" >&6; }
2687else
2688 { echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6; }
2690fi
2691
2692
2693fi
2694if test -z "$CC"; then
2695 if test -n "$ac_tool_prefix"; then
2696 for ac_prog in cl.exe
2697 do
2698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2699set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702if test "${ac_cv_prog_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704else
2705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
2707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002714 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 +00002715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719done
2720done
2721IFS=$as_save_IFS
2722
2723fi
2724fi
2725CC=$ac_cv_prog_CC
2726if test -n "$CC"; then
2727 { echo "$as_me:$LINENO: result: $CC" >&5
2728echo "${ECHO_T}$CC" >&6; }
2729else
2730 { echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6; }
2732fi
2733
2734
2735 test -n "$CC" && break
2736 done
2737fi
2738if test -z "$CC"; then
2739 ac_ct_CC=$CC
2740 for ac_prog in cl.exe
2741do
2742 # Extract the first word of "$ac_prog", so it can be a program name with args.
2743set dummy $ac_prog; ac_word=$2
2744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2746if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2748else
2749 if test -n "$ac_ct_CC"; then
2750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2751else
2752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753for as_dir in $PATH
2754do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002758 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 +00002759 ac_cv_prog_ac_ct_CC="$ac_prog"
2760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 break 2
2762 fi
2763done
2764done
2765IFS=$as_save_IFS
2766
2767fi
2768fi
2769ac_ct_CC=$ac_cv_prog_ac_ct_CC
2770if test -n "$ac_ct_CC"; then
2771 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2772echo "${ECHO_T}$ac_ct_CC" >&6; }
2773else
2774 { echo "$as_me:$LINENO: result: no" >&5
2775echo "${ECHO_T}no" >&6; }
2776fi
2777
2778
2779 test -n "$ac_ct_CC" && break
2780done
2781
2782 if test "x$ac_ct_CC" = x; then
2783 CC=""
2784 else
2785 case $cross_compiling:$ac_tool_warned in
2786yes:)
2787{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788whose name does not start with the host triplet. If you think this
2789configuration is useful to you, please write to autoconf@gnu.org." >&5
2790echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791whose name does not start with the host triplet. If you think this
2792configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2793ac_tool_warned=yes ;;
2794esac
2795 CC=$ac_ct_CC
2796 fi
2797fi
2798
2799fi
2800
2801
2802test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2803See \`config.log' for more details." >&5
2804echo "$as_me: error: no acceptable C compiler found in \$PATH
2805See \`config.log' for more details." >&2;}
2806 { (exit 1); exit 1; }; }
2807
2808# Provide some information about the compiler.
2809echo "$as_me:$LINENO: checking for C compiler version" >&5
2810ac_compiler=`set X $ac_compile; echo $2`
2811{ (ac_try="$ac_compiler --version >&5"
2812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_compiler --version >&5") 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }
2821{ (ac_try="$ac_compiler -v >&5"
2822case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825esac
2826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_compiler -v >&5") 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }
2831{ (ac_try="$ac_compiler -V >&5"
2832case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_compiler -V >&5") 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2841
2842cat >conftest.$ac_ext <<_ACEOF
2843/* confdefs.h. */
2844_ACEOF
2845cat confdefs.h >>conftest.$ac_ext
2846cat >>conftest.$ac_ext <<_ACEOF
2847/* end confdefs.h. */
2848
2849int
2850main ()
2851{
2852
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857ac_clean_files_save=$ac_clean_files
2858ac_clean_files="$ac_clean_files a.out a.exe b.out"
2859# Try to create an executable without -o first, disregard a.out.
2860# It will help us diagnose broken compilers, and finding out an intuition
2861# of exeext.
2862{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2863echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2864ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2865#
2866# List of possible output files, starting from the most likely.
2867# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2868# only as a last resort. b.out is created by i960 compilers.
2869ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2870#
2871# The IRIX 6 linker writes into existing files which may not be
2872# executable, retaining their permissions. Remove them first so a
2873# subsequent execution test works.
2874ac_rmfiles=
2875for ac_file in $ac_files
2876do
2877 case $ac_file in
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2879 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2880 esac
2881done
2882rm -f $ac_rmfiles
2883
2884if { (ac_try="$ac_link_default"
2885case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888esac
2889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_link_default") 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; then
2894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2895# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2896# in a Makefile. We should not override ac_cv_exeext if it was cached,
2897# so that the user can short-circuit this test for compilers unknown to
2898# Autoconf.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002899for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002900do
2901 test -f "$ac_file" || continue
2902 case $ac_file in
2903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2904 ;;
2905 [ab].out )
2906 # We found the default executable, but exeext='' is most
2907 # certainly right.
2908 break;;
2909 *.* )
2910 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2911 then :; else
2912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913 fi
2914 # We set ac_cv_exeext here because the later test for it is not
2915 # safe: cross compilers may not add the suffix if given an `-o'
2916 # argument, so we may need to know it at that point already.
2917 # Even if this section looks crufty: it has the advantage of
2918 # actually working.
2919 break;;
2920 * )
2921 break;;
2922 esac
2923done
2924test "$ac_cv_exeext" = no && ac_cv_exeext=
2925
2926else
2927 echo "$as_me: failed program was:" >&5
2928sed 's/^/| /' conftest.$ac_ext >&5
2929
2930{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2931See \`config.log' for more details." >&5
2932echo "$as_me: error: C compiler cannot create executables
2933See \`config.log' for more details." >&2;}
2934 { (exit 77); exit 77; }; }
2935fi
2936
2937ac_exeext=$ac_cv_exeext
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002938{ echo "$as_me:$LINENO: result: $ac_file" >&5
2939echo "${ECHO_T}$ac_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002940
2941# Check that the compiler produces executables we can run. If not, either
2942# the compiler is broken, or we cross compile.
2943{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2944echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2945# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2946# If not cross compiling, check that we can run a simple program.
2947if test "$cross_compiling" != yes; then
2948 if { ac_try='./$ac_file'
2949 { (case "(($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_try") 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2958 cross_compiling=no
2959 else
2960 if test "$cross_compiling" = maybe; then
2961 cross_compiling=yes
2962 else
2963 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2964If you meant to cross compile, use \`--host'.
2965See \`config.log' for more details." >&5
2966echo "$as_me: error: cannot run C compiled programs.
2967If you meant to cross compile, use \`--host'.
2968See \`config.log' for more details." >&2;}
2969 { (exit 1); exit 1; }; }
2970 fi
2971 fi
2972fi
2973{ echo "$as_me:$LINENO: result: yes" >&5
2974echo "${ECHO_T}yes" >&6; }
2975
2976rm -f a.out a.exe conftest$ac_cv_exeext b.out
2977ac_clean_files=$ac_clean_files_save
2978# Check that the compiler produces executables we can run. If not, either
2979# the compiler is broken, or we cross compile.
2980{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2981echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2982{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2983echo "${ECHO_T}$cross_compiling" >&6; }
2984
2985{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2986echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2987if { (ac_try="$ac_link"
2988case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2991esac
2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_link") 2>&5
2994 ac_status=$?
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; then
2997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2998# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2999# work properly (i.e., refer to `conftest.exe'), while it won't with
3000# `rm'.
3001for ac_file in conftest.exe conftest conftest.*; do
3002 test -f "$ac_file" || continue
3003 case $ac_file in
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3006 break;;
3007 * ) break;;
3008 esac
3009done
3010else
3011 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3012See \`config.log' for more details." >&5
3013echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3014See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }
3016fi
3017
3018rm -f conftest$ac_cv_exeext
3019{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3020echo "${ECHO_T}$ac_cv_exeext" >&6; }
3021
3022rm -f conftest.$ac_ext
3023EXEEXT=$ac_cv_exeext
3024ac_exeext=$EXEEXT
3025{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3026echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3027if test "${ac_cv_objext+set}" = set; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3029else
3030 cat >conftest.$ac_ext <<_ACEOF
3031/* confdefs.h. */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h. */
3036
3037int
3038main ()
3039{
3040
3041 ;
3042 return 0;
3043}
3044_ACEOF
3045rm -f conftest.o conftest.obj
3046if { (ac_try="$ac_compile"
3047case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
3051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052 (eval "$ac_compile") 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; then
3056 for ac_file in conftest.o conftest.obj conftest.*; do
3057 test -f "$ac_file" || continue;
3058 case $ac_file in
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3060 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3061 break;;
3062 esac
3063done
3064else
3065 echo "$as_me: failed program was:" >&5
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3069See \`config.log' for more details." >&5
3070echo "$as_me: error: cannot compute suffix of object files: cannot compile
3071See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3073fi
3074
3075rm -f conftest.$ac_cv_objext conftest.$ac_ext
3076fi
3077{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3078echo "${ECHO_T}$ac_cv_objext" >&6; }
3079OBJEXT=$ac_cv_objext
3080ac_objext=$OBJEXT
3081{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3082echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3083if test "${ac_cv_c_compiler_gnu+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086 cat >conftest.$ac_ext <<_ACEOF
3087/* confdefs.h. */
3088_ACEOF
3089cat confdefs.h >>conftest.$ac_ext
3090cat >>conftest.$ac_ext <<_ACEOF
3091/* end confdefs.h. */
3092
3093int
3094main ()
3095{
3096#ifndef __GNUC__
3097 choke me
3098#endif
3099
3100 ;
3101 return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext
3105if { (ac_try="$ac_compile"
3106case "(($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_compile") 2>conftest.er1
3112 ac_status=$?
3113 grep -v '^ *+' conftest.er1 >conftest.err
3114 rm -f conftest.er1
3115 cat conftest.err >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003117 (exit $ac_status); } &&
3118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; } &&
3128 { ac_try='test -s conftest.$ac_objext'
3129 { (case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_try") 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003138 ac_compiler_gnu=yes
3139else
3140 echo "$as_me: failed program was:" >&5
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 ac_compiler_gnu=no
3144fi
3145
3146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147ac_cv_c_compiler_gnu=$ac_compiler_gnu
3148
3149fi
3150{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3151echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3152GCC=`test $ac_compiler_gnu = yes && echo yes`
3153ac_test_CFLAGS=${CFLAGS+set}
3154ac_save_CFLAGS=$CFLAGS
3155{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3156echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3157if test "${ac_cv_prog_cc_g+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
3160 ac_save_c_werror_flag=$ac_c_werror_flag
3161 ac_c_werror_flag=yes
3162 ac_cv_prog_cc_g=no
3163 CFLAGS="-g"
3164 cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h. */
3170
3171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext
3180if { (ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($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_try") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003213 ac_cv_prog_cc_g=yes
3214else
3215 echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218 CFLAGS=""
3219 cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext
3235if { (ac_try="$ac_compile"
3236case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239esac
3240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003247 (exit $ac_status); } &&
3248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252esac
3253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; } &&
3258 { ac_try='test -s conftest.$ac_objext'
3259 { (case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
3263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264 (eval "$ac_try") 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003268 :
3269else
3270 echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3274 CFLAGS="-g"
3275 cat >conftest.$ac_ext <<_ACEOF
3276/* confdefs.h. */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h. */
3281
3282int
3283main ()
3284{
3285
3286 ;
3287 return 0;
3288}
3289_ACEOF
3290rm -f conftest.$ac_objext
3291if { (ac_try="$ac_compile"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>conftest.er1
3298 ac_status=$?
3299 grep -v '^ *+' conftest.er1 >conftest.err
3300 rm -f conftest.er1
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003303 (exit $ac_status); } &&
3304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3305 { (case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
3309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_try") 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318esac
3319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003324 ac_cv_prog_cc_g=yes
3325else
3326 echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329
3330fi
3331
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333fi
3334
3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336fi
3337
3338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340fi
3341{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3342echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3343if test "$ac_test_CFLAGS" = set; then
3344 CFLAGS=$ac_save_CFLAGS
3345elif test $ac_cv_prog_cc_g = yes; then
3346 if test "$GCC" = yes; then
3347 CFLAGS="-g -O2"
3348 else
3349 CFLAGS="-g"
3350 fi
3351else
3352 if test "$GCC" = yes; then
3353 CFLAGS="-O2"
3354 else
3355 CFLAGS=
3356 fi
3357fi
3358{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3359echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3360if test "${ac_cv_prog_cc_c89+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
3363 ac_cv_prog_cc_c89=no
3364ac_save_CC=$CC
3365cat >conftest.$ac_ext <<_ACEOF
3366/* confdefs.h. */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h. */
3371#include <stdarg.h>
3372#include <stdio.h>
3373#include <sys/types.h>
3374#include <sys/stat.h>
3375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3376struct buf { int x; };
3377FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378static char *e (p, i)
3379 char **p;
3380 int i;
3381{
3382 return p[i];
3383}
3384static char *f (char * (*g) (char **, int), char **p, ...)
3385{
3386 char *s;
3387 va_list v;
3388 va_start (v,p);
3389 s = g (p, va_arg (v,int));
3390 va_end (v);
3391 return s;
3392}
3393
3394/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3395 function prototypes and stuff, but not '\xHH' hex character constants.
3396 These don't provoke an error unfortunately, instead are silently treated
3397 as 'x'. The following induces an error, until -std is added to get
3398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3399 array size at least. It's necessary to write '\x00'==0 to get something
3400 that's true only with -std. */
3401int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3402
3403/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404 inside strings and character constants. */
3405#define FOO(x) 'x'
3406int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3407
3408int test (int i, double x);
3409struct s1 {int (*f) (int a);};
3410struct s2 {int (*f) (double a);};
3411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3412int argc;
3413char **argv;
3414int
3415main ()
3416{
3417return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3418 ;
3419 return 0;
3420}
3421_ACEOF
3422for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3424do
3425 CC="$ac_save_CC $ac_arg"
3426 rm -f conftest.$ac_objext
3427if { (ac_try="$ac_compile"
3428case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_compile") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003439 (exit $ac_status); } &&
3440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3441 { (case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444esac
3445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_try") 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try='test -s conftest.$ac_objext'
3451 { (case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454esac
3455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_try") 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003460 ac_cv_prog_cc_c89=$ac_arg
3461else
3462 echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465
3466fi
3467
3468rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
3470done
3471rm -f conftest.$ac_ext
3472CC=$ac_save_CC
3473
3474fi
3475# AC_CACHE_VAL
3476case "x$ac_cv_prog_cc_c89" in
3477 x)
3478 { echo "$as_me:$LINENO: result: none needed" >&5
3479echo "${ECHO_T}none needed" >&6; } ;;
3480 xno)
3481 { echo "$as_me:$LINENO: result: unsupported" >&5
3482echo "${ECHO_T}unsupported" >&6; } ;;
3483 *)
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3486echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3487esac
3488
3489
3490ac_ext=c
3491ac_cpp='$CPP $CPPFLAGS'
3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496
3497ac_ext=c
3498ac_cpp='$CPP $CPPFLAGS'
3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3503echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3504# On Suns, sometimes $CPP names a directory.
3505if test -n "$CPP" && test -d "$CPP"; then
3506 CPP=
3507fi
3508if test -z "$CPP"; then
3509 if test "${ac_cv_prog_CPP+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512 # Double quotes because CPP needs to be expanded
3513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3514 do
3515 ac_preproc_ok=false
3516for ac_c_preproc_warn_flag in '' yes
3517do
3518 # Use a header file that comes with gcc, so configuring glibc
3519 # with a fresh cross-compiler works.
3520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3521 # <limits.h> exists even on freestanding compilers.
3522 # On the NeXT, cc -E runs the code through the compiler's parser,
3523 # not just through cpp. "Syntax error" is here to catch this case.
3524 cat >conftest.$ac_ext <<_ACEOF
3525/* confdefs.h. */
3526_ACEOF
3527cat confdefs.h >>conftest.$ac_ext
3528cat >>conftest.$ac_ext <<_ACEOF
3529/* end confdefs.h. */
3530#ifdef __STDC__
3531# include <limits.h>
3532#else
3533# include <assert.h>
3534#endif
3535 Syntax error
3536_ACEOF
3537if { (ac_try="$ac_cpp conftest.$ac_ext"
3538case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541esac
3542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3544 ac_status=$?
3545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003549 (exit $ac_status); } >/dev/null; then
3550 if test -s conftest.err; then
3551 ac_cpp_err=$ac_c_preproc_warn_flag
3552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3553 else
3554 ac_cpp_err=
3555 fi
3556else
3557 ac_cpp_err=yes
3558fi
3559if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003560 :
3561else
3562 echo "$as_me: failed program was:" >&5
3563sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 # Broken: fails on valid input.
3566continue
3567fi
3568
3569rm -f conftest.err conftest.$ac_ext
3570
3571 # OK, works on sane cases. Now check whether nonexistent headers
3572 # can be detected and how.
3573 cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h. */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h. */
3579#include <ac_nonexistent.h>
3580_ACEOF
3581if { (ac_try="$ac_cpp conftest.$ac_ext"
3582case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585esac
3586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3588 ac_status=$?
3589 grep -v '^ *+' conftest.er1 >conftest.err
3590 rm -f conftest.er1
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003593 (exit $ac_status); } >/dev/null; then
3594 if test -s conftest.err; then
3595 ac_cpp_err=$ac_c_preproc_warn_flag
3596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3597 else
3598 ac_cpp_err=
3599 fi
3600else
3601 ac_cpp_err=yes
3602fi
3603if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003604 # Broken: success on invalid input.
3605continue
3606else
3607 echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610 # Passes both tests.
3611ac_preproc_ok=:
3612break
3613fi
3614
3615rm -f conftest.err conftest.$ac_ext
3616
3617done
3618# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3619rm -f conftest.err conftest.$ac_ext
3620if $ac_preproc_ok; then
3621 break
3622fi
3623
3624 done
3625 ac_cv_prog_CPP=$CPP
3626
3627fi
3628 CPP=$ac_cv_prog_CPP
3629else
3630 ac_cv_prog_CPP=$CPP
3631fi
3632{ echo "$as_me:$LINENO: result: $CPP" >&5
3633echo "${ECHO_T}$CPP" >&6; }
3634ac_preproc_ok=false
3635for ac_c_preproc_warn_flag in '' yes
3636do
3637 # Use a header file that comes with gcc, so configuring glibc
3638 # with a fresh cross-compiler works.
3639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3640 # <limits.h> exists even on freestanding compilers.
3641 # On the NeXT, cc -E runs the code through the compiler's parser,
3642 # not just through cpp. "Syntax error" is here to catch this case.
3643 cat >conftest.$ac_ext <<_ACEOF
3644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
3649#ifdef __STDC__
3650# include <limits.h>
3651#else
3652# include <assert.h>
3653#endif
3654 Syntax error
3655_ACEOF
3656if { (ac_try="$ac_cpp conftest.$ac_ext"
3657case "(($ac_try" in
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3660esac
3661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003668 (exit $ac_status); } >/dev/null; then
3669 if test -s conftest.err; then
3670 ac_cpp_err=$ac_c_preproc_warn_flag
3671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3672 else
3673 ac_cpp_err=
3674 fi
3675else
3676 ac_cpp_err=yes
3677fi
3678if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003679 :
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 # Broken: fails on valid input.
3685continue
3686fi
3687
3688rm -f conftest.err conftest.$ac_ext
3689
3690 # OK, works on sane cases. Now check whether nonexistent headers
3691 # can be detected and how.
3692 cat >conftest.$ac_ext <<_ACEOF
3693/* confdefs.h. */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h. */
3698#include <ac_nonexistent.h>
3699_ACEOF
3700if { (ac_try="$ac_cpp conftest.$ac_ext"
3701case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704esac
3705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003712 (exit $ac_status); } >/dev/null; then
3713 if test -s conftest.err; then
3714 ac_cpp_err=$ac_c_preproc_warn_flag
3715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3716 else
3717 ac_cpp_err=
3718 fi
3719else
3720 ac_cpp_err=yes
3721fi
3722if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003723 # Broken: success on invalid input.
3724continue
3725else
3726 echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729 # Passes both tests.
3730ac_preproc_ok=:
3731break
3732fi
3733
3734rm -f conftest.err conftest.$ac_ext
3735
3736done
3737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738rm -f conftest.err conftest.$ac_ext
3739if $ac_preproc_ok; then
3740 :
3741else
3742 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3743See \`config.log' for more details." >&5
3744echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3745See \`config.log' for more details." >&2;}
3746 { (exit 1); exit 1; }; }
3747fi
3748
3749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755
3756{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3757echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3758if test "${ac_cv_path_GREP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3760else
3761 # Extract the first word of "grep ggrep" to use in msg output
3762if test -z "$GREP"; then
3763set dummy grep ggrep; ac_prog_name=$2
3764if test "${ac_cv_path_GREP+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767 ac_path_GREP_found=false
3768# Loop through the user's path and test for each of PROGNAME-LIST
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_prog in grep ggrep; do
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003777 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003778 # Check for GNU ac_path_GREP and select it if it is found.
3779 # Check for GNU $ac_path_GREP
3780case `"$ac_path_GREP" --version 2>&1` in
3781*GNU*)
3782 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3783*)
3784 ac_count=0
3785 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3786 while :
3787 do
3788 cat "conftest.in" "conftest.in" >"conftest.tmp"
3789 mv "conftest.tmp" "conftest.in"
3790 cp "conftest.in" "conftest.nl"
3791 echo 'GREP' >> "conftest.nl"
3792 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3794 ac_count=`expr $ac_count + 1`
3795 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3796 # Best one so far, save it but keep looking for a better one
3797 ac_cv_path_GREP="$ac_path_GREP"
3798 ac_path_GREP_max=$ac_count
3799 fi
3800 # 10*(2^10) chars as input seems more than enough
3801 test $ac_count -gt 10 && break
3802 done
3803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804esac
3805
3806
3807 $ac_path_GREP_found && break 3
3808 done
3809done
3810
3811done
3812IFS=$as_save_IFS
3813
3814
3815fi
3816
3817GREP="$ac_cv_path_GREP"
3818if test -z "$GREP"; then
3819 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3820echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3821 { (exit 1); exit 1; }; }
3822fi
3823
3824else
3825 ac_cv_path_GREP=$GREP
3826fi
3827
3828
3829fi
3830{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3831echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3832 GREP="$ac_cv_path_GREP"
3833
3834
3835{ echo "$as_me:$LINENO: checking for egrep" >&5
3836echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3837if test "${ac_cv_path_EGREP+set}" = set; then
3838 echo $ECHO_N "(cached) $ECHO_C" >&6
3839else
3840 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3841 then ac_cv_path_EGREP="$GREP -E"
3842 else
3843 # Extract the first word of "egrep" to use in msg output
3844if test -z "$EGREP"; then
3845set dummy egrep; ac_prog_name=$2
3846if test "${ac_cv_path_EGREP+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 ac_path_EGREP_found=false
3850# Loop through the user's path and test for each of PROGNAME-LIST
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_prog in egrep; do
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003859 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003860 # Check for GNU ac_path_EGREP and select it if it is found.
3861 # Check for GNU $ac_path_EGREP
3862case `"$ac_path_EGREP" --version 2>&1` in
3863*GNU*)
3864 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3865*)
3866 ac_count=0
3867 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3868 while :
3869 do
3870 cat "conftest.in" "conftest.in" >"conftest.tmp"
3871 mv "conftest.tmp" "conftest.in"
3872 cp "conftest.in" "conftest.nl"
3873 echo 'EGREP' >> "conftest.nl"
3874 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3876 ac_count=`expr $ac_count + 1`
3877 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3878 # Best one so far, save it but keep looking for a better one
3879 ac_cv_path_EGREP="$ac_path_EGREP"
3880 ac_path_EGREP_max=$ac_count
3881 fi
3882 # 10*(2^10) chars as input seems more than enough
3883 test $ac_count -gt 10 && break
3884 done
3885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3886esac
3887
3888
3889 $ac_path_EGREP_found && break 3
3890 done
3891done
3892
3893done
3894IFS=$as_save_IFS
3895
3896
3897fi
3898
3899EGREP="$ac_cv_path_EGREP"
3900if test -z "$EGREP"; then
3901 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3902echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3903 { (exit 1); exit 1; }; }
3904fi
3905
3906else
3907 ac_cv_path_EGREP=$EGREP
3908fi
3909
3910
3911 fi
3912fi
3913{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3914echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3915 EGREP="$ac_cv_path_EGREP"
3916
3917
3918{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3919echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3920if test "${ac_cv_header_stdc+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922else
3923 cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h. */
3929#include <stdlib.h>
3930#include <stdarg.h>
3931#include <string.h>
3932#include <float.h>
3933
3934int
3935main ()
3936{
3937
3938 ;
3939 return 0;
3940}
3941_ACEOF
3942rm -f conftest.$ac_objext
3943if { (ac_try="$ac_compile"
3944case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947esac
3948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_compile") 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003955 (exit $ac_status); } &&
3956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3957 { (case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_try") 2>&5
3963 ac_status=$?
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try='test -s conftest.$ac_objext'
3967 { (case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970esac
3971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_try") 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003976 ac_cv_header_stdc=yes
3977else
3978 echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981 ac_cv_header_stdc=no
3982fi
3983
3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985
3986if test $ac_cv_header_stdc = yes; then
3987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3988 cat >conftest.$ac_ext <<_ACEOF
3989/* confdefs.h. */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h. */
3994#include <string.h>
3995
3996_ACEOF
3997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3998 $EGREP "memchr" >/dev/null 2>&1; then
3999 :
4000else
4001 ac_cv_header_stdc=no
4002fi
4003rm -f conftest*
4004
4005fi
4006
4007if test $ac_cv_header_stdc = yes; then
4008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4009 cat >conftest.$ac_ext <<_ACEOF
4010/* confdefs.h. */
4011_ACEOF
4012cat confdefs.h >>conftest.$ac_ext
4013cat >>conftest.$ac_ext <<_ACEOF
4014/* end confdefs.h. */
4015#include <stdlib.h>
4016
4017_ACEOF
4018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 $EGREP "free" >/dev/null 2>&1; then
4020 :
4021else
4022 ac_cv_header_stdc=no
4023fi
4024rm -f conftest*
4025
4026fi
4027
4028if test $ac_cv_header_stdc = yes; then
4029 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4030 if test "$cross_compiling" = yes; then
4031 :
4032else
4033 cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039#include <ctype.h>
4040#include <stdlib.h>
4041#if ((' ' & 0x0FF) == 0x020)
4042# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4043# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4044#else
4045# define ISLOWER(c) \
4046 (('a' <= (c) && (c) <= 'i') \
4047 || ('j' <= (c) && (c) <= 'r') \
4048 || ('s' <= (c) && (c) <= 'z'))
4049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4050#endif
4051
4052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4053int
4054main ()
4055{
4056 int i;
4057 for (i = 0; i < 256; i++)
4058 if (XOR (islower (i), ISLOWER (i))
4059 || toupper (i) != TOUPPER (i))
4060 return 2;
4061 return 0;
4062}
4063_ACEOF
4064rm -f conftest$ac_exeext
4065if { (ac_try="$ac_link"
4066case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_link") 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4075 { (case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078esac
4079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 :
4085else
4086 echo "$as_me: program exited with status $ac_status" >&5
4087echo "$as_me: failed program was:" >&5
4088sed 's/^/| /' conftest.$ac_ext >&5
4089
4090( exit $ac_status )
4091ac_cv_header_stdc=no
4092fi
4093rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4094fi
4095
4096
4097fi
4098fi
4099{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4100echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4101if test $ac_cv_header_stdc = yes; then
4102
4103cat >>confdefs.h <<\_ACEOF
4104#define STDC_HEADERS 1
4105_ACEOF
4106
4107fi
4108
4109# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4120 inttypes.h stdint.h unistd.h
4121do
4122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4123{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
4134$ac_includes_default
4135
4136#include <$ac_header>
4137_ACEOF
4138rm -f conftest.$ac_objext
4139if { (ac_try="$ac_compile"
4140case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143esac
4144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_compile") 2>conftest.er1
4146 ac_status=$?
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004172 eval "$as_ac_Header=yes"
4173else
4174 echo "$as_me: failed program was:" >&5
4175sed 's/^/| /' conftest.$ac_ext >&5
4176
4177 eval "$as_ac_Header=no"
4178fi
4179
4180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181fi
4182ac_res=`eval echo '${'$as_ac_Header'}'`
4183 { echo "$as_me:$LINENO: result: $ac_res" >&5
4184echo "${ECHO_T}$ac_res" >&6; }
4185if test `eval echo '${'$as_ac_Header'}'` = yes; then
4186 cat >>confdefs.h <<_ACEOF
4187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4188_ACEOF
4189
4190fi
4191
4192done
4193
4194
4195{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4196echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4197if test "${ac_cv_c_bigendian+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 # See if sys/param.h defines the BYTE_ORDER macro.
4201cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
4207#include <sys/types.h>
4208#include <sys/param.h>
4209
4210int
4211main ()
4212{
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004213#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004214 bogus endian macros
4215#endif
4216
4217 ;
4218 return 0;
4219}
4220_ACEOF
4221rm -f conftest.$ac_objext
4222if { (ac_try="$ac_compile"
4223case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249esac
4250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004255 # It does; now see whether it defined to BIG_ENDIAN or not.
4256cat >conftest.$ac_ext <<_ACEOF
4257/* confdefs.h. */
4258_ACEOF
4259cat confdefs.h >>conftest.$ac_ext
4260cat >>conftest.$ac_ext <<_ACEOF
4261/* end confdefs.h. */
4262#include <sys/types.h>
4263#include <sys/param.h>
4264
4265int
4266main ()
4267{
4268#if BYTE_ORDER != BIG_ENDIAN
4269 not big endian
4270#endif
4271
4272 ;
4273 return 0;
4274}
4275_ACEOF
4276rm -f conftest.$ac_objext
4277if { (ac_try="$ac_compile"
4278case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281esac
4282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4283 (eval "$ac_compile") 2>conftest.er1
4284 ac_status=$?
4285 grep -v '^ *+' conftest.er1 >conftest.err
4286 rm -f conftest.er1
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4291 { (case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest.$ac_objext'
4301 { (case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004310 ac_cv_c_bigendian=yes
4311else
4312 echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315 ac_cv_c_bigendian=no
4316fi
4317
4318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319else
4320 echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 # It does not; compile a test program.
4324if test "$cross_compiling" = yes; then
4325 # try to guess the endianness by grepping values into an object file
4326 ac_cv_c_bigendian=unknown
4327 cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h. */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h. */
4333short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4334short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4335void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4336short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4337short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4338void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4339int
4340main ()
4341{
4342 _ascii (); _ebcdic ();
4343 ;
4344 return 0;
4345}
4346_ACEOF
4347rm -f conftest.$ac_objext
4348if { (ac_try="$ac_compile"
4349case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352esac
4353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_compile") 2>conftest.er1
4355 ac_status=$?
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004360 (exit $ac_status); } &&
4361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4362 { (case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365esac
4366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_try") 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375esac
4376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_try") 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004381 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4382 ac_cv_c_bigendian=yes
4383fi
4384if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4385 if test "$ac_cv_c_bigendian" = unknown; then
4386 ac_cv_c_bigendian=no
4387 else
4388 # finding both strings is unlikely to happen, but who knows?
4389 ac_cv_c_bigendian=unknown
4390 fi
4391fi
4392else
4393 echo "$as_me: failed program was:" >&5
4394sed 's/^/| /' conftest.$ac_ext >&5
4395
4396
4397fi
4398
4399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400else
4401 cat >conftest.$ac_ext <<_ACEOF
4402/* confdefs.h. */
4403_ACEOF
4404cat confdefs.h >>conftest.$ac_ext
4405cat >>conftest.$ac_ext <<_ACEOF
4406/* end confdefs.h. */
4407$ac_includes_default
4408int
4409main ()
4410{
4411
4412 /* Are we little or big endian? From Harbison&Steele. */
4413 union
4414 {
4415 long int l;
4416 char c[sizeof (long int)];
4417 } u;
4418 u.l = 1;
4419 return u.c[sizeof (long int) - 1] == 1;
4420
4421 ;
4422 return 0;
4423}
4424_ACEOF
4425rm -f conftest$ac_exeext
4426if { (ac_try="$ac_link"
4427case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430esac
4431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432 (eval "$ac_link") 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4436 { (case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439esac
4440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_try") 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); }; }; then
4445 ac_cv_c_bigendian=no
4446else
4447 echo "$as_me: program exited with status $ac_status" >&5
4448echo "$as_me: failed program was:" >&5
4449sed 's/^/| /' conftest.$ac_ext >&5
4450
4451( exit $ac_status )
4452ac_cv_c_bigendian=yes
4453fi
4454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4455fi
4456
4457
4458fi
4459
4460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461fi
4462{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4463echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4464case $ac_cv_c_bigendian in
4465 yes)
4466 ENDIAN=big
4467 ;;
4468 no)
4469 ENDIAN=little
4470 ;;
4471 *)
4472 { { echo "$as_me:$LINENO: error: unknown endianness
4473presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4474echo "$as_me: error: unknown endianness
4475presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4476 { (exit 1); exit 1; }; } ;;
4477esac
4478
4479
4480if test "$cross_compiling" = yes; then
4481 LLVM_CROSS_COMPILING=1
4482
4483
4484{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4485echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4486if test "${ac_cv_build_exeext+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488else
4489 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4490 ac_cv_build_exeext=.exe
4491else
4492 ac_build_prefix=${build_alias}-
4493
4494 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4495set dummy ${ac_build_prefix}gcc; ac_word=$2
4496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500else
4501 if test -n "$BUILD_CC"; then
4502 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4503else
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004510 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 +00004511 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515done
4516done
4517IFS=$as_save_IFS
4518
4519fi
4520fi
4521BUILD_CC=$ac_cv_prog_BUILD_CC
4522if test -n "$BUILD_CC"; then
4523 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524echo "${ECHO_T}$BUILD_CC" >&6; }
4525else
4526 { echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6; }
4528fi
4529
4530
4531 if test -z "$BUILD_CC"; then
4532 # Extract the first word of "gcc", so it can be a program name with args.
4533set dummy gcc; ac_word=$2
4534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4536if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538else
4539 if test -n "$BUILD_CC"; then
4540 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4541else
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004548 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 +00004549 ac_cv_prog_BUILD_CC="gcc"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4552 fi
4553done
4554done
4555IFS=$as_save_IFS
4556
4557fi
4558fi
4559BUILD_CC=$ac_cv_prog_BUILD_CC
4560if test -n "$BUILD_CC"; then
4561 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4562echo "${ECHO_T}$BUILD_CC" >&6; }
4563else
4564 { echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6; }
4566fi
4567
4568
4569 if test -z "$BUILD_CC"; then
4570 # Extract the first word of "cc", so it can be a program name with args.
4571set dummy cc; ac_word=$2
4572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577 if test -n "$BUILD_CC"; then
4578 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4579else
4580 ac_prog_rejected=no
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004587 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 +00004588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4589 ac_prog_rejected=yes
4590 continue
4591 fi
4592 ac_cv_prog_BUILD_CC="cc"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596done
4597done
4598IFS=$as_save_IFS
4599
4600if test $ac_prog_rejected = yes; then
4601 # We found a bogon in the path, so make sure we never use it.
4602 set dummy $ac_cv_prog_BUILD_CC
4603 shift
4604 if test $# != 0; then
4605 # We chose a different compiler from the bogus one.
4606 # However, it has the same basename, so the bogon will be chosen
4607 # first if we set BUILD_CC to just the basename; use the full file name.
4608 shift
4609 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4610 fi
4611fi
4612fi
4613fi
4614BUILD_CC=$ac_cv_prog_BUILD_CC
4615if test -n "$BUILD_CC"; then
4616 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4617echo "${ECHO_T}$BUILD_CC" >&6; }
4618else
4619 { echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6; }
4621fi
4622
4623
4624 fi
4625 fi
4626 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4627echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4628 { (exit 1); exit 1; }; }
4629 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4630 rm -f conftest*
4631 echo 'int main () { return 0; }' > conftest.$ac_ext
4632 ac_cv_build_exeext=
4633 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4634 (eval $ac_build_link) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; then
4638 for file in conftest.*; do
4639 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004640 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004641 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4642 esac
4643 done
4644 else
4645 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4646echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4647 { (exit 1); exit 1; }; }
4648 fi
4649 rm -f conftest*
4650 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4651fi
4652fi
4653
4654BUILD_EXEEXT=""
4655test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4656{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4657echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4658ac_build_exeext=$BUILD_EXEEXT
4659
Jim Grosbache4c032e2008-10-02 22:56:44 +00004660 ac_build_prefix=${build_alias}-
4661 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4662set dummy ${ac_build_prefix}g++; ac_word=$2
4663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668 if test -n "$BUILD_CXX"; then
4669 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4670else
4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004677 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 +00004678 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682done
4683done
4684IFS=$as_save_IFS
4685
4686fi
4687fi
4688BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689if test -n "$BUILD_CXX"; then
4690 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691echo "${ECHO_T}$BUILD_CXX" >&6; }
4692else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6; }
4695fi
4696
4697
4698 if test -z "$BUILD_CXX"; then
4699 # Extract the first word of "g++", so it can be a program name with args.
4700set dummy g++; ac_word=$2
4701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4703if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705else
4706 if test -n "$BUILD_CXX"; then
4707 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004715 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 +00004716 ac_cv_prog_BUILD_CXX="g++"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720done
4721done
4722IFS=$as_save_IFS
4723
4724fi
4725fi
4726BUILD_CXX=$ac_cv_prog_BUILD_CXX
4727if test -n "$BUILD_CXX"; then
4728 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4729echo "${ECHO_T}$BUILD_CXX" >&6; }
4730else
4731 { echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6; }
4733fi
4734
4735
4736 if test -z "$BUILD_CXX"; then
4737 # Extract the first word of "c++", so it can be a program name with args.
4738set dummy c++; ac_word=$2
4739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4741if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744 if test -n "$BUILD_CXX"; then
4745 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4746else
4747 ac_prog_rejected=no
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004754 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 +00004755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4756 ac_prog_rejected=yes
4757 continue
4758 fi
4759 ac_cv_prog_BUILD_CXX="c++"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763done
4764done
4765IFS=$as_save_IFS
4766
4767if test $ac_prog_rejected = yes; then
4768 # We found a bogon in the path, so make sure we never use it.
4769 set dummy $ac_cv_prog_BUILD_CXX
4770 shift
4771 if test $# != 0; then
4772 # We chose a different compiler from the bogus one.
4773 # However, it has the same basename, so the bogon will be chosen
4774 # first if we set BUILD_CXX to just the basename; use the full file name.
4775 shift
4776 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4777 fi
4778fi
4779fi
4780fi
4781BUILD_CXX=$ac_cv_prog_BUILD_CXX
4782if test -n "$BUILD_CXX"; then
4783 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4784echo "${ECHO_T}$BUILD_CXX" >&6; }
4785else
4786 { echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6; }
4788fi
4789
4790
4791 fi
4792 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004793else
4794 LLVM_CROSS_COMPILING=0
4795
4796fi
4797
Nick Lewycky45f0f822009-04-10 05:18:27 +00004798if 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 +00004799 cvsbuild="yes"
4800 optimize="no"
4801 CVSBUILD=CVSBUILD=1
4802
4803else
4804 cvsbuild="no"
4805 optimize="yes"
4806fi
4807
4808
4809# Check whether --enable-optimized was given.
4810if test "${enable_optimized+set}" = set; then
4811 enableval=$enable_optimized;
4812else
4813 enableval=$optimize
4814fi
4815
4816if test ${enableval} = "no" ; then
4817 ENABLE_OPTIMIZED=
4818
4819else
4820 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4821
4822fi
4823
David Greene19b1cbd2009-04-17 14:50:39 +00004824# Check whether --enable-profiling was given.
4825if test "${enable_profiling+set}" = set; then
4826 enableval=$enable_profiling;
4827else
4828 enableval="no"
4829fi
4830
4831if test ${enableval} = "no" ; then
4832 ENABLE_PROFILING=
4833
4834else
4835 ENABLE_PROFILING=ENABLE_PROFILING=1
4836
4837fi
4838
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004839# Check whether --enable-assertions was given.
4840if test "${enable_assertions+set}" = set; then
4841 enableval=$enable_assertions;
4842else
4843 enableval="yes"
4844fi
4845
4846if test ${enableval} = "yes" ; then
4847 DISABLE_ASSERTIONS=
4848
4849else
4850 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4851
4852fi
4853
4854# Check whether --enable-expensive-checks was given.
4855if test "${enable_expensive_checks+set}" = set; then
4856 enableval=$enable_expensive_checks;
4857else
4858 enableval="no"
4859fi
4860
4861if test ${enableval} = "yes" ; then
4862 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4863
4864 EXPENSIVE_CHECKS=yes
4865
4866else
4867 ENABLE_EXPENSIVE_CHECKS=
4868
4869 EXPENSIVE_CHECKS=no
4870
4871fi
4872
4873# Check whether --enable-debug-runtime was given.
4874if test "${enable_debug_runtime+set}" = set; then
4875 enableval=$enable_debug_runtime;
4876else
4877 enableval=no
4878fi
4879
4880if test ${enableval} = "no" ; then
4881 DEBUG_RUNTIME=
4882
4883else
4884 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4885
4886fi
4887
Jeffrey Yasskined62bf32009-09-27 17:47:29 +00004888# Check whether --enable-debug-symbols was given.
4889if test "${enable_debug_symbols+set}" = set; then
4890 enableval=$enable_debug_symbols;
4891else
4892 enableval=no
4893fi
4894
4895if test ${enableval} = "no" ; then
4896 DEBUG_SYMBOLS=
4897
4898else
4899 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4900
4901fi
4902
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004903# Check whether --enable-jit was given.
4904if test "${enable_jit+set}" = set; then
4905 enableval=$enable_jit;
4906else
4907 enableval=default
4908fi
4909
4910if test ${enableval} = "no"
4911then
4912 JIT=
4913
4914else
4915 case "$llvm_cv_target_arch" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004916 x86) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004917 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004918 Sparc) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004919 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004920 PowerPC) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004921 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004922 x86_64) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004923 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004924 Alpha) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004925 ;;
Eric Christopher9ab1d2e2009-09-14 16:38:49 +00004926 ARM) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004927 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004928 Mips) TARGET_HAS_JIT=0
Tanya Lattner81915b12007-08-29 16:38:16 +00004929 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004930 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004931 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004932 XCore) TARGET_HAS_JIT=0
Richard Osborneab8167a2008-11-07 10:59:00 +00004933 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004934 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004935 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004936 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00004937 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004938 Blackfin) TARGET_HAS_JIT=0
4939 ;;
4940 *) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004941 ;;
4942 esac
4943fi
4944
4945# Check whether --enable-doxygen was given.
4946if test "${enable_doxygen+set}" = set; then
4947 enableval=$enable_doxygen;
4948else
4949 enableval=default
4950fi
4951
4952case "$enableval" in
4953 yes) ENABLE_DOXYGEN=1
4954 ;;
4955 no) ENABLE_DOXYGEN=0
4956 ;;
4957 default) ENABLE_DOXYGEN=0
4958 ;;
4959 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4960echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4961 { (exit 1); exit 1; }; } ;;
4962esac
4963
4964# Check whether --enable-threads was given.
4965if test "${enable_threads+set}" = set; then
4966 enableval=$enable_threads;
4967else
4968 enableval=default
4969fi
4970
4971case "$enableval" in
4972 yes) ENABLE_THREADS=1
4973 ;;
4974 no) ENABLE_THREADS=0
4975 ;;
4976 default) ENABLE_THREADS=1
4977 ;;
4978 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4979echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4981esac
4982
Owen Anderson96237ec2009-05-19 22:18:56 +00004983cat >>confdefs.h <<_ACEOF
4984#define ENABLE_THREADS $ENABLE_THREADS
4985_ACEOF
4986
4987
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004988# Check whether --enable-pic was given.
4989if test "${enable_pic+set}" = set; then
4990 enableval=$enable_pic;
4991else
4992 enableval=default
4993fi
4994
4995case "$enableval" in
4996 yes) ENABLE_PIC=1
4997 ;;
4998 no) ENABLE_PIC=0
4999 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00005000 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005001 ;;
5002 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5003echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5005esac
5006
5007cat >>confdefs.h <<_ACEOF
5008#define ENABLE_PIC $ENABLE_PIC
5009_ACEOF
5010
5011
5012TARGETS_TO_BUILD=""
5013# Check whether --enable-targets was given.
5014if test "${enable_targets+set}" = set; then
5015 enableval=$enable_targets;
5016else
5017 enableval=all
5018fi
5019
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00005020if test "$enableval" = host-only ; then
5021 enableval=host
5022fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005023case "$enableval" in
Jakob Stoklund Olesenb62e9aa2009-08-02 17:32:37 +00005024 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005025 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5026 case "$a_target" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005027 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5028 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5029 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5030 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5031 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5032 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5033 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5034 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5035 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5036 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5037 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5038 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5039 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5040 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5041 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5042 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin35659ae2009-09-23 17:05:42 +00005043 host) case "$llvm_cv_target_arch" in
5044 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5045 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5046 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5047 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5048 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5049 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5050 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5051 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5052 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5053 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5054 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5055 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5056 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5057 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5058echo "$as_me: error: Can not set target to build" >&2;}
5059 { (exit 1); exit 1; }; } ;;
5060 esac ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005061 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5062echo "$as_me: error: Unrecognized target $a_target" >&2;}
5063 { (exit 1); exit 1; }; } ;;
5064 esac
5065 done
5066 ;;
5067esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005068TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5069
5070
Douglas Gregor13e13882009-06-17 00:43:20 +00005071# Determine whether we are building LLVM support for the native architecture.
5072# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5073for a_target in $TARGETS_TO_BUILD; do
5074 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregor192d50e2009-06-23 17:22:05 +00005075 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor13e13882009-06-17 00:43:20 +00005076
5077cat >>confdefs.h <<_ACEOF
Douglas Gregor192d50e2009-06-23 17:22:05 +00005078#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor13e13882009-06-17 00:43:20 +00005079_ACEOF
5080
5081 fi
5082done
5083
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005084# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005085# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005086LLVM_ENUM_TARGETS=""
5087LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005088LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005089for target_to_build in $TARGETS_TO_BUILD; do
5090 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5091 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5092 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5093 fi
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005094 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5095 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5096 fi
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005097done
5098
5099
5100
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005101
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005102# Check whether --enable-cbe-printf-a was given.
5103if test "${enable_cbe_printf_a+set}" = set; then
5104 enableval=$enable_cbe_printf_a;
5105else
5106 enableval=default
5107fi
5108
5109case "$enableval" in
5110 yes) ENABLE_CBE_PRINTF_A=1
5111 ;;
5112 no) ENABLE_CBE_PRINTF_A=0
5113 ;;
5114 default) ENABLE_CBE_PRINTF_A=1
5115 ;;
5116 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5117echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5118 { (exit 1); exit 1; }; } ;;
5119esac
5120
5121cat >>confdefs.h <<_ACEOF
5122#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5123_ACEOF
5124
5125
5126
5127# Check whether --with-llvmgccdir was given.
5128if test "${with_llvmgccdir+set}" = set; then
5129 withval=$with_llvmgccdir;
5130else
5131 withval=default
5132fi
5133
5134case "$withval" in
5135 default) WITH_LLVMGCCDIR=default ;;
5136 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5137 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5138echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5140esac
5141
5142
Devang Pateld84ba7b2007-12-04 22:54:47 +00005143# Check whether --with-llvmgcc was given.
5144if test "${with_llvmgcc+set}" = set; then
5145 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5146 WITH_LLVMGCCDIR=""
5147fi
5148
5149
5150
5151# Check whether --with-llvmgxx was given.
5152if test "${with_llvmgxx+set}" = set; then
5153 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5154 WITH_LLVMGCCDIR=""
5155fi
5156
Douglas Gregord1e1dbc2009-05-11 18:05:52 +00005157
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +00005158if test -n "$LLVMGCC"; then
5159 LLVMGCCCOMMAND="$LLVMGCC"
5160fi
5161
5162if test -n "$LLVMGXX"; then
5163 LLVMGXXCOMMAND="$LLVMGXX"
5164fi
Devang Pateld84ba7b2007-12-04 22:54:47 +00005165
5166if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5167 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5168echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5169 { (exit 1); exit 1; }; };
5170fi
5171
5172if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5173 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5174echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5175 { (exit 1); exit 1; }; };
5176fi
5177
5178
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005179# Check whether --with-extra-options was given.
5180if test "${with_extra_options+set}" = set; then
5181 withval=$with_extra_options;
5182else
5183 withval=default
5184fi
5185
5186case "$withval" in
5187 default) EXTRA_OPTIONS= ;;
5188 *) EXTRA_OPTIONS=$withval ;;
5189esac
5190EXTRA_OPTIONS=$EXTRA_OPTIONS
5191
5192
Gordon Henriksen016ec472007-10-02 09:50:32 +00005193# Check whether --enable-bindings was given.
5194if test "${enable_bindings+set}" = set; then
5195 enableval=$enable_bindings;
5196else
5197 enableval=default
5198fi
5199
5200BINDINGS_TO_BUILD=""
5201case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005202 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005203 all ) BINDINGS_TO_BUILD="ocaml" ;;
5204 none | no) BINDINGS_TO_BUILD="" ;;
5205 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5206 case "$a_binding" in
5207 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5208 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5209echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5210 { (exit 1); exit 1; }; } ;;
5211 esac
5212 done
5213 ;;
5214esac
5215
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005216
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005217# Check whether --with-ocaml-libdir was given.
5218if test "${with_ocaml_libdir+set}" = set; then
5219 withval=$with_ocaml_libdir;
5220else
5221 withval=auto
5222fi
5223
5224case "$withval" in
5225 auto) with_ocaml_libdir="$withval" ;;
5226 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5227 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5228echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5229 { (exit 1); exit 1; }; } ;;
5230esac
5231
5232
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005233# Check whether --with-binutils-include was given.
5234if test "${with_binutils_include+set}" = set; then
5235 withval=$with_binutils_include;
5236else
5237 withval=default
5238fi
5239
5240case "$withval" in
5241 default) WITH_BINUTILS_INCDIR=default ;;
5242 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5243 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5244echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5245 { (exit 1); exit 1; }; } ;;
5246esac
5247if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5248 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5249
5250 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5251 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5252 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5253echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5254 { (exit 1); exit 1; }; };
5255 fi
5256fi
5257
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005258# Check whether --enable-libffi was given.
5259if test "${enable_libffi+set}" = set; then
5260 enableval=$enable_libffi;
5261else
5262 enableval=yes
5263fi
5264
5265case "$enableval" in
5266 yes) llvm_cv_enable_libffi="yes" ;;
5267 no) llvm_cv_enable_libffi="no" ;;
5268 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5269echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5270 { (exit 1); exit 1; }; } ;;
5271esac
5272
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005273if test "$llvm_cv_os_type" = "Win32" ; then
5274 llvmc_dynamic="yes"
5275else
5276 llvmc_dynamic="no"
5277fi
5278
5279# Check whether --enable-llvmc-dynamic was given.
5280if test "${enable_llvmc_dynamic+set}" = set; then
5281 enableval=$enable_llvmc_dynamic;
5282else
5283 enableval=$llvmc_dynamic
5284fi
5285
5286if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5287 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5288
5289else
5290 ENABLE_LLVMC_DYNAMIC=
5291
5292fi
5293
5294# Check whether --enable-llvmc-dynamic-plugins was given.
5295if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5296 enableval=$enable_llvmc_dynamic_plugins;
5297else
5298 enableval=yes
5299fi
5300
5301if test ${enableval} = "yes" ; then
5302 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5303
5304else
5305 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5306
5307fi
5308
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005309
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005310ac_ext=c
5311ac_cpp='$CPP $CPPFLAGS'
5312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5316echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5317# On Suns, sometimes $CPP names a directory.
5318if test -n "$CPP" && test -d "$CPP"; then
5319 CPP=
5320fi
5321if test -z "$CPP"; then
5322 if test "${ac_cv_prog_CPP+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325 # Double quotes because CPP needs to be expanded
5326 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5327 do
5328 ac_preproc_ok=false
5329for ac_c_preproc_warn_flag in '' yes
5330do
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
5337 cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h. */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h. */
5343#ifdef __STDC__
5344# include <limits.h>
5345#else
5346# include <assert.h>
5347#endif
5348 Syntax error
5349_ACEOF
5350if { (ac_try="$ac_cpp conftest.$ac_ext"
5351case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005362 (exit $ac_status); } >/dev/null; then
5363 if test -s conftest.err; then
5364 ac_cpp_err=$ac_c_preproc_warn_flag
5365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5366 else
5367 ac_cpp_err=
5368 fi
5369else
5370 ac_cpp_err=yes
5371fi
5372if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005373 :
5374else
5375 echo "$as_me: failed program was:" >&5
5376sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 # Broken: fails on valid input.
5379continue
5380fi
5381
5382rm -f conftest.err conftest.$ac_ext
5383
5384 # OK, works on sane cases. Now check whether nonexistent headers
5385 # can be detected and how.
5386 cat >conftest.$ac_ext <<_ACEOF
5387/* confdefs.h. */
5388_ACEOF
5389cat confdefs.h >>conftest.$ac_ext
5390cat >>conftest.$ac_ext <<_ACEOF
5391/* end confdefs.h. */
5392#include <ac_nonexistent.h>
5393_ACEOF
5394if { (ac_try="$ac_cpp conftest.$ac_ext"
5395case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398esac
5399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005406 (exit $ac_status); } >/dev/null; then
5407 if test -s conftest.err; then
5408 ac_cpp_err=$ac_c_preproc_warn_flag
5409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5410 else
5411 ac_cpp_err=
5412 fi
5413else
5414 ac_cpp_err=yes
5415fi
5416if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005417 # Broken: success on invalid input.
5418continue
5419else
5420 echo "$as_me: failed program was:" >&5
5421sed 's/^/| /' conftest.$ac_ext >&5
5422
5423 # Passes both tests.
5424ac_preproc_ok=:
5425break
5426fi
5427
5428rm -f conftest.err conftest.$ac_ext
5429
5430done
5431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5432rm -f conftest.err conftest.$ac_ext
5433if $ac_preproc_ok; then
5434 break
5435fi
5436
5437 done
5438 ac_cv_prog_CPP=$CPP
5439
5440fi
5441 CPP=$ac_cv_prog_CPP
5442else
5443 ac_cv_prog_CPP=$CPP
5444fi
5445{ echo "$as_me:$LINENO: result: $CPP" >&5
5446echo "${ECHO_T}$CPP" >&6; }
5447ac_preproc_ok=false
5448for ac_c_preproc_warn_flag in '' yes
5449do
5450 # Use a header file that comes with gcc, so configuring glibc
5451 # with a fresh cross-compiler works.
5452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453 # <limits.h> exists even on freestanding compilers.
5454 # On the NeXT, cc -E runs the code through the compiler's parser,
5455 # not just through cpp. "Syntax error" is here to catch this case.
5456 cat >conftest.$ac_ext <<_ACEOF
5457/* confdefs.h. */
5458_ACEOF
5459cat confdefs.h >>conftest.$ac_ext
5460cat >>conftest.$ac_ext <<_ACEOF
5461/* end confdefs.h. */
5462#ifdef __STDC__
5463# include <limits.h>
5464#else
5465# include <assert.h>
5466#endif
5467 Syntax error
5468_ACEOF
5469if { (ac_try="$ac_cpp conftest.$ac_ext"
5470case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473esac
5474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5476 ac_status=$?
5477 grep -v '^ *+' conftest.er1 >conftest.err
5478 rm -f conftest.er1
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005481 (exit $ac_status); } >/dev/null; then
5482 if test -s conftest.err; then
5483 ac_cpp_err=$ac_c_preproc_warn_flag
5484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5485 else
5486 ac_cpp_err=
5487 fi
5488else
5489 ac_cpp_err=yes
5490fi
5491if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005492 :
5493else
5494 echo "$as_me: failed program was:" >&5
5495sed 's/^/| /' conftest.$ac_ext >&5
5496
5497 # Broken: fails on valid input.
5498continue
5499fi
5500
5501rm -f conftest.err conftest.$ac_ext
5502
5503 # OK, works on sane cases. Now check whether nonexistent headers
5504 # can be detected and how.
5505 cat >conftest.$ac_ext <<_ACEOF
5506/* confdefs.h. */
5507_ACEOF
5508cat confdefs.h >>conftest.$ac_ext
5509cat >>conftest.$ac_ext <<_ACEOF
5510/* end confdefs.h. */
5511#include <ac_nonexistent.h>
5512_ACEOF
5513if { (ac_try="$ac_cpp conftest.$ac_ext"
5514case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517esac
5518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005525 (exit $ac_status); } >/dev/null; then
5526 if test -s conftest.err; then
5527 ac_cpp_err=$ac_c_preproc_warn_flag
5528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5529 else
5530 ac_cpp_err=
5531 fi
5532else
5533 ac_cpp_err=yes
5534fi
5535if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005536 # Broken: success on invalid input.
5537continue
5538else
5539 echo "$as_me: failed program was:" >&5
5540sed 's/^/| /' conftest.$ac_ext >&5
5541
5542 # Passes both tests.
5543ac_preproc_ok=:
5544break
5545fi
5546
5547rm -f conftest.err conftest.$ac_ext
5548
5549done
5550# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5551rm -f conftest.err conftest.$ac_ext
5552if $ac_preproc_ok; then
5553 :
5554else
5555 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5556See \`config.log' for more details." >&5
5557echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5558See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; }
5560fi
5561
5562ac_ext=c
5563ac_cpp='$CPP $CPPFLAGS'
5564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567
5568ac_ext=c
5569ac_cpp='$CPP $CPPFLAGS'
5570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5572ac_compiler_gnu=$ac_cv_c_compiler_gnu
5573if test -n "$ac_tool_prefix"; then
5574 for ac_prog in gcc
5575 do
5576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5577set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5580if test "${ac_cv_prog_CC+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583 if test -n "$CC"; then
5584 ac_cv_prog_CC="$CC" # Let the user override the test.
5585else
5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005592 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 +00005593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597done
5598done
5599IFS=$as_save_IFS
5600
5601fi
5602fi
5603CC=$ac_cv_prog_CC
5604if test -n "$CC"; then
5605 { echo "$as_me:$LINENO: result: $CC" >&5
5606echo "${ECHO_T}$CC" >&6; }
5607else
5608 { echo "$as_me:$LINENO: result: no" >&5
5609echo "${ECHO_T}no" >&6; }
5610fi
5611
5612
5613 test -n "$CC" && break
5614 done
5615fi
5616if test -z "$CC"; then
5617 ac_ct_CC=$CC
5618 for ac_prog in gcc
5619do
5620 # Extract the first word of "$ac_prog", so it can be a program name with args.
5621set dummy $ac_prog; ac_word=$2
5622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5624if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5626else
5627 if test -n "$ac_ct_CC"; then
5628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005636 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 +00005637 ac_cv_prog_ac_ct_CC="$ac_prog"
5638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641done
5642done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647ac_ct_CC=$ac_cv_prog_ac_ct_CC
5648if test -n "$ac_ct_CC"; then
5649 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5650echo "${ECHO_T}$ac_ct_CC" >&6; }
5651else
5652 { echo "$as_me:$LINENO: result: no" >&5
5653echo "${ECHO_T}no" >&6; }
5654fi
5655
5656
5657 test -n "$ac_ct_CC" && break
5658done
5659
5660 if test "x$ac_ct_CC" = x; then
5661 CC=""
5662 else
5663 case $cross_compiling:$ac_tool_warned in
5664yes:)
5665{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5666whose name does not start with the host triplet. If you think this
5667configuration is useful to you, please write to autoconf@gnu.org." >&5
5668echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5669whose name does not start with the host triplet. If you think this
5670configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5671ac_tool_warned=yes ;;
5672esac
5673 CC=$ac_ct_CC
5674 fi
5675fi
5676
5677
5678test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5679See \`config.log' for more details." >&5
5680echo "$as_me: error: no acceptable C compiler found in \$PATH
5681See \`config.log' for more details." >&2;}
5682 { (exit 1); exit 1; }; }
5683
5684# Provide some information about the compiler.
5685echo "$as_me:$LINENO: checking for C compiler version" >&5
5686ac_compiler=`set X $ac_compile; echo $2`
5687{ (ac_try="$ac_compiler --version >&5"
5688case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691esac
5692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compiler --version >&5") 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }
5697{ (ac_try="$ac_compiler -v >&5"
5698case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_compiler -v >&5") 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }
5707{ (ac_try="$ac_compiler -V >&5"
5708case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711esac
5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_compiler -V >&5") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }
5717
5718{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5719echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5720if test "${ac_cv_c_compiler_gnu+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723 cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h. */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h. */
5729
5730int
5731main ()
5732{
5733#ifndef __GNUC__
5734 choke me
5735#endif
5736
5737 ;
5738 return 0;
5739}
5740_ACEOF
5741rm -f conftest.$ac_objext
5742if { (ac_try="$ac_compile"
5743case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746esac
5747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_compile") 2>conftest.er1
5749 ac_status=$?
5750 grep -v '^ *+' conftest.er1 >conftest.err
5751 rm -f conftest.er1
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5756 { (case "(($ac_try" in
5757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758 *) ac_try_echo=$ac_try;;
5759esac
5760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5761 (eval "$ac_try") 2>&5
5762 ac_status=$?
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try='test -s conftest.$ac_objext'
5766 { (case "(($ac_try" in
5767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5768 *) ac_try_echo=$ac_try;;
5769esac
5770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5771 (eval "$ac_try") 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005775 ac_compiler_gnu=yes
5776else
5777 echo "$as_me: failed program was:" >&5
5778sed 's/^/| /' conftest.$ac_ext >&5
5779
5780 ac_compiler_gnu=no
5781fi
5782
5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784ac_cv_c_compiler_gnu=$ac_compiler_gnu
5785
5786fi
5787{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5788echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5789GCC=`test $ac_compiler_gnu = yes && echo yes`
5790ac_test_CFLAGS=${CFLAGS+set}
5791ac_save_CFLAGS=$CFLAGS
5792{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5793echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5794if test "${ac_cv_prog_cc_g+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796else
5797 ac_save_c_werror_flag=$ac_c_werror_flag
5798 ac_c_werror_flag=yes
5799 ac_cv_prog_cc_g=no
5800 CFLAGS="-g"
5801 cat >conftest.$ac_ext <<_ACEOF
5802/* confdefs.h. */
5803_ACEOF
5804cat confdefs.h >>conftest.$ac_ext
5805cat >>conftest.$ac_ext <<_ACEOF
5806/* end confdefs.h. */
5807
5808int
5809main ()
5810{
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816rm -f conftest.$ac_objext
5817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844esac
5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005850 ac_cv_prog_cc_g=yes
5851else
5852 echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 CFLAGS=""
5856 cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h. */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h. */
5862
5863int
5864main ()
5865{
5866
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871rm -f conftest.$ac_objext
5872if { (ac_try="$ac_compile"
5873case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_compile") 2>conftest.er1
5879 ac_status=$?
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005884 (exit $ac_status); } &&
5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5886 { (case "(($ac_try" in
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5889esac
5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_try") 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try='test -s conftest.$ac_objext'
5896 { (case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899esac
5900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_try") 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005905 :
5906else
5907 echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_c_werror_flag=$ac_save_c_werror_flag
5911 CFLAGS="-g"
5912 cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h. */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h. */
5918
5919int
5920main ()
5921{
5922
5923 ;
5924 return 0;
5925}
5926_ACEOF
5927rm -f conftest.$ac_objext
5928if { (ac_try="$ac_compile"
5929case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_compile") 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5942 { (case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_try") 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; } &&
5951 { ac_try='test -s conftest.$ac_objext'
5952 { (case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_try") 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005961 ac_cv_prog_cc_g=yes
5962else
5963 echo "$as_me: failed program was:" >&5
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966
5967fi
5968
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970fi
5971
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973fi
5974
5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976 ac_c_werror_flag=$ac_save_c_werror_flag
5977fi
5978{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5979echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5980if test "$ac_test_CFLAGS" = set; then
5981 CFLAGS=$ac_save_CFLAGS
5982elif test $ac_cv_prog_cc_g = yes; then
5983 if test "$GCC" = yes; then
5984 CFLAGS="-g -O2"
5985 else
5986 CFLAGS="-g"
5987 fi
5988else
5989 if test "$GCC" = yes; then
5990 CFLAGS="-O2"
5991 else
5992 CFLAGS=
5993 fi
5994fi
5995{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5996echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5997if test "${ac_cv_prog_cc_c89+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000 ac_cv_prog_cc_c89=no
6001ac_save_CC=$CC
6002cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008#include <stdarg.h>
6009#include <stdio.h>
6010#include <sys/types.h>
6011#include <sys/stat.h>
6012/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6013struct buf { int x; };
6014FILE * (*rcsopen) (struct buf *, struct stat *, int);
6015static char *e (p, i)
6016 char **p;
6017 int i;
6018{
6019 return p[i];
6020}
6021static char *f (char * (*g) (char **, int), char **p, ...)
6022{
6023 char *s;
6024 va_list v;
6025 va_start (v,p);
6026 s = g (p, va_arg (v,int));
6027 va_end (v);
6028 return s;
6029}
6030
6031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6032 function prototypes and stuff, but not '\xHH' hex character constants.
6033 These don't provoke an error unfortunately, instead are silently treated
6034 as 'x'. The following induces an error, until -std is added to get
6035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6036 array size at least. It's necessary to write '\x00'==0 to get something
6037 that's true only with -std. */
6038int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6039
6040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6041 inside strings and character constants. */
6042#define FOO(x) 'x'
6043int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6044
6045int test (int i, double x);
6046struct s1 {int (*f) (int a);};
6047struct s2 {int (*f) (double a);};
6048int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6049int argc;
6050char **argv;
6051int
6052main ()
6053{
6054return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6055 ;
6056 return 0;
6057}
6058_ACEOF
6059for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6061do
6062 CC="$ac_save_CC $ac_arg"
6063 rm -f conftest.$ac_objext
6064if { (ac_try="$ac_compile"
6065case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068esac
6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compile") 2>conftest.er1
6071 ac_status=$?
6072 grep -v '^ *+' conftest.er1 >conftest.err
6073 rm -f conftest.er1
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006076 (exit $ac_status); } &&
6077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6078 { (case "(($ac_try" in
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6081esac
6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_try") 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091esac
6092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_try") 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006097 ac_cv_prog_cc_c89=$ac_arg
6098else
6099 echo "$as_me: failed program was:" >&5
6100sed 's/^/| /' conftest.$ac_ext >&5
6101
6102
6103fi
6104
6105rm -f core conftest.err conftest.$ac_objext
6106 test "x$ac_cv_prog_cc_c89" != "xno" && break
6107done
6108rm -f conftest.$ac_ext
6109CC=$ac_save_CC
6110
6111fi
6112# AC_CACHE_VAL
6113case "x$ac_cv_prog_cc_c89" in
6114 x)
6115 { echo "$as_me:$LINENO: result: none needed" >&5
6116echo "${ECHO_T}none needed" >&6; } ;;
6117 xno)
6118 { echo "$as_me:$LINENO: result: unsupported" >&5
6119echo "${ECHO_T}unsupported" >&6; } ;;
6120 *)
6121 CC="$CC $ac_cv_prog_cc_c89"
6122 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6123echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6124esac
6125
6126
6127ac_ext=c
6128ac_cpp='$CPP $CPPFLAGS'
6129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131ac_compiler_gnu=$ac_cv_c_compiler_gnu
6132
6133ac_ext=cpp
6134ac_cpp='$CXXCPP $CPPFLAGS'
6135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6138if test -z "$CXX"; then
6139 if test -n "$CCC"; then
6140 CXX=$CCC
6141 else
6142 if test -n "$ac_tool_prefix"; then
6143 for ac_prog in g++
6144 do
6145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6146set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149if test "${ac_cv_prog_CXX+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151else
6152 if test -n "$CXX"; then
6153 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6154else
6155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156for as_dir in $PATH
6157do
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006161 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 +00006162 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6165 fi
6166done
6167done
6168IFS=$as_save_IFS
6169
6170fi
6171fi
6172CXX=$ac_cv_prog_CXX
6173if test -n "$CXX"; then
6174 { echo "$as_me:$LINENO: result: $CXX" >&5
6175echo "${ECHO_T}$CXX" >&6; }
6176else
6177 { echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6; }
6179fi
6180
6181
6182 test -n "$CXX" && break
6183 done
6184fi
6185if test -z "$CXX"; then
6186 ac_ct_CXX=$CXX
6187 for ac_prog in g++
6188do
6189 # Extract the first word of "$ac_prog", so it can be a program name with args.
6190set dummy $ac_prog; ac_word=$2
6191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196 if test -n "$ac_ct_CXX"; then
6197 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6198else
6199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200for as_dir in $PATH
6201do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006205 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 +00006206 ac_cv_prog_ac_ct_CXX="$ac_prog"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210done
6211done
6212IFS=$as_save_IFS
6213
6214fi
6215fi
6216ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6217if test -n "$ac_ct_CXX"; then
6218 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6219echo "${ECHO_T}$ac_ct_CXX" >&6; }
6220else
6221 { echo "$as_me:$LINENO: result: no" >&5
6222echo "${ECHO_T}no" >&6; }
6223fi
6224
6225
6226 test -n "$ac_ct_CXX" && break
6227done
6228
6229 if test "x$ac_ct_CXX" = x; then
6230 CXX="g++"
6231 else
6232 case $cross_compiling:$ac_tool_warned in
6233yes:)
6234{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6235whose name does not start with the host triplet. If you think this
6236configuration is useful to you, please write to autoconf@gnu.org." >&5
6237echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6238whose name does not start with the host triplet. If you think this
6239configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6240ac_tool_warned=yes ;;
6241esac
6242 CXX=$ac_ct_CXX
6243 fi
6244fi
6245
6246 fi
6247fi
6248# Provide some information about the compiler.
6249echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6250ac_compiler=`set X $ac_compile; echo $2`
6251{ (ac_try="$ac_compiler --version >&5"
6252case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255esac
6256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compiler --version >&5") 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }
6261{ (ac_try="$ac_compiler -v >&5"
6262case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265esac
6266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_compiler -v >&5") 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }
6271{ (ac_try="$ac_compiler -V >&5"
6272case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275esac
6276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_compiler -V >&5") 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }
6281
6282{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6283echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6284if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287 cat >conftest.$ac_ext <<_ACEOF
6288/* confdefs.h. */
6289_ACEOF
6290cat confdefs.h >>conftest.$ac_ext
6291cat >>conftest.$ac_ext <<_ACEOF
6292/* end confdefs.h. */
6293
6294int
6295main ()
6296{
6297#ifndef __GNUC__
6298 choke me
6299#endif
6300
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext
6306if { (ac_try="$ac_compile"
6307case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310esac
6311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_compile") 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6320 { (case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6323esac
6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_try") 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333esac
6334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006339 ac_compiler_gnu=yes
6340else
6341 echo "$as_me: failed program was:" >&5
6342sed 's/^/| /' conftest.$ac_ext >&5
6343
6344 ac_compiler_gnu=no
6345fi
6346
6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6349
6350fi
6351{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6352echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6353GXX=`test $ac_compiler_gnu = yes && echo yes`
6354ac_test_CXXFLAGS=${CXXFLAGS+set}
6355ac_save_CXXFLAGS=$CXXFLAGS
6356{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6357echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6358if test "${ac_cv_prog_cxx_g+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6362 ac_cxx_werror_flag=yes
6363 ac_cv_prog_cxx_g=no
6364 CXXFLAGS="-g"
6365 cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h. */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h. */
6371
6372int
6373main ()
6374{
6375
6376 ;
6377 return 0;
6378}
6379_ACEOF
6380rm -f conftest.$ac_objext
6381if { (ac_try="$ac_compile"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006393 (exit $ac_status); } &&
6394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398esac
6399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006414 ac_cv_prog_cxx_g=yes
6415else
6416 echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 CXXFLAGS=""
6420 cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h. */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
6425/* end confdefs.h. */
6426
6427int
6428main ()
6429{
6430
6431 ;
6432 return 0;
6433}
6434_ACEOF
6435rm -f conftest.$ac_objext
6436if { (ac_try="$ac_compile"
6437case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440esac
6441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6450 { (case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453esac
6454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_try") 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); }; } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463esac
6464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_try") 2>&5
6466 ac_status=$?
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006469 :
6470else
6471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6475 CXXFLAGS="-g"
6476 cat >conftest.$ac_ext <<_ACEOF
6477/* confdefs.h. */
6478_ACEOF
6479cat confdefs.h >>conftest.$ac_ext
6480cat >>conftest.$ac_ext <<_ACEOF
6481/* end confdefs.h. */
6482
6483int
6484main ()
6485{
6486
6487 ;
6488 return 0;
6489}
6490_ACEOF
6491rm -f conftest.$ac_objext
6492if { (ac_try="$ac_compile"
6493case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496esac
6497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_compile") 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006504 (exit $ac_status); } &&
6505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6506 { (case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509esac
6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_try") 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; } &&
6515 { ac_try='test -s conftest.$ac_objext'
6516 { (case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519esac
6520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_try") 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006525 ac_cv_prog_cxx_g=yes
6526else
6527 echo "$as_me: failed program was:" >&5
6528sed 's/^/| /' conftest.$ac_ext >&5
6529
6530
6531fi
6532
6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534fi
6535
6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537fi
6538
6539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6541fi
6542{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6543echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6544if test "$ac_test_CXXFLAGS" = set; then
6545 CXXFLAGS=$ac_save_CXXFLAGS
6546elif test $ac_cv_prog_cxx_g = yes; then
6547 if test "$GXX" = yes; then
6548 CXXFLAGS="-g -O2"
6549 else
6550 CXXFLAGS="-g"
6551 fi
6552else
6553 if test "$GXX" = yes; then
6554 CXXFLAGS="-O2"
6555 else
6556 CXXFLAGS=
6557 fi
6558fi
6559ac_ext=c
6560ac_cpp='$CPP $CPPFLAGS'
6561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006565
6566{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6567echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6568if test "${lt_cv_path_NM+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571 if test -n "$NM"; then
6572 # Let the user override the test.
6573 lt_cv_path_NM="$NM"
6574else
6575 lt_nm_to_check="${ac_tool_prefix}nm"
6576 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6577 lt_nm_to_check="$lt_nm_to_check nm"
6578 fi
6579 for lt_tmp_nm in $lt_nm_to_check; do
6580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6581 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6582 IFS="$lt_save_ifs"
6583 test -z "$ac_dir" && ac_dir=.
6584 tmp_nm="$ac_dir/$lt_tmp_nm"
6585 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6586 # Check to see if the nm accepts a BSD-compat flag.
6587 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6588 # nm: unknown option "B" ignored
6589 # Tru64's nm complains that /dev/null is an invalid object file
6590 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6591 */dev/null* | *'Invalid file or object type'*)
6592 lt_cv_path_NM="$tmp_nm -B"
6593 break
6594 ;;
6595 *)
6596 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6597 */dev/null*)
6598 lt_cv_path_NM="$tmp_nm -p"
6599 break
6600 ;;
6601 *)
6602 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6603 continue # so that we can try to find one that supports BSD flags
6604 ;;
6605 esac
6606 ;;
6607 esac
6608 fi
6609 done
6610 IFS="$lt_save_ifs"
6611 done
6612 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6613fi
6614fi
6615{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6616echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6617NM="$lt_cv_path_NM"
6618
6619
6620
6621{ echo "$as_me:$LINENO: checking for GNU make" >&5
6622echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6623if test "${llvm_cv_gnu_make_command+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625else
6626 llvm_cv_gnu_make_command=''
6627 for a in "$MAKE" make gmake gnumake ; do
6628 if test -z "$a" ; then continue ; fi ;
6629 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6630 then
6631 llvm_cv_gnu_make_command=$a ;
6632 break;
6633 fi
6634 done
6635fi
6636{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6637echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6638 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6639 ifGNUmake='' ;
6640 else
6641 ifGNUmake='#' ;
6642 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6643echo "${ECHO_T}\"Not found\"" >&6; };
6644 fi
6645
6646
6647{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6648echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6649LN_S=$as_ln_s
6650if test "$LN_S" = "ln -s"; then
6651 { echo "$as_me:$LINENO: result: yes" >&5
6652echo "${ECHO_T}yes" >&6; }
6653else
6654 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6655echo "${ECHO_T}no, using $LN_S" >&6; }
6656fi
6657
6658# Extract the first word of "cmp", so it can be a program name with args.
6659set dummy cmp; ac_word=$2
6660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6662if test "${ac_cv_path_CMP+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665 case $CMP in
6666 [\\/]* | ?:[\\/]*)
6667 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6668 ;;
6669 *)
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006676 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 +00006677 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681done
6682done
6683IFS=$as_save_IFS
6684
6685 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6686 ;;
6687esac
6688fi
6689CMP=$ac_cv_path_CMP
6690if test -n "$CMP"; then
6691 { echo "$as_me:$LINENO: result: $CMP" >&5
6692echo "${ECHO_T}$CMP" >&6; }
6693else
6694 { echo "$as_me:$LINENO: result: no" >&5
6695echo "${ECHO_T}no" >&6; }
6696fi
6697
6698
6699# Extract the first word of "cp", so it can be a program name with args.
6700set dummy cp; ac_word=$2
6701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6703if test "${ac_cv_path_CP+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705else
6706 case $CP in
6707 [\\/]* | ?:[\\/]*)
6708 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6709 ;;
6710 *)
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712for as_dir in $PATH
6713do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006717 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 +00006718 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722done
6723done
6724IFS=$as_save_IFS
6725
6726 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6727 ;;
6728esac
6729fi
6730CP=$ac_cv_path_CP
6731if test -n "$CP"; then
6732 { echo "$as_me:$LINENO: result: $CP" >&5
6733echo "${ECHO_T}$CP" >&6; }
6734else
6735 { echo "$as_me:$LINENO: result: no" >&5
6736echo "${ECHO_T}no" >&6; }
6737fi
6738
6739
6740# Extract the first word of "date", so it can be a program name with args.
6741set dummy date; ac_word=$2
6742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744if test "${ac_cv_path_DATE+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746else
6747 case $DATE in
6748 [\\/]* | ?:[\\/]*)
6749 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6750 ;;
6751 *)
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006758 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 +00006759 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763done
6764done
6765IFS=$as_save_IFS
6766
6767 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6768 ;;
6769esac
6770fi
6771DATE=$ac_cv_path_DATE
6772if test -n "$DATE"; then
6773 { echo "$as_me:$LINENO: result: $DATE" >&5
6774echo "${ECHO_T}$DATE" >&6; }
6775else
6776 { echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6; }
6778fi
6779
6780
6781# Extract the first word of "find", so it can be a program name with args.
6782set dummy find; ac_word=$2
6783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785if test "${ac_cv_path_FIND+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787else
6788 case $FIND in
6789 [\\/]* | ?:[\\/]*)
6790 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6791 ;;
6792 *)
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794for as_dir in $PATH
6795do
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006799 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 +00006800 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 break 2
6803 fi
6804done
6805done
6806IFS=$as_save_IFS
6807
6808 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6809 ;;
6810esac
6811fi
6812FIND=$ac_cv_path_FIND
6813if test -n "$FIND"; then
6814 { echo "$as_me:$LINENO: result: $FIND" >&5
6815echo "${ECHO_T}$FIND" >&6; }
6816else
6817 { echo "$as_me:$LINENO: result: no" >&5
6818echo "${ECHO_T}no" >&6; }
6819fi
6820
6821
6822# Extract the first word of "grep", so it can be a program name with args.
6823set dummy grep; ac_word=$2
6824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826if test "${ac_cv_path_GREP+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828else
6829 case $GREP in
6830 [\\/]* | ?:[\\/]*)
6831 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6832 ;;
6833 *)
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006840 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 +00006841 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 break 2
6844 fi
6845done
6846done
6847IFS=$as_save_IFS
6848
6849 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6850 ;;
6851esac
6852fi
6853GREP=$ac_cv_path_GREP
6854if test -n "$GREP"; then
6855 { echo "$as_me:$LINENO: result: $GREP" >&5
6856echo "${ECHO_T}$GREP" >&6; }
6857else
6858 { echo "$as_me:$LINENO: result: no" >&5
6859echo "${ECHO_T}no" >&6; }
6860fi
6861
6862
6863# Extract the first word of "mkdir", so it can be a program name with args.
6864set dummy mkdir; ac_word=$2
6865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867if test "${ac_cv_path_MKDIR+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6869else
6870 case $MKDIR in
6871 [\\/]* | ?:[\\/]*)
6872 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6873 ;;
6874 *)
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006881 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 +00006882 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886done
6887done
6888IFS=$as_save_IFS
6889
6890 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6891 ;;
6892esac
6893fi
6894MKDIR=$ac_cv_path_MKDIR
6895if test -n "$MKDIR"; then
6896 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6897echo "${ECHO_T}$MKDIR" >&6; }
6898else
6899 { echo "$as_me:$LINENO: result: no" >&5
6900echo "${ECHO_T}no" >&6; }
6901fi
6902
6903
6904# Extract the first word of "mv", so it can be a program name with args.
6905set dummy mv; ac_word=$2
6906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908if test "${ac_cv_path_MV+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911 case $MV in
6912 [\\/]* | ?:[\\/]*)
6913 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6914 ;;
6915 *)
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006922 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 +00006923 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927done
6928done
6929IFS=$as_save_IFS
6930
6931 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6932 ;;
6933esac
6934fi
6935MV=$ac_cv_path_MV
6936if test -n "$MV"; then
6937 { echo "$as_me:$LINENO: result: $MV" >&5
6938echo "${ECHO_T}$MV" >&6; }
6939else
6940 { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
6942fi
6943
6944
6945if test -n "$ac_tool_prefix"; then
6946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6947set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950if test "${ac_cv_prog_RANLIB+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953 if test -n "$RANLIB"; then
6954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6955else
6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957for as_dir in $PATH
6958do
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006962 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 +00006963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967done
6968done
6969IFS=$as_save_IFS
6970
6971fi
6972fi
6973RANLIB=$ac_cv_prog_RANLIB
6974if test -n "$RANLIB"; then
6975 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6976echo "${ECHO_T}$RANLIB" >&6; }
6977else
6978 { echo "$as_me:$LINENO: result: no" >&5
6979echo "${ECHO_T}no" >&6; }
6980fi
6981
6982
6983fi
6984if test -z "$ac_cv_prog_RANLIB"; then
6985 ac_ct_RANLIB=$RANLIB
6986 # Extract the first word of "ranlib", so it can be a program name with args.
6987set dummy ranlib; ac_word=$2
6988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 if test -n "$ac_ct_RANLIB"; then
6994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6995else
6996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997for as_dir in $PATH
6998do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007002 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 +00007003 ac_cv_prog_ac_ct_RANLIB="ranlib"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7006 fi
7007done
7008done
7009IFS=$as_save_IFS
7010
7011fi
7012fi
7013ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7014if test -n "$ac_ct_RANLIB"; then
7015 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7016echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7017else
7018 { echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6; }
7020fi
7021
7022 if test "x$ac_ct_RANLIB" = x; then
7023 RANLIB=":"
7024 else
7025 case $cross_compiling:$ac_tool_warned in
7026yes:)
7027{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7028whose name does not start with the host triplet. If you think this
7029configuration is useful to you, please write to autoconf@gnu.org." >&5
7030echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7031whose name does not start with the host triplet. If you think this
7032configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7033ac_tool_warned=yes ;;
7034esac
7035 RANLIB=$ac_ct_RANLIB
7036 fi
7037else
7038 RANLIB="$ac_cv_prog_RANLIB"
7039fi
7040
7041# Extract the first word of "rm", so it can be a program name with args.
7042set dummy rm; ac_word=$2
7043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045if test "${ac_cv_path_RM+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048 case $RM in
7049 [\\/]* | ?:[\\/]*)
7050 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7051 ;;
7052 *)
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054for as_dir in $PATH
7055do
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007059 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 +00007060 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 break 2
7063 fi
7064done
7065done
7066IFS=$as_save_IFS
7067
7068 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7069 ;;
7070esac
7071fi
7072RM=$ac_cv_path_RM
7073if test -n "$RM"; then
7074 { echo "$as_me:$LINENO: result: $RM" >&5
7075echo "${ECHO_T}$RM" >&6; }
7076else
7077 { echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6; }
7079fi
7080
7081
7082# Extract the first word of "sed", so it can be a program name with args.
7083set dummy sed; ac_word=$2
7084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086if test "${ac_cv_path_SED+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089 case $SED in
7090 [\\/]* | ?:[\\/]*)
7091 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7092 ;;
7093 *)
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007100 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 +00007101 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105done
7106done
7107IFS=$as_save_IFS
7108
7109 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7110 ;;
7111esac
7112fi
7113SED=$ac_cv_path_SED
7114if test -n "$SED"; then
7115 { echo "$as_me:$LINENO: result: $SED" >&5
7116echo "${ECHO_T}$SED" >&6; }
7117else
7118 { echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6; }
7120fi
7121
7122
7123# Extract the first word of "tar", so it can be a program name with args.
7124set dummy tar; ac_word=$2
7125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127if test "${ac_cv_path_TAR+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129else
7130 case $TAR in
7131 [\\/]* | ?:[\\/]*)
7132 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7133 ;;
7134 *)
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007141 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 +00007142 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146done
7147done
7148IFS=$as_save_IFS
7149
7150 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7151 ;;
7152esac
7153fi
7154TAR=$ac_cv_path_TAR
7155if test -n "$TAR"; then
7156 { echo "$as_me:$LINENO: result: $TAR" >&5
7157echo "${ECHO_T}$TAR" >&6; }
7158else
7159 { echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6; }
7161fi
7162
7163
7164# Extract the first word of "pwd", so it can be a program name with args.
7165set dummy pwd; ac_word=$2
7166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168if test "${ac_cv_path_BINPWD+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170else
7171 case $BINPWD in
7172 [\\/]* | ?:[\\/]*)
7173 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7174 ;;
7175 *)
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007182 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 +00007183 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187done
7188done
7189IFS=$as_save_IFS
7190
7191 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7192 ;;
7193esac
7194fi
7195BINPWD=$ac_cv_path_BINPWD
7196if test -n "$BINPWD"; then
7197 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7198echo "${ECHO_T}$BINPWD" >&6; }
7199else
7200 { echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6; }
7202fi
7203
7204
7205
7206# Extract the first word of "Graphviz", so it can be a program name with args.
7207set dummy Graphviz; ac_word=$2
7208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7210if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213 case $GRAPHVIZ in
7214 [\\/]* | ?:[\\/]*)
7215 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7216 ;;
7217 *)
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219for as_dir in $PATH
7220do
7221 IFS=$as_save_IFS
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007224 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 +00007225 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 break 2
7228 fi
7229done
7230done
7231IFS=$as_save_IFS
7232
7233 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7234 ;;
7235esac
7236fi
7237GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7238if test -n "$GRAPHVIZ"; then
7239 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7240echo "${ECHO_T}$GRAPHVIZ" >&6; }
7241else
7242 { echo "$as_me:$LINENO: result: no" >&5
7243echo "${ECHO_T}no" >&6; }
7244fi
7245
7246
7247if test "$GRAPHVIZ" != "echo Graphviz" ; then
7248
7249cat >>confdefs.h <<\_ACEOF
7250#define HAVE_GRAPHVIZ 1
7251_ACEOF
7252
7253 if test "$llvm_cv_os_type" = "MingW" ; then
7254 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7255 fi
7256
7257cat >>confdefs.h <<_ACEOF
7258#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7259_ACEOF
7260
7261fi
7262# Extract the first word of "dot", so it can be a program name with args.
7263set dummy dot; ac_word=$2
7264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266if test "${ac_cv_path_DOT+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269 case $DOT in
7270 [\\/]* | ?:[\\/]*)
7271 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7272 ;;
7273 *)
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007280 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 +00007281 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286done
7287IFS=$as_save_IFS
7288
7289 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7290 ;;
7291esac
7292fi
7293DOT=$ac_cv_path_DOT
7294if test -n "$DOT"; then
7295 { echo "$as_me:$LINENO: result: $DOT" >&5
7296echo "${ECHO_T}$DOT" >&6; }
7297else
7298 { echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6; }
7300fi
7301
7302
7303if test "$DOT" != "echo dot" ; then
7304
7305cat >>confdefs.h <<\_ACEOF
7306#define HAVE_DOT 1
7307_ACEOF
7308
7309 if test "$llvm_cv_os_type" = "MingW" ; then
7310 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7311 fi
7312
7313cat >>confdefs.h <<_ACEOF
7314#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7315_ACEOF
7316
7317fi
David Greenedb740ef2009-07-09 17:16:26 +00007318# Extract the first word of "fdp", so it can be a program name with args.
7319set dummy fdp; ac_word=$2
7320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322if test "${ac_cv_path_FDP+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325 case $FDP in
7326 [\\/]* | ?:[\\/]*)
7327 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7328 ;;
7329 *)
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343IFS=$as_save_IFS
7344
7345 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7346 ;;
7347esac
7348fi
7349FDP=$ac_cv_path_FDP
7350if test -n "$FDP"; then
7351 { echo "$as_me:$LINENO: result: $FDP" >&5
7352echo "${ECHO_T}$FDP" >&6; }
7353else
7354 { echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6; }
7356fi
7357
7358
7359if test "$FDP" != "echo fdp" ; then
7360
7361cat >>confdefs.h <<\_ACEOF
7362#define HAVE_FDP 1
7363_ACEOF
7364
7365 if test "$llvm_cv_os_type" = "MingW" ; then
7366 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7367 fi
7368
7369cat >>confdefs.h <<_ACEOF
7370#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7371_ACEOF
7372
7373fi
7374# Extract the first word of "neato", so it can be a program name with args.
7375set dummy neato; ac_word=$2
7376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378if test "${ac_cv_path_NEATO+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7380else
7381 case $NEATO in
7382 [\\/]* | ?:[\\/]*)
7383 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7384 ;;
7385 *)
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397done
7398done
7399IFS=$as_save_IFS
7400
7401 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7402 ;;
7403esac
7404fi
7405NEATO=$ac_cv_path_NEATO
7406if test -n "$NEATO"; then
7407 { echo "$as_me:$LINENO: result: $NEATO" >&5
7408echo "${ECHO_T}$NEATO" >&6; }
7409else
7410 { echo "$as_me:$LINENO: result: no" >&5
7411echo "${ECHO_T}no" >&6; }
7412fi
7413
7414
7415if test "$NEATO" != "echo neato" ; then
7416
7417cat >>confdefs.h <<\_ACEOF
7418#define HAVE_NEATO 1
7419_ACEOF
7420
7421 if test "$llvm_cv_os_type" = "MingW" ; then
7422 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7423 fi
7424
7425cat >>confdefs.h <<_ACEOF
7426#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7427_ACEOF
7428
7429fi
7430# Extract the first word of "twopi", so it can be a program name with args.
7431set dummy twopi; ac_word=$2
7432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434if test "${ac_cv_path_TWOPI+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436else
7437 case $TWOPI in
7438 [\\/]* | ?:[\\/]*)
7439 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7440 ;;
7441 *)
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443for as_dir in $PATH
7444do
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7452 fi
7453done
7454done
7455IFS=$as_save_IFS
7456
7457 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7458 ;;
7459esac
7460fi
7461TWOPI=$ac_cv_path_TWOPI
7462if test -n "$TWOPI"; then
7463 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7464echo "${ECHO_T}$TWOPI" >&6; }
7465else
7466 { echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6; }
7468fi
7469
7470
7471if test "$TWOPI" != "echo twopi" ; then
7472
7473cat >>confdefs.h <<\_ACEOF
7474#define HAVE_TWOPI 1
7475_ACEOF
7476
7477 if test "$llvm_cv_os_type" = "MingW" ; then
7478 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7479 fi
7480
7481cat >>confdefs.h <<_ACEOF
7482#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7483_ACEOF
7484
7485fi
7486# Extract the first word of "circo", so it can be a program name with args.
7487set dummy circo; ac_word=$2
7488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490if test "${ac_cv_path_CIRCO+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493 case $CIRCO in
7494 [\\/]* | ?:[\\/]*)
7495 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7496 ;;
7497 *)
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509done
7510done
7511IFS=$as_save_IFS
7512
7513 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7514 ;;
7515esac
7516fi
7517CIRCO=$ac_cv_path_CIRCO
7518if test -n "$CIRCO"; then
7519 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7520echo "${ECHO_T}$CIRCO" >&6; }
7521else
7522 { echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6; }
7524fi
7525
7526
7527if test "$CIRCO" != "echo circo" ; then
7528
7529cat >>confdefs.h <<\_ACEOF
7530#define HAVE_CIRCO 1
7531_ACEOF
7532
7533 if test "$llvm_cv_os_type" = "MingW" ; then
7534 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7535 fi
7536
7537cat >>confdefs.h <<_ACEOF
7538#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7539_ACEOF
7540
7541fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007542for ac_prog in gv gsview32
7543do
7544 # Extract the first word of "$ac_prog", so it can be a program name with args.
7545set dummy $ac_prog; ac_word=$2
7546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_GV+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 case $GV in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007562 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 +00007563 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567done
7568done
7569IFS=$as_save_IFS
7570
7571 ;;
7572esac
7573fi
7574GV=$ac_cv_path_GV
7575if test -n "$GV"; then
7576 { echo "$as_me:$LINENO: result: $GV" >&5
7577echo "${ECHO_T}$GV" >&6; }
7578else
7579 { echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6; }
7581fi
7582
7583
7584 test -n "$GV" && break
7585done
7586test -n "$GV" || GV="echo gv"
7587
7588if test "$GV" != "echo gv" ; then
7589
7590cat >>confdefs.h <<\_ACEOF
7591#define HAVE_GV 1
7592_ACEOF
7593
7594 if test "$llvm_cv_os_type" = "MingW" ; then
7595 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7596 fi
7597
7598cat >>confdefs.h <<_ACEOF
7599#define LLVM_PATH_GV "$GV${EXEEXT}"
7600_ACEOF
7601
7602fi
7603# Extract the first word of "dotty", so it can be a program name with args.
7604set dummy dotty; ac_word=$2
7605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607if test "${ac_cv_path_DOTTY+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 case $DOTTY in
7611 [\\/]* | ?:[\\/]*)
7612 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7613 ;;
7614 *)
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007621 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 +00007622 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626done
7627done
7628IFS=$as_save_IFS
7629
7630 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7631 ;;
7632esac
7633fi
7634DOTTY=$ac_cv_path_DOTTY
7635if test -n "$DOTTY"; then
7636 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7637echo "${ECHO_T}$DOTTY" >&6; }
7638else
7639 { echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6; }
7641fi
7642
7643
7644if test "$DOTTY" != "echo dotty" ; then
7645
7646cat >>confdefs.h <<\_ACEOF
7647#define HAVE_DOTTY 1
7648_ACEOF
7649
7650 if test "$llvm_cv_os_type" = "MingW" ; then
7651 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7652 fi
7653
7654cat >>confdefs.h <<_ACEOF
7655#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7656_ACEOF
7657
7658fi
7659
7660
7661# Extract the first word of "perl", so it can be a program name with args.
7662set dummy perl; ac_word=$2
7663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665if test "${ac_cv_path_PERL+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668 case $PERL in
7669 [\\/]* | ?:[\\/]*)
7670 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7671 ;;
7672 *)
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007679 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 +00007680 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685done
7686IFS=$as_save_IFS
7687
7688 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7689 ;;
7690esac
7691fi
7692PERL=$ac_cv_path_PERL
7693if test -n "$PERL"; then
7694 { echo "$as_me:$LINENO: result: $PERL" >&5
7695echo "${ECHO_T}$PERL" >&6; }
7696else
7697 { echo "$as_me:$LINENO: result: no" >&5
7698echo "${ECHO_T}no" >&6; }
7699fi
7700
7701
7702if test "$PERL" != "none"; then
7703 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7704echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7705 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7706 { echo "$as_me:$LINENO: result: yes" >&5
7707echo "${ECHO_T}yes" >&6; }
7708 else
7709 PERL=none
7710 { echo "$as_me:$LINENO: result: not found" >&5
7711echo "${ECHO_T}not found" >&6; }
7712 fi
7713fi
7714
7715
7716if test x"$PERL" = xnone; then
7717 HAVE_PERL=0
7718
7719 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7720echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7721 { (exit 1); exit 1; }; }
7722else
7723 HAVE_PERL=1
7724
7725fi
7726
7727# Find a good install program. We prefer a C program (faster),
7728# so one script is as good as another. But avoid the broken or
7729# incompatible versions:
7730# SysV /etc/install, /usr/sbin/install
7731# SunOS /usr/etc/install
7732# IRIX /sbin/install
7733# AIX /bin/install
7734# AmigaOS /C/install, which installs bootblocks on floppy discs
7735# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7736# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7737# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7738# OS/2's system install, which has a completely different semantic
7739# ./install, which can be erroneously created by make from ./install.sh.
7740{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7741echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7742if test -z "$INSTALL"; then
7743if test "${ac_cv_path_install+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747for as_dir in $PATH
7748do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 # Account for people who put trailing slashes in PATH elements.
7752case $as_dir/ in
7753 ./ | .// | /cC/* | \
7754 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7755 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7756 /usr/ucb/* ) ;;
7757 *)
7758 # OSF1 and SCO ODT 3.0 have their own names for install.
7759 # Don't use installbsd from OSF since it installs stuff as root
7760 # by default.
7761 for ac_prog in ginstall scoinst install; do
7762 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007763 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 +00007764 if test $ac_prog = install &&
7765 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7766 # AIX install. It has an incompatible calling convention.
7767 :
7768 elif test $ac_prog = install &&
7769 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7770 # program-specific install script used by HP pwplus--don't use.
7771 :
7772 else
7773 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7774 break 3
7775 fi
7776 fi
7777 done
7778 done
7779 ;;
7780esac
7781done
7782IFS=$as_save_IFS
7783
7784
7785fi
7786 if test "${ac_cv_path_install+set}" = set; then
7787 INSTALL=$ac_cv_path_install
7788 else
7789 # As a last resort, use the slow shell script. Don't cache a
7790 # value for INSTALL within a source directory, because that will
7791 # break other packages using the cache if that directory is
7792 # removed, or if the value is a relative name.
7793 INSTALL=$ac_install_sh
7794 fi
7795fi
7796{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7797echo "${ECHO_T}$INSTALL" >&6; }
7798
7799# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7800# It thinks the first close brace ends the variable substitution.
7801test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7802
7803test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7804
7805test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7806
7807
7808# Extract the first word of "bzip2", so it can be a program name with args.
7809set dummy bzip2; ac_word=$2
7810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812if test "${ac_cv_path_BZIP2+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815 case $BZIP2 in
7816 [\\/]* | ?:[\\/]*)
7817 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7818 ;;
7819 *)
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007826 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 +00007827 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831done
7832done
7833IFS=$as_save_IFS
7834
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007835 ;;
7836esac
7837fi
7838BZIP2=$ac_cv_path_BZIP2
7839if test -n "$BZIP2"; then
7840 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7841echo "${ECHO_T}$BZIP2" >&6; }
7842else
7843 { echo "$as_me:$LINENO: result: no" >&5
7844echo "${ECHO_T}no" >&6; }
7845fi
7846
7847
7848# Extract the first word of "doxygen", so it can be a program name with args.
7849set dummy doxygen; ac_word=$2
7850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852if test "${ac_cv_path_DOXYGEN+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854else
7855 case $DOXYGEN in
7856 [\\/]* | ?:[\\/]*)
7857 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7858 ;;
7859 *)
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007866 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 +00007867 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871done
7872done
7873IFS=$as_save_IFS
7874
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007875 ;;
7876esac
7877fi
7878DOXYGEN=$ac_cv_path_DOXYGEN
7879if test -n "$DOXYGEN"; then
7880 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7881echo "${ECHO_T}$DOXYGEN" >&6; }
7882else
7883 { echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6; }
7885fi
7886
7887
7888# Extract the first word of "groff", so it can be a program name with args.
7889set dummy groff; ac_word=$2
7890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892if test "${ac_cv_path_GROFF+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894else
7895 case $GROFF in
7896 [\\/]* | ?:[\\/]*)
7897 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7898 ;;
7899 *)
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007906 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 +00007907 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7910 fi
7911done
7912done
7913IFS=$as_save_IFS
7914
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007915 ;;
7916esac
7917fi
7918GROFF=$ac_cv_path_GROFF
7919if test -n "$GROFF"; then
7920 { echo "$as_me:$LINENO: result: $GROFF" >&5
7921echo "${ECHO_T}$GROFF" >&6; }
7922else
7923 { echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6; }
7925fi
7926
7927
7928# Extract the first word of "gzip", so it can be a program name with args.
7929set dummy gzip; ac_word=$2
7930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932if test "${ac_cv_path_GZIP+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934else
7935 case $GZIP in
7936 [\\/]* | ?:[\\/]*)
7937 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7938 ;;
7939 *)
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007946 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 +00007947 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951done
7952done
7953IFS=$as_save_IFS
7954
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007955 ;;
7956esac
7957fi
7958GZIP=$ac_cv_path_GZIP
7959if test -n "$GZIP"; then
7960 { echo "$as_me:$LINENO: result: $GZIP" >&5
7961echo "${ECHO_T}$GZIP" >&6; }
7962else
7963 { echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6; }
7965fi
7966
7967
7968# Extract the first word of "pod2html", so it can be a program name with args.
7969set dummy pod2html; ac_word=$2
7970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972if test "${ac_cv_path_POD2HTML+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 case $POD2HTML in
7976 [\\/]* | ?:[\\/]*)
7977 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7978 ;;
7979 *)
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007986 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 +00007987 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991done
7992done
7993IFS=$as_save_IFS
7994
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007995 ;;
7996esac
7997fi
7998POD2HTML=$ac_cv_path_POD2HTML
7999if test -n "$POD2HTML"; then
8000 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8001echo "${ECHO_T}$POD2HTML" >&6; }
8002else
8003 { echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6; }
8005fi
8006
8007
8008# Extract the first word of "pod2man", so it can be a program name with args.
8009set dummy pod2man; ac_word=$2
8010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012if test "${ac_cv_path_POD2MAN+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 case $POD2MAN in
8016 [\\/]* | ?:[\\/]*)
8017 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8018 ;;
8019 *)
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008026 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 +00008027 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032done
8033IFS=$as_save_IFS
8034
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008035 ;;
8036esac
8037fi
8038POD2MAN=$ac_cv_path_POD2MAN
8039if test -n "$POD2MAN"; then
8040 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8041echo "${ECHO_T}$POD2MAN" >&6; }
8042else
8043 { echo "$as_me:$LINENO: result: no" >&5
8044echo "${ECHO_T}no" >&6; }
8045fi
8046
8047
8048# Extract the first word of "runtest", so it can be a program name with args.
8049set dummy runtest; ac_word=$2
8050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052if test "${ac_cv_path_RUNTEST+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054else
8055 case $RUNTEST in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8058 ;;
8059 *)
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008066 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 +00008067 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071done
8072done
8073IFS=$as_save_IFS
8074
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008075 ;;
8076esac
8077fi
8078RUNTEST=$ac_cv_path_RUNTEST
8079if test -n "$RUNTEST"; then
8080 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8081echo "${ECHO_T}$RUNTEST" >&6; }
8082else
8083 { echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6; }
8085fi
8086
8087
8088
8089no_itcl=true
8090{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8091echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8092
8093# Check whether --with-tclinclude was given.
8094if test "${with_tclinclude+set}" = set; then
8095 withval=$with_tclinclude; with_tclinclude=${withval}
8096else
8097 with_tclinclude=''
8098fi
8099
8100if test "${ac_cv_path_tclsh+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102else
8103
8104if test x"${with_tclinclude}" != x ; then
8105 if test -f ${with_tclinclude}/tclsh ; then
8106 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8107 elif test -f ${with_tclinclude}/src/tclsh ; then
8108 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8109 else
8110 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8111echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8112 { (exit 1); exit 1; }; }
8113 fi
8114fi
8115
8116if test x"${ac_cv_path_tclsh}" = x ; then
8117 { echo "$as_me:$LINENO: result: none" >&5
8118echo "${ECHO_T}none" >&6; }
8119 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
8120do
8121 # Extract the first word of "$ac_prog", so it can be a program name with args.
8122set dummy $ac_prog; ac_word=$2
8123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8125if test "${ac_cv_path_TCLSH+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8127else
8128 case $TCLSH in
8129 [\\/]* | ?:[\\/]*)
8130 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8131 ;;
8132 *)
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134for as_dir in $PATH
8135do
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008139 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 +00008140 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 break 2
8143 fi
8144done
8145done
8146IFS=$as_save_IFS
8147
8148 ;;
8149esac
8150fi
8151TCLSH=$ac_cv_path_TCLSH
8152if test -n "$TCLSH"; then
8153 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8154echo "${ECHO_T}$TCLSH" >&6; }
8155else
8156 { echo "$as_me:$LINENO: result: no" >&5
8157echo "${ECHO_T}no" >&6; }
8158fi
8159
8160
8161 test -n "$TCLSH" && break
8162done
8163
8164 if test x"${TCLSH}" = x ; then
8165 ac_cv_path_tclsh='';
8166 else
8167 ac_cv_path_tclsh="${TCLSH}";
8168 fi
8169else
8170 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8171echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8172 TCLSH="${ac_cv_path_tclsh}"
8173
8174fi
8175
8176fi
8177
8178# Extract the first word of "zip", so it can be a program name with args.
8179set dummy zip; ac_word=$2
8180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8182if test "${ac_cv_path_ZIP+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185 case $ZIP in
8186 [\\/]* | ?:[\\/]*)
8187 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8188 ;;
8189 *)
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008196 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 +00008197 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 break 2
8200 fi
8201done
8202done
8203IFS=$as_save_IFS
8204
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008205 ;;
8206esac
8207fi
8208ZIP=$ac_cv_path_ZIP
8209if test -n "$ZIP"; then
8210 { echo "$as_me:$LINENO: result: $ZIP" >&5
8211echo "${ECHO_T}$ZIP" >&6; }
8212else
8213 { echo "$as_me:$LINENO: result: no" >&5
8214echo "${ECHO_T}no" >&6; }
8215fi
8216
8217
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008218for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008219do
8220 # Extract the first word of "$ac_prog", so it can be a program name with args.
8221set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8224if test "${ac_cv_path_OCAMLC+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227 case $OCAMLC in
8228 [\\/]* | ?:[\\/]*)
8229 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8230 ;;
8231 *)
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233for as_dir in $PATH
8234do
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008238 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 +00008239 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8242 fi
8243done
8244done
8245IFS=$as_save_IFS
8246
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008247 ;;
8248esac
8249fi
8250OCAMLC=$ac_cv_path_OCAMLC
8251if test -n "$OCAMLC"; then
8252 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8253echo "${ECHO_T}$OCAMLC" >&6; }
8254else
8255 { echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6; }
8257fi
8258
8259
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008260 test -n "$OCAMLC" && break
8261done
8262
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008263for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008264do
8265 # Extract the first word of "$ac_prog", so it can be a program name with args.
8266set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271else
8272 case $OCAMLOPT in
8273 [\\/]* | ?:[\\/]*)
8274 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8275 ;;
8276 *)
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008283 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 +00008284 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8287 fi
8288done
8289done
8290IFS=$as_save_IFS
8291
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008292 ;;
8293esac
8294fi
8295OCAMLOPT=$ac_cv_path_OCAMLOPT
8296if test -n "$OCAMLOPT"; then
8297 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8298echo "${ECHO_T}$OCAMLOPT" >&6; }
8299else
8300 { echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6; }
8302fi
8303
8304
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008305 test -n "$OCAMLOPT" && break
8306done
8307
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008308for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008309do
8310 # Extract the first word of "$ac_prog", so it can be a program name with args.
8311set dummy $ac_prog; ac_word=$2
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8314if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317 case $OCAMLDEP in
8318 [\\/]* | ?:[\\/]*)
8319 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8320 ;;
8321 *)
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008328 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 +00008329 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8332 fi
8333done
8334done
8335IFS=$as_save_IFS
8336
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008337 ;;
8338esac
8339fi
8340OCAMLDEP=$ac_cv_path_OCAMLDEP
8341if test -n "$OCAMLDEP"; then
8342 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8343echo "${ECHO_T}$OCAMLDEP" >&6; }
8344else
8345 { echo "$as_me:$LINENO: result: no" >&5
8346echo "${ECHO_T}no" >&6; }
8347fi
8348
8349
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008350 test -n "$OCAMLDEP" && break
8351done
8352
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008353for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008354do
8355 # Extract the first word of "$ac_prog", so it can be a program name with args.
8356set dummy $ac_prog; ac_word=$2
8357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8359if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 case $OCAMLDOC in
8363 [\\/]* | ?:[\\/]*)
8364 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8365 ;;
8366 *)
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008373 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 +00008374 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8377 fi
8378done
8379done
8380IFS=$as_save_IFS
8381
8382 ;;
8383esac
8384fi
8385OCAMLDOC=$ac_cv_path_OCAMLDOC
8386if test -n "$OCAMLDOC"; then
8387 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8388echo "${ECHO_T}$OCAMLDOC" >&6; }
8389else
8390 { echo "$as_me:$LINENO: result: no" >&5
8391echo "${ECHO_T}no" >&6; }
8392fi
8393
8394
8395 test -n "$OCAMLDOC" && break
8396done
8397
Edwin Török20176752008-10-22 09:56:27 +00008398for ac_prog in gas as
8399do
8400 # Extract the first word of "$ac_prog", so it can be a program name with args.
8401set dummy $ac_prog; ac_word=$2
8402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8404if test "${ac_cv_path_GAS+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8406else
8407 case $GAS in
8408 [\\/]* | ?:[\\/]*)
8409 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8410 ;;
8411 *)
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008418 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 +00008419 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8422 fi
8423done
8424done
8425IFS=$as_save_IFS
8426
8427 ;;
8428esac
8429fi
8430GAS=$ac_cv_path_GAS
8431if test -n "$GAS"; then
8432 { echo "$as_me:$LINENO: result: $GAS" >&5
8433echo "${ECHO_T}$GAS" >&6; }
8434else
8435 { echo "$as_me:$LINENO: result: no" >&5
8436echo "${ECHO_T}no" >&6; }
8437fi
8438
8439
8440 test -n "$GAS" && break
8441done
8442
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008443
8444{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8445echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8446if test "${llvm_cv_link_use_r+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449 ac_ext=c
8450ac_cpp='$CPP $CPPFLAGS'
8451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454
8455 oldcflags="$CFLAGS"
8456 CFLAGS="$CFLAGS -Wl,-R."
8457 cat >conftest.$ac_ext <<_ACEOF
8458/* confdefs.h. */
8459_ACEOF
8460cat confdefs.h >>conftest.$ac_ext
8461cat >>conftest.$ac_ext <<_ACEOF
8462/* end confdefs.h. */
8463
8464int
8465main ()
8466{
8467int main() { return 0; }
8468 ;
8469 return 0;
8470}
8471_ACEOF
8472rm -f conftest.$ac_objext conftest$ac_exeext
8473if { (ac_try="$ac_link"
8474case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_link") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008485 (exit $ac_status); } &&
8486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8487 { (case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490esac
8491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_try") 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_try") 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008506 llvm_cv_link_use_r=yes
8507else
8508 echo "$as_me: failed program was:" >&5
8509sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 llvm_cv_link_use_r=no
8512fi
8513
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008514rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008515 conftest$ac_exeext conftest.$ac_ext
8516 CFLAGS="$oldcflags"
8517 ac_ext=c
8518ac_cpp='$CPP $CPPFLAGS'
8519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521ac_compiler_gnu=$ac_cv_c_compiler_gnu
8522
8523
8524fi
8525{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8526echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8527if test "$llvm_cv_link_use_r" = yes ; then
8528
8529cat >>confdefs.h <<\_ACEOF
8530#define HAVE_LINK_R 1
8531_ACEOF
8532
8533 fi
8534
8535
Nick Lewycky6eab6652009-03-05 08:20:44 +00008536{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8537echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8538if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541 ac_ext=c
8542ac_cpp='$CPP $CPPFLAGS'
8543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547 oldcflags="$CFLAGS"
8548 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8549 cat >conftest.$ac_ext <<_ACEOF
8550/* confdefs.h. */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h. */
8555
8556int
8557main ()
8558{
8559int main() { return 0; }
8560 ;
8561 return 0;
8562}
8563_ACEOF
8564rm -f conftest.$ac_objext conftest$ac_exeext
8565if { (ac_try="$ac_link"
8566case "(($ac_try" in
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8569esac
8570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_link") 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008577 (exit $ac_status); } &&
8578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8579 { (case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582esac
8583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_try") 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest$ac_exeext'
8589 { (case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8592esac
8593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_try") 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; }; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00008598 llvm_cv_link_use_export_dynamic=yes
8599else
8600 echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603 llvm_cv_link_use_export_dynamic=no
8604fi
8605
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008606rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky6eab6652009-03-05 08:20:44 +00008607 conftest$ac_exeext conftest.$ac_ext
8608 CFLAGS="$oldcflags"
8609 ac_ext=c
8610ac_cpp='$CPP $CPPFLAGS'
8611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8613ac_compiler_gnu=$ac_cv_c_compiler_gnu
8614
8615
8616fi
8617{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8618echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8619if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8620
8621cat >>confdefs.h <<\_ACEOF
8622#define HAVE_LINK_EXPORT_DYNAMIC 1
8623_ACEOF
8624
8625 fi
8626
8627
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008628
8629
8630{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8631echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8632if test "${ac_cv_c_const+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8634else
8635 cat >conftest.$ac_ext <<_ACEOF
8636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
8641
8642int
8643main ()
8644{
8645/* FIXME: Include the comments suggested by Paul. */
8646#ifndef __cplusplus
8647 /* Ultrix mips cc rejects this. */
8648 typedef int charset[2];
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008649 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008650 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008651 char const *const *ccp;
8652 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008653 /* NEC SVR4.0.2 mips cc rejects this. */
8654 struct point {int x, y;};
8655 static struct point const zero = {0,0};
8656 /* AIX XL C 1.02.0.0 rejects this.
8657 It does not let you subtract one const X* pointer from another in
8658 an arm of an if-expression whose if-part is not a constant
8659 expression */
8660 const char *g = "string";
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008661 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008662 /* HPUX 7.0 cc rejects these. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008663 ++ccp;
8664 p = (char**) ccp;
8665 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008666 { /* SCO 3.2v4 cc rejects this. */
8667 char *t;
8668 char const *s = 0 ? (char *) 0 : (char const *) 0;
8669
8670 *t++ = 0;
8671 if (s) return 0;
8672 }
8673 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8674 int x[] = {25, 17};
8675 const int *foo = &x[0];
8676 ++foo;
8677 }
8678 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8679 typedef const int *iptr;
8680 iptr p = 0;
8681 ++p;
8682 }
8683 { /* AIX XL C 1.02.0.0 rejects this saying
8684 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8685 struct s { int j; const int *ap[3]; };
8686 struct s *b; b->j = 5;
8687 }
8688 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8689 const int foo = 10;
8690 if (!foo) return 0;
8691 }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008692 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008693#endif
8694
8695 ;
8696 return 0;
8697}
8698_ACEOF
8699rm -f conftest.$ac_objext
8700if { (ac_try="$ac_compile"
8701case "(($ac_try" in
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8704esac
8705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_compile") 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8714 { (case "(($ac_try" in
8715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8717esac
8718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719 (eval "$ac_try") 2>&5
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; } &&
8723 { ac_try='test -s conftest.$ac_objext'
8724 { (case "(($ac_try" in
8725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726 *) ac_try_echo=$ac_try;;
8727esac
8728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729 (eval "$ac_try") 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008733 ac_cv_c_const=yes
8734else
8735 echo "$as_me: failed program was:" >&5
8736sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_cv_c_const=no
8739fi
8740
8741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742fi
8743{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8744echo "${ECHO_T}$ac_cv_c_const" >&6; }
8745if test $ac_cv_c_const = no; then
8746
8747cat >>confdefs.h <<\_ACEOF
8748#define const
8749_ACEOF
8750
8751fi
8752
8753
8754
8755
8756
8757
8758ac_header_dirent=no
8759for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8760 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8761{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8762echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765else
8766 cat >conftest.$ac_ext <<_ACEOF
8767/* confdefs.h. */
8768_ACEOF
8769cat confdefs.h >>conftest.$ac_ext
8770cat >>conftest.$ac_ext <<_ACEOF
8771/* end confdefs.h. */
8772#include <sys/types.h>
8773#include <$ac_hdr>
8774
8775int
8776main ()
8777{
8778if ((DIR *) 0)
8779return 0;
8780 ;
8781 return 0;
8782}
8783_ACEOF
8784rm -f conftest.$ac_objext
8785if { (ac_try="$ac_compile"
8786case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8789esac
8790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_compile") 2>conftest.er1
8792 ac_status=$?
8793 grep -v '^ *+' conftest.er1 >conftest.err
8794 rm -f conftest.er1
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8799 { (case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802esac
8803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804 (eval "$ac_try") 2>&5
8805 ac_status=$?
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try='test -s conftest.$ac_objext'
8809 { (case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812esac
8813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_try") 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008818 eval "$as_ac_Header=yes"
8819else
8820 echo "$as_me: failed program was:" >&5
8821sed 's/^/| /' conftest.$ac_ext >&5
8822
8823 eval "$as_ac_Header=no"
8824fi
8825
8826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827fi
8828ac_res=`eval echo '${'$as_ac_Header'}'`
8829 { echo "$as_me:$LINENO: result: $ac_res" >&5
8830echo "${ECHO_T}$ac_res" >&6; }
8831if test `eval echo '${'$as_ac_Header'}'` = yes; then
8832 cat >>confdefs.h <<_ACEOF
8833#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8834_ACEOF
8835
8836ac_header_dirent=$ac_hdr; break
8837fi
8838
8839done
8840# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8841if test $ac_header_dirent = dirent.h; then
8842 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8843echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8844if test "${ac_cv_search_opendir+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846else
8847 ac_func_search_save_LIBS=$LIBS
8848cat >conftest.$ac_ext <<_ACEOF
8849/* confdefs.h. */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
8853/* end confdefs.h. */
8854
8855/* Override any GCC internal prototype to avoid an error.
8856 Use char because int might match the return type of a GCC
8857 builtin and then its argument prototype would still apply. */
8858#ifdef __cplusplus
8859extern "C"
8860#endif
8861char opendir ();
8862int
8863main ()
8864{
8865return opendir ();
8866 ;
8867 return 0;
8868}
8869_ACEOF
8870for ac_lib in '' dir; do
8871 if test -z "$ac_lib"; then
8872 ac_res="none required"
8873 else
8874 ac_res=-l$ac_lib
8875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8876 fi
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878if { (ac_try="$ac_link"
8879case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882esac
8883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_link") 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8892 { (case "(($ac_try" in
8893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894 *) ac_try_echo=$ac_try;;
8895esac
8896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897 (eval "$ac_try") 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try='test -s conftest$ac_exeext'
8902 { (case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905esac
8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_try") 2>&5
8908 ac_status=$?
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008911 ac_cv_search_opendir=$ac_res
8912else
8913 echo "$as_me: failed program was:" >&5
8914sed 's/^/| /' conftest.$ac_ext >&5
8915
8916
8917fi
8918
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008919rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008920 conftest$ac_exeext
8921 if test "${ac_cv_search_opendir+set}" = set; then
8922 break
8923fi
8924done
8925if test "${ac_cv_search_opendir+set}" = set; then
8926 :
8927else
8928 ac_cv_search_opendir=no
8929fi
8930rm conftest.$ac_ext
8931LIBS=$ac_func_search_save_LIBS
8932fi
8933{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8934echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8935ac_res=$ac_cv_search_opendir
8936if test "$ac_res" != no; then
8937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8938
8939fi
8940
8941else
8942 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8943echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8944if test "${ac_cv_search_opendir+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946else
8947 ac_func_search_save_LIBS=$LIBS
8948cat >conftest.$ac_ext <<_ACEOF
8949/* confdefs.h. */
8950_ACEOF
8951cat confdefs.h >>conftest.$ac_ext
8952cat >>conftest.$ac_ext <<_ACEOF
8953/* end confdefs.h. */
8954
8955/* Override any GCC internal prototype to avoid an error.
8956 Use char because int might match the return type of a GCC
8957 builtin and then its argument prototype would still apply. */
8958#ifdef __cplusplus
8959extern "C"
8960#endif
8961char opendir ();
8962int
8963main ()
8964{
8965return opendir ();
8966 ;
8967 return 0;
8968}
8969_ACEOF
8970for ac_lib in '' x; do
8971 if test -z "$ac_lib"; then
8972 ac_res="none required"
8973 else
8974 ac_res=-l$ac_lib
8975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8976 fi
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978if { (ac_try="$ac_link"
8979case "(($ac_try" in
8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981 *) ac_try_echo=$ac_try;;
8982esac
8983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984 (eval "$ac_link") 2>conftest.er1
8985 ac_status=$?
8986 grep -v '^ *+' conftest.er1 >conftest.err
8987 rm -f conftest.er1
8988 cat conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008990 (exit $ac_status); } &&
8991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8992 { (case "(($ac_try" in
8993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994 *) ac_try_echo=$ac_try;;
8995esac
8996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997 (eval "$ac_try") 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest$ac_exeext'
9002 { (case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005esac
9006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9007 (eval "$ac_try") 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009011 ac_cv_search_opendir=$ac_res
9012else
9013 echo "$as_me: failed program was:" >&5
9014sed 's/^/| /' conftest.$ac_ext >&5
9015
9016
9017fi
9018
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009019rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009020 conftest$ac_exeext
9021 if test "${ac_cv_search_opendir+set}" = set; then
9022 break
9023fi
9024done
9025if test "${ac_cv_search_opendir+set}" = set; then
9026 :
9027else
9028 ac_cv_search_opendir=no
9029fi
9030rm conftest.$ac_ext
9031LIBS=$ac_func_search_save_LIBS
9032fi
9033{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9034echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9035ac_res=$ac_cv_search_opendir
9036if test "$ac_res" != no; then
9037 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9038
9039fi
9040
9041fi
9042
9043
9044for ac_header in dlfcn.h
9045do
9046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9052fi
9053ac_res=`eval echo '${'$as_ac_Header'}'`
9054 { echo "$as_me:$LINENO: result: $ac_res" >&5
9055echo "${ECHO_T}$ac_res" >&6; }
9056else
9057 # Is the header compilable?
9058{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9060cat >conftest.$ac_ext <<_ACEOF
9061/* confdefs.h. */
9062_ACEOF
9063cat confdefs.h >>conftest.$ac_ext
9064cat >>conftest.$ac_ext <<_ACEOF
9065/* end confdefs.h. */
9066$ac_includes_default
9067#include <$ac_header>
9068_ACEOF
9069rm -f conftest.$ac_objext
9070if { (ac_try="$ac_compile"
9071case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074esac
9075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_compile") 2>conftest.er1
9077 ac_status=$?
9078 grep -v '^ *+' conftest.er1 >conftest.err
9079 rm -f conftest.er1
9080 cat conftest.err >&5
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009082 (exit $ac_status); } &&
9083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9084 { (case "(($ac_try" in
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9087esac
9088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_try") 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; } &&
9093 { ac_try='test -s conftest.$ac_objext'
9094 { (case "(($ac_try" in
9095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9096 *) ac_try_echo=$ac_try;;
9097esac
9098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9099 (eval "$ac_try") 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009103 ac_header_compiler=yes
9104else
9105 echo "$as_me: failed program was:" >&5
9106sed 's/^/| /' conftest.$ac_ext >&5
9107
9108 ac_header_compiler=no
9109fi
9110
9111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9112{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9113echo "${ECHO_T}$ac_header_compiler" >&6; }
9114
9115# Is the header present?
9116{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9118cat >conftest.$ac_ext <<_ACEOF
9119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124#include <$ac_header>
9125_ACEOF
9126if { (ac_try="$ac_cpp conftest.$ac_ext"
9127case "(($ac_try" in
9128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129 *) ac_try_echo=$ac_try;;
9130esac
9131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9133 ac_status=$?
9134 grep -v '^ *+' conftest.er1 >conftest.err
9135 rm -f conftest.er1
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009138 (exit $ac_status); } >/dev/null; then
9139 if test -s conftest.err; then
9140 ac_cpp_err=$ac_c_preproc_warn_flag
9141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9142 else
9143 ac_cpp_err=
9144 fi
9145else
9146 ac_cpp_err=yes
9147fi
9148if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009149 ac_header_preproc=yes
9150else
9151 echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
9154 ac_header_preproc=no
9155fi
9156
9157rm -f conftest.err conftest.$ac_ext
9158{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9159echo "${ECHO_T}$ac_header_preproc" >&6; }
9160
9161# So? What about this header?
9162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9163 yes:no: )
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9168 ac_header_preproc=yes
9169 ;;
9170 no:yes:* )
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9183 ( cat <<\_ASBOX
9184## ----------------------------------- ##
9185## Report this to llvmbugs@cs.uiuc.edu ##
9186## ----------------------------------- ##
9187_ASBOX
9188 ) | sed "s/^/$as_me: WARNING: /" >&2
9189 ;;
9190esac
9191{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195else
9196 eval "$as_ac_Header=\$ac_header_preproc"
9197fi
9198ac_res=`eval echo '${'$as_ac_Header'}'`
9199 { echo "$as_me:$LINENO: result: $ac_res" >&5
9200echo "${ECHO_T}$ac_res" >&6; }
9201
9202fi
9203if test `eval echo '${'$as_ac_Header'}'` = yes; then
9204 cat >>confdefs.h <<_ACEOF
9205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9206_ACEOF
9207
9208fi
9209
9210done
9211
9212# Check whether --enable-ltdl-install was given.
9213if test "${enable_ltdl_install+set}" = set; then
9214 enableval=$enable_ltdl_install;
9215fi
9216
9217
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009218
9219
9220if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009221 INSTALL_LTDL_TRUE=
9222 INSTALL_LTDL_FALSE='#'
9223else
9224 INSTALL_LTDL_TRUE='#'
9225 INSTALL_LTDL_FALSE=
9226fi
9227
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009228
9229
9230if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009231 CONVENIENCE_LTDL_TRUE=
9232 CONVENIENCE_LTDL_FALSE='#'
9233else
9234 CONVENIENCE_LTDL_TRUE='#'
9235 CONVENIENCE_LTDL_FALSE=
9236fi
9237
9238
9239{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9240echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9241library_names_spec=
9242libname_spec='lib$name'
9243soname_spec=
9244shrext_cmds=".so"
9245postinstall_cmds=
9246postuninstall_cmds=
9247finish_cmds=
9248finish_eval=
9249shlibpath_var=
9250shlibpath_overrides_runpath=unknown
9251version_type=none
9252dynamic_linker="$host_os ld.so"
9253sys_lib_dlsearch_path_spec="/lib /usr/lib"
9254if test "$GCC" = yes; then
9255 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9257 # if the path contains ";" then we assume it to be the separator
9258 # otherwise default to the standard path separator (i.e. ":") - it is
9259 # assumed that no part of a normal pathname contains ";" but that should
9260 # okay in the real world where ";" in dirpaths is itself problematic.
9261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9262 else
9263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9264 fi
9265else
9266 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9267fi
9268need_lib_prefix=unknown
9269hardcode_into_libs=no
9270
9271# when you set need_version to no, make sure it does not cause -set_version
9272# flags to be left without arguments
9273need_version=unknown
9274
9275case $host_os in
9276aix3*)
9277 version_type=linux
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9279 shlibpath_var=LIBPATH
9280
9281 # AIX 3 has no versioning support, so we append a major version to the name.
9282 soname_spec='${libname}${release}${shared_ext}$major'
9283 ;;
9284
9285aix4* | aix5*)
9286 version_type=linux
9287 need_lib_prefix=no
9288 need_version=no
9289 hardcode_into_libs=yes
9290 if test "$host_cpu" = ia64; then
9291 # AIX 5 supports IA64
9292 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9293 shlibpath_var=LD_LIBRARY_PATH
9294 else
9295 # With GCC up to 2.95.x, collect2 would create an import file
9296 # for dependence libraries. The import file would start with
9297 # the line `#! .'. This would cause the generated library to
9298 # depend on `.', always an invalid library. This was fixed in
9299 # development snapshots of GCC prior to 3.0.
9300 case $host_os in
9301 aix4 | aix4.[01] | aix4.[01].*)
9302 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9303 echo ' yes '
9304 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9305 :
9306 else
9307 can_build_shared=no
9308 fi
9309 ;;
9310 esac
9311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9312 # soname into executable. Probably we can add versioning support to
9313 # collect2, so additional links can be useful in future.
9314 if test "$aix_use_runtimelinking" = yes; then
9315 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9316 # instead of lib<name>.a to let people know that these are not
9317 # typical AIX shared libraries.
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 else
9320 # We preserve .a as extension for shared libraries through AIX4.2
9321 # and later when we are not doing run time linking.
9322 library_names_spec='${libname}${release}.a $libname.a'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 fi
9325 shlibpath_var=LIBPATH
9326 fi
9327 ;;
9328
9329amigaos*)
9330 library_names_spec='$libname.ixlibrary $libname.a'
9331 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9332 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'
9333 ;;
9334
9335beos*)
9336 library_names_spec='${libname}${shared_ext}'
9337 dynamic_linker="$host_os ld.so"
9338 shlibpath_var=LIBRARY_PATH
9339 ;;
9340
9341bsdi[45]*)
9342 version_type=linux
9343 need_version=no
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9347 shlibpath_var=LD_LIBRARY_PATH
9348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9350 # the default ld.so.conf also contains /usr/contrib/lib and
9351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9352 # libtool to hard-code these into programs
9353 ;;
9354
9355cygwin* | mingw* | pw32*)
9356 version_type=windows
9357 shrext_cmds=".dll"
9358 need_version=no
9359 need_lib_prefix=no
9360
9361 case $GCC,$host_os in
9362 yes,cygwin* | yes,mingw* | yes,pw32*)
9363 library_names_spec='$libname.dll.a'
9364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9365 postinstall_cmds='base_file=`basename \${file}`~
9366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9367 dldir=$destdir/`dirname \$dlpath`~
9368 test -d \$dldir || mkdir -p \$dldir~
9369 $install_prog $dir/$dlname \$dldir/$dlname~
9370 chmod a+x \$dldir/$dlname'
9371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9372 dlpath=$dir/\$dldll~
9373 $rm \$dlpath'
9374 shlibpath_overrides_runpath=yes
9375
9376 case $host_os in
9377 cygwin*)
9378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9380 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9381 ;;
9382 mingw*)
9383 # MinGW DLLs use traditional 'lib' prefix
9384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9385 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9386 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9387 # It is most probably a Windows format PATH printed by
9388 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9389 # path with ; separators, and with drive letters. We can handle the
9390 # drive letters (cygwin fileutils understands them), so leave them,
9391 # especially as we might pass files found there to a mingw objdump,
9392 # which wouldn't understand a cygwinified path. Ahh.
9393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9394 else
9395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9396 fi
9397 ;;
9398 pw32*)
9399 # pw32 DLLs use 'pw' prefix rather than 'lib'
9400 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9401 ;;
9402 esac
9403 ;;
9404
9405 *)
9406 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9407 ;;
9408 esac
9409 dynamic_linker='Win32 ld.exe'
9410 # FIXME: first we should search . and the directory the executable is in
9411 shlibpath_var=PATH
9412 ;;
9413
9414darwin* | rhapsody*)
9415 dynamic_linker="$host_os dyld"
9416 version_type=darwin
9417 need_lib_prefix=no
9418 need_version=no
9419 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9420 soname_spec='${libname}${release}${major}$shared_ext'
9421 shlibpath_overrides_runpath=yes
9422 shlibpath_var=DYLD_LIBRARY_PATH
9423 shrext_cmds='.dylib'
9424 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9425 if test "$GCC" = yes; then
9426 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"`
9427 else
9428 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9429 fi
9430 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9431 ;;
9432
9433dgux*)
9434 version_type=linux
9435 need_lib_prefix=no
9436 need_version=no
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9438 soname_spec='${libname}${release}${shared_ext}$major'
9439 shlibpath_var=LD_LIBRARY_PATH
9440 ;;
9441
9442freebsd1*)
9443 dynamic_linker=no
9444 ;;
9445
9446kfreebsd*-gnu)
9447 version_type=linux
9448 need_lib_prefix=no
9449 need_version=no
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 shlibpath_var=LD_LIBRARY_PATH
9453 shlibpath_overrides_runpath=no
9454 hardcode_into_libs=yes
9455 dynamic_linker='GNU ld.so'
9456 ;;
9457
9458freebsd* | dragonfly*)
9459 # DragonFly does not have aout. When/if they implement a new
9460 # versioning mechanism, adjust this.
9461 if test -x /usr/bin/objformat; then
9462 objformat=`/usr/bin/objformat`
9463 else
9464 case $host_os in
9465 freebsd[123]*) objformat=aout ;;
9466 *) objformat=elf ;;
9467 esac
9468 fi
9469 version_type=freebsd-$objformat
9470 case $version_type in
9471 freebsd-elf*)
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9473 need_version=no
9474 need_lib_prefix=no
9475 ;;
9476 freebsd-*)
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9478 need_version=yes
9479 ;;
9480 esac
9481 shlibpath_var=LD_LIBRARY_PATH
9482 case $host_os in
9483 freebsd2*)
9484 shlibpath_overrides_runpath=yes
9485 ;;
9486 freebsd3.[01]* | freebsdelf3.[01]*)
9487 shlibpath_overrides_runpath=yes
9488 hardcode_into_libs=yes
9489 ;;
9490 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9491 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9492 shlibpath_overrides_runpath=no
9493 hardcode_into_libs=yes
9494 ;;
9495 freebsd*) # from 4.6 on
9496 shlibpath_overrides_runpath=yes
9497 hardcode_into_libs=yes
9498 ;;
9499 esac
9500 ;;
9501
9502gnu*)
9503 version_type=linux
9504 need_lib_prefix=no
9505 need_version=no
9506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 shlibpath_var=LD_LIBRARY_PATH
9509 hardcode_into_libs=yes
9510 ;;
9511
9512hpux9* | hpux10* | hpux11*)
9513 # Give a soname corresponding to the major version so that dld.sl refuses to
9514 # link against other versions.
9515 version_type=sunos
9516 need_lib_prefix=no
9517 need_version=no
9518 case $host_cpu in
9519 ia64*)
9520 shrext_cmds='.so'
9521 hardcode_into_libs=yes
9522 dynamic_linker="$host_os dld.so"
9523 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 if test "X$HPUX_IA64_MODE" = X32; then
9528 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9529 else
9530 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9531 fi
9532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9533 ;;
9534 hppa*64*)
9535 shrext_cmds='.sl'
9536 hardcode_into_libs=yes
9537 dynamic_linker="$host_os dld.sl"
9538 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9539 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541 soname_spec='${libname}${release}${shared_ext}$major'
9542 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9543 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9544 ;;
9545 *)
9546 shrext_cmds='.sl'
9547 dynamic_linker="$host_os dld.sl"
9548 shlibpath_var=SHLIB_PATH
9549 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 ;;
9553 esac
9554 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9555 postinstall_cmds='chmod 555 $lib'
9556 ;;
9557
9558interix3*)
9559 version_type=linux
9560 need_lib_prefix=no
9561 need_version=no
9562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9563 soname_spec='${libname}${release}${shared_ext}$major'
9564 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=no
9567 hardcode_into_libs=yes
9568 ;;
9569
9570irix5* | irix6* | nonstopux*)
9571 case $host_os in
9572 nonstopux*) version_type=nonstopux ;;
9573 *)
9574 if test "$lt_cv_prog_gnu_ld" = yes; then
9575 version_type=linux
9576 else
9577 version_type=irix
9578 fi ;;
9579 esac
9580 need_lib_prefix=no
9581 need_version=no
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9584 case $host_os in
9585 irix5* | nonstopux*)
9586 libsuff= shlibsuff=
9587 ;;
9588 *)
9589 case $LD in # libtool.m4 will add one of these switches to LD
9590 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9591 libsuff= shlibsuff= libmagic=32-bit;;
9592 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9593 libsuff=32 shlibsuff=N32 libmagic=N32;;
9594 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9595 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9596 *) libsuff= shlibsuff= libmagic=never-match;;
9597 esac
9598 ;;
9599 esac
9600 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9601 shlibpath_overrides_runpath=no
9602 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9603 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9604 hardcode_into_libs=yes
9605 ;;
9606
9607# No shared lib support for Linux oldld, aout, or coff.
9608linux*oldld* | linux*aout* | linux*coff*)
9609 dynamic_linker=no
9610 ;;
9611
9612# This must be Linux ELF.
9613linux*)
9614 version_type=linux
9615 need_lib_prefix=no
9616 need_version=no
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=no
9622 # This implies no fast_install, which is unacceptable.
9623 # Some rework will be needed to allow for fast_install
9624 # before this can be enabled.
9625 hardcode_into_libs=yes
9626
9627 # Append ld.so.conf contents to the search path
9628 if test -f /etc/ld.so.conf; then
9629 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' ' '`
9630 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9631 fi
9632
9633 # We used to test for /lib/ld.so.1 and disable shared libraries on
9634 # powerpc, because MkLinux only supported shared libraries with the
9635 # GNU dynamic linker. Since this was broken with cross compilers,
9636 # most powerpc-linux boxes support dynamic linking these days and
9637 # people can always --disable-shared, the test was removed, and we
9638 # assume the GNU/Linux dynamic linker is in use.
9639 dynamic_linker='GNU/Linux ld.so'
9640 ;;
9641
9642knetbsd*-gnu)
9643 version_type=linux
9644 need_lib_prefix=no
9645 need_version=no
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 shlibpath_var=LD_LIBRARY_PATH
9649 shlibpath_overrides_runpath=no
9650 hardcode_into_libs=yes
9651 dynamic_linker='GNU ld.so'
9652 ;;
9653
9654netbsd*)
9655 version_type=sunos
9656 need_lib_prefix=no
9657 need_version=no
9658 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661 dynamic_linker='NetBSD (a.out) ld.so'
9662 else
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 dynamic_linker='NetBSD ld.elf_so'
9666 fi
9667 shlibpath_var=LD_LIBRARY_PATH
9668 shlibpath_overrides_runpath=yes
9669 hardcode_into_libs=yes
9670 ;;
9671
9672newsos6)
9673 version_type=linux
9674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675 shlibpath_var=LD_LIBRARY_PATH
9676 shlibpath_overrides_runpath=yes
9677 ;;
9678
9679nto-qnx*)
9680 version_type=linux
9681 need_lib_prefix=no
9682 need_version=no
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes
9687 ;;
9688
9689openbsd*)
9690 version_type=sunos
9691 sys_lib_dlsearch_path_spec="/usr/lib"
9692 need_lib_prefix=no
9693 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9694 case $host_os in
9695 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9696 *) need_version=no ;;
9697 esac
9698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9702 case $host_os in
9703 openbsd2.[89] | openbsd2.[89].*)
9704 shlibpath_overrides_runpath=no
9705 ;;
9706 *)
9707 shlibpath_overrides_runpath=yes
9708 ;;
9709 esac
9710 else
9711 shlibpath_overrides_runpath=yes
9712 fi
9713 ;;
9714
9715os2*)
9716 libname_spec='$name'
9717 shrext_cmds=".dll"
9718 need_lib_prefix=no
9719 library_names_spec='$libname${shared_ext} $libname.a'
9720 dynamic_linker='OS/2 ld.exe'
9721 shlibpath_var=LIBPATH
9722 ;;
9723
9724osf3* | osf4* | osf5*)
9725 version_type=osf
9726 need_lib_prefix=no
9727 need_version=no
9728 soname_spec='${libname}${release}${shared_ext}$major'
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 shlibpath_var=LD_LIBRARY_PATH
9731 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9732 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9733 ;;
9734
9735solaris*)
9736 version_type=linux
9737 need_lib_prefix=no
9738 need_version=no
9739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740 soname_spec='${libname}${release}${shared_ext}$major'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 shlibpath_overrides_runpath=yes
9743 hardcode_into_libs=yes
9744 # ldd complains unless libraries are executable
9745 postinstall_cmds='chmod +x $lib'
9746 ;;
9747
9748sunos4*)
9749 version_type=sunos
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9752 shlibpath_var=LD_LIBRARY_PATH
9753 shlibpath_overrides_runpath=yes
9754 if test "$with_gnu_ld" = yes; then
9755 need_lib_prefix=no
9756 fi
9757 need_version=yes
9758 ;;
9759
9760sysv4 | sysv4.3*)
9761 version_type=linux
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 case $host_vendor in
9766 sni)
9767 shlibpath_overrides_runpath=no
9768 need_lib_prefix=no
9769 export_dynamic_flag_spec='${wl}-Blargedynsym'
9770 runpath_var=LD_RUN_PATH
9771 ;;
9772 siemens)
9773 need_lib_prefix=no
9774 ;;
9775 motorola)
9776 need_lib_prefix=no
9777 need_version=no
9778 shlibpath_overrides_runpath=no
9779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9780 ;;
9781 esac
9782 ;;
9783
9784sysv4*MP*)
9785 if test -d /usr/nec ;then
9786 version_type=linux
9787 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9788 soname_spec='$libname${shared_ext}.$major'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 fi
9791 ;;
9792
9793sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9794 version_type=freebsd-elf
9795 need_lib_prefix=no
9796 need_version=no
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 shlibpath_var=LD_LIBRARY_PATH
9800 hardcode_into_libs=yes
9801 if test "$with_gnu_ld" = yes; then
9802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9803 shlibpath_overrides_runpath=no
9804 else
9805 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9806 shlibpath_overrides_runpath=yes
9807 case $host_os in
9808 sco3.2v5*)
9809 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9810 ;;
9811 esac
9812 fi
9813 sys_lib_dlsearch_path_spec='/usr/lib'
9814 ;;
9815
9816uts4*)
9817 version_type=linux
9818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 soname_spec='${libname}${release}${shared_ext}$major'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 ;;
9822
9823*)
9824 dynamic_linker=no
9825 ;;
9826esac
9827{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9828echo "${ECHO_T}$dynamic_linker" >&6; }
9829test "$dynamic_linker" = no && can_build_shared=no
9830
9831variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9832if test "$GCC" = yes; then
9833 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9834fi
9835
9836
9837{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9838echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9839if test "${libltdl_cv_shlibext+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842
9843module=yes
9844eval libltdl_cv_shlibext=$shrext_cmds
9845
9846fi
9847{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9848echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9849if test -n "$libltdl_cv_shlibext"; then
9850
9851cat >>confdefs.h <<_ACEOF
9852#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9853_ACEOF
9854
9855fi
9856
9857
9858{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9859echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9860if test "${libltdl_cv_shlibpath_var+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862else
9863 libltdl_cv_shlibpath_var="$shlibpath_var"
9864fi
9865{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9866echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9867if test -n "$libltdl_cv_shlibpath_var"; then
9868
9869cat >>confdefs.h <<_ACEOF
9870#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9871_ACEOF
9872
9873fi
9874
9875
9876{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9877echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9878if test "${libltdl_cv_sys_search_path+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880else
9881 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9882fi
9883{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9884echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9885if test -n "$libltdl_cv_sys_search_path"; then
9886 sys_search_path=
9887 for dir in $libltdl_cv_sys_search_path; do
9888 if test -z "$sys_search_path"; then
9889 sys_search_path="$dir"
9890 else
9891 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9892 fi
9893 done
9894
9895cat >>confdefs.h <<_ACEOF
9896#define LTDL_SYSSEARCHPATH "$sys_search_path"
9897_ACEOF
9898
9899fi
9900
9901{ echo "$as_me:$LINENO: checking for objdir" >&5
9902echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9903if test "${libltdl_cv_objdir+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905else
9906 libltdl_cv_objdir="$objdir"
9907 if test -n "$objdir"; then
9908 :
9909 else
9910 rm -f .libs 2>/dev/null
9911 mkdir .libs 2>/dev/null
9912 if test -d .libs; then
9913 libltdl_cv_objdir=.libs
9914 else
9915 # MS-DOS does not allow filenames that begin with a dot.
9916 libltdl_cv_objdir=_libs
9917 fi
9918 rmdir .libs 2>/dev/null
9919 fi
9920
9921fi
9922{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9923echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9924
9925cat >>confdefs.h <<_ACEOF
9926#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9927_ACEOF
9928
9929
9930
9931
9932
9933
9934# Check for command to grab the raw symbol name followed by C symbol from nm.
9935{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9936echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9937if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940
9941# These are sane defaults that work on at least a few old systems.
9942# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9943
9944# Character class describing NM global symbol codes.
9945symcode='[BCDEGRST]'
9946
9947# Regexp to match symbols that can be accessed directly from C.
9948sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9949
9950# Transform an extracted symbol line into a proper C declaration
9951lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9952
9953# Transform an extracted symbol line into symbol name and symbol address
9954lt_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'"
9955
9956# Define system-specific variables.
9957case $host_os in
9958aix*)
9959 symcode='[BCDT]'
9960 ;;
9961cygwin* | mingw* | pw32*)
9962 symcode='[ABCDGISTW]'
9963 ;;
9964hpux*) # Its linker distinguishes data from code symbols
9965 if test "$host_cpu" = ia64; then
9966 symcode='[ABCDEGRST]'
9967 fi
9968 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9969 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'"
9970 ;;
9971linux*)
9972 if test "$host_cpu" = ia64; then
9973 symcode='[ABCDGIRSTW]'
9974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9975 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'"
9976 fi
9977 ;;
9978irix* | nonstopux*)
9979 symcode='[BCDEGRST]'
9980 ;;
9981osf*)
9982 symcode='[BCDEGQRST]'
9983 ;;
9984solaris*)
9985 symcode='[BDRT]'
9986 ;;
9987sco3.2v5*)
9988 symcode='[DT]'
9989 ;;
9990sysv4.2uw2*)
9991 symcode='[DT]'
9992 ;;
9993sysv5* | sco5v6* | unixware* | OpenUNIX*)
9994 symcode='[ABDT]'
9995 ;;
9996sysv4)
9997 symcode='[DFNSTU]'
9998 ;;
9999esac
10000
10001# Handle CRLF in mingw tool chain
10002opt_cr=
10003case $build_os in
10004mingw*)
10005 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10006 ;;
10007esac
10008
10009# If we're using GNU nm, then use its standard symbol codes.
10010case `$NM -V 2>&1` in
10011*GNU* | *'with BFD'*)
10012 symcode='[ABCDGIRSTW]' ;;
10013esac
10014
10015# Try without a prefix undercore, then with it.
10016for ac_symprfx in "" "_"; do
10017
10018 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10019 symxfrm="\\1 $ac_symprfx\\2 \\2"
10020
10021 # Write the raw and C identifiers.
10022 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10023
10024 # Check to see that the pipe works correctly.
10025 pipe_works=no
10026
10027 rm -f conftest*
10028 cat > conftest.$ac_ext <<EOF
10029#ifdef __cplusplus
10030extern "C" {
10031#endif
10032char nm_test_var;
10033void nm_test_func(){}
10034#ifdef __cplusplus
10035}
10036#endif
10037int main(){nm_test_var='a';nm_test_func();return(0);}
10038EOF
10039
10040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; then
10045 # Now try to grab the symbols.
10046 nlist=conftest.nm
10047 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10048 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } && test -s "$nlist"; then
10052 # Try sorting and uniquifying the output.
10053 if sort "$nlist" | uniq > "$nlist"T; then
10054 mv -f "$nlist"T "$nlist"
10055 else
10056 rm -f "$nlist"T
10057 fi
10058
10059 # Make sure that we snagged all the symbols we need.
10060 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10061 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10062 cat <<EOF > conftest.$ac_ext
10063#ifdef __cplusplus
10064extern "C" {
10065#endif
10066
10067EOF
10068 # Now generate the symbol file.
10069 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10070
10071 cat <<EOF >> conftest.$ac_ext
10072#if defined (__STDC__) && __STDC__
10073# define lt_ptr_t void *
10074#else
10075# define lt_ptr_t char *
10076# define const
10077#endif
10078
10079/* The mapping between symbol names and symbols. */
10080const struct {
10081 const char *name;
10082 lt_ptr_t address;
10083}
10084lt_preloaded_symbols[] =
10085{
10086EOF
10087 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10088 cat <<\EOF >> conftest.$ac_ext
10089 {0, (lt_ptr_t) 0}
10090};
10091
10092#ifdef __cplusplus
10093}
10094#endif
10095EOF
10096 # Now try linking the two files.
10097 mv conftest.$ac_objext conftstm.$ac_objext
10098 lt_save_LIBS="$LIBS"
10099 lt_save_CFLAGS="$CFLAGS"
10100 LIBS="conftstm.$ac_objext"
10101 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10107 pipe_works=yes
10108 fi
10109 LIBS="$lt_save_LIBS"
10110 CFLAGS="$lt_save_CFLAGS"
10111 else
10112 echo "cannot find nm_test_func in $nlist" >&5
10113 fi
10114 else
10115 echo "cannot find nm_test_var in $nlist" >&5
10116 fi
10117 else
10118 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10119 fi
10120 else
10121 echo "$progname: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 fi
10124 rm -f conftest* conftst*
10125
10126 # Do not use the global_symbol_pipe unless it works.
10127 if test "$pipe_works" = yes; then
10128 break
10129 else
10130 lt_cv_sys_global_symbol_pipe=
10131 fi
10132done
10133
10134fi
10135
10136if test -z "$lt_cv_sys_global_symbol_pipe"; then
10137 lt_cv_sys_global_symbol_to_cdecl=
10138fi
10139if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10140 { echo "$as_me:$LINENO: result: failed" >&5
10141echo "${ECHO_T}failed" >&6; }
10142else
10143 { echo "$as_me:$LINENO: result: ok" >&5
10144echo "${ECHO_T}ok" >&6; }
10145fi
10146
10147
10148{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10149echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10150if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152else
10153 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10154 libltdl_cv_preloaded_symbols=yes
10155 else
10156 libltdl_cv_preloaded_symbols=no
10157 fi
10158
10159fi
10160{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10161echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10162if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10163
10164cat >>confdefs.h <<\_ACEOF
10165#define HAVE_PRELOADED_SYMBOLS 1
10166_ACEOF
10167
10168fi
10169
10170LIBADD_DL=
10171
10172ac_ext=c
10173ac_cpp='$CPP $CPPFLAGS'
10174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176ac_compiler_gnu=$ac_cv_c_compiler_gnu
10177
10178
10179{ echo "$as_me:$LINENO: checking for shl_load" >&5
10180echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10181if test "${ac_cv_func_shl_load+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 cat >conftest.$ac_ext <<_ACEOF
10185/* confdefs.h. */
10186_ACEOF
10187cat confdefs.h >>conftest.$ac_ext
10188cat >>conftest.$ac_ext <<_ACEOF
10189/* end confdefs.h. */
10190/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10192#define shl_load innocuous_shl_load
10193
10194/* System header to define __stub macros and hopefully few prototypes,
10195 which can conflict with char shl_load (); below.
10196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10197 <limits.h> exists even on freestanding compilers. */
10198
10199#ifdef __STDC__
10200# include <limits.h>
10201#else
10202# include <assert.h>
10203#endif
10204
10205#undef shl_load
10206
10207/* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10210#ifdef __cplusplus
10211extern "C"
10212#endif
10213char shl_load ();
10214/* The GNU C library defines this for functions which it implements
10215 to always fail with ENOSYS. Some functions are actually named
10216 something starting with __ and the normal name is an alias. */
10217#if defined __stub_shl_load || defined __stub___shl_load
10218choke me
10219#endif
10220
10221int
10222main ()
10223{
10224return shl_load ();
10225 ;
10226 return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext conftest$ac_exeext
10230if { (ac_try="$ac_link"
10231case "(($ac_try" in
10232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_link") 2>conftest.er1
10237 ac_status=$?
10238 grep -v '^ *+' conftest.er1 >conftest.err
10239 rm -f conftest.er1
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010242 (exit $ac_status); } &&
10243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10244 { (case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247esac
10248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_try") 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257esac
10258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_try") 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010263 ac_cv_func_shl_load=yes
10264else
10265 echo "$as_me: failed program was:" >&5
10266sed 's/^/| /' conftest.$ac_ext >&5
10267
10268 ac_cv_func_shl_load=no
10269fi
10270
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010271rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010272 conftest$ac_exeext conftest.$ac_ext
10273fi
10274{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10275echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10276if test $ac_cv_func_shl_load = yes; then
10277
10278cat >>confdefs.h <<\_ACEOF
10279#define HAVE_SHL_LOAD 1
10280_ACEOF
10281
10282else
10283 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10284echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10285if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287else
10288 ac_check_lib_save_LIBS=$LIBS
10289LIBS="-ldld $LIBS"
10290cat >conftest.$ac_ext <<_ACEOF
10291/* confdefs.h. */
10292_ACEOF
10293cat confdefs.h >>conftest.$ac_ext
10294cat >>conftest.$ac_ext <<_ACEOF
10295/* end confdefs.h. */
10296
10297/* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300#ifdef __cplusplus
10301extern "C"
10302#endif
10303char shl_load ();
10304int
10305main ()
10306{
10307return shl_load ();
10308 ;
10309 return 0;
10310}
10311_ACEOF
10312rm -f conftest.$ac_objext conftest$ac_exeext
10313if { (ac_try="$ac_link"
10314case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10317esac
10318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>conftest.er1
10320 ac_status=$?
10321 grep -v '^ *+' conftest.er1 >conftest.err
10322 rm -f conftest.er1
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010325 (exit $ac_status); } &&
10326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10327 { (case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330esac
10331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_try") 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (case "(($ac_try" in
10338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10339 *) ac_try_echo=$ac_try;;
10340esac
10341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_try") 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010346 ac_cv_lib_dld_shl_load=yes
10347else
10348 echo "$as_me: failed program was:" >&5
10349sed 's/^/| /' conftest.$ac_ext >&5
10350
10351 ac_cv_lib_dld_shl_load=no
10352fi
10353
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010354rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010355 conftest$ac_exeext conftest.$ac_ext
10356LIBS=$ac_check_lib_save_LIBS
10357fi
10358{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10359echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10360if test $ac_cv_lib_dld_shl_load = yes; then
10361
10362cat >>confdefs.h <<\_ACEOF
10363#define HAVE_SHL_LOAD 1
10364_ACEOF
10365
10366 LIBADD_DL="$LIBADD_DL -ldld"
10367else
10368 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10369echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10370if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372else
10373 ac_check_lib_save_LIBS=$LIBS
10374LIBS="-ldl $LIBS"
10375cat >conftest.$ac_ext <<_ACEOF
10376/* confdefs.h. */
10377_ACEOF
10378cat confdefs.h >>conftest.$ac_ext
10379cat >>conftest.$ac_ext <<_ACEOF
10380/* end confdefs.h. */
10381
10382/* Override any GCC internal prototype to avoid an error.
10383 Use char because int might match the return type of a GCC
10384 builtin and then its argument prototype would still apply. */
10385#ifdef __cplusplus
10386extern "C"
10387#endif
10388char dlopen ();
10389int
10390main ()
10391{
10392return dlopen ();
10393 ;
10394 return 0;
10395}
10396_ACEOF
10397rm -f conftest.$ac_objext conftest$ac_exeext
10398if { (ac_try="$ac_link"
10399case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10402esac
10403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_link") 2>conftest.er1
10405 ac_status=$?
10406 grep -v '^ *+' conftest.er1 >conftest.err
10407 rm -f conftest.er1
10408 cat conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010410 (exit $ac_status); } &&
10411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10412 { (case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415esac
10416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_try") 2>&5
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; } &&
10421 { ac_try='test -s conftest$ac_exeext'
10422 { (case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425esac
10426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_try") 2>&5
10428 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010431 ac_cv_lib_dl_dlopen=yes
10432else
10433 echo "$as_me: failed program was:" >&5
10434sed 's/^/| /' conftest.$ac_ext >&5
10435
10436 ac_cv_lib_dl_dlopen=no
10437fi
10438
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010439rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010440 conftest$ac_exeext conftest.$ac_ext
10441LIBS=$ac_check_lib_save_LIBS
10442fi
10443{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10444echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10445if test $ac_cv_lib_dl_dlopen = yes; then
10446
10447cat >>confdefs.h <<\_ACEOF
10448#define HAVE_LIBDL 1
10449_ACEOF
10450
10451 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10452else
10453 cat >conftest.$ac_ext <<_ACEOF
10454/* confdefs.h. */
10455_ACEOF
10456cat confdefs.h >>conftest.$ac_ext
10457cat >>conftest.$ac_ext <<_ACEOF
10458/* end confdefs.h. */
10459#if HAVE_DLFCN_H
10460# include <dlfcn.h>
10461#endif
10462
10463int
10464main ()
10465{
10466dlopen(0, 0);
10467 ;
10468 return 0;
10469}
10470_ACEOF
10471rm -f conftest.$ac_objext conftest$ac_exeext
10472if { (ac_try="$ac_link"
10473case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476esac
10477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_link") 2>conftest.er1
10479 ac_status=$?
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010484 (exit $ac_status); } &&
10485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10486 { (case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489esac
10490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_try") 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; } &&
10495 { ac_try='test -s conftest$ac_exeext'
10496 { (case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10499esac
10500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_try") 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010505
10506cat >>confdefs.h <<\_ACEOF
10507#define HAVE_LIBDL 1
10508_ACEOF
10509 libltdl_cv_func_dlopen="yes"
10510else
10511 echo "$as_me: failed program was:" >&5
10512sed 's/^/| /' conftest.$ac_ext >&5
10513
10514 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10515echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10516if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518else
10519 ac_check_lib_save_LIBS=$LIBS
10520LIBS="-lsvld $LIBS"
10521cat >conftest.$ac_ext <<_ACEOF
10522/* confdefs.h. */
10523_ACEOF
10524cat confdefs.h >>conftest.$ac_ext
10525cat >>conftest.$ac_ext <<_ACEOF
10526/* end confdefs.h. */
10527
10528/* Override any GCC internal prototype to avoid an error.
10529 Use char because int might match the return type of a GCC
10530 builtin and then its argument prototype would still apply. */
10531#ifdef __cplusplus
10532extern "C"
10533#endif
10534char dlopen ();
10535int
10536main ()
10537{
10538return dlopen ();
10539 ;
10540 return 0;
10541}
10542_ACEOF
10543rm -f conftest.$ac_objext conftest$ac_exeext
10544if { (ac_try="$ac_link"
10545case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10548esac
10549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_link") 2>conftest.er1
10551 ac_status=$?
10552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10561esac
10562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; } &&
10567 { ac_try='test -s conftest$ac_exeext'
10568 { (case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571esac
10572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_try") 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010577 ac_cv_lib_svld_dlopen=yes
10578else
10579 echo "$as_me: failed program was:" >&5
10580sed 's/^/| /' conftest.$ac_ext >&5
10581
10582 ac_cv_lib_svld_dlopen=no
10583fi
10584
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010585rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010586 conftest$ac_exeext conftest.$ac_ext
10587LIBS=$ac_check_lib_save_LIBS
10588fi
10589{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10590echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10591if test $ac_cv_lib_svld_dlopen = yes; then
10592
10593cat >>confdefs.h <<\_ACEOF
10594#define HAVE_LIBDL 1
10595_ACEOF
10596
10597 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10598else
10599 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10600echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10601if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10603else
10604 ac_check_lib_save_LIBS=$LIBS
10605LIBS="-ldld $LIBS"
10606cat >conftest.$ac_ext <<_ACEOF
10607/* confdefs.h. */
10608_ACEOF
10609cat confdefs.h >>conftest.$ac_ext
10610cat >>conftest.$ac_ext <<_ACEOF
10611/* end confdefs.h. */
10612
10613/* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
10616#ifdef __cplusplus
10617extern "C"
10618#endif
10619char dld_link ();
10620int
10621main ()
10622{
10623return dld_link ();
10624 ;
10625 return 0;
10626}
10627_ACEOF
10628rm -f conftest.$ac_objext conftest$ac_exeext
10629if { (ac_try="$ac_link"
10630case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633esac
10634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_link") 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646esac
10647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656esac
10657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010662 ac_cv_lib_dld_dld_link=yes
10663else
10664 echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667 ac_cv_lib_dld_dld_link=no
10668fi
10669
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010670rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010671 conftest$ac_exeext conftest.$ac_ext
10672LIBS=$ac_check_lib_save_LIBS
10673fi
10674{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10675echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10676if test $ac_cv_lib_dld_dld_link = yes; then
10677
10678cat >>confdefs.h <<\_ACEOF
10679#define HAVE_DLD 1
10680_ACEOF
10681
10682 LIBADD_DL="$LIBADD_DL -ldld"
10683else
10684 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10685echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10686if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688else
10689 cat >conftest.$ac_ext <<_ACEOF
10690/* confdefs.h. */
10691_ACEOF
10692cat confdefs.h >>conftest.$ac_ext
10693cat >>conftest.$ac_ext <<_ACEOF
10694/* end confdefs.h. */
10695/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10697#define _dyld_func_lookup innocuous__dyld_func_lookup
10698
10699/* System header to define __stub macros and hopefully few prototypes,
10700 which can conflict with char _dyld_func_lookup (); below.
10701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10702 <limits.h> exists even on freestanding compilers. */
10703
10704#ifdef __STDC__
10705# include <limits.h>
10706#else
10707# include <assert.h>
10708#endif
10709
10710#undef _dyld_func_lookup
10711
10712/* Override any GCC internal prototype to avoid an error.
10713 Use char because int might match the return type of a GCC
10714 builtin and then its argument prototype would still apply. */
10715#ifdef __cplusplus
10716extern "C"
10717#endif
10718char _dyld_func_lookup ();
10719/* The GNU C library defines this for functions which it implements
10720 to always fail with ENOSYS. Some functions are actually named
10721 something starting with __ and the normal name is an alias. */
10722#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10723choke me
10724#endif
10725
10726int
10727main ()
10728{
10729return _dyld_func_lookup ();
10730 ;
10731 return 0;
10732}
10733_ACEOF
10734rm -f conftest.$ac_objext conftest$ac_exeext
10735if { (ac_try="$ac_link"
10736case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10739esac
10740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_link") 2>conftest.er1
10742 ac_status=$?
10743 grep -v '^ *+' conftest.er1 >conftest.err
10744 rm -f conftest.er1
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010747 (exit $ac_status); } &&
10748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10749 { (case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10752esac
10753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_try") 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest$ac_exeext'
10759 { (case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10762esac
10763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_try") 2>&5
10765 ac_status=$?
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010768 ac_cv_func__dyld_func_lookup=yes
10769else
10770 echo "$as_me: failed program was:" >&5
10771sed 's/^/| /' conftest.$ac_ext >&5
10772
10773 ac_cv_func__dyld_func_lookup=no
10774fi
10775
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010776rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010777 conftest$ac_exeext conftest.$ac_ext
10778fi
10779{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10780echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10781if test $ac_cv_func__dyld_func_lookup = yes; then
10782
10783cat >>confdefs.h <<\_ACEOF
10784#define HAVE_DYLD 1
10785_ACEOF
10786
10787fi
10788
10789
10790fi
10791
10792
10793fi
10794
10795
10796fi
10797
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010798rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010799 conftest$ac_exeext conftest.$ac_ext
10800
10801fi
10802
10803
10804fi
10805
10806
10807fi
10808
10809
10810if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10811then
10812 lt_save_LIBS="$LIBS"
10813 LIBS="$LIBS $LIBADD_DL"
10814
10815for ac_func in dlerror
10816do
10817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10818{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10820if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822else
10823 cat >conftest.$ac_ext <<_ACEOF
10824/* confdefs.h. */
10825_ACEOF
10826cat confdefs.h >>conftest.$ac_ext
10827cat >>conftest.$ac_ext <<_ACEOF
10828/* end confdefs.h. */
10829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10831#define $ac_func innocuous_$ac_func
10832
10833/* System header to define __stub macros and hopefully few prototypes,
10834 which can conflict with char $ac_func (); below.
10835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10836 <limits.h> exists even on freestanding compilers. */
10837
10838#ifdef __STDC__
10839# include <limits.h>
10840#else
10841# include <assert.h>
10842#endif
10843
10844#undef $ac_func
10845
10846/* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10849#ifdef __cplusplus
10850extern "C"
10851#endif
10852char $ac_func ();
10853/* The GNU C library defines this for functions which it implements
10854 to always fail with ENOSYS. Some functions are actually named
10855 something starting with __ and the normal name is an alias. */
10856#if defined __stub_$ac_func || defined __stub___$ac_func
10857choke me
10858#endif
10859
10860int
10861main ()
10862{
10863return $ac_func ();
10864 ;
10865 return 0;
10866}
10867_ACEOF
10868rm -f conftest.$ac_objext conftest$ac_exeext
10869if { (ac_try="$ac_link"
10870case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873esac
10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_link") 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010881 (exit $ac_status); } &&
10882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10883 { (case "(($ac_try" in
10884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10886esac
10887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_try") 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest$ac_exeext'
10893 { (case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896esac
10897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_try") 2>&5
10899 ac_status=$?
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010902 eval "$as_ac_var=yes"
10903else
10904 echo "$as_me: failed program was:" >&5
10905sed 's/^/| /' conftest.$ac_ext >&5
10906
10907 eval "$as_ac_var=no"
10908fi
10909
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010910rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010911 conftest$ac_exeext conftest.$ac_ext
10912fi
10913ac_res=`eval echo '${'$as_ac_var'}'`
10914 { echo "$as_me:$LINENO: result: $ac_res" >&5
10915echo "${ECHO_T}$ac_res" >&6; }
10916if test `eval echo '${'$as_ac_var'}'` = yes; then
10917 cat >>confdefs.h <<_ACEOF
10918#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10919_ACEOF
10920
10921fi
10922done
10923
10924 LIBS="$lt_save_LIBS"
10925fi
10926ac_ext=c
10927ac_cpp='$CPP $CPPFLAGS'
10928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10930ac_compiler_gnu=$ac_cv_c_compiler_gnu
10931
10932
10933
10934{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10935echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10936if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938else
10939 ac_cv_sys_symbol_underscore=no
10940 cat > conftest.$ac_ext <<EOF
10941void nm_test_func(){}
10942int main(){nm_test_func;return 0;}
10943EOF
10944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945 (eval $ac_compile) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; then
10949 # Now try to grab the symbols.
10950 ac_nlist=conftest.nm
10951 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10952 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10953 ac_status=$?
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && test -s "$ac_nlist"; then
10956 # See whether the symbols have a leading underscore.
10957 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10958 ac_cv_sys_symbol_underscore=yes
10959 else
10960 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10961 :
10962 else
10963 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10964 fi
10965 fi
10966 else
10967 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10968 fi
10969 else
10970 echo "configure: failed program was:" >&5
10971 cat conftest.c >&5
10972 fi
10973 rm -rf conftest*
10974
10975fi
10976{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10977echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10978
10979
10980if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10981 if test x"$libltdl_cv_func_dlopen" = xyes ||
10982 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10983 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10984echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10985if test "${libltdl_cv_need_uscore+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10987else
10988 libltdl_cv_need_uscore=unknown
10989 save_LIBS="$LIBS"
10990 LIBS="$LIBS $LIBADD_DL"
10991 if test "$cross_compiling" = yes; then :
10992 libltdl_cv_need_uscore=cross
10993else
10994 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10995 lt_status=$lt_dlunknown
10996 cat > conftest.$ac_ext <<EOF
Nick Lewyckyd2813d02009-09-29 05:48:51 +000010997#line 10997 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010998#include "confdefs.h"
10999
11000#if HAVE_DLFCN_H
11001#include <dlfcn.h>
11002#endif
11003
11004#include <stdio.h>
11005
11006#ifdef RTLD_GLOBAL
11007# define LT_DLGLOBAL RTLD_GLOBAL
11008#else
11009# ifdef DL_GLOBAL
11010# define LT_DLGLOBAL DL_GLOBAL
11011# else
11012# define LT_DLGLOBAL 0
11013# endif
11014#endif
11015
11016/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11017 find out it does not work in some platform. */
11018#ifndef LT_DLLAZY_OR_NOW
11019# ifdef RTLD_LAZY
11020# define LT_DLLAZY_OR_NOW RTLD_LAZY
11021# else
11022# ifdef DL_LAZY
11023# define LT_DLLAZY_OR_NOW DL_LAZY
11024# else
11025# ifdef RTLD_NOW
11026# define LT_DLLAZY_OR_NOW RTLD_NOW
11027# else
11028# ifdef DL_NOW
11029# define LT_DLLAZY_OR_NOW DL_NOW
11030# else
11031# define LT_DLLAZY_OR_NOW 0
11032# endif
11033# endif
11034# endif
11035# endif
11036#endif
11037
11038#ifdef __cplusplus
11039extern "C" void exit (int);
11040#endif
11041
11042void fnord() { int i=42;}
11043int main ()
11044{
11045 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11046 int status = $lt_dlunknown;
11047
11048 if (self)
11049 {
11050 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11051 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11052 /* dlclose (self); */
11053 }
11054 else
11055 puts (dlerror ());
11056
11057 exit (status);
11058}
11059EOF
11060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061 (eval $ac_link) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11065 (./conftest; exit; ) >&5 2>/dev/null
11066 lt_status=$?
11067 case x$lt_status in
11068 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11069 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11070 x$lt_dlunknown|x*) ;;
11071 esac
11072 else :
11073 # compilation failed
11074
11075 fi
11076fi
11077rm -fr conftest*
11078
11079 LIBS="$save_LIBS"
11080
11081fi
11082{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11083echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11084 fi
11085fi
11086
11087if test x"$libltdl_cv_need_uscore" = xyes; then
11088
11089cat >>confdefs.h <<\_ACEOF
11090#define NEED_USCORE 1
11091_ACEOF
11092
11093fi
11094
11095
11096{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11097echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11098if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100else
11101 # PORTME does your system automatically load deplibs for dlopen?
11102 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11103 # For now, we just catch OSes we know something about -- in the
11104 # future, we'll try test this programmatically.
11105 libltdl_cv_sys_dlopen_deplibs=unknown
11106 case "$host_os" in
11107 aix3*|aix4.1.*|aix4.2.*)
11108 # Unknown whether this is true for these versions of AIX, but
11109 # we want this `case' here to explicitly catch those versions.
11110 libltdl_cv_sys_dlopen_deplibs=unknown
11111 ;;
11112 aix[45]*)
11113 libltdl_cv_sys_dlopen_deplibs=yes
11114 ;;
11115 darwin*)
11116 # Assuming the user has installed a libdl from somewhere, this is true
11117 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11118 libltdl_cv_sys_dlopen_deplibs=yes
11119 ;;
11120 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11121 # GNU and its variants, using gnu ld.so (Glibc)
11122 libltdl_cv_sys_dlopen_deplibs=yes
11123 ;;
11124 hpux10*|hpux11*)
11125 libltdl_cv_sys_dlopen_deplibs=yes
11126 ;;
11127 interix*)
11128 libltdl_cv_sys_dlopen_deplibs=yes
11129 ;;
11130 irix[12345]*|irix6.[01]*)
11131 # Catch all versions of IRIX before 6.2, and indicate that we don't
11132 # know how it worked for any of those versions.
11133 libltdl_cv_sys_dlopen_deplibs=unknown
11134 ;;
11135 irix*)
11136 # The case above catches anything before 6.2, and it's known that
11137 # at 6.2 and later dlopen does load deplibs.
11138 libltdl_cv_sys_dlopen_deplibs=yes
11139 ;;
11140 netbsd*)
11141 libltdl_cv_sys_dlopen_deplibs=yes
11142 ;;
11143 openbsd*)
11144 libltdl_cv_sys_dlopen_deplibs=yes
11145 ;;
11146 osf[1234]*)
11147 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11148 # it did *not* use an RPATH in a shared library to find objects the
11149 # library depends on, so we explictly say `no'.
11150 libltdl_cv_sys_dlopen_deplibs=no
11151 ;;
11152 osf5.0|osf5.0a|osf5.1)
11153 # dlopen *does* load deplibs and with the right loader patch applied
11154 # it even uses RPATH in a shared library to search for shared objects
11155 # that the library depends on, but there's no easy way to know if that
11156 # patch is installed. Since this is the case, all we can really
11157 # say is unknown -- it depends on the patch being installed. If
11158 # it is, this changes to `yes'. Without it, it would be `no'.
11159 libltdl_cv_sys_dlopen_deplibs=unknown
11160 ;;
11161 osf*)
11162 # the two cases above should catch all versions of osf <= 5.1. Read
11163 # the comments above for what we know about them.
11164 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11165 # is used to find them so we can finally say `yes'.
11166 libltdl_cv_sys_dlopen_deplibs=yes
11167 ;;
11168 solaris*)
11169 libltdl_cv_sys_dlopen_deplibs=yes
11170 ;;
11171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11172 libltdl_cv_sys_dlopen_deplibs=yes
11173 ;;
11174 esac
11175
11176fi
11177{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11178echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11179if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11180
11181cat >>confdefs.h <<\_ACEOF
11182#define LTDL_DLOPEN_DEPLIBS 1
11183_ACEOF
11184
11185fi
11186
11187
11188for ac_header in argz.h
11189do
11190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196fi
11197ac_res=`eval echo '${'$as_ac_Header'}'`
11198 { echo "$as_me:$LINENO: result: $ac_res" >&5
11199echo "${ECHO_T}$ac_res" >&6; }
11200else
11201 # Is the header compilable?
11202{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11203echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11204cat >conftest.$ac_ext <<_ACEOF
11205/* confdefs.h. */
11206_ACEOF
11207cat confdefs.h >>conftest.$ac_ext
11208cat >>conftest.$ac_ext <<_ACEOF
11209/* end confdefs.h. */
11210$ac_includes_default
11211#include <$ac_header>
11212_ACEOF
11213rm -f conftest.$ac_objext
11214if { (ac_try="$ac_compile"
11215case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218esac
11219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_compile") 2>conftest.er1
11221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011226 (exit $ac_status); } &&
11227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11228 { (case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231esac
11232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_try") 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
11238 { (case "(($ac_try" in
11239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11241esac
11242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11243 (eval "$ac_try") 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011247 ac_header_compiler=yes
11248else
11249 echo "$as_me: failed program was:" >&5
11250sed 's/^/| /' conftest.$ac_ext >&5
11251
11252 ac_header_compiler=no
11253fi
11254
11255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11257echo "${ECHO_T}$ac_header_compiler" >&6; }
11258
11259# Is the header present?
11260{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11261echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11262cat >conftest.$ac_ext <<_ACEOF
11263/* confdefs.h. */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h. */
11268#include <$ac_header>
11269_ACEOF
11270if { (ac_try="$ac_cpp conftest.$ac_ext"
11271case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274esac
11275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011282 (exit $ac_status); } >/dev/null; then
11283 if test -s conftest.err; then
11284 ac_cpp_err=$ac_c_preproc_warn_flag
11285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11286 else
11287 ac_cpp_err=
11288 fi
11289else
11290 ac_cpp_err=yes
11291fi
11292if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011293 ac_header_preproc=yes
11294else
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
11297
11298 ac_header_preproc=no
11299fi
11300
11301rm -f conftest.err conftest.$ac_ext
11302{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11303echo "${ECHO_T}$ac_header_preproc" >&6; }
11304
11305# So? What about this header?
11306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11307 yes:no: )
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11312 ac_header_preproc=yes
11313 ;;
11314 no:yes:* )
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11327 ( cat <<\_ASBOX
11328## ----------------------------------- ##
11329## Report this to llvmbugs@cs.uiuc.edu ##
11330## ----------------------------------- ##
11331_ASBOX
11332 ) | sed "s/^/$as_me: WARNING: /" >&2
11333 ;;
11334esac
11335{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11339else
11340 eval "$as_ac_Header=\$ac_header_preproc"
11341fi
11342ac_res=`eval echo '${'$as_ac_Header'}'`
11343 { echo "$as_me:$LINENO: result: $ac_res" >&5
11344echo "${ECHO_T}$ac_res" >&6; }
11345
11346fi
11347if test `eval echo '${'$as_ac_Header'}'` = yes; then
11348 cat >>confdefs.h <<_ACEOF
11349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11350_ACEOF
11351
11352fi
11353
11354done
11355
11356
11357{ echo "$as_me:$LINENO: checking for error_t" >&5
11358echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11359if test "${ac_cv_type_error_t+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361else
11362 cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
11368#if HAVE_ARGZ_H
11369# include <argz.h>
11370#endif
11371
11372typedef error_t ac__type_new_;
11373int
11374main ()
11375{
11376if ((ac__type_new_ *) 0)
11377 return 0;
11378if (sizeof (ac__type_new_))
11379 return 0;
11380 ;
11381 return 0;
11382}
11383_ACEOF
11384rm -f conftest.$ac_objext
11385if { (ac_try="$ac_compile"
11386case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389esac
11390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_compile") 2>conftest.er1
11392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011397 (exit $ac_status); } &&
11398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11399 { (case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11402esac
11403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404 (eval "$ac_try") 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11412esac
11413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_try") 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011418 ac_cv_type_error_t=yes
11419else
11420 echo "$as_me: failed program was:" >&5
11421sed 's/^/| /' conftest.$ac_ext >&5
11422
11423 ac_cv_type_error_t=no
11424fi
11425
11426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11427fi
11428{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11429echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11430if test $ac_cv_type_error_t = yes; then
11431
11432cat >>confdefs.h <<_ACEOF
11433#define HAVE_ERROR_T 1
11434_ACEOF
11435
11436
11437else
11438
11439cat >>confdefs.h <<\_ACEOF
11440#define error_t int
11441_ACEOF
11442
11443fi
11444
11445
11446
11447
11448
11449
11450
11451for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11452do
11453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11458else
11459 cat >conftest.$ac_ext <<_ACEOF
11460/* confdefs.h. */
11461_ACEOF
11462cat confdefs.h >>conftest.$ac_ext
11463cat >>conftest.$ac_ext <<_ACEOF
11464/* end confdefs.h. */
11465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11467#define $ac_func innocuous_$ac_func
11468
11469/* System header to define __stub macros and hopefully few prototypes,
11470 which can conflict with char $ac_func (); below.
11471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11472 <limits.h> exists even on freestanding compilers. */
11473
11474#ifdef __STDC__
11475# include <limits.h>
11476#else
11477# include <assert.h>
11478#endif
11479
11480#undef $ac_func
11481
11482/* Override any GCC internal prototype to avoid an error.
11483 Use char because int might match the return type of a GCC
11484 builtin and then its argument prototype would still apply. */
11485#ifdef __cplusplus
11486extern "C"
11487#endif
11488char $ac_func ();
11489/* The GNU C library defines this for functions which it implements
11490 to always fail with ENOSYS. Some functions are actually named
11491 something starting with __ and the normal name is an alias. */
11492#if defined __stub_$ac_func || defined __stub___$ac_func
11493choke me
11494#endif
11495
11496int
11497main ()
11498{
11499return $ac_func ();
11500 ;
11501 return 0;
11502}
11503_ACEOF
11504rm -f conftest.$ac_objext conftest$ac_exeext
11505if { (ac_try="$ac_link"
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_link") 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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +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_exeext'
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 eval "$as_ac_var=yes"
11539else
11540 echo "$as_me: failed program was:" >&5
11541sed 's/^/| /' conftest.$ac_ext >&5
11542
11543 eval "$as_ac_var=no"
11544fi
11545
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011546rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011547 conftest$ac_exeext conftest.$ac_ext
11548fi
11549ac_res=`eval echo '${'$as_ac_var'}'`
11550 { echo "$as_me:$LINENO: result: $ac_res" >&5
11551echo "${ECHO_T}$ac_res" >&6; }
11552if test `eval echo '${'$as_ac_var'}'` = yes; then
11553 cat >>confdefs.h <<_ACEOF
11554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11555_ACEOF
11556
11557fi
11558done
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11588 stdio.h unistd.h
11589do
11590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596fi
11597ac_res=`eval echo '${'$as_ac_Header'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599echo "${ECHO_T}$ac_res" >&6; }
11600else
11601 # Is the header compilable?
11602{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11604cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610$ac_includes_default
11611#include <$ac_header>
11612_ACEOF
11613rm -f conftest.$ac_objext
11614if { (ac_try="$ac_compile"
11615case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618esac
11619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_compile") 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011647 ac_header_compiler=yes
11648else
11649 echo "$as_me: failed program was:" >&5
11650sed 's/^/| /' conftest.$ac_ext >&5
11651
11652 ac_header_compiler=no
11653fi
11654
11655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11657echo "${ECHO_T}$ac_header_compiler" >&6; }
11658
11659# Is the header present?
11660{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11662cat >conftest.$ac_ext <<_ACEOF
11663/* confdefs.h. */
11664_ACEOF
11665cat confdefs.h >>conftest.$ac_ext
11666cat >>conftest.$ac_ext <<_ACEOF
11667/* end confdefs.h. */
11668#include <$ac_header>
11669_ACEOF
11670if { (ac_try="$ac_cpp conftest.$ac_ext"
11671case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674esac
11675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011682 (exit $ac_status); } >/dev/null; then
11683 if test -s conftest.err; then
11684 ac_cpp_err=$ac_c_preproc_warn_flag
11685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11686 else
11687 ac_cpp_err=
11688 fi
11689else
11690 ac_cpp_err=yes
11691fi
11692if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011693 ac_header_preproc=yes
11694else
11695 echo "$as_me: failed program was:" >&5
11696sed 's/^/| /' conftest.$ac_ext >&5
11697
11698 ac_header_preproc=no
11699fi
11700
11701rm -f conftest.err conftest.$ac_ext
11702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11703echo "${ECHO_T}$ac_header_preproc" >&6; }
11704
11705# So? What about this header?
11706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11707 yes:no: )
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11712 ac_header_preproc=yes
11713 ;;
11714 no:yes:* )
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11727 ( cat <<\_ASBOX
11728## ----------------------------------- ##
11729## Report this to llvmbugs@cs.uiuc.edu ##
11730## ----------------------------------- ##
11731_ASBOX
11732 ) | sed "s/^/$as_me: WARNING: /" >&2
11733 ;;
11734esac
11735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740 eval "$as_ac_Header=\$ac_header_preproc"
11741fi
11742ac_res=`eval echo '${'$as_ac_Header'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744echo "${ECHO_T}$ac_res" >&6; }
11745
11746fi
11747if test `eval echo '${'$as_ac_Header'}'` = yes; then
11748 cat >>confdefs.h <<_ACEOF
11749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11750_ACEOF
11751
11752fi
11753
11754done
11755
11756
11757
11758
11759
11760for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11761do
11762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768fi
11769ac_res=`eval echo '${'$as_ac_Header'}'`
11770 { echo "$as_me:$LINENO: result: $ac_res" >&5
11771echo "${ECHO_T}$ac_res" >&6; }
11772else
11773 # Is the header compilable?
11774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11776cat >conftest.$ac_ext <<_ACEOF
11777/* confdefs.h. */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h. */
11782$ac_includes_default
11783#include <$ac_header>
11784_ACEOF
11785rm -f conftest.$ac_objext
11786if { (ac_try="$ac_compile"
11787case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_compile") 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11800 { (case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_try") 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; } &&
11809 { ac_try='test -s conftest.$ac_objext'
11810 { (case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813esac
11814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_try") 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011819 ac_header_compiler=yes
11820else
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ac_header_compiler=no
11825fi
11826
11827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11829echo "${ECHO_T}$ac_header_compiler" >&6; }
11830
11831# Is the header present?
11832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11834cat >conftest.$ac_ext <<_ACEOF
11835/* confdefs.h. */
11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h. */
11840#include <$ac_header>
11841_ACEOF
11842if { (ac_try="$ac_cpp conftest.$ac_ext"
11843case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846esac
11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011854 (exit $ac_status); } >/dev/null; then
11855 if test -s conftest.err; then
11856 ac_cpp_err=$ac_c_preproc_warn_flag
11857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11858 else
11859 ac_cpp_err=
11860 fi
11861else
11862 ac_cpp_err=yes
11863fi
11864if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011865 ac_header_preproc=yes
11866else
11867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870 ac_header_preproc=no
11871fi
11872
11873rm -f conftest.err conftest.$ac_ext
11874{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11875echo "${ECHO_T}$ac_header_preproc" >&6; }
11876
11877# So? What about this header?
11878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11879 yes:no: )
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11884 ac_header_preproc=yes
11885 ;;
11886 no:yes:* )
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11899 ( cat <<\_ASBOX
11900## ----------------------------------- ##
11901## Report this to llvmbugs@cs.uiuc.edu ##
11902## ----------------------------------- ##
11903_ASBOX
11904 ) | sed "s/^/$as_me: WARNING: /" >&2
11905 ;;
11906esac
11907{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11910 echo $ECHO_N "(cached) $ECHO_C" >&6
11911else
11912 eval "$as_ac_Header=\$ac_header_preproc"
11913fi
11914ac_res=`eval echo '${'$as_ac_Header'}'`
11915 { echo "$as_me:$LINENO: result: $ac_res" >&5
11916echo "${ECHO_T}$ac_res" >&6; }
11917
11918fi
11919if test `eval echo '${'$as_ac_Header'}'` = yes; then
11920 cat >>confdefs.h <<_ACEOF
11921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11922_ACEOF
11923
11924fi
11925
11926done
11927
11928
11929
11930for ac_header in string.h strings.h
11931do
11932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938fi
11939ac_res=`eval echo '${'$as_ac_Header'}'`
11940 { echo "$as_me:$LINENO: result: $ac_res" >&5
11941echo "${ECHO_T}$ac_res" >&6; }
11942else
11943 # Is the header compilable?
11944{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11946cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
11952$ac_includes_default
11953#include <$ac_header>
11954_ACEOF
11955rm -f conftest.$ac_objext
11956if { (ac_try="$ac_compile"
11957case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960esac
11961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_compile") 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011968 (exit $ac_status); } &&
11969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973esac
11974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_try") 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_try") 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011989 ac_header_compiler=yes
11990else
11991 echo "$as_me: failed program was:" >&5
11992sed 's/^/| /' conftest.$ac_ext >&5
11993
11994 ac_header_compiler=no
11995fi
11996
11997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11999echo "${ECHO_T}$ac_header_compiler" >&6; }
12000
12001# Is the header present?
12002{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12003echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12004cat >conftest.$ac_ext <<_ACEOF
12005/* confdefs.h. */
12006_ACEOF
12007cat confdefs.h >>conftest.$ac_ext
12008cat >>conftest.$ac_ext <<_ACEOF
12009/* end confdefs.h. */
12010#include <$ac_header>
12011_ACEOF
12012if { (ac_try="$ac_cpp conftest.$ac_ext"
12013case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012024 (exit $ac_status); } >/dev/null; then
12025 if test -s conftest.err; then
12026 ac_cpp_err=$ac_c_preproc_warn_flag
12027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12028 else
12029 ac_cpp_err=
12030 fi
12031else
12032 ac_cpp_err=yes
12033fi
12034if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012035 ac_header_preproc=yes
12036else
12037 echo "$as_me: failed program was:" >&5
12038sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 ac_header_preproc=no
12041fi
12042
12043rm -f conftest.err conftest.$ac_ext
12044{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12045echo "${ECHO_T}$ac_header_preproc" >&6; }
12046
12047# So? What about this header?
12048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12049 yes:no: )
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12054 ac_header_preproc=yes
12055 ;;
12056 no:yes:* )
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12060echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12064echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12069 ( cat <<\_ASBOX
12070## ----------------------------------- ##
12071## Report this to llvmbugs@cs.uiuc.edu ##
12072## ----------------------------------- ##
12073_ASBOX
12074 ) | sed "s/^/$as_me: WARNING: /" >&2
12075 ;;
12076esac
12077{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12081else
12082 eval "$as_ac_Header=\$ac_header_preproc"
12083fi
12084ac_res=`eval echo '${'$as_ac_Header'}'`
12085 { echo "$as_me:$LINENO: result: $ac_res" >&5
12086echo "${ECHO_T}$ac_res" >&6; }
12087
12088fi
12089if test `eval echo '${'$as_ac_Header'}'` = yes; then
12090 cat >>confdefs.h <<_ACEOF
12091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12092_ACEOF
12093 break
12094fi
12095
12096done
12097
12098
12099
12100
12101for ac_func in strchr index
12102do
12103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12104{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12106if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108else
12109 cat >conftest.$ac_ext <<_ACEOF
12110/* confdefs.h. */
12111_ACEOF
12112cat confdefs.h >>conftest.$ac_ext
12113cat >>conftest.$ac_ext <<_ACEOF
12114/* end confdefs.h. */
12115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12117#define $ac_func innocuous_$ac_func
12118
12119/* System header to define __stub macros and hopefully few prototypes,
12120 which can conflict with char $ac_func (); below.
12121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122 <limits.h> exists even on freestanding compilers. */
12123
12124#ifdef __STDC__
12125# include <limits.h>
12126#else
12127# include <assert.h>
12128#endif
12129
12130#undef $ac_func
12131
12132/* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12135#ifdef __cplusplus
12136extern "C"
12137#endif
12138char $ac_func ();
12139/* The GNU C library defines this for functions which it implements
12140 to always fail with ENOSYS. Some functions are actually named
12141 something starting with __ and the normal name is an alias. */
12142#if defined __stub_$ac_func || defined __stub___$ac_func
12143choke me
12144#endif
12145
12146int
12147main ()
12148{
12149return $ac_func ();
12150 ;
12151 return 0;
12152}
12153_ACEOF
12154rm -f conftest.$ac_objext conftest$ac_exeext
12155if { (ac_try="$ac_link"
12156case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12159esac
12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_link") 2>conftest.er1
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169 { (case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12172esac
12173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_try") 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest$ac_exeext'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12182esac
12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012188 eval "$as_ac_var=yes"
12189else
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193 eval "$as_ac_var=no"
12194fi
12195
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012196rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012197 conftest$ac_exeext conftest.$ac_ext
12198fi
12199ac_res=`eval echo '${'$as_ac_var'}'`
12200 { echo "$as_me:$LINENO: result: $ac_res" >&5
12201echo "${ECHO_T}$ac_res" >&6; }
12202if test `eval echo '${'$as_ac_var'}'` = yes; then
12203 cat >>confdefs.h <<_ACEOF
12204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12205_ACEOF
12206 break
12207fi
12208done
12209
12210
12211
12212for ac_func in strrchr rindex
12213do
12214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12215{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12217if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12219else
12220 cat >conftest.$ac_ext <<_ACEOF
12221/* confdefs.h. */
12222_ACEOF
12223cat confdefs.h >>conftest.$ac_ext
12224cat >>conftest.$ac_ext <<_ACEOF
12225/* end confdefs.h. */
12226/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12228#define $ac_func innocuous_$ac_func
12229
12230/* System header to define __stub macros and hopefully few prototypes,
12231 which can conflict with char $ac_func (); below.
12232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12233 <limits.h> exists even on freestanding compilers. */
12234
12235#ifdef __STDC__
12236# include <limits.h>
12237#else
12238# include <assert.h>
12239#endif
12240
12241#undef $ac_func
12242
12243/* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12246#ifdef __cplusplus
12247extern "C"
12248#endif
12249char $ac_func ();
12250/* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253#if defined __stub_$ac_func || defined __stub___$ac_func
12254choke me
12255#endif
12256
12257int
12258main ()
12259{
12260return $ac_func ();
12261 ;
12262 return 0;
12263}
12264_ACEOF
12265rm -f conftest.$ac_objext conftest$ac_exeext
12266if { (ac_try="$ac_link"
12267case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12270esac
12271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280 { (case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12283esac
12284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_try") 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest$ac_exeext'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293esac
12294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012299 eval "$as_ac_var=yes"
12300else
12301 echo "$as_me: failed program was:" >&5
12302sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 eval "$as_ac_var=no"
12305fi
12306
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012307rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012308 conftest$ac_exeext conftest.$ac_ext
12309fi
12310ac_res=`eval echo '${'$as_ac_var'}'`
12311 { echo "$as_me:$LINENO: result: $ac_res" >&5
12312echo "${ECHO_T}$ac_res" >&6; }
12313if test `eval echo '${'$as_ac_var'}'` = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12316_ACEOF
12317 break
12318fi
12319done
12320
12321
12322
12323for ac_func in memcpy bcopy
12324do
12325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12326{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330else
12331 cat >conftest.$ac_ext <<_ACEOF
12332/* confdefs.h. */
12333_ACEOF
12334cat confdefs.h >>conftest.$ac_ext
12335cat >>conftest.$ac_ext <<_ACEOF
12336/* end confdefs.h. */
12337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12339#define $ac_func innocuous_$ac_func
12340
12341/* System header to define __stub macros and hopefully few prototypes,
12342 which can conflict with char $ac_func (); below.
12343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12344 <limits.h> exists even on freestanding compilers. */
12345
12346#ifdef __STDC__
12347# include <limits.h>
12348#else
12349# include <assert.h>
12350#endif
12351
12352#undef $ac_func
12353
12354/* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
12357#ifdef __cplusplus
12358extern "C"
12359#endif
12360char $ac_func ();
12361/* The GNU C library defines this for functions which it implements
12362 to always fail with ENOSYS. Some functions are actually named
12363 something starting with __ and the normal name is an alias. */
12364#if defined __stub_$ac_func || defined __stub___$ac_func
12365choke me
12366#endif
12367
12368int
12369main ()
12370{
12371return $ac_func ();
12372 ;
12373 return 0;
12374}
12375_ACEOF
12376rm -f conftest.$ac_objext conftest$ac_exeext
12377if { (ac_try="$ac_link"
12378case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12381esac
12382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_link") 2>conftest.er1
12384 ac_status=$?
12385 grep -v '^ *+' conftest.er1 >conftest.err
12386 rm -f conftest.er1
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391 { (case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394esac
12395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_try") 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12404esac
12405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_try") 2>&5
12407 ac_status=$?
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012410 eval "$as_ac_var=yes"
12411else
12412 echo "$as_me: failed program was:" >&5
12413sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 eval "$as_ac_var=no"
12416fi
12417
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012418rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012419 conftest$ac_exeext conftest.$ac_ext
12420fi
12421ac_res=`eval echo '${'$as_ac_var'}'`
12422 { echo "$as_me:$LINENO: result: $ac_res" >&5
12423echo "${ECHO_T}$ac_res" >&6; }
12424if test `eval echo '${'$as_ac_var'}'` = yes; then
12425 cat >>confdefs.h <<_ACEOF
12426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12427_ACEOF
12428 break
12429fi
12430done
12431
12432
12433
12434for ac_func in memmove strcmp
12435do
12436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12437{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12439if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12441else
12442 cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12450#define $ac_func innocuous_$ac_func
12451
12452/* System header to define __stub macros and hopefully few prototypes,
12453 which can conflict with char $ac_func (); below.
12454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455 <limits.h> exists even on freestanding compilers. */
12456
12457#ifdef __STDC__
12458# include <limits.h>
12459#else
12460# include <assert.h>
12461#endif
12462
12463#undef $ac_func
12464
12465/* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
12468#ifdef __cplusplus
12469extern "C"
12470#endif
12471char $ac_func ();
12472/* The GNU C library defines this for functions which it implements
12473 to always fail with ENOSYS. Some functions are actually named
12474 something starting with __ and the normal name is an alias. */
12475#if defined __stub_$ac_func || defined __stub___$ac_func
12476choke me
12477#endif
12478
12479int
12480main ()
12481{
12482return $ac_func ();
12483 ;
12484 return 0;
12485}
12486_ACEOF
12487rm -f conftest.$ac_objext conftest$ac_exeext
12488if { (ac_try="$ac_link"
12489case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12492esac
12493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_link") 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502 { (case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505esac
12506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_try") 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12515esac
12516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_try") 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012521 eval "$as_ac_var=yes"
12522else
12523 echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
12526 eval "$as_ac_var=no"
12527fi
12528
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012529rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012530 conftest$ac_exeext conftest.$ac_ext
12531fi
12532ac_res=`eval echo '${'$as_ac_var'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534echo "${ECHO_T}$ac_res" >&6; }
12535if test `eval echo '${'$as_ac_var'}'` = yes; then
12536 cat >>confdefs.h <<_ACEOF
12537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12538_ACEOF
12539
12540fi
12541done
12542
12543
12544
12545
12546for ac_func in closedir opendir readdir
12547do
12548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12549{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12551if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554 cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12562#define $ac_func innocuous_$ac_func
12563
12564/* System header to define __stub macros and hopefully few prototypes,
12565 which can conflict with char $ac_func (); below.
12566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12567 <limits.h> exists even on freestanding compilers. */
12568
12569#ifdef __STDC__
12570# include <limits.h>
12571#else
12572# include <assert.h>
12573#endif
12574
12575#undef $ac_func
12576
12577/* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12580#ifdef __cplusplus
12581extern "C"
12582#endif
12583char $ac_func ();
12584/* The GNU C library defines this for functions which it implements
12585 to always fail with ENOSYS. Some functions are actually named
12586 something starting with __ and the normal name is an alias. */
12587#if defined __stub_$ac_func || defined __stub___$ac_func
12588choke me
12589#endif
12590
12591int
12592main ()
12593{
12594return $ac_func ();
12595 ;
12596 return 0;
12597}
12598_ACEOF
12599rm -f conftest.$ac_objext conftest$ac_exeext
12600if { (ac_try="$ac_link"
12601case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_link") 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12614 { (case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617esac
12618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619 (eval "$ac_try") 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; } &&
12623 { ac_try='test -s conftest$ac_exeext'
12624 { (case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12627esac
12628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_try") 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012633 eval "$as_ac_var=yes"
12634else
12635 echo "$as_me: failed program was:" >&5
12636sed 's/^/| /' conftest.$ac_ext >&5
12637
12638 eval "$as_ac_var=no"
12639fi
12640
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012641rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012642 conftest$ac_exeext conftest.$ac_ext
12643fi
12644ac_res=`eval echo '${'$as_ac_var'}'`
12645 { echo "$as_me:$LINENO: result: $ac_res" >&5
12646echo "${ECHO_T}$ac_res" >&6; }
12647if test `eval echo '${'$as_ac_var'}'` = yes; then
12648 cat >>confdefs.h <<_ACEOF
12649#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12650_ACEOF
12651
12652fi
12653done
12654
12655
12656# Check whether --enable-shared was given.
12657if test "${enable_shared+set}" = set; then
12658 enableval=$enable_shared; p=${PACKAGE-default}
12659 case $enableval in
12660 yes) enable_shared=yes ;;
12661 no) enable_shared=no ;;
12662 *)
12663 enable_shared=no
12664 # Look at the argument we got. We use all the common list separators.
12665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12666 for pkg in $enableval; do
12667 IFS="$lt_save_ifs"
12668 if test "X$pkg" = "X$p"; then
12669 enable_shared=yes
12670 fi
12671 done
12672 IFS="$lt_save_ifs"
12673 ;;
12674 esac
12675else
12676 enable_shared=yes
12677fi
12678
12679
12680# Check whether --enable-static was given.
12681if test "${enable_static+set}" = set; then
12682 enableval=$enable_static; p=${PACKAGE-default}
12683 case $enableval in
12684 yes) enable_static=yes ;;
12685 no) enable_static=no ;;
12686 *)
12687 enable_static=no
12688 # Look at the argument we got. We use all the common list separators.
12689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12690 for pkg in $enableval; do
12691 IFS="$lt_save_ifs"
12692 if test "X$pkg" = "X$p"; then
12693 enable_static=yes
12694 fi
12695 done
12696 IFS="$lt_save_ifs"
12697 ;;
12698 esac
12699else
12700 enable_static=yes
12701fi
12702
12703
12704# Check whether --enable-fast-install was given.
12705if test "${enable_fast_install+set}" = set; then
12706 enableval=$enable_fast_install; p=${PACKAGE-default}
12707 case $enableval in
12708 yes) enable_fast_install=yes ;;
12709 no) enable_fast_install=no ;;
12710 *)
12711 enable_fast_install=no
12712 # Look at the argument we got. We use all the common list separators.
12713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12714 for pkg in $enableval; do
12715 IFS="$lt_save_ifs"
12716 if test "X$pkg" = "X$p"; then
12717 enable_fast_install=yes
12718 fi
12719 done
12720 IFS="$lt_save_ifs"
12721 ;;
12722 esac
12723else
12724 enable_fast_install=yes
12725fi
12726
12727
12728{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12729echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12730if test "${lt_cv_path_SED+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732else
12733 # Loop through the user's path and test for sed and gsed.
12734# Then use that list of sed's as ones to test for truncation.
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for lt_ac_prog in sed gsed; do
12741 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12743 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12744 fi
12745 done
12746 done
12747done
12748lt_ac_max=0
12749lt_ac_count=0
12750# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12751# along with /bin/sed that truncates output.
12752for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12753 test ! -f $lt_ac_sed && continue
12754 cat /dev/null > conftest.in
12755 lt_ac_count=0
12756 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12757 # Check for GNU sed and select it if it is found.
12758 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12759 lt_cv_path_SED=$lt_ac_sed
12760 break
12761 fi
12762 while true; do
12763 cat conftest.in conftest.in >conftest.tmp
12764 mv conftest.tmp conftest.in
12765 cp conftest.in conftest.nl
12766 echo >>conftest.nl
12767 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12768 cmp -s conftest.out conftest.nl || break
12769 # 10000 chars as input seems more than enough
12770 test $lt_ac_count -gt 10 && break
12771 lt_ac_count=`expr $lt_ac_count + 1`
12772 if test $lt_ac_count -gt $lt_ac_max; then
12773 lt_ac_max=$lt_ac_count
12774 lt_cv_path_SED=$lt_ac_sed
12775 fi
12776 done
12777done
12778
12779fi
12780
12781SED=$lt_cv_path_SED
12782{ echo "$as_me:$LINENO: result: $SED" >&5
12783echo "${ECHO_T}$SED" >&6; }
12784
12785
12786# Check whether --with-gnu-ld was given.
12787if test "${with_gnu_ld+set}" = set; then
12788 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12789else
12790 with_gnu_ld=no
12791fi
12792
12793ac_prog=ld
12794if test "$GCC" = yes; then
12795 # Check if gcc -print-prog-name=ld gives a path.
12796 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12797echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12798 case $host in
12799 *-*-mingw*)
12800 # gcc leaves a trailing carriage return which upsets mingw
12801 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12802 *)
12803 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12804 esac
12805 case $ac_prog in
12806 # Accept absolute paths.
12807 [\\/]* | ?:[\\/]*)
12808 re_direlt='/[^/][^/]*/\.\./'
12809 # Canonicalize the pathname of ld
12810 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12811 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12812 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12813 done
12814 test -z "$LD" && LD="$ac_prog"
12815 ;;
12816 "")
12817 # If it fails, then pretend we aren't using GCC.
12818 ac_prog=ld
12819 ;;
12820 *)
12821 # If it is relative, then search for the first ld in PATH.
12822 with_gnu_ld=unknown
12823 ;;
12824 esac
12825elif test "$with_gnu_ld" = yes; then
12826 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12827echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12828else
12829 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12830echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12831fi
12832if test "${lt_cv_path_LD+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834else
12835 if test -z "$LD"; then
12836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12837 for ac_dir in $PATH; do
12838 IFS="$lt_save_ifs"
12839 test -z "$ac_dir" && ac_dir=.
12840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12841 lt_cv_path_LD="$ac_dir/$ac_prog"
12842 # Check to see if the program is GNU ld. I'd rather use --version,
12843 # but apparently some variants of GNU ld only accept -v.
12844 # Break only if it was the GNU/non-GNU ld that we prefer.
12845 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12846 *GNU* | *'with BFD'*)
12847 test "$with_gnu_ld" != no && break
12848 ;;
12849 *)
12850 test "$with_gnu_ld" != yes && break
12851 ;;
12852 esac
12853 fi
12854 done
12855 IFS="$lt_save_ifs"
12856else
12857 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12858fi
12859fi
12860
12861LD="$lt_cv_path_LD"
12862if test -n "$LD"; then
12863 { echo "$as_me:$LINENO: result: $LD" >&5
12864echo "${ECHO_T}$LD" >&6; }
12865else
12866 { echo "$as_me:$LINENO: result: no" >&5
12867echo "${ECHO_T}no" >&6; }
12868fi
12869test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12870echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12871 { (exit 1); exit 1; }; }
12872{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12873echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12874if test "${lt_cv_prog_gnu_ld+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12876else
12877 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12878case `$LD -v 2>&1 </dev/null` in
12879*GNU* | *'with BFD'*)
12880 lt_cv_prog_gnu_ld=yes
12881 ;;
12882*)
12883 lt_cv_prog_gnu_ld=no
12884 ;;
12885esac
12886fi
12887{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12888echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12889with_gnu_ld=$lt_cv_prog_gnu_ld
12890
12891
12892{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12893echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12894if test "${lt_cv_ld_reload_flag+set}" = set; then
12895 echo $ECHO_N "(cached) $ECHO_C" >&6
12896else
12897 lt_cv_ld_reload_flag='-r'
12898fi
12899{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12900echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12901reload_flag=$lt_cv_ld_reload_flag
12902case $reload_flag in
12903"" | " "*) ;;
12904*) reload_flag=" $reload_flag" ;;
12905esac
12906reload_cmds='$LD$reload_flag -o $output$reload_objs'
12907case $host_os in
12908 darwin*)
12909 if test "$GCC" = yes; then
12910 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12911 else
12912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12913 fi
12914 ;;
12915esac
12916
12917{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12918echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12919if test "${lt_cv_deplibs_check_method+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12921else
12922 lt_cv_file_magic_cmd='$MAGIC_CMD'
12923lt_cv_file_magic_test_file=
12924lt_cv_deplibs_check_method='unknown'
12925# Need to set the preceding variable on all platforms that support
12926# interlibrary dependencies.
12927# 'none' -- dependencies not supported.
12928# `unknown' -- same as none, but documents that we really don't know.
12929# 'pass_all' -- all dependencies passed with no checks.
12930# 'test_compile' -- check by making test program.
12931# 'file_magic [[regex]]' -- check by looking for files in library path
12932# which responds to the $file_magic_cmd with a given extended regex.
12933# If you have `file' or equivalent on your system and you're not sure
12934# whether `pass_all' will *always* work, you probably want this one.
12935
12936case $host_os in
12937aix4* | aix5*)
12938 lt_cv_deplibs_check_method=pass_all
12939 ;;
12940
12941beos*)
12942 lt_cv_deplibs_check_method=pass_all
12943 ;;
12944
12945bsdi[45]*)
12946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12947 lt_cv_file_magic_cmd='/usr/bin/file -L'
12948 lt_cv_file_magic_test_file=/shlib/libc.so
12949 ;;
12950
12951cygwin*)
12952 # func_win32_libid is a shell function defined in ltmain.sh
12953 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12954 lt_cv_file_magic_cmd='func_win32_libid'
12955 ;;
12956
12957mingw* | pw32*)
12958 # Base MSYS/MinGW do not provide the 'file' command needed by
12959 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12960 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12961 lt_cv_file_magic_cmd='$OBJDUMP -f'
12962 ;;
12963
12964darwin* | rhapsody*)
12965 lt_cv_deplibs_check_method=pass_all
12966 ;;
12967
12968freebsd* | kfreebsd*-gnu | dragonfly*)
12969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12970 case $host_cpu in
12971 i*86 )
12972 # Not sure whether the presence of OpenBSD here was a mistake.
12973 # Let's accept both of them until this is cleared up.
12974 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12975 lt_cv_file_magic_cmd=/usr/bin/file
12976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12977 ;;
12978 esac
12979 else
12980 lt_cv_deplibs_check_method=pass_all
12981 fi
12982 ;;
12983
12984gnu*)
12985 lt_cv_deplibs_check_method=pass_all
12986 ;;
12987
12988hpux10.20* | hpux11*)
12989 lt_cv_file_magic_cmd=/usr/bin/file
12990 case $host_cpu in
12991 ia64*)
12992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12993 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12994 ;;
12995 hppa*64*)
12996 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]'
12997 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12998 ;;
12999 *)
13000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
13001 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13002 ;;
13003 esac
13004 ;;
13005
13006interix3*)
13007 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13009 ;;
13010
13011irix5* | irix6* | nonstopux*)
13012 case $LD in
13013 *-32|*"-32 ") libmagic=32-bit;;
13014 *-n32|*"-n32 ") libmagic=N32;;
13015 *-64|*"-64 ") libmagic=64-bit;;
13016 *) libmagic=never-match;;
13017 esac
13018 lt_cv_deplibs_check_method=pass_all
13019 ;;
13020
13021# This must be Linux ELF.
13022linux*)
13023 lt_cv_deplibs_check_method=pass_all
13024 ;;
13025
13026netbsd*)
13027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13029 else
13030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13031 fi
13032 ;;
13033
13034newos6*)
13035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13036 lt_cv_file_magic_cmd=/usr/bin/file
13037 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13038 ;;
13039
13040nto-qnx*)
13041 lt_cv_deplibs_check_method=unknown
13042 ;;
13043
13044openbsd*)
13045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13047 else
13048 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13049 fi
13050 ;;
13051
13052osf3* | osf4* | osf5*)
13053 lt_cv_deplibs_check_method=pass_all
13054 ;;
13055
13056solaris*)
13057 lt_cv_deplibs_check_method=pass_all
13058 ;;
13059
13060sysv4 | sysv4.3*)
13061 case $host_vendor in
13062 motorola)
13063 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]'
13064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13065 ;;
13066 ncr)
13067 lt_cv_deplibs_check_method=pass_all
13068 ;;
13069 sequent)
13070 lt_cv_file_magic_cmd='/bin/file'
13071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13072 ;;
13073 sni)
13074 lt_cv_file_magic_cmd='/bin/file'
13075 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13076 lt_cv_file_magic_test_file=/lib/libc.so
13077 ;;
13078 siemens)
13079 lt_cv_deplibs_check_method=pass_all
13080 ;;
13081 pc)
13082 lt_cv_deplibs_check_method=pass_all
13083 ;;
13084 esac
13085 ;;
13086
13087sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13088 lt_cv_deplibs_check_method=pass_all
13089 ;;
13090esac
13091
13092fi
13093{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13094echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13095file_magic_cmd=$lt_cv_file_magic_cmd
13096deplibs_check_method=$lt_cv_deplibs_check_method
13097test -z "$deplibs_check_method" && deplibs_check_method=unknown
13098
13099
13100
13101# If no C compiler was specified, use CC.
13102LTCC=${LTCC-"$CC"}
13103
13104# If no C compiler flags were specified, use CFLAGS.
13105LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13106
13107# Allow CC to be a program name with arguments.
13108compiler=$CC
13109
13110# Check whether --enable-libtool-lock was given.
13111if test "${enable_libtool_lock+set}" = set; then
13112 enableval=$enable_libtool_lock;
13113fi
13114
13115test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13116
13117# Some flags need to be propagated to the compiler or linker for good
13118# libtool support.
13119case $host in
13120ia64-*-hpux*)
13121 # Find out which ABI we are using.
13122 echo 'int i;' > conftest.$ac_ext
13123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13124 (eval $ac_compile) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; then
13128 case `/usr/bin/file conftest.$ac_objext` in
13129 *ELF-32*)
13130 HPUX_IA64_MODE="32"
13131 ;;
13132 *ELF-64*)
13133 HPUX_IA64_MODE="64"
13134 ;;
13135 esac
13136 fi
13137 rm -rf conftest*
13138 ;;
13139*-*-irix6*)
13140 # Find out which ABI we are using.
Nick Lewyckyd2813d02009-09-29 05:48:51 +000013141 echo '#line 13141 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13143 (eval $ac_compile) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; then
13147 if test "$lt_cv_prog_gnu_ld" = yes; then
13148 case `/usr/bin/file conftest.$ac_objext` in
13149 *32-bit*)
13150 LD="${LD-ld} -melf32bsmip"
13151 ;;
13152 *N32*)
13153 LD="${LD-ld} -melf32bmipn32"
13154 ;;
13155 *64-bit*)
13156 LD="${LD-ld} -melf64bmip"
13157 ;;
13158 esac
13159 else
13160 case `/usr/bin/file conftest.$ac_objext` in
13161 *32-bit*)
13162 LD="${LD-ld} -32"
13163 ;;
13164 *N32*)
13165 LD="${LD-ld} -n32"
13166 ;;
13167 *64-bit*)
13168 LD="${LD-ld} -64"
13169 ;;
13170 esac
13171 fi
13172 fi
13173 rm -rf conftest*
13174 ;;
13175
13176x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13177 # Find out which ABI we are using.
13178 echo 'int i;' > conftest.$ac_ext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13180 (eval $ac_compile) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; then
13184 case `/usr/bin/file conftest.o` in
13185 *32-bit*)
13186 case $host in
13187 x86_64-*linux*)
13188 LD="${LD-ld} -m elf_i386"
13189 ;;
13190 ppc64-*linux*|powerpc64-*linux*)
13191 LD="${LD-ld} -m elf32ppclinux"
13192 ;;
13193 s390x-*linux*)
13194 LD="${LD-ld} -m elf_s390"
13195 ;;
13196 sparc64-*linux*)
13197 LD="${LD-ld} -m elf32_sparc"
13198 ;;
13199 esac
13200 ;;
13201 *64-bit*)
13202 case $host in
13203 x86_64-*linux*)
13204 LD="${LD-ld} -m elf_x86_64"
13205 ;;
13206 ppc*-*linux*|powerpc*-*linux*)
13207 LD="${LD-ld} -m elf64ppc"
13208 ;;
13209 s390*-*linux*)
13210 LD="${LD-ld} -m elf64_s390"
13211 ;;
13212 sparc*-*linux*)
13213 LD="${LD-ld} -m elf64_sparc"
13214 ;;
13215 esac
13216 ;;
13217 esac
13218 fi
13219 rm -rf conftest*
13220 ;;
13221
13222*-*-sco3.2v5*)
13223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13224 SAVE_CFLAGS="$CFLAGS"
13225 CFLAGS="$CFLAGS -belf"
13226 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13227echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13228if test "${lt_cv_cc_needs_belf+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13230else
13231 ac_ext=c
13232ac_cpp='$CPP $CPPFLAGS'
13233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235ac_compiler_gnu=$ac_cv_c_compiler_gnu
13236
13237 cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h. */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h. */
13243
13244int
13245main ()
13246{
13247
13248 ;
13249 return 0;
13250}
13251_ACEOF
13252rm -f conftest.$ac_objext conftest$ac_exeext
13253if { (ac_try="$ac_link"
13254case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13257esac
13258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259 (eval "$ac_link") 2>conftest.er1
13260 ac_status=$?
13261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013265 (exit $ac_status); } &&
13266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13267 { (case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13270esac
13271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_try") 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; } &&
13276 { ac_try='test -s conftest$ac_exeext'
13277 { (case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280esac
13281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_try") 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013286 lt_cv_cc_needs_belf=yes
13287else
13288 echo "$as_me: failed program was:" >&5
13289sed 's/^/| /' conftest.$ac_ext >&5
13290
13291 lt_cv_cc_needs_belf=no
13292fi
13293
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013294rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013295 conftest$ac_exeext conftest.$ac_ext
13296 ac_ext=c
13297ac_cpp='$CPP $CPPFLAGS'
13298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13300ac_compiler_gnu=$ac_cv_c_compiler_gnu
13301
13302fi
13303{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13304echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13305 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13306 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13307 CFLAGS="$SAVE_CFLAGS"
13308 fi
13309 ;;
13310sparc*-*solaris*)
13311 # Find out which ABI we are using.
13312 echo 'int i;' > conftest.$ac_ext
13313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13314 (eval $ac_compile) 2>&5
13315 ac_status=$?
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; then
13318 case `/usr/bin/file conftest.o` in
13319 *64-bit*)
13320 case $lt_cv_prog_gnu_ld in
13321 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13322 *) LD="${LD-ld} -64" ;;
13323 esac
13324 ;;
13325 esac
13326 fi
13327 rm -rf conftest*
13328 ;;
13329
13330
13331esac
13332
13333need_locks="$enable_libtool_lock"
13334
13335
13336
13337
13338if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13339 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13340 (test "X$CXX" != "Xg++"))) ; then
13341 ac_ext=cpp
13342ac_cpp='$CXXCPP $CPPFLAGS'
13343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13346{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13347echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13348if test -z "$CXXCPP"; then
13349 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13351else
13352 # Double quotes because CXXCPP needs to be expanded
13353 for CXXCPP in "$CXX -E" "/lib/cpp"
13354 do
13355 ac_preproc_ok=false
13356for ac_cxx_preproc_warn_flag in '' yes
13357do
13358 # Use a header file that comes with gcc, so configuring glibc
13359 # with a fresh cross-compiler works.
13360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13361 # <limits.h> exists even on freestanding compilers.
13362 # On the NeXT, cc -E runs the code through the compiler's parser,
13363 # not just through cpp. "Syntax error" is here to catch this case.
13364 cat >conftest.$ac_ext <<_ACEOF
13365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h. */
13370#ifdef __STDC__
13371# include <limits.h>
13372#else
13373# include <assert.h>
13374#endif
13375 Syntax error
13376_ACEOF
13377if { (ac_try="$ac_cpp conftest.$ac_ext"
13378case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13381esac
13382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013389 (exit $ac_status); } >/dev/null; then
13390 if test -s conftest.err; then
13391 ac_cpp_err=$ac_cxx_preproc_warn_flag
13392 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13393 else
13394 ac_cpp_err=
13395 fi
13396else
13397 ac_cpp_err=yes
13398fi
13399if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013400 :
13401else
13402 echo "$as_me: failed program was:" >&5
13403sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 # Broken: fails on valid input.
13406continue
13407fi
13408
13409rm -f conftest.err conftest.$ac_ext
13410
13411 # OK, works on sane cases. Now check whether nonexistent headers
13412 # can be detected and how.
13413 cat >conftest.$ac_ext <<_ACEOF
13414/* confdefs.h. */
13415_ACEOF
13416cat confdefs.h >>conftest.$ac_ext
13417cat >>conftest.$ac_ext <<_ACEOF
13418/* end confdefs.h. */
13419#include <ac_nonexistent.h>
13420_ACEOF
13421if { (ac_try="$ac_cpp conftest.$ac_ext"
13422case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13425esac
13426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013433 (exit $ac_status); } >/dev/null; then
13434 if test -s conftest.err; then
13435 ac_cpp_err=$ac_cxx_preproc_warn_flag
13436 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13437 else
13438 ac_cpp_err=
13439 fi
13440else
13441 ac_cpp_err=yes
13442fi
13443if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013444 # Broken: success on invalid input.
13445continue
13446else
13447 echo "$as_me: failed program was:" >&5
13448sed 's/^/| /' conftest.$ac_ext >&5
13449
13450 # Passes both tests.
13451ac_preproc_ok=:
13452break
13453fi
13454
13455rm -f conftest.err conftest.$ac_ext
13456
13457done
13458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13459rm -f conftest.err conftest.$ac_ext
13460if $ac_preproc_ok; then
13461 break
13462fi
13463
13464 done
13465 ac_cv_prog_CXXCPP=$CXXCPP
13466
13467fi
13468 CXXCPP=$ac_cv_prog_CXXCPP
13469else
13470 ac_cv_prog_CXXCPP=$CXXCPP
13471fi
13472{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13473echo "${ECHO_T}$CXXCPP" >&6; }
13474ac_preproc_ok=false
13475for ac_cxx_preproc_warn_flag in '' yes
13476do
13477 # Use a header file that comes with gcc, so configuring glibc
13478 # with a fresh cross-compiler works.
13479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13480 # <limits.h> exists even on freestanding compilers.
13481 # On the NeXT, cc -E runs the code through the compiler's parser,
13482 # not just through cpp. "Syntax error" is here to catch this case.
13483 cat >conftest.$ac_ext <<_ACEOF
13484/* confdefs.h. */
13485_ACEOF
13486cat confdefs.h >>conftest.$ac_ext
13487cat >>conftest.$ac_ext <<_ACEOF
13488/* end confdefs.h. */
13489#ifdef __STDC__
13490# include <limits.h>
13491#else
13492# include <assert.h>
13493#endif
13494 Syntax error
13495_ACEOF
13496if { (ac_try="$ac_cpp conftest.$ac_ext"
13497case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500esac
13501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13503 ac_status=$?
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013508 (exit $ac_status); } >/dev/null; then
13509 if test -s conftest.err; then
13510 ac_cpp_err=$ac_cxx_preproc_warn_flag
13511 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13512 else
13513 ac_cpp_err=
13514 fi
13515else
13516 ac_cpp_err=yes
13517fi
13518if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013519 :
13520else
13521 echo "$as_me: failed program was:" >&5
13522sed 's/^/| /' conftest.$ac_ext >&5
13523
13524 # Broken: fails on valid input.
13525continue
13526fi
13527
13528rm -f conftest.err conftest.$ac_ext
13529
13530 # OK, works on sane cases. Now check whether nonexistent headers
13531 # can be detected and how.
13532 cat >conftest.$ac_ext <<_ACEOF
13533/* confdefs.h. */
13534_ACEOF
13535cat confdefs.h >>conftest.$ac_ext
13536cat >>conftest.$ac_ext <<_ACEOF
13537/* end confdefs.h. */
13538#include <ac_nonexistent.h>
13539_ACEOF
13540if { (ac_try="$ac_cpp conftest.$ac_ext"
13541case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544esac
13545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013552 (exit $ac_status); } >/dev/null; then
13553 if test -s conftest.err; then
13554 ac_cpp_err=$ac_cxx_preproc_warn_flag
13555 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13556 else
13557 ac_cpp_err=
13558 fi
13559else
13560 ac_cpp_err=yes
13561fi
13562if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013563 # Broken: success on invalid input.
13564continue
13565else
13566 echo "$as_me: failed program was:" >&5
13567sed 's/^/| /' conftest.$ac_ext >&5
13568
13569 # Passes both tests.
13570ac_preproc_ok=:
13571break
13572fi
13573
13574rm -f conftest.err conftest.$ac_ext
13575
13576done
13577# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13578rm -f conftest.err conftest.$ac_ext
13579if $ac_preproc_ok; then
13580 :
13581else
13582 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13583See \`config.log' for more details." >&5
13584echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13585See \`config.log' for more details." >&2;}
13586 { (exit 1); exit 1; }; }
13587fi
13588
13589ac_ext=cpp
13590ac_cpp='$CXXCPP $CPPFLAGS'
13591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13594
13595fi
13596
13597
13598ac_ext=f
13599ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13600ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13601ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13602if test -n "$ac_tool_prefix"; then
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013603 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 +000013604 do
13605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13609if test "${ac_cv_prog_F77+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611else
13612 if test -n "$F77"; then
13613 ac_cv_prog_F77="$F77" # Let the user override the test.
13614else
13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616for as_dir in $PATH
13617do
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013621 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 +000013622 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13624 break 2
13625 fi
13626done
13627done
13628IFS=$as_save_IFS
13629
13630fi
13631fi
13632F77=$ac_cv_prog_F77
13633if test -n "$F77"; then
13634 { echo "$as_me:$LINENO: result: $F77" >&5
13635echo "${ECHO_T}$F77" >&6; }
13636else
13637 { echo "$as_me:$LINENO: result: no" >&5
13638echo "${ECHO_T}no" >&6; }
13639fi
13640
13641
13642 test -n "$F77" && break
13643 done
13644fi
13645if test -z "$F77"; then
13646 ac_ct_F77=$F77
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013647 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 +000013648do
13649 # Extract the first word of "$ac_prog", so it can be a program name with args.
13650set dummy $ac_prog; ac_word=$2
13651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13653if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655else
13656 if test -n "$ac_ct_F77"; then
13657 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13658else
13659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660for as_dir in $PATH
13661do
13662 IFS=$as_save_IFS
13663 test -z "$as_dir" && as_dir=.
13664 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013665 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 +000013666 ac_cv_prog_ac_ct_F77="$ac_prog"
13667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13668 break 2
13669 fi
13670done
13671done
13672IFS=$as_save_IFS
13673
13674fi
13675fi
13676ac_ct_F77=$ac_cv_prog_ac_ct_F77
13677if test -n "$ac_ct_F77"; then
13678 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13679echo "${ECHO_T}$ac_ct_F77" >&6; }
13680else
13681 { echo "$as_me:$LINENO: result: no" >&5
13682echo "${ECHO_T}no" >&6; }
13683fi
13684
13685
13686 test -n "$ac_ct_F77" && break
13687done
13688
13689 if test "x$ac_ct_F77" = x; then
13690 F77=""
13691 else
13692 case $cross_compiling:$ac_tool_warned in
13693yes:)
13694{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13695whose name does not start with the host triplet. If you think this
13696configuration is useful to you, please write to autoconf@gnu.org." >&5
13697echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13698whose name does not start with the host triplet. If you think this
13699configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13700ac_tool_warned=yes ;;
13701esac
13702 F77=$ac_ct_F77
13703 fi
13704fi
13705
13706
13707# Provide some information about the compiler.
13708echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13709ac_compiler=`set X $ac_compile; echo $2`
13710{ (ac_try="$ac_compiler --version >&5"
13711case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714esac
13715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_compiler --version >&5") 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }
13720{ (ac_try="$ac_compiler -v >&5"
13721case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724esac
13725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_compiler -v >&5") 2>&5
13727 ac_status=$?
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }
13730{ (ac_try="$ac_compiler -V >&5"
13731case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734esac
13735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_compiler -V >&5") 2>&5
13737 ac_status=$?
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }
13740rm -f a.out
13741
13742# If we don't use `.F' as extension, the preprocessor is not run on the
13743# input file. (Note that this only needs to work for GNU compilers.)
13744ac_save_ext=$ac_ext
13745ac_ext=F
13746{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13747echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13748if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750else
13751 cat >conftest.$ac_ext <<_ACEOF
13752 program main
13753#ifndef __GNUC__
13754 choke me
13755#endif
13756
13757 end
13758_ACEOF
13759rm -f conftest.$ac_objext
13760if { (ac_try="$ac_compile"
13761case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764esac
13765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_compile") 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13774 { (case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13777esac
13778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_try") 2>&5
13780 ac_status=$?
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; } &&
13783 { ac_try='test -s conftest.$ac_objext'
13784 { (case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13787esac
13788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_try") 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013793 ac_compiler_gnu=yes
13794else
13795 echo "$as_me: failed program was:" >&5
13796sed 's/^/| /' conftest.$ac_ext >&5
13797
13798 ac_compiler_gnu=no
13799fi
13800
13801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13803
13804fi
13805{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13806echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13807ac_ext=$ac_save_ext
13808ac_test_FFLAGS=${FFLAGS+set}
13809ac_save_FFLAGS=$FFLAGS
13810FFLAGS=
13811{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13812echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13813if test "${ac_cv_prog_f77_g+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13815else
13816 FFLAGS=-g
13817cat >conftest.$ac_ext <<_ACEOF
13818 program main
13819
13820 end
13821_ACEOF
13822rm -f conftest.$ac_objext
13823if { (ac_try="$ac_compile"
13824case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13827esac
13828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_compile") 2>conftest.er1
13830 ac_status=$?
13831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013835 (exit $ac_status); } &&
13836 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13837 { (case "(($ac_try" in
13838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13840esac
13841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13842 (eval "$ac_try") 2>&5
13843 ac_status=$?
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest.$ac_objext'
13847 { (case "(($ac_try" in
13848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13849 *) ac_try_echo=$ac_try;;
13850esac
13851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13852 (eval "$ac_try") 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013856 ac_cv_prog_f77_g=yes
13857else
13858 echo "$as_me: failed program was:" >&5
13859sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 ac_cv_prog_f77_g=no
13862fi
13863
13864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865
13866fi
13867{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13868echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13869if test "$ac_test_FFLAGS" = set; then
13870 FFLAGS=$ac_save_FFLAGS
13871elif test $ac_cv_prog_f77_g = yes; then
13872 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13873 FFLAGS="-g -O2"
13874 else
13875 FFLAGS="-g"
13876 fi
13877else
13878 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13879 FFLAGS="-O2"
13880 else
13881 FFLAGS=
13882 fi
13883fi
13884
13885G77=`test $ac_compiler_gnu = yes && echo yes`
13886ac_ext=c
13887ac_cpp='$CPP $CPPFLAGS'
13888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13890ac_compiler_gnu=$ac_cv_c_compiler_gnu
13891
13892
13893
13894# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13895
13896# find the maximum length of command line arguments
13897{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13898echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13899if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13900 echo $ECHO_N "(cached) $ECHO_C" >&6
13901else
13902 i=0
13903 teststring="ABCD"
13904
13905 case $build_os in
13906 msdosdjgpp*)
13907 # On DJGPP, this test can blow up pretty badly due to problems in libc
13908 # (any single argument exceeding 2000 bytes causes a buffer overrun
13909 # during glob expansion). Even if it were fixed, the result of this
13910 # check would be larger than it should be.
13911 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13912 ;;
13913
13914 gnu*)
13915 # Under GNU Hurd, this test is not required because there is
13916 # no limit to the length of command line arguments.
13917 # Libtool will interpret -1 as no limit whatsoever
13918 lt_cv_sys_max_cmd_len=-1;
13919 ;;
13920
13921 cygwin* | mingw*)
13922 # On Win9x/ME, this test blows up -- it succeeds, but takes
13923 # about 5 minutes as the teststring grows exponentially.
13924 # Worse, since 9x/ME are not pre-emptively multitasking,
13925 # you end up with a "frozen" computer, even though with patience
13926 # the test eventually succeeds (with a max line length of 256k).
13927 # Instead, let's just punt: use the minimum linelength reported by
13928 # all of the supported platforms: 8192 (on NT/2K/XP).
13929 lt_cv_sys_max_cmd_len=8192;
13930 ;;
13931
13932 amigaos*)
13933 # On AmigaOS with pdksh, this test takes hours, literally.
13934 # So we just punt and use a minimum line length of 8192.
13935 lt_cv_sys_max_cmd_len=8192;
13936 ;;
13937
13938 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13939 # This has been around since 386BSD, at least. Likely further.
13940 if test -x /sbin/sysctl; then
13941 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13942 elif test -x /usr/sbin/sysctl; then
13943 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13944 else
13945 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13946 fi
13947 # And add a safety zone
13948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13950 ;;
13951
13952 interix*)
13953 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13954 lt_cv_sys_max_cmd_len=196608
13955 ;;
13956
13957 osf*)
13958 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13959 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13960 # nice to cause kernel panics so lets avoid the loop below.
13961 # First set a reasonable default.
13962 lt_cv_sys_max_cmd_len=16384
13963 #
13964 if test -x /sbin/sysconfig; then
13965 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13966 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13967 esac
13968 fi
13969 ;;
13970 sco3.2v5*)
13971 lt_cv_sys_max_cmd_len=102400
13972 ;;
13973 sysv5* | sco5v6* | sysv4.2uw2*)
13974 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13975 if test -n "$kargmax"; then
13976 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13977 else
13978 lt_cv_sys_max_cmd_len=32768
13979 fi
13980 ;;
13981 *)
13982 # If test is not a shell built-in, we'll probably end up computing a
13983 # maximum length that is only half of the actual maximum length, but
13984 # we can't tell.
13985 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13986 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13987 = "XX$teststring") >/dev/null 2>&1 &&
13988 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13989 lt_cv_sys_max_cmd_len=$new_result &&
13990 test $i != 17 # 1/2 MB should be enough
13991 do
13992 i=`expr $i + 1`
13993 teststring=$teststring$teststring
13994 done
13995 teststring=
13996 # Add a significant safety factor because C++ compilers can tack on massive
13997 # amounts of additional arguments before passing them to the linker.
13998 # It appears as though 1/2 is a usable value.
13999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14000 ;;
14001 esac
14002
14003fi
14004
14005if test -n $lt_cv_sys_max_cmd_len ; then
14006 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14007echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14008else
14009 { echo "$as_me:$LINENO: result: none" >&5
14010echo "${ECHO_T}none" >&6; }
14011fi
14012
14013
14014
14015
14016# Check for command to grab the raw symbol name followed by C symbol from nm.
14017{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14018echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14019if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14021else
14022
14023# These are sane defaults that work on at least a few old systems.
14024# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14025
14026# Character class describing NM global symbol codes.
14027symcode='[BCDEGRST]'
14028
14029# Regexp to match symbols that can be accessed directly from C.
14030sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14031
14032# Transform an extracted symbol line into a proper C declaration
14033lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14034
14035# Transform an extracted symbol line into symbol name and symbol address
14036lt_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'"
14037
14038# Define system-specific variables.
14039case $host_os in
14040aix*)
14041 symcode='[BCDT]'
14042 ;;
14043cygwin* | mingw* | pw32*)
14044 symcode='[ABCDGISTW]'
14045 ;;
14046hpux*) # Its linker distinguishes data from code symbols
14047 if test "$host_cpu" = ia64; then
14048 symcode='[ABCDEGRST]'
14049 fi
14050 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14051 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'"
14052 ;;
14053linux*)
14054 if test "$host_cpu" = ia64; then
14055 symcode='[ABCDGIRSTW]'
14056 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14057 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'"
14058 fi
14059 ;;
14060irix* | nonstopux*)
14061 symcode='[BCDEGRST]'
14062 ;;
14063osf*)
14064 symcode='[BCDEGQRST]'
14065 ;;
14066solaris*)
14067 symcode='[BDRT]'
14068 ;;
14069sco3.2v5*)
14070 symcode='[DT]'
14071 ;;
14072sysv4.2uw2*)
14073 symcode='[DT]'
14074 ;;
14075sysv5* | sco5v6* | unixware* | OpenUNIX*)
14076 symcode='[ABDT]'
14077 ;;
14078sysv4)
14079 symcode='[DFNSTU]'
14080 ;;
14081esac
14082
14083# Handle CRLF in mingw tool chain
14084opt_cr=
14085case $build_os in
14086mingw*)
14087 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14088 ;;
14089esac
14090
14091# If we're using GNU nm, then use its standard symbol codes.
14092case `$NM -V 2>&1` in
14093*GNU* | *'with BFD'*)
14094 symcode='[ABCDGIRSTW]' ;;
14095esac
14096
14097# Try without a prefix undercore, then with it.
14098for ac_symprfx in "" "_"; do
14099
14100 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14101 symxfrm="\\1 $ac_symprfx\\2 \\2"
14102
14103 # Write the raw and C identifiers.
14104 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14105
14106 # Check to see that the pipe works correctly.
14107 pipe_works=no
14108
14109 rm -f conftest*
14110 cat > conftest.$ac_ext <<EOF
14111#ifdef __cplusplus
14112extern "C" {
14113#endif
14114char nm_test_var;
14115void nm_test_func(){}
14116#ifdef __cplusplus
14117}
14118#endif
14119int main(){nm_test_var='a';nm_test_func();return(0);}
14120EOF
14121
14122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123 (eval $ac_compile) 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; then
14127 # Now try to grab the symbols.
14128 nlist=conftest.nm
14129 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14130 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } && test -s "$nlist"; then
14134 # Try sorting and uniquifying the output.
14135 if sort "$nlist" | uniq > "$nlist"T; then
14136 mv -f "$nlist"T "$nlist"
14137 else
14138 rm -f "$nlist"T
14139 fi
14140
14141 # Make sure that we snagged all the symbols we need.
14142 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14143 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14144 cat <<EOF > conftest.$ac_ext
14145#ifdef __cplusplus
14146extern "C" {
14147#endif
14148
14149EOF
14150 # Now generate the symbol file.
14151 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14152
14153 cat <<EOF >> conftest.$ac_ext
14154#if defined (__STDC__) && __STDC__
14155# define lt_ptr_t void *
14156#else
14157# define lt_ptr_t char *
14158# define const
14159#endif
14160
14161/* The mapping between symbol names and symbols. */
14162const struct {
14163 const char *name;
14164 lt_ptr_t address;
14165}
14166lt_preloaded_symbols[] =
14167{
14168EOF
14169 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14170 cat <<\EOF >> conftest.$ac_ext
14171 {0, (lt_ptr_t) 0}
14172};
14173
14174#ifdef __cplusplus
14175}
14176#endif
14177EOF
14178 # Now try linking the two files.
14179 mv conftest.$ac_objext conftstm.$ac_objext
14180 lt_save_LIBS="$LIBS"
14181 lt_save_CFLAGS="$CFLAGS"
14182 LIBS="conftstm.$ac_objext"
14183 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14185 (eval $ac_link) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14189 pipe_works=yes
14190 fi
14191 LIBS="$lt_save_LIBS"
14192 CFLAGS="$lt_save_CFLAGS"
14193 else
14194 echo "cannot find nm_test_func in $nlist" >&5
14195 fi
14196 else
14197 echo "cannot find nm_test_var in $nlist" >&5
14198 fi
14199 else
14200 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14201 fi
14202 else
14203 echo "$progname: failed program was:" >&5
14204 cat conftest.$ac_ext >&5
14205 fi
14206 rm -f conftest* conftst*
14207
14208 # Do not use the global_symbol_pipe unless it works.
14209 if test "$pipe_works" = yes; then
14210 break
14211 else
14212 lt_cv_sys_global_symbol_pipe=
14213 fi
14214done
14215
14216fi
14217
14218if test -z "$lt_cv_sys_global_symbol_pipe"; then
14219 lt_cv_sys_global_symbol_to_cdecl=
14220fi
14221if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14222 { echo "$as_me:$LINENO: result: failed" >&5
14223echo "${ECHO_T}failed" >&6; }
14224else
14225 { echo "$as_me:$LINENO: result: ok" >&5
14226echo "${ECHO_T}ok" >&6; }
14227fi
14228
14229{ echo "$as_me:$LINENO: checking for objdir" >&5
14230echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14231if test "${lt_cv_objdir+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14233else
14234 rm -f .libs 2>/dev/null
14235mkdir .libs 2>/dev/null
14236if test -d .libs; then
14237 lt_cv_objdir=.libs
14238else
14239 # MS-DOS does not allow filenames that begin with a dot.
14240 lt_cv_objdir=_libs
14241fi
14242rmdir .libs 2>/dev/null
14243fi
14244{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14245echo "${ECHO_T}$lt_cv_objdir" >&6; }
14246objdir=$lt_cv_objdir
14247
14248
14249
14250
14251
14252case $host_os in
14253aix3*)
14254 # AIX sometimes has problems with the GCC collect2 program. For some
14255 # reason, if we set the COLLECT_NAMES environment variable, the problems
14256 # vanish in a puff of smoke.
14257 if test "X${COLLECT_NAMES+set}" != Xset; then
14258 COLLECT_NAMES=
14259 export COLLECT_NAMES
14260 fi
14261 ;;
14262esac
14263
14264# Sed substitution that helps us do robust quoting. It backslashifies
14265# metacharacters that are still active within double-quoted strings.
14266Xsed='sed -e 1s/^X//'
14267sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14268
14269# Same as above, but do not quote variable references.
14270double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14271
14272# Sed substitution to delay expansion of an escaped shell variable in a
14273# double_quote_subst'ed string.
14274delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14275
14276# Sed substitution to avoid accidental globbing in evaled expressions
14277no_glob_subst='s/\*/\\\*/g'
14278
14279# Constants:
14280rm="rm -f"
14281
14282# Global variables:
14283default_ofile=mklib
14284can_build_shared=yes
14285
14286# All known linkers require a `.a' archive for static linking (except MSVC,
14287# which needs '.lib').
14288libext=a
14289ltmain="$ac_aux_dir/ltmain.sh"
14290ofile="$default_ofile"
14291with_gnu_ld="$lt_cv_prog_gnu_ld"
14292
14293if test -n "$ac_tool_prefix"; then
14294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14295set dummy ${ac_tool_prefix}ar; ac_word=$2
14296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14298if test "${ac_cv_prog_AR+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300else
14301 if test -n "$AR"; then
14302 ac_cv_prog_AR="$AR" # Let the user override the test.
14303else
14304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14305for as_dir in $PATH
14306do
14307 IFS=$as_save_IFS
14308 test -z "$as_dir" && as_dir=.
14309 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014310 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 +000014311 ac_cv_prog_AR="${ac_tool_prefix}ar"
14312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14313 break 2
14314 fi
14315done
14316done
14317IFS=$as_save_IFS
14318
14319fi
14320fi
14321AR=$ac_cv_prog_AR
14322if test -n "$AR"; then
14323 { echo "$as_me:$LINENO: result: $AR" >&5
14324echo "${ECHO_T}$AR" >&6; }
14325else
14326 { echo "$as_me:$LINENO: result: no" >&5
14327echo "${ECHO_T}no" >&6; }
14328fi
14329
14330
14331fi
14332if test -z "$ac_cv_prog_AR"; then
14333 ac_ct_AR=$AR
14334 # Extract the first word of "ar", so it can be a program name with args.
14335set dummy ar; ac_word=$2
14336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14338if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
14341 if test -n "$ac_ct_AR"; then
14342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14343else
14344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14345for as_dir in $PATH
14346do
14347 IFS=$as_save_IFS
14348 test -z "$as_dir" && as_dir=.
14349 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014350 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 +000014351 ac_cv_prog_ac_ct_AR="ar"
14352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14353 break 2
14354 fi
14355done
14356done
14357IFS=$as_save_IFS
14358
14359fi
14360fi
14361ac_ct_AR=$ac_cv_prog_ac_ct_AR
14362if test -n "$ac_ct_AR"; then
14363 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14364echo "${ECHO_T}$ac_ct_AR" >&6; }
14365else
14366 { echo "$as_me:$LINENO: result: no" >&5
14367echo "${ECHO_T}no" >&6; }
14368fi
14369
14370 if test "x$ac_ct_AR" = x; then
14371 AR="false"
14372 else
14373 case $cross_compiling:$ac_tool_warned in
14374yes:)
14375{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14376whose name does not start with the host triplet. If you think this
14377configuration is useful to you, please write to autoconf@gnu.org." >&5
14378echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14379whose name does not start with the host triplet. If you think this
14380configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14381ac_tool_warned=yes ;;
14382esac
14383 AR=$ac_ct_AR
14384 fi
14385else
14386 AR="$ac_cv_prog_AR"
14387fi
14388
14389if test -n "$ac_tool_prefix"; then
14390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14391set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14394if test "${ac_cv_prog_RANLIB+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396else
14397 if test -n "$RANLIB"; then
14398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14399else
14400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14401for as_dir in $PATH
14402do
14403 IFS=$as_save_IFS
14404 test -z "$as_dir" && as_dir=.
14405 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014406 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 +000014407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14409 break 2
14410 fi
14411done
14412done
14413IFS=$as_save_IFS
14414
14415fi
14416fi
14417RANLIB=$ac_cv_prog_RANLIB
14418if test -n "$RANLIB"; then
14419 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14420echo "${ECHO_T}$RANLIB" >&6; }
14421else
14422 { echo "$as_me:$LINENO: result: no" >&5
14423echo "${ECHO_T}no" >&6; }
14424fi
14425
14426
14427fi
14428if test -z "$ac_cv_prog_RANLIB"; then
14429 ac_ct_RANLIB=$RANLIB
14430 # Extract the first word of "ranlib", so it can be a program name with args.
14431set dummy ranlib; ac_word=$2
14432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14434if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436else
14437 if test -n "$ac_ct_RANLIB"; then
14438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14439else
14440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441for as_dir in $PATH
14442do
14443 IFS=$as_save_IFS
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014446 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 +000014447 ac_cv_prog_ac_ct_RANLIB="ranlib"
14448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14449 break 2
14450 fi
14451done
14452done
14453IFS=$as_save_IFS
14454
14455fi
14456fi
14457ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14458if test -n "$ac_ct_RANLIB"; then
14459 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14460echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14461else
14462 { echo "$as_me:$LINENO: result: no" >&5
14463echo "${ECHO_T}no" >&6; }
14464fi
14465
14466 if test "x$ac_ct_RANLIB" = x; then
14467 RANLIB=":"
14468 else
14469 case $cross_compiling:$ac_tool_warned in
14470yes:)
14471{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14472whose name does not start with the host triplet. If you think this
14473configuration is useful to you, please write to autoconf@gnu.org." >&5
14474echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14475whose name does not start with the host triplet. If you think this
14476configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14477ac_tool_warned=yes ;;
14478esac
14479 RANLIB=$ac_ct_RANLIB
14480 fi
14481else
14482 RANLIB="$ac_cv_prog_RANLIB"
14483fi
14484
14485if test -n "$ac_tool_prefix"; then
14486 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14487set dummy ${ac_tool_prefix}strip; ac_word=$2
14488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14490if test "${ac_cv_prog_STRIP+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14492else
14493 if test -n "$STRIP"; then
14494 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14495else
14496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14497for as_dir in $PATH
14498do
14499 IFS=$as_save_IFS
14500 test -z "$as_dir" && as_dir=.
14501 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014502 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 +000014503 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14505 break 2
14506 fi
14507done
14508done
14509IFS=$as_save_IFS
14510
14511fi
14512fi
14513STRIP=$ac_cv_prog_STRIP
14514if test -n "$STRIP"; then
14515 { echo "$as_me:$LINENO: result: $STRIP" >&5
14516echo "${ECHO_T}$STRIP" >&6; }
14517else
14518 { echo "$as_me:$LINENO: result: no" >&5
14519echo "${ECHO_T}no" >&6; }
14520fi
14521
14522
14523fi
14524if test -z "$ac_cv_prog_STRIP"; then
14525 ac_ct_STRIP=$STRIP
14526 # Extract the first word of "strip", so it can be a program name with args.
14527set dummy strip; ac_word=$2
14528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14530if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14532else
14533 if test -n "$ac_ct_STRIP"; then
14534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14535else
14536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14537for as_dir in $PATH
14538do
14539 IFS=$as_save_IFS
14540 test -z "$as_dir" && as_dir=.
14541 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014542 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 +000014543 ac_cv_prog_ac_ct_STRIP="strip"
14544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14545 break 2
14546 fi
14547done
14548done
14549IFS=$as_save_IFS
14550
14551fi
14552fi
14553ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14554if test -n "$ac_ct_STRIP"; then
14555 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14556echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14557else
14558 { echo "$as_me:$LINENO: result: no" >&5
14559echo "${ECHO_T}no" >&6; }
14560fi
14561
14562 if test "x$ac_ct_STRIP" = x; then
14563 STRIP=":"
14564 else
14565 case $cross_compiling:$ac_tool_warned in
14566yes:)
14567{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14568whose name does not start with the host triplet. If you think this
14569configuration is useful to you, please write to autoconf@gnu.org." >&5
14570echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14571whose name does not start with the host triplet. If you think this
14572configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14573ac_tool_warned=yes ;;
14574esac
14575 STRIP=$ac_ct_STRIP
14576 fi
14577else
14578 STRIP="$ac_cv_prog_STRIP"
14579fi
14580
14581
14582old_CC="$CC"
14583old_CFLAGS="$CFLAGS"
14584
14585# Set sane defaults for various variables
14586test -z "$AR" && AR=ar
14587test -z "$AR_FLAGS" && AR_FLAGS=cru
14588test -z "$AS" && AS=as
14589test -z "$CC" && CC=cc
14590test -z "$LTCC" && LTCC=$CC
14591test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14592test -z "$DLLTOOL" && DLLTOOL=dlltool
14593test -z "$LD" && LD=ld
14594test -z "$LN_S" && LN_S="ln -s"
14595test -z "$MAGIC_CMD" && MAGIC_CMD=file
14596test -z "$NM" && NM=nm
14597test -z "$SED" && SED=sed
14598test -z "$OBJDUMP" && OBJDUMP=objdump
14599test -z "$RANLIB" && RANLIB=:
14600test -z "$STRIP" && STRIP=:
14601test -z "$ac_objext" && ac_objext=o
14602
14603# Determine commands to create old-style static archives.
14604old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14605old_postinstall_cmds='chmod 644 $oldlib'
14606old_postuninstall_cmds=
14607
14608if test -n "$RANLIB"; then
14609 case $host_os in
14610 openbsd*)
14611 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14612 ;;
14613 *)
14614 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14615 ;;
14616 esac
14617 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14618fi
14619
14620for cc_temp in $compiler""; do
14621 case $cc_temp in
14622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14624 \-*) ;;
14625 *) break;;
14626 esac
14627done
14628cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14629
14630
14631# Only perform the check for file, if the check method requires it
14632case $deplibs_check_method in
14633file_magic*)
14634 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14635 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14636echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14637if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639else
14640 case $MAGIC_CMD in
14641[\\/*] | ?:[\\/]*)
14642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14643 ;;
14644*)
14645 lt_save_MAGIC_CMD="$MAGIC_CMD"
14646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14648 for ac_dir in $ac_dummy; do
14649 IFS="$lt_save_ifs"
14650 test -z "$ac_dir" && ac_dir=.
14651 if test -f $ac_dir/${ac_tool_prefix}file; then
14652 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14653 if test -n "$file_magic_test_file"; then
14654 case $deplibs_check_method in
14655 "file_magic "*)
14656 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14659 $EGREP "$file_magic_regex" > /dev/null; then
14660 :
14661 else
14662 cat <<EOF 1>&2
14663
14664*** Warning: the command libtool uses to detect shared libraries,
14665*** $file_magic_cmd, produces output that libtool cannot recognize.
14666*** The result is that libtool may fail to recognize shared libraries
14667*** as such. This will affect the creation of libtool libraries that
14668*** depend on shared libraries, but programs linked with such libtool
14669*** libraries will work regardless of this problem. Nevertheless, you
14670*** may want to report the problem to your system manager and/or to
14671*** bug-libtool@gnu.org
14672
14673EOF
14674 fi ;;
14675 esac
14676 fi
14677 break
14678 fi
14679 done
14680 IFS="$lt_save_ifs"
14681 MAGIC_CMD="$lt_save_MAGIC_CMD"
14682 ;;
14683esac
14684fi
14685
14686MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14687if test -n "$MAGIC_CMD"; then
14688 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14689echo "${ECHO_T}$MAGIC_CMD" >&6; }
14690else
14691 { echo "$as_me:$LINENO: result: no" >&5
14692echo "${ECHO_T}no" >&6; }
14693fi
14694
14695if test -z "$lt_cv_path_MAGIC_CMD"; then
14696 if test -n "$ac_tool_prefix"; then
14697 { echo "$as_me:$LINENO: checking for file" >&5
14698echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14699if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701else
14702 case $MAGIC_CMD in
14703[\\/*] | ?:[\\/]*)
14704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14705 ;;
14706*)
14707 lt_save_MAGIC_CMD="$MAGIC_CMD"
14708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14710 for ac_dir in $ac_dummy; do
14711 IFS="$lt_save_ifs"
14712 test -z "$ac_dir" && ac_dir=.
14713 if test -f $ac_dir/file; then
14714 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14715 if test -n "$file_magic_test_file"; then
14716 case $deplibs_check_method in
14717 "file_magic "*)
14718 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14721 $EGREP "$file_magic_regex" > /dev/null; then
14722 :
14723 else
14724 cat <<EOF 1>&2
14725
14726*** Warning: the command libtool uses to detect shared libraries,
14727*** $file_magic_cmd, produces output that libtool cannot recognize.
14728*** The result is that libtool may fail to recognize shared libraries
14729*** as such. This will affect the creation of libtool libraries that
14730*** depend on shared libraries, but programs linked with such libtool
14731*** libraries will work regardless of this problem. Nevertheless, you
14732*** may want to report the problem to your system manager and/or to
14733*** bug-libtool@gnu.org
14734
14735EOF
14736 fi ;;
14737 esac
14738 fi
14739 break
14740 fi
14741 done
14742 IFS="$lt_save_ifs"
14743 MAGIC_CMD="$lt_save_MAGIC_CMD"
14744 ;;
14745esac
14746fi
14747
14748MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14749if test -n "$MAGIC_CMD"; then
14750 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14751echo "${ECHO_T}$MAGIC_CMD" >&6; }
14752else
14753 { echo "$as_me:$LINENO: result: no" >&5
14754echo "${ECHO_T}no" >&6; }
14755fi
14756
14757 else
14758 MAGIC_CMD=:
14759 fi
14760fi
14761
14762 fi
14763 ;;
14764esac
14765
14766enable_dlopen=yes
14767enable_win32_dll=no
14768
14769# Check whether --enable-libtool-lock was given.
14770if test "${enable_libtool_lock+set}" = set; then
14771 enableval=$enable_libtool_lock;
14772fi
14773
14774test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14775
14776
14777# Check whether --with-pic was given.
14778if test "${with_pic+set}" = set; then
14779 withval=$with_pic; pic_mode="$withval"
14780else
14781 pic_mode=default
14782fi
14783
14784test -z "$pic_mode" && pic_mode=default
14785
14786# Use C for the default configuration in the libtool script
14787tagname=
14788lt_save_CC="$CC"
14789ac_ext=c
14790ac_cpp='$CPP $CPPFLAGS'
14791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14793ac_compiler_gnu=$ac_cv_c_compiler_gnu
14794
14795
14796# Source file extension for C test sources.
14797ac_ext=c
14798
14799# Object file extension for compiled C test sources.
14800objext=o
14801objext=$objext
14802
14803# Code to be used in simple compile tests
14804lt_simple_compile_test_code="int some_variable = 0;\n"
14805
14806# Code to be used in simple link tests
14807lt_simple_link_test_code='int main(){return(0);}\n'
14808
14809
14810# If no C compiler was specified, use CC.
14811LTCC=${LTCC-"$CC"}
14812
14813# If no C compiler flags were specified, use CFLAGS.
14814LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14815
14816# Allow CC to be a program name with arguments.
14817compiler=$CC
14818
14819
14820# save warnings/boilerplate of simple test code
14821ac_outfile=conftest.$ac_objext
14822printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14823eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14824_lt_compiler_boilerplate=`cat conftest.err`
14825$rm conftest*
14826
14827ac_outfile=conftest.$ac_objext
14828printf "$lt_simple_link_test_code" >conftest.$ac_ext
14829eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14830_lt_linker_boilerplate=`cat conftest.err`
14831$rm conftest*
14832
14833
14834
14835lt_prog_compiler_no_builtin_flag=
14836
14837if test "$GCC" = yes; then
14838 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14839
14840
14841{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14842echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14843if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14845else
14846 lt_cv_prog_compiler_rtti_exceptions=no
14847 ac_outfile=conftest.$ac_objext
14848 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14849 lt_compiler_flag="-fno-rtti -fno-exceptions"
14850 # Insert the option either (1) after the last *FLAGS variable, or
14851 # (2) before a word containing "conftest.", or (3) at the end.
14852 # Note that $ac_compile itself does not contain backslashes and begins
14853 # with a dollar sign (not a hyphen), so the echo should work correctly.
14854 # The option is referenced via a variable to avoid confusing sed.
14855 lt_compile=`echo "$ac_compile" | $SED \
14856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14858 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyd2813d02009-09-29 05:48:51 +000014859 (eval echo "\"\$as_me:14859: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014860 (eval "$lt_compile" 2>conftest.err)
14861 ac_status=$?
14862 cat conftest.err >&5
Nick Lewyckyd2813d02009-09-29 05:48:51 +000014863 echo "$as_me:14863: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014864 if (exit $ac_status) && test -s "$ac_outfile"; then
14865 # The compiler can only warn and ignore the option if not recognized
14866 # So say no if there are warnings other than the usual output.
14867 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14870 lt_cv_prog_compiler_rtti_exceptions=yes
14871 fi
14872 fi
14873 $rm conftest*
14874
14875fi
14876{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14877echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14878
14879if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14880 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14881else
14882 :
14883fi
14884
14885fi
14886
14887lt_prog_compiler_wl=
14888lt_prog_compiler_pic=
14889lt_prog_compiler_static=
14890
14891{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14892echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14893
14894 if test "$GCC" = yes; then
14895 lt_prog_compiler_wl='-Wl,'
14896 lt_prog_compiler_static='-static'
14897
14898 case $host_os in
14899 aix*)
14900 # All AIX code is PIC.
14901 if test "$host_cpu" = ia64; then
14902 # AIX 5 now supports IA64 processor
14903 lt_prog_compiler_static='-Bstatic'
14904 fi
14905 ;;
14906
14907 amigaos*)
14908 # FIXME: we need at least 68020 code to build shared libraries, but
14909 # adding the `-m68020' flag to GCC prevents building anything better,
14910 # like `-m68040'.
14911 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14912 ;;
14913
14914 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14915 # PIC is the default for these OSes.
14916 ;;
14917
14918 mingw* | pw32* | os2*)
14919 # This hack is so that the source file can tell whether it is being
14920 # built for inclusion in a dll (and should export symbols for example).
14921 lt_prog_compiler_pic='-DDLL_EXPORT'
14922 ;;
14923
14924 darwin* | rhapsody*)
14925 # PIC is the default on this platform
14926 # Common symbols not allowed in MH_DYLIB files
14927 lt_prog_compiler_pic='-fno-common'
14928 ;;
14929
14930 interix3*)
14931 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14932 # Instead, we relocate shared libraries at runtime.
14933 ;;
14934
14935 msdosdjgpp*)
14936 # Just because we use GCC doesn't mean we suddenly get shared libraries
14937 # on systems that don't support them.
14938 lt_prog_compiler_can_build_shared=no
14939 enable_shared=no
14940 ;;
14941
14942 sysv4*MP*)
14943 if test -d /usr/nec; then
14944 lt_prog_compiler_pic=-Kconform_pic
14945 fi
14946 ;;
14947
14948 hpux*)
14949 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14950 # not for PA HP-UX.
14951 case $host_cpu in
14952 hppa*64*|ia64*)
14953 # +Z the default
14954 ;;
14955 *)
14956 lt_prog_compiler_pic='-fPIC'
14957 ;;
14958 esac
14959 ;;
14960
14961 *)
14962 lt_prog_compiler_pic='-fPIC'
14963 ;;
14964 esac
14965 else
14966 # PORTME Check for flag to pass linker flags through the system compiler.
14967 case $host_os in
14968 aix*)
14969 lt_prog_compiler_wl='-Wl,'
14970 if test "$host_cpu" = ia64; then
14971 # AIX 5 now supports IA64 processor
14972 lt_prog_compiler_static='-Bstatic'
14973 else
14974 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14975 fi
14976 ;;
14977 darwin*)
14978 # PIC is the default on this platform
14979 # Common symbols not allowed in MH_DYLIB files
14980 case $cc_basename in
14981 xlc*)
14982 lt_prog_compiler_pic='-qnocommon'
14983 lt_prog_compiler_wl='-Wl,'
14984 ;;
14985 esac
14986 ;;
14987
14988 mingw* | pw32* | os2*)
14989 # This hack is so that the source file can tell whether it is being
14990 # built for inclusion in a dll (and should export symbols for example).
14991 lt_prog_compiler_pic='-DDLL_EXPORT'
14992 ;;
14993
14994 hpux9* | hpux10* | hpux11*)
14995 lt_prog_compiler_wl='-Wl,'
14996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14997 # not for PA HP-UX.
14998 case $host_cpu in
14999 hppa*64*|ia64*)
15000 # +Z the default
15001 ;;
15002 *)
15003 lt_prog_compiler_pic='+Z'
15004 ;;
15005 esac
15006 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15007 lt_prog_compiler_static='${wl}-a ${wl}archive'
15008 ;;
15009
15010 irix5* | irix6* | nonstopux*)
15011 lt_prog_compiler_wl='-Wl,'
15012 # PIC (with -KPIC) is the default.
15013 lt_prog_compiler_static='-non_shared'
15014 ;;
15015
15016 newsos6)
15017 lt_prog_compiler_pic='-KPIC'
15018 lt_prog_compiler_static='-Bstatic'
15019 ;;
15020
15021 linux*)
15022 case $cc_basename in
15023 icc* | ecc*)
15024 lt_prog_compiler_wl='-Wl,'
15025 lt_prog_compiler_pic='-KPIC'
15026 lt_prog_compiler_static='-static'
15027 ;;
15028 pgcc* | pgf77* | pgf90* | pgf95*)
15029 # Portland Group compilers (*not* the Pentium gcc compiler,
15030 # which looks to be a dead project)
15031 lt_prog_compiler_wl='-Wl,'
15032 lt_prog_compiler_pic='-fpic'
15033 lt_prog_compiler_static='-Bstatic'
15034 ;;
15035 ccc*)
15036 lt_prog_compiler_wl='-Wl,'
15037 # All Alpha code is PIC.
15038 lt_prog_compiler_static='-non_shared'
15039 ;;
15040 esac
15041 ;;
15042
15043 osf3* | osf4* | osf5*)
15044 lt_prog_compiler_wl='-Wl,'
15045 # All OSF/1 code is PIC.
15046 lt_prog_compiler_static='-non_shared'
15047 ;;
15048
15049 solaris*)
15050 lt_prog_compiler_pic='-KPIC'
15051 lt_prog_compiler_static='-Bstatic'
15052 case $cc_basename in
15053 f77* | f90* | f95*)
15054 lt_prog_compiler_wl='-Qoption ld ';;
15055 *)
15056 lt_prog_compiler_wl='-Wl,';;
15057 esac
15058 ;;
15059
15060 sunos4*)
15061 lt_prog_compiler_wl='-Qoption ld '
15062 lt_prog_compiler_pic='-PIC'
15063 lt_prog_compiler_static='-Bstatic'
15064 ;;
15065
15066 sysv4 | sysv4.2uw2* | sysv4.3*)
15067 lt_prog_compiler_wl='-Wl,'
15068 lt_prog_compiler_pic='-KPIC'
15069 lt_prog_compiler_static='-Bstatic'
15070 ;;
15071
15072 sysv4*MP*)
15073 if test -d /usr/nec ;then
15074 lt_prog_compiler_pic='-Kconform_pic'
15075 lt_prog_compiler_static='-Bstatic'
15076 fi
15077 ;;
15078
15079 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15080 lt_prog_compiler_wl='-Wl,'
15081 lt_prog_compiler_pic='-KPIC'
15082 lt_prog_compiler_static='-Bstatic'
15083 ;;
15084
15085 unicos*)
15086 lt_prog_compiler_wl='-Wl,'
15087 lt_prog_compiler_can_build_shared=no
15088 ;;
15089
15090 uts4*)
15091 lt_prog_compiler_pic='-pic'
15092 lt_prog_compiler_static='-Bstatic'
15093 ;;
15094
15095 *)
15096 lt_prog_compiler_can_build_shared=no
15097 ;;
15098 esac
15099 fi
15100
15101{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15102echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15103
15104#
15105# Check to make sure the PIC flag actually works.
15106#
15107if test -n "$lt_prog_compiler_pic"; then
15108
15109{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15110echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15111if test "${lt_prog_compiler_pic_works+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113else
15114 lt_prog_compiler_pic_works=no
15115 ac_outfile=conftest.$ac_objext
15116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15117 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15118 # Insert the option either (1) after the last *FLAGS variable, or
15119 # (2) before a word containing "conftest.", or (3) at the end.
15120 # Note that $ac_compile itself does not contain backslashes and begins
15121 # with a dollar sign (not a hyphen), so the echo should work correctly.
15122 # The option is referenced via a variable to avoid confusing sed.
15123 lt_compile=`echo "$ac_compile" | $SED \
15124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15126 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyd2813d02009-09-29 05:48:51 +000015127 (eval echo "\"\$as_me:15127: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015128 (eval "$lt_compile" 2>conftest.err)
15129 ac_status=$?
15130 cat conftest.err >&5
Nick Lewyckyd2813d02009-09-29 05:48:51 +000015131 echo "$as_me:15131: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015132 if (exit $ac_status) && test -s "$ac_outfile"; then
15133 # The compiler can only warn and ignore the option if not recognized
15134 # So say no if there are warnings other than the usual output.
15135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15138 lt_prog_compiler_pic_works=yes
15139 fi
15140 fi
15141 $rm conftest*
15142
15143fi
15144{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15145echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15146
15147if test x"$lt_prog_compiler_pic_works" = xyes; then
15148 case $lt_prog_compiler_pic in
15149 "" | " "*) ;;
15150 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15151 esac
15152else
15153 lt_prog_compiler_pic=
15154 lt_prog_compiler_can_build_shared=no
15155fi
15156
15157fi
15158case $host_os in
15159 # For platforms which do not support PIC, -DPIC is meaningless:
15160 *djgpp*)
15161 lt_prog_compiler_pic=
15162 ;;
15163 *)
15164 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15165 ;;
15166esac
15167
15168#
15169# Check to make sure the static flag actually works.
15170#
15171wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15172{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15173echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15174if test "${lt_prog_compiler_static_works+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176else
15177 lt_prog_compiler_static_works=no
15178 save_LDFLAGS="$LDFLAGS"
15179 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15180 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15181 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15182 # The linker can only warn and ignore the option if not recognized
15183 # So say no if there are warnings
15184 if test -s conftest.err; then
15185 # Append any errors to the config.log.
15186 cat conftest.err 1>&5
15187 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15189 if diff conftest.exp conftest.er2 >/dev/null; then
15190 lt_prog_compiler_static_works=yes
15191 fi
15192 else
15193 lt_prog_compiler_static_works=yes
15194 fi
15195 fi
15196 $rm conftest*
15197 LDFLAGS="$save_LDFLAGS"
15198
15199fi
15200{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15201echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15202
15203if test x"$lt_prog_compiler_static_works" = xyes; then
15204 :
15205else
15206 lt_prog_compiler_static=
15207fi
15208
15209
15210{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15211echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15212if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214else
15215 lt_cv_prog_compiler_c_o=no
15216 $rm -r conftest 2>/dev/null
15217 mkdir conftest
15218 cd conftest
15219 mkdir out
15220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15221
15222 lt_compiler_flag="-o out/conftest2.$ac_objext"
15223 # Insert the option either (1) after the last *FLAGS variable, or
15224 # (2) before a word containing "conftest.", or (3) at the end.
15225 # Note that $ac_compile itself does not contain backslashes and begins
15226 # with a dollar sign (not a hyphen), so the echo should work correctly.
15227 lt_compile=`echo "$ac_compile" | $SED \
15228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15230 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyd2813d02009-09-29 05:48:51 +000015231 (eval echo "\"\$as_me:15231: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015232 (eval "$lt_compile" 2>out/conftest.err)
15233 ac_status=$?
15234 cat out/conftest.err >&5
Nick Lewyckyd2813d02009-09-29 05:48:51 +000015235 echo "$as_me:15235: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015236 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15237 then
15238 # The compiler can only warn and ignore the option if not recognized
15239 # So say no if there are warnings
15240 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15241 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15242 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15243 lt_cv_prog_compiler_c_o=yes
15244 fi
15245 fi
15246 chmod u+w . 2>&5
15247 $rm conftest*
15248 # SGI C++ compiler will create directory out/ii_files/ for
15249 # template instantiation
15250 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15251 $rm out/* && rmdir out
15252 cd ..
15253 rmdir conftest
15254 $rm conftest*
15255
15256fi
15257{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15258echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15259
15260
15261hard_links="nottested"
15262if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15263 # do not overwrite the value of need_locks provided by the user
15264 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15265echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15266 hard_links=yes
15267 $rm conftest*
15268 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15269 touch conftest.a
15270 ln conftest.a conftest.b 2>&5 || hard_links=no
15271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15272 { echo "$as_me:$LINENO: result: $hard_links" >&5
15273echo "${ECHO_T}$hard_links" >&6; }
15274 if test "$hard_links" = no; then
15275 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15276echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15277 need_locks=warn
15278 fi
15279else
15280 need_locks=no
15281fi
15282
15283{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15284echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15285
15286 runpath_var=
15287 allow_undefined_flag=
15288 enable_shared_with_static_runtimes=no
15289 archive_cmds=
15290 archive_expsym_cmds=
15291 old_archive_From_new_cmds=
15292 old_archive_from_expsyms_cmds=
15293 export_dynamic_flag_spec=
15294 whole_archive_flag_spec=
15295 thread_safe_flag_spec=
15296 hardcode_libdir_flag_spec=
15297 hardcode_libdir_flag_spec_ld=
15298 hardcode_libdir_separator=
15299 hardcode_direct=no
15300 hardcode_minus_L=no
15301 hardcode_shlibpath_var=unsupported
15302 link_all_deplibs=unknown
15303 hardcode_automatic=no
15304 module_cmds=
15305 module_expsym_cmds=
15306 always_export_symbols=no
15307 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15308 # include_expsyms should be a list of space-separated symbols to be *always*
15309 # included in the symbol list
15310 include_expsyms=
15311 # exclude_expsyms can be an extended regexp of symbols to exclude
15312 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15313 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15314 # as well as any symbol that contains `d'.
15315 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15316 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15317 # platforms (ab)use it in PIC code, but their linkers get confused if
15318 # the symbol is explicitly referenced. Since portable code cannot
15319 # rely on this symbol name, it's probably fine to never include it in
15320 # preloaded symbol tables.
15321 extract_expsyms_cmds=
15322 # Just being paranoid about ensuring that cc_basename is set.
15323 for cc_temp in $compiler""; do
15324 case $cc_temp in
15325 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15326 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15327 \-*) ;;
15328 *) break;;
15329 esac
15330done
15331cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15332
15333 case $host_os in
15334 cygwin* | mingw* | pw32*)
15335 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15336 # When not using gcc, we currently assume that we are using
15337 # Microsoft Visual C++.
15338 if test "$GCC" != yes; then
15339 with_gnu_ld=no
15340 fi
15341 ;;
15342 interix*)
15343 # we just hope/assume this is gcc and not c89 (= MSVC++)
15344 with_gnu_ld=yes
15345 ;;
15346 openbsd*)
15347 with_gnu_ld=no
15348 ;;
15349 esac
15350
15351 ld_shlibs=yes
15352 if test "$with_gnu_ld" = yes; then
15353 # If archive_cmds runs LD, not CC, wlarc should be empty
15354 wlarc='${wl}'
15355
15356 # Set some defaults for GNU ld with shared library support. These
15357 # are reset later if shared libraries are not supported. Putting them
15358 # here allows them to be overridden if necessary.
15359 runpath_var=LD_RUN_PATH
15360 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15361 export_dynamic_flag_spec='${wl}--export-dynamic'
15362 # ancient GNU ld didn't support --whole-archive et. al.
15363 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15364 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15365 else
15366 whole_archive_flag_spec=
15367 fi
15368 supports_anon_versioning=no
15369 case `$LD -v 2>/dev/null` in
15370 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15371 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15372 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15373 *\ 2.11.*) ;; # other 2.11 versions
15374 *) supports_anon_versioning=yes ;;
15375 esac
15376
15377 # See if GNU ld supports shared libraries.
15378 case $host_os in
15379 aix3* | aix4* | aix5*)
15380 # On AIX/PPC, the GNU linker is very broken
15381 if test "$host_cpu" != ia64; then
15382 ld_shlibs=no
15383 cat <<EOF 1>&2
15384
15385*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15386*** to be unable to reliably create shared libraries on AIX.
15387*** Therefore, libtool is disabling shared libraries support. If you
15388*** really care for shared libraries, you may want to modify your PATH
15389*** so that a non-GNU linker is found, and then restart.
15390
15391EOF
15392 fi
15393 ;;
15394
15395 amigaos*)
15396 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)'
15397 hardcode_libdir_flag_spec='-L$libdir'
15398 hardcode_minus_L=yes
15399
15400 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15401 # that the semantics of dynamic libraries on AmigaOS, at least up
15402 # to version 4, is to share data among multiple programs linked
15403 # with the same dynamic library. Since this doesn't match the
15404 # behavior of shared libraries on other platforms, we can't use
15405 # them.
15406 ld_shlibs=no
15407 ;;
15408
15409 beos*)
15410 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15411 allow_undefined_flag=unsupported
15412 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15413 # support --undefined. This deserves some investigation. FIXME
15414 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15415 else
15416 ld_shlibs=no
15417 fi
15418 ;;
15419
15420 cygwin* | mingw* | pw32*)
15421 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15422 # as there is no search path for DLLs.
15423 hardcode_libdir_flag_spec='-L$libdir'
15424 allow_undefined_flag=unsupported
15425 always_export_symbols=no
15426 enable_shared_with_static_runtimes=yes
15427 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15428
15429 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15431 # If the export-symbols file already is a .def file (1st line
15432 # is EXPORTS), use it as is; otherwise, prepend...
15433 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15434 cp $export_symbols $output_objdir/$soname.def;
15435 else
15436 echo EXPORTS > $output_objdir/$soname.def;
15437 cat $export_symbols >> $output_objdir/$soname.def;
15438 fi~
15439 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15440 else
15441 ld_shlibs=no
15442 fi
15443 ;;
15444
15445 interix3*)
15446 hardcode_direct=no
15447 hardcode_shlibpath_var=no
15448 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15449 export_dynamic_flag_spec='${wl}-E'
15450 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15451 # Instead, shared libraries are loaded at an image base (0x10000000 by
15452 # default) and relocated if they conflict, which is a slow very memory
15453 # consuming and fragmenting process. To avoid this, we pick a random,
15454 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15455 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15456 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15457 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'
15458 ;;
15459
15460 linux*)
15461 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15462 tmp_addflag=
15463 case $cc_basename,$host_cpu in
15464 pgcc*) # Portland Group C compiler
15465 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'
15466 tmp_addflag=' $pic_flag'
15467 ;;
15468 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15469 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'
15470 tmp_addflag=' $pic_flag -Mnomain' ;;
15471 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15472 tmp_addflag=' -i_dynamic' ;;
15473 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15474 tmp_addflag=' -i_dynamic -nofor_main' ;;
15475 ifc* | ifort*) # Intel Fortran compiler
15476 tmp_addflag=' -nofor_main' ;;
15477 esac
15478 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15479
15480 if test $supports_anon_versioning = yes; then
15481 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15483 $echo "local: *; };" >> $output_objdir/$libname.ver~
15484 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15485 fi
15486 else
15487 ld_shlibs=no
15488 fi
15489 ;;
15490
15491 netbsd*)
15492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15493 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15494 wlarc=
15495 else
15496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15498 fi
15499 ;;
15500
15501 solaris*)
15502 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15503 ld_shlibs=no
15504 cat <<EOF 1>&2
15505
15506*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15507*** create shared libraries on Solaris systems. Therefore, libtool
15508*** is disabling shared libraries support. We urge you to upgrade GNU
15509*** binutils to release 2.9.1 or newer. Another option is to modify
15510*** your PATH or compiler configuration so that the native linker is
15511*** used, and then restart.
15512
15513EOF
15514 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15517 else
15518 ld_shlibs=no
15519 fi
15520 ;;
15521
15522 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15523 case `$LD -v 2>&1` in
15524 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15525 ld_shlibs=no
15526 cat <<_LT_EOF 1>&2
15527
15528*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15529*** reliably create shared libraries on SCO systems. Therefore, libtool
15530*** is disabling shared libraries support. We urge you to upgrade GNU
15531*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15532*** your PATH or compiler configuration so that the native linker is
15533*** used, and then restart.
15534
15535_LT_EOF
15536 ;;
15537 *)
15538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15539 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15542 else
15543 ld_shlibs=no
15544 fi
15545 ;;
15546 esac
15547 ;;
15548
15549 sunos4*)
15550 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15551 wlarc=
15552 hardcode_direct=yes
15553 hardcode_shlibpath_var=no
15554 ;;
15555
15556 *)
15557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15560 else
15561 ld_shlibs=no
15562 fi
15563 ;;
15564 esac
15565
15566 if test "$ld_shlibs" = no; then
15567 runpath_var=
15568 hardcode_libdir_flag_spec=
15569 export_dynamic_flag_spec=
15570 whole_archive_flag_spec=
15571 fi
15572 else
15573 # PORTME fill in a description of your system's linker (not GNU ld)
15574 case $host_os in
15575 aix3*)
15576 allow_undefined_flag=unsupported
15577 always_export_symbols=yes
15578 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'
15579 # Note: this linker hardcodes the directories in LIBPATH if there
15580 # are no directories specified by -L.
15581 hardcode_minus_L=yes
15582 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15583 # Neither direct hardcoding nor static linking is supported with a
15584 # broken collect2.
15585 hardcode_direct=unsupported
15586 fi
15587 ;;
15588
15589 aix4* | aix5*)
15590 if test "$host_cpu" = ia64; then
15591 # On IA64, the linker does run time linking by default, so we don't
15592 # have to do anything special.
15593 aix_use_runtimelinking=no
15594 exp_sym_flag='-Bexport'
15595 no_entry_flag=""
15596 else
15597 # If we're using GNU nm, then we don't want the "-C" option.
15598 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15599 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15600 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'
15601 else
15602 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'
15603 fi
15604 aix_use_runtimelinking=no
15605
15606 # Test if we are trying to use run time linking or normal
15607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15608 # need to do runtime linking.
15609 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15610 for ld_flag in $LDFLAGS; do
15611 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15612 aix_use_runtimelinking=yes
15613 break
15614 fi
15615 done
15616 ;;
15617 esac
15618
15619 exp_sym_flag='-bexport'
15620 no_entry_flag='-bnoentry'
15621 fi
15622
15623 # When large executables or shared objects are built, AIX ld can
15624 # have problems creating the table of contents. If linking a library
15625 # or program results in "error TOC overflow" add -mminimal-toc to
15626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15628
15629 archive_cmds=''
15630 hardcode_direct=yes
15631 hardcode_libdir_separator=':'
15632 link_all_deplibs=yes
15633
15634 if test "$GCC" = yes; then
15635 case $host_os in aix4.[012]|aix4.[012].*)
15636 # We only want to do this on AIX 4.2 and lower, the check
15637 # below for broken collect2 doesn't work under 4.3+
15638 collect2name=`${CC} -print-prog-name=collect2`
15639 if test -f "$collect2name" && \
15640 strings "$collect2name" | grep resolve_lib_name >/dev/null
15641 then
15642 # We have reworked collect2
15643 hardcode_direct=yes
15644 else
15645 # We have old collect2
15646 hardcode_direct=unsupported
15647 # It fails to find uninstalled libraries when the uninstalled
15648 # path is not listed in the libpath. Setting hardcode_minus_L
15649 # to unsupported forces relinking
15650 hardcode_minus_L=yes
15651 hardcode_libdir_flag_spec='-L$libdir'
15652 hardcode_libdir_separator=
15653 fi
15654 ;;
15655 esac
15656 shared_flag='-shared'
15657 if test "$aix_use_runtimelinking" = yes; then
15658 shared_flag="$shared_flag "'${wl}-G'
15659 fi
15660 else
15661 # not using gcc
15662 if test "$host_cpu" = ia64; then
15663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15664 # chokes on -Wl,-G. The following line is correct:
15665 shared_flag='-G'
15666 else
15667 if test "$aix_use_runtimelinking" = yes; then
15668 shared_flag='${wl}-G'
15669 else
15670 shared_flag='${wl}-bM:SRE'
15671 fi
15672 fi
15673 fi
15674
15675 # It seems that -bexpall does not export symbols beginning with
15676 # underscore (_), so it is better to generate a list of symbols to export.
15677 always_export_symbols=yes
15678 if test "$aix_use_runtimelinking" = yes; then
15679 # Warning - without using the other runtime loading flags (-brtl),
15680 # -berok will link without error, but may produce a broken library.
15681 allow_undefined_flag='-berok'
15682 # Determine the default libpath from the value encoded in an empty executable.
15683 cat >conftest.$ac_ext <<_ACEOF
15684/* confdefs.h. */
15685_ACEOF
15686cat confdefs.h >>conftest.$ac_ext
15687cat >>conftest.$ac_ext <<_ACEOF
15688/* end confdefs.h. */
15689
15690int
15691main ()
15692{
15693
15694 ;
15695 return 0;
15696}
15697_ACEOF
15698rm -f conftest.$ac_objext conftest$ac_exeext
15699if { (ac_try="$ac_link"
15700case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15703esac
15704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_link") 2>conftest.er1
15706 ac_status=$?
15707 grep -v '^ *+' conftest.er1 >conftest.err
15708 rm -f conftest.er1
15709 cat conftest.err >&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015711 (exit $ac_status); } &&
15712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716esac
15717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; } &&
15722 { ac_try='test -s conftest$ac_exeext'
15723 { (case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15726esac
15727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_try") 2>&5
15729 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015732
15733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15734}'`
15735# Check for a 64-bit object if we didn't find anything.
15736if 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; }
15737}'`; fi
15738else
15739 echo "$as_me: failed program was:" >&5
15740sed 's/^/| /' conftest.$ac_ext >&5
15741
15742
15743fi
15744
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015745rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015746 conftest$ac_exeext conftest.$ac_ext
15747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15748
15749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15750 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"
15751 else
15752 if test "$host_cpu" = ia64; then
15753 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15754 allow_undefined_flag="-z nodefs"
15755 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"
15756 else
15757 # Determine the default libpath from the value encoded in an empty executable.
15758 cat >conftest.$ac_ext <<_ACEOF
15759/* confdefs.h. */
15760_ACEOF
15761cat confdefs.h >>conftest.$ac_ext
15762cat >>conftest.$ac_ext <<_ACEOF
15763/* end confdefs.h. */
15764
15765int
15766main ()
15767{
15768
15769 ;
15770 return 0;
15771}
15772_ACEOF
15773rm -f conftest.$ac_objext conftest$ac_exeext
15774if { (ac_try="$ac_link"
15775case "(($ac_try" in
15776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15777 *) ac_try_echo=$ac_try;;
15778esac
15779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15780 (eval "$ac_link") 2>conftest.er1
15781 ac_status=$?
15782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015786 (exit $ac_status); } &&
15787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15788 { (case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791esac
15792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15793 (eval "$ac_try") 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } &&
15797 { ac_try='test -s conftest$ac_exeext'
15798 { (case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15801esac
15802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803 (eval "$ac_try") 2>&5
15804 ac_status=$?
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015807
15808aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15809}'`
15810# Check for a 64-bit object if we didn't find anything.
15811if 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; }
15812}'`; fi
15813else
15814 echo "$as_me: failed program was:" >&5
15815sed 's/^/| /' conftest.$ac_ext >&5
15816
15817
15818fi
15819
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015820rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015821 conftest$ac_exeext conftest.$ac_ext
15822if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15823
15824 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15825 # Warning - without using the other run time loading flags,
15826 # -berok will link without error, but may produce a broken library.
15827 no_undefined_flag=' ${wl}-bernotok'
15828 allow_undefined_flag=' ${wl}-berok'
15829 # Exported symbols can be pulled into shared objects from archives
15830 whole_archive_flag_spec='$convenience'
15831 archive_cmds_need_lc=yes
15832 # This is similar to how AIX traditionally builds its shared libraries.
15833 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'
15834 fi
15835 fi
15836 ;;
15837
15838 amigaos*)
15839 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)'
15840 hardcode_libdir_flag_spec='-L$libdir'
15841 hardcode_minus_L=yes
15842 # see comment about different semantics on the GNU ld section
15843 ld_shlibs=no
15844 ;;
15845
15846 bsdi[45]*)
15847 export_dynamic_flag_spec=-rdynamic
15848 ;;
15849
15850 cygwin* | mingw* | pw32*)
15851 # When not using gcc, we currently assume that we are using
15852 # Microsoft Visual C++.
15853 # hardcode_libdir_flag_spec is actually meaningless, as there is
15854 # no search path for DLLs.
15855 hardcode_libdir_flag_spec=' '
15856 allow_undefined_flag=unsupported
15857 # Tell ltmain to make .lib files, not .a files.
15858 libext=lib
15859 # Tell ltmain to make .dll files, not .so files.
15860 shrext_cmds=".dll"
15861 # FIXME: Setting linknames here is a bad hack.
15862 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15863 # The linker will automatically build a .lib file if we build a DLL.
15864 old_archive_From_new_cmds='true'
15865 # FIXME: Should let the user specify the lib program.
15866 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15867 fix_srcfile_path='`cygpath -w "$srcfile"`'
15868 enable_shared_with_static_runtimes=yes
15869 ;;
15870
15871 darwin* | rhapsody*)
15872 case $host_os in
15873 rhapsody* | darwin1.[012])
15874 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15875 ;;
15876 *) # Darwin 1.3 on
15877 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15878 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15879 else
15880 case ${MACOSX_DEPLOYMENT_TARGET} in
15881 10.[012])
15882 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15883 ;;
15884 10.*)
15885 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15886 ;;
15887 esac
15888 fi
15889 ;;
15890 esac
15891 archive_cmds_need_lc=no
15892 hardcode_direct=no
15893 hardcode_automatic=yes
15894 hardcode_shlibpath_var=unsupported
15895 whole_archive_flag_spec=''
15896 link_all_deplibs=yes
15897 if test "$GCC" = yes ; then
15898 output_verbose_link_cmd='echo'
15899 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15900 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15902 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}'
15903 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}'
15904 else
15905 case $cc_basename in
15906 xlc*)
15907 output_verbose_link_cmd='echo'
15908 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15909 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15910 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15911 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}'
15912 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}'
15913 ;;
15914 *)
15915 ld_shlibs=no
15916 ;;
15917 esac
15918 fi
15919 ;;
15920
15921 dgux*)
15922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923 hardcode_libdir_flag_spec='-L$libdir'
15924 hardcode_shlibpath_var=no
15925 ;;
15926
15927 freebsd1*)
15928 ld_shlibs=no
15929 ;;
15930
15931 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15932 # support. Future versions do this automatically, but an explicit c++rt0.o
15933 # does not break anything, and helps significantly (at the cost of a little
15934 # extra space).
15935 freebsd2.2*)
15936 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15937 hardcode_libdir_flag_spec='-R$libdir'
15938 hardcode_direct=yes
15939 hardcode_shlibpath_var=no
15940 ;;
15941
15942 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15943 freebsd2*)
15944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15945 hardcode_direct=yes
15946 hardcode_minus_L=yes
15947 hardcode_shlibpath_var=no
15948 ;;
15949
15950 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15951 freebsd* | kfreebsd*-gnu | dragonfly*)
15952 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15953 hardcode_libdir_flag_spec='-R$libdir'
15954 hardcode_direct=yes
15955 hardcode_shlibpath_var=no
15956 ;;
15957
15958 hpux9*)
15959 if test "$GCC" = yes; then
15960 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'
15961 else
15962 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'
15963 fi
15964 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15965 hardcode_libdir_separator=:
15966 hardcode_direct=yes
15967
15968 # hardcode_minus_L: Not really in the search PATH,
15969 # but as the default location of the library.
15970 hardcode_minus_L=yes
15971 export_dynamic_flag_spec='${wl}-E'
15972 ;;
15973
15974 hpux10*)
15975 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15976 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15977 else
15978 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15979 fi
15980 if test "$with_gnu_ld" = no; then
15981 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15982 hardcode_libdir_separator=:
15983
15984 hardcode_direct=yes
15985 export_dynamic_flag_spec='${wl}-E'
15986
15987 # hardcode_minus_L: Not really in the search PATH,
15988 # but as the default location of the library.
15989 hardcode_minus_L=yes
15990 fi
15991 ;;
15992
15993 hpux11*)
15994 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15995 case $host_cpu in
15996 hppa*64*)
15997 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15998 ;;
15999 ia64*)
16000 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16001 ;;
16002 *)
16003 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16004 ;;
16005 esac
16006 else
16007 case $host_cpu in
16008 hppa*64*)
16009 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16010 ;;
16011 ia64*)
16012 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16013 ;;
16014 *)
16015 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16016 ;;
16017 esac
16018 fi
16019 if test "$with_gnu_ld" = no; then
16020 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16021 hardcode_libdir_separator=:
16022
16023 case $host_cpu in
16024 hppa*64*|ia64*)
16025 hardcode_libdir_flag_spec_ld='+b $libdir'
16026 hardcode_direct=no
16027 hardcode_shlibpath_var=no
16028 ;;
16029 *)
16030 hardcode_direct=yes
16031 export_dynamic_flag_spec='${wl}-E'
16032
16033 # hardcode_minus_L: Not really in the search PATH,
16034 # but as the default location of the library.
16035 hardcode_minus_L=yes
16036 ;;
16037 esac
16038 fi
16039 ;;
16040
16041 irix5* | irix6* | nonstopux*)
16042 if test "$GCC" = yes; then
16043 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'
16044 else
16045 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'
16046 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16047 fi
16048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16049 hardcode_libdir_separator=:
16050 link_all_deplibs=yes
16051 ;;
16052
16053 netbsd*)
16054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16056 else
16057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16058 fi
16059 hardcode_libdir_flag_spec='-R$libdir'
16060 hardcode_direct=yes
16061 hardcode_shlibpath_var=no
16062 ;;
16063
16064 newsos6)
16065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16066 hardcode_direct=yes
16067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16068 hardcode_libdir_separator=:
16069 hardcode_shlibpath_var=no
16070 ;;
16071
16072 openbsd*)
16073 hardcode_direct=yes
16074 hardcode_shlibpath_var=no
16075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16077 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16078 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16079 export_dynamic_flag_spec='${wl}-E'
16080 else
16081 case $host_os in
16082 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16084 hardcode_libdir_flag_spec='-R$libdir'
16085 ;;
16086 *)
16087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16088 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16089 ;;
16090 esac
16091 fi
16092 ;;
16093
16094 os2*)
16095 hardcode_libdir_flag_spec='-L$libdir'
16096 hardcode_minus_L=yes
16097 allow_undefined_flag=unsupported
16098 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'
16099 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16100 ;;
16101
16102 osf3*)
16103 if test "$GCC" = yes; then
16104 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16105 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'
16106 else
16107 allow_undefined_flag=' -expect_unresolved \*'
16108 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'
16109 fi
16110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16111 hardcode_libdir_separator=:
16112 ;;
16113
16114 osf4* | osf5*) # as osf3* with the addition of -msym flag
16115 if test "$GCC" = yes; then
16116 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16117 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'
16118 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16119 else
16120 allow_undefined_flag=' -expect_unresolved \*'
16121 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'
16122 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16123 $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'
16124
16125 # Both c and cxx compiler support -rpath directly
16126 hardcode_libdir_flag_spec='-rpath $libdir'
16127 fi
16128 hardcode_libdir_separator=:
16129 ;;
16130
16131 solaris*)
16132 no_undefined_flag=' -z text'
16133 if test "$GCC" = yes; then
16134 wlarc='${wl}'
16135 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16136 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16137 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16138 else
16139 wlarc=''
16140 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16141 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16142 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16143 fi
16144 hardcode_libdir_flag_spec='-R$libdir'
16145 hardcode_shlibpath_var=no
16146 case $host_os in
16147 solaris2.[0-5] | solaris2.[0-5].*) ;;
16148 *)
16149 # The compiler driver will combine linker options so we
16150 # cannot just pass the convience library names through
16151 # without $wl, iff we do not link with $LD.
16152 # Luckily, gcc supports the same syntax we need for Sun Studio.
16153 # Supported since Solaris 2.6 (maybe 2.5.1?)
16154 case $wlarc in
16155 '')
16156 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16157 *)
16158 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' ;;
16159 esac ;;
16160 esac
16161 link_all_deplibs=yes
16162 ;;
16163
16164 sunos4*)
16165 if test "x$host_vendor" = xsequent; then
16166 # Use $CC to link under sequent, because it throws in some extra .o
16167 # files that make .init and .fini sections work.
16168 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16169 else
16170 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16171 fi
16172 hardcode_libdir_flag_spec='-L$libdir'
16173 hardcode_direct=yes
16174 hardcode_minus_L=yes
16175 hardcode_shlibpath_var=no
16176 ;;
16177
16178 sysv4)
16179 case $host_vendor in
16180 sni)
16181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16182 hardcode_direct=yes # is this really true???
16183 ;;
16184 siemens)
16185 ## LD is ld it makes a PLAMLIB
16186 ## CC just makes a GrossModule.
16187 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16188 reload_cmds='$CC -r -o $output$reload_objs'
16189 hardcode_direct=no
16190 ;;
16191 motorola)
16192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16193 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16194 ;;
16195 esac
16196 runpath_var='LD_RUN_PATH'
16197 hardcode_shlibpath_var=no
16198 ;;
16199
16200 sysv4.3*)
16201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16202 hardcode_shlibpath_var=no
16203 export_dynamic_flag_spec='-Bexport'
16204 ;;
16205
16206 sysv4*MP*)
16207 if test -d /usr/nec; then
16208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_shlibpath_var=no
16210 runpath_var=LD_RUN_PATH
16211 hardcode_runpath_var=yes
16212 ld_shlibs=yes
16213 fi
16214 ;;
16215
16216 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16217 no_undefined_flag='${wl}-z,text'
16218 archive_cmds_need_lc=no
16219 hardcode_shlibpath_var=no
16220 runpath_var='LD_RUN_PATH'
16221
16222 if test "$GCC" = yes; then
16223 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16224 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16225 else
16226 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16228 fi
16229 ;;
16230
16231 sysv5* | sco3.2v5* | sco5v6*)
16232 # Note: We can NOT use -z defs as we might desire, because we do not
16233 # link with -lc, and that would cause any symbols used from libc to
16234 # always be unresolved, which means just about no library would
16235 # ever link correctly. If we're not using GNU ld we use -z text
16236 # though, which does catch some bad symbols but isn't as heavy-handed
16237 # as -z defs.
16238 no_undefined_flag='${wl}-z,text'
16239 allow_undefined_flag='${wl}-z,nodefs'
16240 archive_cmds_need_lc=no
16241 hardcode_shlibpath_var=no
16242 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16243 hardcode_libdir_separator=':'
16244 link_all_deplibs=yes
16245 export_dynamic_flag_spec='${wl}-Bexport'
16246 runpath_var='LD_RUN_PATH'
16247
16248 if test "$GCC" = yes; then
16249 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16250 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16251 else
16252 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16254 fi
16255 ;;
16256
16257 uts4*)
16258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259 hardcode_libdir_flag_spec='-L$libdir'
16260 hardcode_shlibpath_var=no
16261 ;;
16262
16263 *)
16264 ld_shlibs=no
16265 ;;
16266 esac
16267 fi
16268
16269{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16270echo "${ECHO_T}$ld_shlibs" >&6; }
16271test "$ld_shlibs" = no && can_build_shared=no
16272
16273#
16274# Do we need to explicitly link libc?
16275#
16276case "x$archive_cmds_need_lc" in
16277x|xyes)
16278 # Assume -lc should be added
16279 archive_cmds_need_lc=yes
16280
16281 if test "$enable_shared" = yes && test "$GCC" = yes; then
16282 case $archive_cmds in
16283 *'~'*)
16284 # FIXME: we may have to deal with multi-command sequences.
16285 ;;
16286 '$CC '*)
16287 # Test whether the compiler implicitly links with -lc since on some
16288 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16289 # to ld, don't add -lc before -lgcc.
16290 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16291echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16292 $rm conftest*
16293 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16294
16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296 (eval $ac_compile) 2>&5
16297 ac_status=$?
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } 2>conftest.err; then
16300 soname=conftest
16301 lib=conftest
16302 libobjs=conftest.$ac_objext
16303 deplibs=
16304 wl=$lt_prog_compiler_wl
16305 pic_flag=$lt_prog_compiler_pic
16306 compiler_flags=-v
16307 linker_flags=-v
16308 verstring=
16309 output_objdir=.
16310 libname=conftest
16311 lt_save_allow_undefined_flag=$allow_undefined_flag
16312 allow_undefined_flag=
16313 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16314 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }
16318 then
16319 archive_cmds_need_lc=no
16320 else
16321 archive_cmds_need_lc=yes
16322 fi
16323 allow_undefined_flag=$lt_save_allow_undefined_flag
16324 else
16325 cat conftest.err 1>&5
16326 fi
16327 $rm conftest*
16328 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16329echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16330 ;;
16331 esac
16332 fi
16333 ;;
16334esac
16335
16336{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16337echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16338library_names_spec=
16339libname_spec='lib$name'
16340soname_spec=
16341shrext_cmds=".so"
16342postinstall_cmds=
16343postuninstall_cmds=
16344finish_cmds=
16345finish_eval=
16346shlibpath_var=
16347shlibpath_overrides_runpath=unknown
16348version_type=none
16349dynamic_linker="$host_os ld.so"
16350sys_lib_dlsearch_path_spec="/lib /usr/lib"
16351if test "$GCC" = yes; then
16352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16354 # if the path contains ";" then we assume it to be the separator
16355 # otherwise default to the standard path separator (i.e. ":") - it is
16356 # assumed that no part of a normal pathname contains ";" but that should
16357 # okay in the real world where ";" in dirpaths is itself problematic.
16358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359 else
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16361 fi
16362else
16363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16364fi
16365need_lib_prefix=unknown
16366hardcode_into_libs=no
16367
16368# when you set need_version to no, make sure it does not cause -set_version
16369# flags to be left without arguments
16370need_version=unknown
16371
16372case $host_os in
16373aix3*)
16374 version_type=linux
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16376 shlibpath_var=LIBPATH
16377
16378 # AIX 3 has no versioning support, so we append a major version to the name.
16379 soname_spec='${libname}${release}${shared_ext}$major'
16380 ;;
16381
16382aix4* | aix5*)
16383 version_type=linux
16384 need_lib_prefix=no
16385 need_version=no
16386 hardcode_into_libs=yes
16387 if test "$host_cpu" = ia64; then
16388 # AIX 5 supports IA64
16389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 else
16392 # With GCC up to 2.95.x, collect2 would create an import file
16393 # for dependence libraries. The import file would start with
16394 # the line `#! .'. This would cause the generated library to
16395 # depend on `.', always an invalid library. This was fixed in
16396 # development snapshots of GCC prior to 3.0.
16397 case $host_os in
16398 aix4 | aix4.[01] | aix4.[01].*)
16399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16400 echo ' yes '
16401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16402 :
16403 else
16404 can_build_shared=no
16405 fi
16406 ;;
16407 esac
16408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16409 # soname into executable. Probably we can add versioning support to
16410 # collect2, so additional links can be useful in future.
16411 if test "$aix_use_runtimelinking" = yes; then
16412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16413 # instead of lib<name>.a to let people know that these are not
16414 # typical AIX shared libraries.
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 else
16417 # We preserve .a as extension for shared libraries through AIX4.2
16418 # and later when we are not doing run time linking.
16419 library_names_spec='${libname}${release}.a $libname.a'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 fi
16422 shlibpath_var=LIBPATH
16423 fi
16424 ;;
16425
16426amigaos*)
16427 library_names_spec='$libname.ixlibrary $libname.a'
16428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16429 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'
16430 ;;
16431
16432beos*)
16433 library_names_spec='${libname}${shared_ext}'
16434 dynamic_linker="$host_os ld.so"
16435 shlibpath_var=LIBRARY_PATH
16436 ;;
16437
16438bsdi[45]*)
16439 version_type=linux
16440 need_version=no
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442 soname_spec='${libname}${release}${shared_ext}$major'
16443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16444 shlibpath_var=LD_LIBRARY_PATH
16445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16447 # the default ld.so.conf also contains /usr/contrib/lib and
16448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16449 # libtool to hard-code these into programs
16450 ;;
16451
16452cygwin* | mingw* | pw32*)
16453 version_type=windows
16454 shrext_cmds=".dll"
16455 need_version=no
16456 need_lib_prefix=no
16457
16458 case $GCC,$host_os in
16459 yes,cygwin* | yes,mingw* | yes,pw32*)
16460 library_names_spec='$libname.dll.a'
16461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16462 postinstall_cmds='base_file=`basename \${file}`~
16463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16464 dldir=$destdir/`dirname \$dlpath`~
16465 test -d \$dldir || mkdir -p \$dldir~
16466 $install_prog $dir/$dlname \$dldir/$dlname~
16467 chmod a+x \$dldir/$dlname'
16468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16469 dlpath=$dir/\$dldll~
16470 $rm \$dlpath'
16471 shlibpath_overrides_runpath=yes
16472
16473 case $host_os in
16474 cygwin*)
16475 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16476 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16477 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16478 ;;
16479 mingw*)
16480 # MinGW DLLs use traditional 'lib' prefix
16481 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16482 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16483 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16484 # It is most probably a Windows format PATH printed by
16485 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16486 # path with ; separators, and with drive letters. We can handle the
16487 # drive letters (cygwin fileutils understands them), so leave them,
16488 # especially as we might pass files found there to a mingw objdump,
16489 # which wouldn't understand a cygwinified path. Ahh.
16490 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16491 else
16492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16493 fi
16494 ;;
16495 pw32*)
16496 # pw32 DLLs use 'pw' prefix rather than 'lib'
16497 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16498 ;;
16499 esac
16500 ;;
16501
16502 *)
16503 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16504 ;;
16505 esac
16506 dynamic_linker='Win32 ld.exe'
16507 # FIXME: first we should search . and the directory the executable is in
16508 shlibpath_var=PATH
16509 ;;
16510
16511darwin* | rhapsody*)
16512 dynamic_linker="$host_os dyld"
16513 version_type=darwin
16514 need_lib_prefix=no
16515 need_version=no
16516 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16517 soname_spec='${libname}${release}${major}$shared_ext'
16518 shlibpath_overrides_runpath=yes
16519 shlibpath_var=DYLD_LIBRARY_PATH
16520 shrext_cmds='.dylib'
16521 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16522 if test "$GCC" = yes; then
16523 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"`
16524 else
16525 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16526 fi
16527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16528 ;;
16529
16530dgux*)
16531 version_type=linux
16532 need_lib_prefix=no
16533 need_version=no
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
16537 ;;
16538
16539freebsd1*)
16540 dynamic_linker=no
16541 ;;
16542
16543kfreebsd*-gnu)
16544 version_type=linux
16545 need_lib_prefix=no
16546 need_version=no
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 shlibpath_overrides_runpath=no
16551 hardcode_into_libs=yes
16552 dynamic_linker='GNU ld.so'
16553 ;;
16554
16555freebsd* | dragonfly*)
16556 # DragonFly does not have aout. When/if they implement a new
16557 # versioning mechanism, adjust this.
16558 if test -x /usr/bin/objformat; then
16559 objformat=`/usr/bin/objformat`
16560 else
16561 case $host_os in
16562 freebsd[123]*) objformat=aout ;;
16563 *) objformat=elf ;;
16564 esac
16565 fi
16566 version_type=freebsd-$objformat
16567 case $version_type in
16568 freebsd-elf*)
16569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16570 need_version=no
16571 need_lib_prefix=no
16572 ;;
16573 freebsd-*)
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16575 need_version=yes
16576 ;;
16577 esac
16578 shlibpath_var=LD_LIBRARY_PATH
16579 case $host_os in
16580 freebsd2*)
16581 shlibpath_overrides_runpath=yes
16582 ;;
16583 freebsd3.[01]* | freebsdelf3.[01]*)
16584 shlibpath_overrides_runpath=yes
16585 hardcode_into_libs=yes
16586 ;;
16587 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16588 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16589 shlibpath_overrides_runpath=no
16590 hardcode_into_libs=yes
16591 ;;
16592 freebsd*) # from 4.6 on
16593 shlibpath_overrides_runpath=yes
16594 hardcode_into_libs=yes
16595 ;;
16596 esac
16597 ;;
16598
16599gnu*)
16600 version_type=linux
16601 need_lib_prefix=no
16602 need_version=no
16603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 shlibpath_var=LD_LIBRARY_PATH
16606 hardcode_into_libs=yes
16607 ;;
16608
16609hpux9* | hpux10* | hpux11*)
16610 # Give a soname corresponding to the major version so that dld.sl refuses to
16611 # link against other versions.
16612 version_type=sunos
16613 need_lib_prefix=no
16614 need_version=no
16615 case $host_cpu in
16616 ia64*)
16617 shrext_cmds='.so'
16618 hardcode_into_libs=yes
16619 dynamic_linker="$host_os dld.so"
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 if test "X$HPUX_IA64_MODE" = X32; then
16625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16626 else
16627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16628 fi
16629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16630 ;;
16631 hppa*64*)
16632 shrext_cmds='.sl'
16633 hardcode_into_libs=yes
16634 dynamic_linker="$host_os dld.sl"
16635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16641 ;;
16642 *)
16643 shrext_cmds='.sl'
16644 dynamic_linker="$host_os dld.sl"
16645 shlibpath_var=SHLIB_PATH
16646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16649 ;;
16650 esac
16651 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16652 postinstall_cmds='chmod 555 $lib'
16653 ;;
16654
16655interix3*)
16656 version_type=linux
16657 need_lib_prefix=no
16658 need_version=no
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16660 soname_spec='${libname}${release}${shared_ext}$major'
16661 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16662 shlibpath_var=LD_LIBRARY_PATH
16663 shlibpath_overrides_runpath=no
16664 hardcode_into_libs=yes
16665 ;;
16666
16667irix5* | irix6* | nonstopux*)
16668 case $host_os in
16669 nonstopux*) version_type=nonstopux ;;
16670 *)
16671 if test "$lt_cv_prog_gnu_ld" = yes; then
16672 version_type=linux
16673 else
16674 version_type=irix
16675 fi ;;
16676 esac
16677 need_lib_prefix=no
16678 need_version=no
16679 soname_spec='${libname}${release}${shared_ext}$major'
16680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16681 case $host_os in
16682 irix5* | nonstopux*)
16683 libsuff= shlibsuff=
16684 ;;
16685 *)
16686 case $LD in # libtool.m4 will add one of these switches to LD
16687 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16688 libsuff= shlibsuff= libmagic=32-bit;;
16689 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16690 libsuff=32 shlibsuff=N32 libmagic=N32;;
16691 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16692 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16693 *) libsuff= shlibsuff= libmagic=never-match;;
16694 esac
16695 ;;
16696 esac
16697 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16698 shlibpath_overrides_runpath=no
16699 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16700 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16701 hardcode_into_libs=yes
16702 ;;
16703
16704# No shared lib support for Linux oldld, aout, or coff.
16705linux*oldld* | linux*aout* | linux*coff*)
16706 dynamic_linker=no
16707 ;;
16708
16709# This must be Linux ELF.
16710linux*)
16711 version_type=linux
16712 need_lib_prefix=no
16713 need_version=no
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=no
16719 # This implies no fast_install, which is unacceptable.
16720 # Some rework will be needed to allow for fast_install
16721 # before this can be enabled.
16722 hardcode_into_libs=yes
16723
16724 # Append ld.so.conf contents to the search path
16725 if test -f /etc/ld.so.conf; then
16726 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' ' '`
16727 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16728 fi
16729
16730 # We used to test for /lib/ld.so.1 and disable shared libraries on
16731 # powerpc, because MkLinux only supported shared libraries with the
16732 # GNU dynamic linker. Since this was broken with cross compilers,
16733 # most powerpc-linux boxes support dynamic linking these days and
16734 # people can always --disable-shared, the test was removed, and we
16735 # assume the GNU/Linux dynamic linker is in use.
16736 dynamic_linker='GNU/Linux ld.so'
16737 ;;
16738
16739knetbsd*-gnu)
16740 version_type=linux
16741 need_lib_prefix=no
16742 need_version=no
16743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16744 soname_spec='${libname}${release}${shared_ext}$major'
16745 shlibpath_var=LD_LIBRARY_PATH
16746 shlibpath_overrides_runpath=no
16747 hardcode_into_libs=yes
16748 dynamic_linker='GNU ld.so'
16749 ;;
16750
16751netbsd*)
16752 version_type=sunos
16753 need_lib_prefix=no
16754 need_version=no
16755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16758 dynamic_linker='NetBSD (a.out) ld.so'
16759 else
16760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16761 soname_spec='${libname}${release}${shared_ext}$major'
16762 dynamic_linker='NetBSD ld.elf_so'
16763 fi
16764 shlibpath_var=LD_LIBRARY_PATH
16765 shlibpath_overrides_runpath=yes
16766 hardcode_into_libs=yes
16767 ;;
16768
16769newsos6)
16770 version_type=linux
16771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16772 shlibpath_var=LD_LIBRARY_PATH
16773 shlibpath_overrides_runpath=yes
16774 ;;
16775
16776nto-qnx*)
16777 version_type=linux
16778 need_lib_prefix=no
16779 need_version=no
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16781 soname_spec='${libname}${release}${shared_ext}$major'
16782 shlibpath_var=LD_LIBRARY_PATH
16783 shlibpath_overrides_runpath=yes
16784 ;;
16785
16786openbsd*)
16787 version_type=sunos
16788 sys_lib_dlsearch_path_spec="/usr/lib"
16789 need_lib_prefix=no
16790 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16791 case $host_os in
16792 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16793 *) need_version=no ;;
16794 esac
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16797 shlibpath_var=LD_LIBRARY_PATH
16798 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16799 case $host_os in
16800 openbsd2.[89] | openbsd2.[89].*)
16801 shlibpath_overrides_runpath=no
16802 ;;
16803 *)
16804 shlibpath_overrides_runpath=yes
16805 ;;
16806 esac
16807 else
16808 shlibpath_overrides_runpath=yes
16809 fi
16810 ;;
16811
16812os2*)
16813 libname_spec='$name'
16814 shrext_cmds=".dll"
16815 need_lib_prefix=no
16816 library_names_spec='$libname${shared_ext} $libname.a'
16817 dynamic_linker='OS/2 ld.exe'
16818 shlibpath_var=LIBPATH
16819 ;;
16820
16821osf3* | osf4* | osf5*)
16822 version_type=osf
16823 need_lib_prefix=no
16824 need_version=no
16825 soname_spec='${libname}${release}${shared_ext}$major'
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16829 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16830 ;;
16831
16832solaris*)
16833 version_type=linux
16834 need_lib_prefix=no
16835 need_version=no
16836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837 soname_spec='${libname}${release}${shared_ext}$major'
16838 shlibpath_var=LD_LIBRARY_PATH
16839 shlibpath_overrides_runpath=yes
16840 hardcode_into_libs=yes
16841 # ldd complains unless libraries are executable
16842 postinstall_cmds='chmod +x $lib'
16843 ;;
16844
16845sunos4*)
16846 version_type=sunos
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16849 shlibpath_var=LD_LIBRARY_PATH
16850 shlibpath_overrides_runpath=yes
16851 if test "$with_gnu_ld" = yes; then
16852 need_lib_prefix=no
16853 fi
16854 need_version=yes
16855 ;;
16856
16857sysv4 | sysv4.3*)
16858 version_type=linux
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16860 soname_spec='${libname}${release}${shared_ext}$major'
16861 shlibpath_var=LD_LIBRARY_PATH
16862 case $host_vendor in
16863 sni)
16864 shlibpath_overrides_runpath=no
16865 need_lib_prefix=no
16866 export_dynamic_flag_spec='${wl}-Blargedynsym'
16867 runpath_var=LD_RUN_PATH
16868 ;;
16869 siemens)
16870 need_lib_prefix=no
16871 ;;
16872 motorola)
16873 need_lib_prefix=no
16874 need_version=no
16875 shlibpath_overrides_runpath=no
16876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16877 ;;
16878 esac
16879 ;;
16880
16881sysv4*MP*)
16882 if test -d /usr/nec ;then
16883 version_type=linux
16884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16885 soname_spec='$libname${shared_ext}.$major'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 fi
16888 ;;
16889
16890sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16891 version_type=freebsd-elf
16892 need_lib_prefix=no
16893 need_version=no
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16895 soname_spec='${libname}${release}${shared_ext}$major'
16896 shlibpath_var=LD_LIBRARY_PATH
16897 hardcode_into_libs=yes
16898 if test "$with_gnu_ld" = yes; then
16899 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16900 shlibpath_overrides_runpath=no
16901 else
16902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16903 shlibpath_overrides_runpath=yes
16904 case $host_os in
16905 sco3.2v5*)
16906 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16907 ;;
16908 esac
16909 fi
16910 sys_lib_dlsearch_path_spec='/usr/lib'
16911 ;;
16912
16913uts4*)
16914 version_type=linux
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916 soname_spec='${libname}${release}${shared_ext}$major'
16917 shlibpath_var=LD_LIBRARY_PATH
16918 ;;
16919
16920*)
16921 dynamic_linker=no
16922 ;;
16923esac
16924{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16925echo "${ECHO_T}$dynamic_linker" >&6; }
16926test "$dynamic_linker" = no && can_build_shared=no
16927
16928variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16929if test "$GCC" = yes; then
16930 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16931fi
16932
16933{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16934echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16935hardcode_action=
16936if test -n "$hardcode_libdir_flag_spec" || \
16937 test -n "$runpath_var" || \
16938 test "X$hardcode_automatic" = "Xyes" ; then
16939
16940 # We can hardcode non-existant directories.
16941 if test "$hardcode_direct" != no &&
16942 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16943 # have to relink, otherwise we might link with an installed library
16944 # when we should be linking with a yet-to-be-installed one
16945 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16946 test "$hardcode_minus_L" != no; then
16947 # Linking always hardcodes the temporary library directory.
16948 hardcode_action=relink
16949 else
16950 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16951 hardcode_action=immediate
16952 fi
16953else
16954 # We cannot hardcode anything, or else we can only hardcode existing
16955 # directories.
16956 hardcode_action=unsupported
16957fi
16958{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16959echo "${ECHO_T}$hardcode_action" >&6; }
16960
16961if test "$hardcode_action" = relink; then
16962 # Fast installation is not supported
16963 enable_fast_install=no
16964elif test "$shlibpath_overrides_runpath" = yes ||
16965 test "$enable_shared" = no; then
16966 # Fast installation is not necessary
16967 enable_fast_install=needless
16968fi
16969
16970striplib=
16971old_striplib=
16972{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16973echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16974if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16975 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16976 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16977 { echo "$as_me:$LINENO: result: yes" >&5
16978echo "${ECHO_T}yes" >&6; }
16979else
16980# FIXME - insert some real tests, host_os isn't really good enough
16981 case $host_os in
16982 darwin*)
16983 if test -n "$STRIP" ; then
16984 striplib="$STRIP -x"
16985 { echo "$as_me:$LINENO: result: yes" >&5
16986echo "${ECHO_T}yes" >&6; }
16987 else
16988 { echo "$as_me:$LINENO: result: no" >&5
16989echo "${ECHO_T}no" >&6; }
16990fi
16991 ;;
16992 *)
16993 { echo "$as_me:$LINENO: result: no" >&5
16994echo "${ECHO_T}no" >&6; }
16995 ;;
16996 esac
16997fi
16998
16999if test "x$enable_dlopen" != xyes; then
17000 enable_dlopen=unknown
17001 enable_dlopen_self=unknown
17002 enable_dlopen_self_static=unknown
17003else
17004 lt_cv_dlopen=no
17005 lt_cv_dlopen_libs=
17006
17007 case $host_os in
17008 beos*)
17009 lt_cv_dlopen="load_add_on"
17010 lt_cv_dlopen_libs=
17011 lt_cv_dlopen_self=yes
17012 ;;
17013
17014 mingw* | pw32*)
17015 lt_cv_dlopen="LoadLibrary"
17016 lt_cv_dlopen_libs=
17017 ;;
17018
17019 cygwin*)
17020 lt_cv_dlopen="dlopen"
17021 lt_cv_dlopen_libs=
17022 ;;
17023
17024 darwin*)
17025 # if libdl is installed we need to link against it
17026 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17027echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17028if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030else
17031 ac_check_lib_save_LIBS=$LIBS
17032LIBS="-ldl $LIBS"
17033cat >conftest.$ac_ext <<_ACEOF
17034/* confdefs.h. */
17035_ACEOF
17036cat confdefs.h >>conftest.$ac_ext
17037cat >>conftest.$ac_ext <<_ACEOF
17038/* end confdefs.h. */
17039
17040/* Override any GCC internal prototype to avoid an error.
17041 Use char because int might match the return type of a GCC
17042 builtin and then its argument prototype would still apply. */
17043#ifdef __cplusplus
17044extern "C"
17045#endif
17046char dlopen ();
17047int
17048main ()
17049{
17050return dlopen ();
17051 ;
17052 return 0;
17053}
17054_ACEOF
17055rm -f conftest.$ac_objext conftest$ac_exeext
17056if { (ac_try="$ac_link"
17057case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060esac
17061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_link") 2>conftest.er1
17063 ac_status=$?
17064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017068 (exit $ac_status); } &&
17069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073esac
17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest$ac_exeext'
17080 { (case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083esac
17084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_try") 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017089 ac_cv_lib_dl_dlopen=yes
17090else
17091 echo "$as_me: failed program was:" >&5
17092sed 's/^/| /' conftest.$ac_ext >&5
17093
17094 ac_cv_lib_dl_dlopen=no
17095fi
17096
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017097rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017098 conftest$ac_exeext conftest.$ac_ext
17099LIBS=$ac_check_lib_save_LIBS
17100fi
17101{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17102echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17103if test $ac_cv_lib_dl_dlopen = yes; then
17104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17105else
17106
17107 lt_cv_dlopen="dyld"
17108 lt_cv_dlopen_libs=
17109 lt_cv_dlopen_self=yes
17110
17111fi
17112
17113 ;;
17114
17115 *)
17116 { echo "$as_me:$LINENO: checking for shl_load" >&5
17117echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17118if test "${ac_cv_func_shl_load+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17120else
17121 cat >conftest.$ac_ext <<_ACEOF
17122/* confdefs.h. */
17123_ACEOF
17124cat confdefs.h >>conftest.$ac_ext
17125cat >>conftest.$ac_ext <<_ACEOF
17126/* end confdefs.h. */
17127/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17129#define shl_load innocuous_shl_load
17130
17131/* System header to define __stub macros and hopefully few prototypes,
17132 which can conflict with char shl_load (); below.
17133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17134 <limits.h> exists even on freestanding compilers. */
17135
17136#ifdef __STDC__
17137# include <limits.h>
17138#else
17139# include <assert.h>
17140#endif
17141
17142#undef shl_load
17143
17144/* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17147#ifdef __cplusplus
17148extern "C"
17149#endif
17150char shl_load ();
17151/* The GNU C library defines this for functions which it implements
17152 to always fail with ENOSYS. Some functions are actually named
17153 something starting with __ and the normal name is an alias. */
17154#if defined __stub_shl_load || defined __stub___shl_load
17155choke me
17156#endif
17157
17158int
17159main ()
17160{
17161return shl_load ();
17162 ;
17163 return 0;
17164}
17165_ACEOF
17166rm -f conftest.$ac_objext conftest$ac_exeext
17167if { (ac_try="$ac_link"
17168case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17171esac
17172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_link") 2>conftest.er1
17174 ac_status=$?
17175 grep -v '^ *+' conftest.er1 >conftest.err
17176 rm -f conftest.er1
17177 cat conftest.err >&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017179 (exit $ac_status); } &&
17180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181 { (case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184esac
17185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_try") 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest$ac_exeext'
17191 { (case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194esac
17195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_try") 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017200 ac_cv_func_shl_load=yes
17201else
17202 echo "$as_me: failed program was:" >&5
17203sed 's/^/| /' conftest.$ac_ext >&5
17204
17205 ac_cv_func_shl_load=no
17206fi
17207
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017208rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017209 conftest$ac_exeext conftest.$ac_ext
17210fi
17211{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17212echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17213if test $ac_cv_func_shl_load = yes; then
17214 lt_cv_dlopen="shl_load"
17215else
17216 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17217echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17218if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17219 echo $ECHO_N "(cached) $ECHO_C" >&6
17220else
17221 ac_check_lib_save_LIBS=$LIBS
17222LIBS="-ldld $LIBS"
17223cat >conftest.$ac_ext <<_ACEOF
17224/* confdefs.h. */
17225_ACEOF
17226cat confdefs.h >>conftest.$ac_ext
17227cat >>conftest.$ac_ext <<_ACEOF
17228/* end confdefs.h. */
17229
17230/* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
17233#ifdef __cplusplus
17234extern "C"
17235#endif
17236char shl_load ();
17237int
17238main ()
17239{
17240return shl_load ();
17241 ;
17242 return 0;
17243}
17244_ACEOF
17245rm -f conftest.$ac_objext conftest$ac_exeext
17246if { (ac_try="$ac_link"
17247case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250esac
17251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252 (eval "$ac_link") 2>conftest.er1
17253 ac_status=$?
17254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017258 (exit $ac_status); } &&
17259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17260 { (case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263esac
17264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_try") 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; } &&
17269 { ac_try='test -s conftest$ac_exeext'
17270 { (case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273esac
17274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_try") 2>&5
17276 ac_status=$?
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017279 ac_cv_lib_dld_shl_load=yes
17280else
17281 echo "$as_me: failed program was:" >&5
17282sed 's/^/| /' conftest.$ac_ext >&5
17283
17284 ac_cv_lib_dld_shl_load=no
17285fi
17286
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017287rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017288 conftest$ac_exeext conftest.$ac_ext
17289LIBS=$ac_check_lib_save_LIBS
17290fi
17291{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17292echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17293if test $ac_cv_lib_dld_shl_load = yes; then
17294 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17295else
17296 { echo "$as_me:$LINENO: checking for dlopen" >&5
17297echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17298if test "${ac_cv_func_dlopen+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17300else
17301 cat >conftest.$ac_ext <<_ACEOF
17302/* confdefs.h. */
17303_ACEOF
17304cat confdefs.h >>conftest.$ac_ext
17305cat >>conftest.$ac_ext <<_ACEOF
17306/* end confdefs.h. */
17307/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17309#define dlopen innocuous_dlopen
17310
17311/* System header to define __stub macros and hopefully few prototypes,
17312 which can conflict with char dlopen (); below.
17313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314 <limits.h> exists even on freestanding compilers. */
17315
17316#ifdef __STDC__
17317# include <limits.h>
17318#else
17319# include <assert.h>
17320#endif
17321
17322#undef dlopen
17323
17324/* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
17327#ifdef __cplusplus
17328extern "C"
17329#endif
17330char dlopen ();
17331/* The GNU C library defines this for functions which it implements
17332 to always fail with ENOSYS. Some functions are actually named
17333 something starting with __ and the normal name is an alias. */
17334#if defined __stub_dlopen || defined __stub___dlopen
17335choke me
17336#endif
17337
17338int
17339main ()
17340{
17341return dlopen ();
17342 ;
17343 return 0;
17344}
17345_ACEOF
17346rm -f conftest.$ac_objext conftest$ac_exeext
17347if { (ac_try="$ac_link"
17348case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17351esac
17352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_link") 2>conftest.er1
17354 ac_status=$?
17355 grep -v '^ *+' conftest.er1 >conftest.err
17356 rm -f conftest.er1
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017359 (exit $ac_status); } &&
17360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17361 { (case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17364esac
17365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_try") 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; } &&
17370 { ac_try='test -s conftest$ac_exeext'
17371 { (case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17374esac
17375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_try") 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017380 ac_cv_func_dlopen=yes
17381else
17382 echo "$as_me: failed program was:" >&5
17383sed 's/^/| /' conftest.$ac_ext >&5
17384
17385 ac_cv_func_dlopen=no
17386fi
17387
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017388rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017389 conftest$ac_exeext conftest.$ac_ext
17390fi
17391{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17392echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17393if test $ac_cv_func_dlopen = yes; then
17394 lt_cv_dlopen="dlopen"
17395else
17396 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17397echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17398if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400else
17401 ac_check_lib_save_LIBS=$LIBS
17402LIBS="-ldl $LIBS"
17403cat >conftest.$ac_ext <<_ACEOF
17404/* confdefs.h. */
17405_ACEOF
17406cat confdefs.h >>conftest.$ac_ext
17407cat >>conftest.$ac_ext <<_ACEOF
17408/* end confdefs.h. */
17409
17410/* Override any GCC internal prototype to avoid an error.
17411 Use char because int might match the return type of a GCC
17412 builtin and then its argument prototype would still apply. */
17413#ifdef __cplusplus
17414extern "C"
17415#endif
17416char dlopen ();
17417int
17418main ()
17419{
17420return dlopen ();
17421 ;
17422 return 0;
17423}
17424_ACEOF
17425rm -f conftest.$ac_objext conftest$ac_exeext
17426if { (ac_try="$ac_link"
17427case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17430esac
17431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_link") 2>conftest.er1
17433 ac_status=$?
17434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017438 (exit $ac_status); } &&
17439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17440 { (case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17443esac
17444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_try") 2>&5
17446 ac_status=$?
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; } &&
17449 { ac_try='test -s conftest$ac_exeext'
17450 { (case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17453esac
17454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17455 (eval "$ac_try") 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017459 ac_cv_lib_dl_dlopen=yes
17460else
17461 echo "$as_me: failed program was:" >&5
17462sed 's/^/| /' conftest.$ac_ext >&5
17463
17464 ac_cv_lib_dl_dlopen=no
17465fi
17466
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017467rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017468 conftest$ac_exeext conftest.$ac_ext
17469LIBS=$ac_check_lib_save_LIBS
17470fi
17471{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17472echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17473if test $ac_cv_lib_dl_dlopen = yes; then
17474 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17475else
17476 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17477echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17478if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480else
17481 ac_check_lib_save_LIBS=$LIBS
17482LIBS="-lsvld $LIBS"
17483cat >conftest.$ac_ext <<_ACEOF
17484/* confdefs.h. */
17485_ACEOF
17486cat confdefs.h >>conftest.$ac_ext
17487cat >>conftest.$ac_ext <<_ACEOF
17488/* end confdefs.h. */
17489
17490/* Override any GCC internal prototype to avoid an error.
17491 Use char because int might match the return type of a GCC
17492 builtin and then its argument prototype would still apply. */
17493#ifdef __cplusplus
17494extern "C"
17495#endif
17496char dlopen ();
17497int
17498main ()
17499{
17500return dlopen ();
17501 ;
17502 return 0;
17503}
17504_ACEOF
17505rm -f conftest.$ac_objext conftest$ac_exeext
17506if { (ac_try="$ac_link"
17507case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17510esac
17511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
17513 ac_status=$?
17514 grep -v '^ *+' conftest.er1 >conftest.err
17515 rm -f conftest.er1
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017518 (exit $ac_status); } &&
17519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17520 { (case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17523esac
17524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_try") 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; } &&
17529 { ac_try='test -s conftest$ac_exeext'
17530 { (case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533esac
17534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_try") 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017539 ac_cv_lib_svld_dlopen=yes
17540else
17541 echo "$as_me: failed program was:" >&5
17542sed 's/^/| /' conftest.$ac_ext >&5
17543
17544 ac_cv_lib_svld_dlopen=no
17545fi
17546
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017547rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017548 conftest$ac_exeext conftest.$ac_ext
17549LIBS=$ac_check_lib_save_LIBS
17550fi
17551{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17552echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17553if test $ac_cv_lib_svld_dlopen = yes; then
17554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17555else
17556 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17557echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17558if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560else
17561 ac_check_lib_save_LIBS=$LIBS
17562LIBS="-ldld $LIBS"
17563cat >conftest.$ac_ext <<_ACEOF
17564/* confdefs.h. */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h. */
17569
17570/* Override any GCC internal prototype to avoid an error.
17571 Use char because int might match the return type of a GCC
17572 builtin and then its argument prototype would still apply. */
17573#ifdef __cplusplus
17574extern "C"
17575#endif
17576char dld_link ();
17577int
17578main ()
17579{
17580return dld_link ();
17581 ;
17582 return 0;
17583}
17584_ACEOF
17585rm -f conftest.$ac_objext conftest$ac_exeext
17586if { (ac_try="$ac_link"
17587case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17590esac
17591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17592 (eval "$ac_link") 2>conftest.er1
17593 ac_status=$?
17594 grep -v '^ *+' conftest.er1 >conftest.err
17595 rm -f conftest.er1
17596 cat conftest.err >&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017598 (exit $ac_status); } &&
17599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17600 { (case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17603esac
17604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_try") 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest$ac_exeext'
17610 { (case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17613esac
17614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_try") 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017619 ac_cv_lib_dld_dld_link=yes
17620else
17621 echo "$as_me: failed program was:" >&5
17622sed 's/^/| /' conftest.$ac_ext >&5
17623
17624 ac_cv_lib_dld_dld_link=no
17625fi
17626
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017627rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017628 conftest$ac_exeext conftest.$ac_ext
17629LIBS=$ac_check_lib_save_LIBS
17630fi
17631{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17632echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17633if test $ac_cv_lib_dld_dld_link = yes; then
17634 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17635fi
17636
17637
17638fi
17639
17640
17641fi
17642
17643
17644fi
17645
17646
17647fi
17648
17649
17650fi
17651
17652 ;;
17653 esac
17654
17655 if test "x$lt_cv_dlopen" != xno; then
17656 enable_dlopen=yes
17657 else
17658 enable_dlopen=no
17659 fi
17660
17661 case $lt_cv_dlopen in
17662 dlopen)
17663 save_CPPFLAGS="$CPPFLAGS"
17664 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17665
17666 save_LDFLAGS="$LDFLAGS"
17667 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17668
17669 save_LIBS="$LIBS"
17670 LIBS="$lt_cv_dlopen_libs $LIBS"
17671
17672 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17673echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17674if test "${lt_cv_dlopen_self+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17676else
17677 if test "$cross_compiling" = yes; then :
17678 lt_cv_dlopen_self=cross
17679else
17680 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17681 lt_status=$lt_dlunknown
17682 cat > conftest.$ac_ext <<EOF
Nick Lewyckyd2813d02009-09-29 05:48:51 +000017683#line 17683 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017684#include "confdefs.h"
17685
17686#if HAVE_DLFCN_H
17687#include <dlfcn.h>
17688#endif
17689
17690#include <stdio.h>
17691
17692#ifdef RTLD_GLOBAL
17693# define LT_DLGLOBAL RTLD_GLOBAL
17694#else
17695# ifdef DL_GLOBAL
17696# define LT_DLGLOBAL DL_GLOBAL
17697# else
17698# define LT_DLGLOBAL 0
17699# endif
17700#endif
17701
17702/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17703 find out it does not work in some platform. */
17704#ifndef LT_DLLAZY_OR_NOW
17705# ifdef RTLD_LAZY
17706# define LT_DLLAZY_OR_NOW RTLD_LAZY
17707# else
17708# ifdef DL_LAZY
17709# define LT_DLLAZY_OR_NOW DL_LAZY
17710# else
17711# ifdef RTLD_NOW
17712# define LT_DLLAZY_OR_NOW RTLD_NOW
17713# else
17714# ifdef DL_NOW
17715# define LT_DLLAZY_OR_NOW DL_NOW
17716# else
17717# define LT_DLLAZY_OR_NOW 0
17718# endif
17719# endif
17720# endif
17721# endif
17722#endif
17723
17724#ifdef __cplusplus
17725extern "C" void exit (int);
17726#endif
17727
17728void fnord() { int i=42;}
17729int main ()
17730{
17731 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17732 int status = $lt_dlunknown;
17733
17734 if (self)
17735 {
17736 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17737 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17738 /* dlclose (self); */
17739 }
17740 else
17741 puts (dlerror ());
17742
17743 exit (status);
17744}
17745EOF
17746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17747 (eval $ac_link) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17751 (./conftest; exit; ) >&5 2>/dev/null
17752 lt_status=$?
17753 case x$lt_status in
17754 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17755 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17756 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17757 esac
17758 else :
17759 # compilation failed
17760 lt_cv_dlopen_self=no
17761 fi
17762fi
17763rm -fr conftest*
17764
17765
17766fi
17767{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17768echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17769
17770 if test "x$lt_cv_dlopen_self" = xyes; then
17771 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17772 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17773echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17774if test "${lt_cv_dlopen_self_static+set}" = set; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17776else
17777 if test "$cross_compiling" = yes; then :
17778 lt_cv_dlopen_self_static=cross
17779else
17780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17781 lt_status=$lt_dlunknown
17782 cat > conftest.$ac_ext <<EOF
Nick Lewyckyd2813d02009-09-29 05:48:51 +000017783#line 17783 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017784#include "confdefs.h"
17785
17786#if HAVE_DLFCN_H
17787#include <dlfcn.h>
17788#endif
17789
17790#include <stdio.h>
17791
17792#ifdef RTLD_GLOBAL
17793# define LT_DLGLOBAL RTLD_GLOBAL
17794#else
17795# ifdef DL_GLOBAL
17796# define LT_DLGLOBAL DL_GLOBAL
17797# else
17798# define LT_DLGLOBAL 0
17799# endif
17800#endif
17801
17802/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17803 find out it does not work in some platform. */
17804#ifndef LT_DLLAZY_OR_NOW
17805# ifdef RTLD_LAZY
17806# define LT_DLLAZY_OR_NOW RTLD_LAZY
17807# else
17808# ifdef DL_LAZY
17809# define LT_DLLAZY_OR_NOW DL_LAZY
17810# else
17811# ifdef RTLD_NOW
17812# define LT_DLLAZY_OR_NOW RTLD_NOW
17813# else
17814# ifdef DL_NOW
17815# define LT_DLLAZY_OR_NOW DL_NOW
17816# else
17817# define LT_DLLAZY_OR_NOW 0
17818# endif
17819# endif
17820# endif
17821# endif
17822#endif
17823
17824#ifdef __cplusplus
17825extern "C" void exit (int);
17826#endif
17827
17828void fnord() { int i=42;}
17829int main ()
17830{
17831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17832 int status = $lt_dlunknown;
17833
17834 if (self)
17835 {
17836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17837 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17838 /* dlclose (self); */
17839 }
17840 else
17841 puts (dlerror ());
17842
17843 exit (status);
17844}
17845EOF
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847 (eval $ac_link) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17851 (./conftest; exit; ) >&5 2>/dev/null
17852 lt_status=$?
17853 case x$lt_status in
17854 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17855 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17856 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17857 esac
17858 else :
17859 # compilation failed
17860 lt_cv_dlopen_self_static=no
17861 fi
17862fi
17863rm -fr conftest*
17864
17865
17866fi
17867{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17868echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17869 fi
17870
17871 CPPFLAGS="$save_CPPFLAGS"
17872 LDFLAGS="$save_LDFLAGS"
17873 LIBS="$save_LIBS"
17874 ;;
17875 esac
17876
17877 case $lt_cv_dlopen_self in
17878 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17879 *) enable_dlopen_self=unknown ;;
17880 esac
17881
17882 case $lt_cv_dlopen_self_static in
17883 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17884 *) enable_dlopen_self_static=unknown ;;
17885 esac
17886fi
17887
17888
17889# Report which library types will actually be built
17890{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17891echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17892{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17893echo "${ECHO_T}$can_build_shared" >&6; }
17894
17895{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17896echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17897test "$can_build_shared" = "no" && enable_shared=no
17898
17899# On AIX, shared libraries and static libraries use the same namespace, and
17900# are all built from PIC.
17901case $host_os in
17902aix3*)
17903 test "$enable_shared" = yes && enable_static=no
17904 if test -n "$RANLIB"; then
17905 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17906 postinstall_cmds='$RANLIB $lib'
17907 fi
17908 ;;
17909
17910aix4* | aix5*)
17911 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17912 test "$enable_shared" = yes && enable_static=no
17913 fi
17914 ;;
17915esac
17916{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17917echo "${ECHO_T}$enable_shared" >&6; }
17918
17919{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17920echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17921# Make sure either enable_shared or enable_static is yes.
17922test "$enable_shared" = yes || enable_static=yes
17923{ echo "$as_me:$LINENO: result: $enable_static" >&5
17924echo "${ECHO_T}$enable_static" >&6; }
17925
17926# The else clause should only fire when bootstrapping the
17927# libtool distribution, otherwise you forgot to ship ltmain.sh
17928# with your package, and you will get complaints that there are
17929# no rules to generate ltmain.sh.
17930if test -f "$ltmain"; then
17931 # See if we are running on zsh, and set the options which allow our commands through
17932 # without removal of \ escapes.
17933 if test -n "${ZSH_VERSION+set}" ; then
17934 setopt NO_GLOB_SUBST
17935 fi
17936 # Now quote all the things that may contain metacharacters while being
17937 # careful not to overquote the AC_SUBSTed values. We take copies of the
17938 # variables and quote the copies for generation of the libtool script.
17939 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17940 SED SHELL STRIP \
17941 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17942 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17943 deplibs_check_method reload_flag reload_cmds need_locks \
17944 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17945 lt_cv_sys_global_symbol_to_c_name_address \
17946 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17947 old_postinstall_cmds old_postuninstall_cmds \
17948 compiler \
17949 CC \
17950 LD \
17951 lt_prog_compiler_wl \
17952 lt_prog_compiler_pic \
17953 lt_prog_compiler_static \
17954 lt_prog_compiler_no_builtin_flag \
17955 export_dynamic_flag_spec \
17956 thread_safe_flag_spec \
17957 whole_archive_flag_spec \
17958 enable_shared_with_static_runtimes \
17959 old_archive_cmds \
17960 old_archive_from_new_cmds \
17961 predep_objects \
17962 postdep_objects \
17963 predeps \
17964 postdeps \
17965 compiler_lib_search_path \
17966 archive_cmds \
17967 archive_expsym_cmds \
17968 postinstall_cmds \
17969 postuninstall_cmds \
17970 old_archive_from_expsyms_cmds \
17971 allow_undefined_flag \
17972 no_undefined_flag \
17973 export_symbols_cmds \
17974 hardcode_libdir_flag_spec \
17975 hardcode_libdir_flag_spec_ld \
17976 hardcode_libdir_separator \
17977 hardcode_automatic \
17978 module_cmds \
17979 module_expsym_cmds \
17980 lt_cv_prog_compiler_c_o \
17981 exclude_expsyms \
17982 include_expsyms; do
17983
17984 case $var in
17985 old_archive_cmds | \
17986 old_archive_from_new_cmds | \
17987 archive_cmds | \
17988 archive_expsym_cmds | \
17989 module_cmds | \
17990 module_expsym_cmds | \
17991 old_archive_from_expsyms_cmds | \
17992 export_symbols_cmds | \
17993 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17994 postinstall_cmds | postuninstall_cmds | \
17995 old_postinstall_cmds | old_postuninstall_cmds | \
17996 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17997 # Double-quote double-evaled strings.
17998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17999 ;;
18000 *)
18001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18002 ;;
18003 esac
18004 done
18005
18006 case $lt_echo in
18007 *'\$0 --fallback-echo"')
18008 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18009 ;;
18010 esac
18011
18012cfgfile="${ofile}T"
18013 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18014 $rm -f "$cfgfile"
18015 { echo "$as_me:$LINENO: creating $ofile" >&5
18016echo "$as_me: creating $ofile" >&6;}
18017
18018 cat <<__EOF__ >> "$cfgfile"
18019#! $SHELL
18020
18021# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18022# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18023# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18024#
18025# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18026# Free Software Foundation, Inc.
18027#
18028# This file is part of GNU Libtool:
18029# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18030#
18031# This program is free software; you can redistribute it and/or modify
18032# it under the terms of the GNU General Public License as published by
18033# the Free Software Foundation; either version 2 of the License, or
18034# (at your option) any later version.
18035#
18036# This program is distributed in the hope that it will be useful, but
18037# WITHOUT ANY WARRANTY; without even the implied warranty of
18038# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18039# General Public License for more details.
18040#
18041# You should have received a copy of the GNU General Public License
18042# along with this program; if not, write to the Free Software
18043# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18044#
18045# As a special exception to the GNU General Public License, if you
18046# distribute this file as part of a program that contains a
18047# configuration script generated by Autoconf, you may include it under
18048# the same distribution terms that you use for the rest of that program.
18049
18050# A sed program that does not truncate output.
18051SED=$lt_SED
18052
18053# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18054Xsed="$SED -e 1s/^X//"
18055
18056# The HP-UX ksh and POSIX shell print the target directory to stdout
18057# if CDPATH is set.
18058(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18059
18060# The names of the tagged configurations supported by this script.
18061available_tags=
18062
18063# ### BEGIN LIBTOOL CONFIG
18064
18065# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18066
18067# Shell to use when invoking shell scripts.
18068SHELL=$lt_SHELL
18069
18070# Whether or not to build shared libraries.
18071build_libtool_libs=$enable_shared
18072
18073# Whether or not to build static libraries.
18074build_old_libs=$enable_static
18075
18076# Whether or not to add -lc for building shared libraries.
18077build_libtool_need_lc=$archive_cmds_need_lc
18078
18079# Whether or not to disallow shared libs when runtime libs are static
18080allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18081
18082# Whether or not to optimize for fast installation.
18083fast_install=$enable_fast_install
18084
18085# The host system.
18086host_alias=$host_alias
18087host=$host
18088host_os=$host_os
18089
18090# The build system.
18091build_alias=$build_alias
18092build=$build
18093build_os=$build_os
18094
18095# An echo program that does not interpret backslashes.
18096echo=$lt_echo
18097
18098# The archiver.
18099AR=$lt_AR
18100AR_FLAGS=$lt_AR_FLAGS
18101
18102# A C compiler.
18103LTCC=$lt_LTCC
18104
18105# LTCC compiler flags.
18106LTCFLAGS=$lt_LTCFLAGS
18107
18108# A language-specific compiler.
18109CC=$lt_compiler
18110
18111# Is the compiler the GNU C compiler?
18112with_gcc=$GCC
18113
18114# An ERE matcher.
18115EGREP=$lt_EGREP
18116
18117# The linker used to build libraries.
18118LD=$lt_LD
18119
18120# Whether we need hard or soft links.
18121LN_S=$lt_LN_S
18122
18123# A BSD-compatible nm program.
18124NM=$lt_NM
18125
18126# A symbol stripping program
18127STRIP=$lt_STRIP
18128
18129# Used to examine libraries when file_magic_cmd begins "file"
18130MAGIC_CMD=$MAGIC_CMD
18131
18132# Used on cygwin: DLL creation program.
18133DLLTOOL="$DLLTOOL"
18134
18135# Used on cygwin: object dumper.
18136OBJDUMP="$OBJDUMP"
18137
18138# Used on cygwin: assembler.
18139AS="$AS"
18140
18141# The name of the directory that contains temporary libtool files.
18142objdir=$objdir
18143
18144# How to create reloadable object files.
18145reload_flag=$lt_reload_flag
18146reload_cmds=$lt_reload_cmds
18147
18148# How to pass a linker flag through the compiler.
18149wl=$lt_lt_prog_compiler_wl
18150
18151# Object file suffix (normally "o").
18152objext="$ac_objext"
18153
18154# Old archive suffix (normally "a").
18155libext="$libext"
18156
18157# Shared library suffix (normally ".so").
18158shrext_cmds='$shrext_cmds'
18159
18160# Executable file suffix (normally "").
18161exeext="$exeext"
18162
18163# Additional compiler flags for building library objects.
18164pic_flag=$lt_lt_prog_compiler_pic
18165pic_mode=$pic_mode
18166
18167# What is the maximum length of a command?
18168max_cmd_len=$lt_cv_sys_max_cmd_len
18169
18170# Does compiler simultaneously support -c and -o options?
18171compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18172
18173# Must we lock files when doing compilation?
18174need_locks=$lt_need_locks
18175
18176# Do we need the lib prefix for modules?
18177need_lib_prefix=$need_lib_prefix
18178
18179# Do we need a version for libraries?
18180need_version=$need_version
18181
18182# Whether dlopen is supported.
18183dlopen_support=$enable_dlopen
18184
18185# Whether dlopen of programs is supported.
18186dlopen_self=$enable_dlopen_self
18187
18188# Whether dlopen of statically linked programs is supported.
18189dlopen_self_static=$enable_dlopen_self_static
18190
18191# Compiler flag to prevent dynamic linking.
18192link_static_flag=$lt_lt_prog_compiler_static
18193
18194# Compiler flag to turn off builtin functions.
18195no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18196
18197# Compiler flag to allow reflexive dlopens.
18198export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18199
18200# Compiler flag to generate shared objects directly from archives.
18201whole_archive_flag_spec=$lt_whole_archive_flag_spec
18202
18203# Compiler flag to generate thread-safe objects.
18204thread_safe_flag_spec=$lt_thread_safe_flag_spec
18205
18206# Library versioning type.
18207version_type=$version_type
18208
18209# Format of library name prefix.
18210libname_spec=$lt_libname_spec
18211
18212# List of archive names. First name is the real one, the rest are links.
18213# The last name is the one that the linker finds with -lNAME.
18214library_names_spec=$lt_library_names_spec
18215
18216# The coded name of the library, if different from the real name.
18217soname_spec=$lt_soname_spec
18218
18219# Commands used to build and install an old-style archive.
18220RANLIB=$lt_RANLIB
18221old_archive_cmds=$lt_old_archive_cmds
18222old_postinstall_cmds=$lt_old_postinstall_cmds
18223old_postuninstall_cmds=$lt_old_postuninstall_cmds
18224
18225# Create an old-style archive from a shared archive.
18226old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18227
18228# Create a temporary old-style archive to link instead of a shared archive.
18229old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18230
18231# Commands used to build and install a shared archive.
18232archive_cmds=$lt_archive_cmds
18233archive_expsym_cmds=$lt_archive_expsym_cmds
18234postinstall_cmds=$lt_postinstall_cmds
18235postuninstall_cmds=$lt_postuninstall_cmds
18236
18237# Commands used to build a loadable module (assumed same as above if empty)
18238module_cmds=$lt_module_cmds
18239module_expsym_cmds=$lt_module_expsym_cmds
18240
18241# Commands to strip libraries.
18242old_striplib=$lt_old_striplib
18243striplib=$lt_striplib
18244
18245# Dependencies to place before the objects being linked to create a
18246# shared library.
18247predep_objects=$lt_predep_objects
18248
18249# Dependencies to place after the objects being linked to create a
18250# shared library.
18251postdep_objects=$lt_postdep_objects
18252
18253# Dependencies to place before the objects being linked to create a
18254# shared library.
18255predeps=$lt_predeps
18256
18257# Dependencies to place after the objects being linked to create a
18258# shared library.
18259postdeps=$lt_postdeps
18260
18261# The library search path used internally by the compiler when linking
18262# a shared library.
18263compiler_lib_search_path=$lt_compiler_lib_search_path
18264
18265# Method to check whether dependent libraries are shared objects.
18266deplibs_check_method=$lt_deplibs_check_method
18267
18268# Command to use when deplibs_check_method == file_magic.
18269file_magic_cmd=$lt_file_magic_cmd
18270
18271# Flag that allows shared libraries with undefined symbols to be built.
18272allow_undefined_flag=$lt_allow_undefined_flag
18273
18274# Flag that forces no undefined symbols.
18275no_undefined_flag=$lt_no_undefined_flag
18276
18277# Commands used to finish a libtool library installation in a directory.
18278finish_cmds=$lt_finish_cmds
18279
18280# Same as above, but a single script fragment to be evaled but not shown.
18281finish_eval=$lt_finish_eval
18282
18283# Take the output of nm and produce a listing of raw symbols and C names.
18284global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18285
18286# Transform the output of nm in a proper C declaration
18287global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18288
18289# Transform the output of nm in a C name address pair
18290global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18291
18292# This is the shared library runtime path variable.
18293runpath_var=$runpath_var
18294
18295# This is the shared library path variable.
18296shlibpath_var=$shlibpath_var
18297
18298# Is shlibpath searched before the hard-coded library search path?
18299shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18300
18301# How to hardcode a shared library path into an executable.
18302hardcode_action=$hardcode_action
18303
18304# Whether we should hardcode library paths into libraries.
18305hardcode_into_libs=$hardcode_into_libs
18306
18307# Flag to hardcode \$libdir into a binary during linking.
18308# This must work even if \$libdir does not exist.
18309hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18310
18311# If ld is used when linking, flag to hardcode \$libdir into
18312# a binary during linking. This must work even if \$libdir does
18313# not exist.
18314hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18315
18316# Whether we need a single -rpath flag with a separated argument.
18317hardcode_libdir_separator=$lt_hardcode_libdir_separator
18318
18319# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18320# resulting binary.
18321hardcode_direct=$hardcode_direct
18322
18323# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18324# resulting binary.
18325hardcode_minus_L=$hardcode_minus_L
18326
18327# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18328# the resulting binary.
18329hardcode_shlibpath_var=$hardcode_shlibpath_var
18330
18331# Set to yes if building a shared library automatically hardcodes DIR into the library
18332# and all subsequent libraries and executables linked against it.
18333hardcode_automatic=$hardcode_automatic
18334
18335# Variables whose values should be saved in libtool wrapper scripts and
18336# restored at relink time.
18337variables_saved_for_relink="$variables_saved_for_relink"
18338
18339# Whether libtool must link a program against all its dependency libraries.
18340link_all_deplibs=$link_all_deplibs
18341
18342# Compile-time system search path for libraries
18343sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18344
18345# Run-time system search path for libraries
18346sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18347
18348# Fix the shell variable \$srcfile for the compiler.
18349fix_srcfile_path="$fix_srcfile_path"
18350
18351# Set to yes if exported symbols are required.
18352always_export_symbols=$always_export_symbols
18353
18354# The commands to list exported symbols.
18355export_symbols_cmds=$lt_export_symbols_cmds
18356
18357# The commands to extract the exported symbol list from a shared archive.
18358extract_expsyms_cmds=$lt_extract_expsyms_cmds
18359
18360# Symbols that should not be listed in the preloaded symbols.
18361exclude_expsyms=$lt_exclude_expsyms
18362
18363# Symbols that must always be exported.
18364include_expsyms=$lt_include_expsyms
18365
18366# ### END LIBTOOL CONFIG
18367
18368__EOF__
18369
18370
18371 case $host_os in
18372 aix3*)
18373 cat <<\EOF >> "$cfgfile"
18374
18375# AIX sometimes has problems with the GCC collect2 program. For some
18376# reason, if we set the COLLECT_NAMES environment variable, the problems
18377# vanish in a puff of smoke.
18378if test "X${COLLECT_NAMES+set}" != Xset; then
18379 COLLECT_NAMES=
18380 export COLLECT_NAMES
18381fi
18382EOF
18383 ;;
18384 esac
18385
18386 # We use sed instead of cat because bash on DJGPP gets confused if
18387 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18388 # text mode, it properly converts lines to CR/LF. This bash problem
18389 # is reportedly fixed, but why not run on old versions too?
18390 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18391
18392 mv -f "$cfgfile" "$ofile" || \
18393 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18394 chmod +x "$ofile"
18395
18396else
18397 # If there is no Makefile yet, we rely on a make rule to execute
18398 # `config.status --recheck' to rerun these tests and create the
18399 # libtool script then.
18400 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18401 if test -f "$ltmain_in"; then
18402 test -f Makefile && make "$ltmain"
18403 fi
18404fi
18405
18406
18407ac_ext=c
18408ac_cpp='$CPP $CPPFLAGS'
18409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18411ac_compiler_gnu=$ac_cv_c_compiler_gnu
18412
18413CC="$lt_save_CC"
18414
18415
18416# Check whether --with-tags was given.
18417if test "${with_tags+set}" = set; then
18418 withval=$with_tags; tagnames="$withval"
18419fi
18420
18421
18422if test -f "$ltmain" && test -n "$tagnames"; then
18423 if test ! -f "${ofile}"; then
18424 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18425echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18426 fi
18427
18428 if test -z "$LTCC"; then
18429 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18430 if test -z "$LTCC"; then
18431 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18432echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18433 else
18434 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18435echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18436 fi
18437 fi
18438 if test -z "$LTCFLAGS"; then
18439 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18440 fi
18441
18442 # Extract list of available tagged configurations in $ofile.
18443 # Note that this assumes the entire list is on one line.
18444 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18445
18446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18447 for tagname in $tagnames; do
18448 IFS="$lt_save_ifs"
18449 # Check whether tagname contains only valid characters
18450 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18451 "") ;;
18452 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18453echo "$as_me: error: invalid tag name: $tagname" >&2;}
18454 { (exit 1); exit 1; }; }
18455 ;;
18456 esac
18457
18458 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18459 then
18460 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18461echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18462 { (exit 1); exit 1; }; }
18463 fi
18464
18465 # Update the list of available tags.
18466 if test -n "$tagname"; then
18467 echo appending configuration tag \"$tagname\" to $ofile
18468
18469 case $tagname in
18470 CXX)
18471 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18472 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18473 (test "X$CXX" != "Xg++"))) ; then
18474 ac_ext=cpp
18475ac_cpp='$CXXCPP $CPPFLAGS'
18476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18479
18480
18481
18482
18483archive_cmds_need_lc_CXX=no
18484allow_undefined_flag_CXX=
18485always_export_symbols_CXX=no
18486archive_expsym_cmds_CXX=
18487export_dynamic_flag_spec_CXX=
18488hardcode_direct_CXX=no
18489hardcode_libdir_flag_spec_CXX=
18490hardcode_libdir_flag_spec_ld_CXX=
18491hardcode_libdir_separator_CXX=
18492hardcode_minus_L_CXX=no
18493hardcode_shlibpath_var_CXX=unsupported
18494hardcode_automatic_CXX=no
18495module_cmds_CXX=
18496module_expsym_cmds_CXX=
18497link_all_deplibs_CXX=unknown
18498old_archive_cmds_CXX=$old_archive_cmds
18499no_undefined_flag_CXX=
18500whole_archive_flag_spec_CXX=
18501enable_shared_with_static_runtimes_CXX=no
18502
18503# Dependencies to place before and after the object being linked:
18504predep_objects_CXX=
18505postdep_objects_CXX=
18506predeps_CXX=
18507postdeps_CXX=
18508compiler_lib_search_path_CXX=
18509
18510# Source file extension for C++ test sources.
18511ac_ext=cpp
18512
18513# Object file extension for compiled C++ test sources.
18514objext=o
18515objext_CXX=$objext
18516
18517# Code to be used in simple compile tests
18518lt_simple_compile_test_code="int some_variable = 0;\n"
18519
18520# Code to be used in simple link tests
18521lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18522
18523# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18524
18525# If no C compiler was specified, use CC.
18526LTCC=${LTCC-"$CC"}
18527
18528# If no C compiler flags were specified, use CFLAGS.
18529LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18530
18531# Allow CC to be a program name with arguments.
18532compiler=$CC
18533
18534
18535# save warnings/boilerplate of simple test code
18536ac_outfile=conftest.$ac_objext
18537printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18538eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18539_lt_compiler_boilerplate=`cat conftest.err`
18540$rm conftest*
18541
18542ac_outfile=conftest.$ac_objext
18543printf "$lt_simple_link_test_code" >conftest.$ac_ext
18544eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18545_lt_linker_boilerplate=`cat conftest.err`
18546$rm conftest*
18547
18548
18549# Allow CC to be a program name with arguments.
18550lt_save_CC=$CC
18551lt_save_LD=$LD
18552lt_save_GCC=$GCC
18553GCC=$GXX
18554lt_save_with_gnu_ld=$with_gnu_ld
18555lt_save_path_LD=$lt_cv_path_LD
18556if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18557 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18558else
18559 $as_unset lt_cv_prog_gnu_ld
18560fi
18561if test -n "${lt_cv_path_LDCXX+set}"; then
18562 lt_cv_path_LD=$lt_cv_path_LDCXX
18563else
18564 $as_unset lt_cv_path_LD
18565fi
18566test -z "${LDCXX+set}" || LD=$LDCXX
18567CC=${CXX-"c++"}
18568compiler=$CC
18569compiler_CXX=$CC
18570for cc_temp in $compiler""; do
18571 case $cc_temp in
18572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18574 \-*) ;;
18575 *) break;;
18576 esac
18577done
18578cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18579
18580
18581# We don't want -fno-exception wen compiling C++ code, so set the
18582# no_builtin_flag separately
18583if test "$GXX" = yes; then
18584 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18585else
18586 lt_prog_compiler_no_builtin_flag_CXX=
18587fi
18588
18589if test "$GXX" = yes; then
18590 # Set up default GNU C++ configuration
18591
18592
18593# Check whether --with-gnu-ld was given.
18594if test "${with_gnu_ld+set}" = set; then
18595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18596else
18597 with_gnu_ld=no
18598fi
18599
18600ac_prog=ld
18601if test "$GCC" = yes; then
18602 # Check if gcc -print-prog-name=ld gives a path.
18603 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18604echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18605 case $host in
18606 *-*-mingw*)
18607 # gcc leaves a trailing carriage return which upsets mingw
18608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18609 *)
18610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18611 esac
18612 case $ac_prog in
18613 # Accept absolute paths.
18614 [\\/]* | ?:[\\/]*)
18615 re_direlt='/[^/][^/]*/\.\./'
18616 # Canonicalize the pathname of ld
18617 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18618 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18619 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18620 done
18621 test -z "$LD" && LD="$ac_prog"
18622 ;;
18623 "")
18624 # If it fails, then pretend we aren't using GCC.
18625 ac_prog=ld
18626 ;;
18627 *)
18628 # If it is relative, then search for the first ld in PATH.
18629 with_gnu_ld=unknown
18630 ;;
18631 esac
18632elif test "$with_gnu_ld" = yes; then
18633 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18634echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18635else
18636 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18637echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18638fi
18639if test "${lt_cv_path_LD+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18641else
18642 if test -z "$LD"; then
18643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18644 for ac_dir in $PATH; do
18645 IFS="$lt_save_ifs"
18646 test -z "$ac_dir" && ac_dir=.
18647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18648 lt_cv_path_LD="$ac_dir/$ac_prog"
18649 # Check to see if the program is GNU ld. I'd rather use --version,
18650 # but apparently some variants of GNU ld only accept -v.
18651 # Break only if it was the GNU/non-GNU ld that we prefer.
18652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18653 *GNU* | *'with BFD'*)
18654 test "$with_gnu_ld" != no && break
18655 ;;
18656 *)
18657 test "$with_gnu_ld" != yes && break
18658 ;;
18659 esac
18660 fi
18661 done
18662 IFS="$lt_save_ifs"
18663else
18664 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18665fi
18666fi
18667
18668LD="$lt_cv_path_LD"
18669if test -n "$LD"; then
18670 { echo "$as_me:$LINENO: result: $LD" >&5
18671echo "${ECHO_T}$LD" >&6; }
18672else
18673 { echo "$as_me:$LINENO: result: no" >&5
18674echo "${ECHO_T}no" >&6; }
18675fi
18676test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18677echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18678 { (exit 1); exit 1; }; }
18679{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18680echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18681if test "${lt_cv_prog_gnu_ld+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18683else
18684 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18685case `$LD -v 2>&1 </dev/null` in
18686*GNU* | *'with BFD'*)
18687 lt_cv_prog_gnu_ld=yes
18688 ;;
18689*)
18690 lt_cv_prog_gnu_ld=no
18691 ;;
18692esac
18693fi
18694{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18695echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18696with_gnu_ld=$lt_cv_prog_gnu_ld
18697
18698
18699
18700 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18701 # archiving commands below assume that GNU ld is being used.
18702 if test "$with_gnu_ld" = yes; then
18703 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18704 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'
18705
18706 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18707 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18708
18709 # If archive_cmds runs LD, not CC, wlarc should be empty
18710 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18711 # investigate it a little bit more. (MM)
18712 wlarc='${wl}'
18713
18714 # ancient GNU ld didn't support --whole-archive et. al.
18715 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18716 grep 'no-whole-archive' > /dev/null; then
18717 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18718 else
18719 whole_archive_flag_spec_CXX=
18720 fi
18721 else
18722 with_gnu_ld=no
18723 wlarc=
18724
18725 # A generic and very simple default shared library creation
18726 # command for GNU C++ for the case where it uses the native
18727 # linker, instead of GNU ld. If possible, this setting should
18728 # overridden to take advantage of the native linker features on
18729 # the platform it is being used on.
18730 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18731 fi
18732
18733 # Commands to make compiler produce verbose output that lists
18734 # what "hidden" libraries, object files and flags are used when
18735 # linking a shared library.
18736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18737
18738else
18739 GXX=no
18740 with_gnu_ld=no
18741 wlarc=
18742fi
18743
18744# PORTME: fill in a description of your system's C++ link characteristics
18745{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18746echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18747ld_shlibs_CXX=yes
18748case $host_os in
18749 aix3*)
18750 # FIXME: insert proper C++ library support
18751 ld_shlibs_CXX=no
18752 ;;
18753 aix4* | aix5*)
18754 if test "$host_cpu" = ia64; then
18755 # On IA64, the linker does run time linking by default, so we don't
18756 # have to do anything special.
18757 aix_use_runtimelinking=no
18758 exp_sym_flag='-Bexport'
18759 no_entry_flag=""
18760 else
18761 aix_use_runtimelinking=no
18762
18763 # Test if we are trying to use run time linking or normal
18764 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18765 # need to do runtime linking.
18766 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18767 for ld_flag in $LDFLAGS; do
18768 case $ld_flag in
18769 *-brtl*)
18770 aix_use_runtimelinking=yes
18771 break
18772 ;;
18773 esac
18774 done
18775 ;;
18776 esac
18777
18778 exp_sym_flag='-bexport'
18779 no_entry_flag='-bnoentry'
18780 fi
18781
18782 # When large executables or shared objects are built, AIX ld can
18783 # have problems creating the table of contents. If linking a library
18784 # or program results in "error TOC overflow" add -mminimal-toc to
18785 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18786 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18787
18788 archive_cmds_CXX=''
18789 hardcode_direct_CXX=yes
18790 hardcode_libdir_separator_CXX=':'
18791 link_all_deplibs_CXX=yes
18792
18793 if test "$GXX" = yes; then
18794 case $host_os in aix4.[012]|aix4.[012].*)
18795 # We only want to do this on AIX 4.2 and lower, the check
18796 # below for broken collect2 doesn't work under 4.3+
18797 collect2name=`${CC} -print-prog-name=collect2`
18798 if test -f "$collect2name" && \
18799 strings "$collect2name" | grep resolve_lib_name >/dev/null
18800 then
18801 # We have reworked collect2
18802 hardcode_direct_CXX=yes
18803 else
18804 # We have old collect2
18805 hardcode_direct_CXX=unsupported
18806 # It fails to find uninstalled libraries when the uninstalled
18807 # path is not listed in the libpath. Setting hardcode_minus_L
18808 # to unsupported forces relinking
18809 hardcode_minus_L_CXX=yes
18810 hardcode_libdir_flag_spec_CXX='-L$libdir'
18811 hardcode_libdir_separator_CXX=
18812 fi
18813 ;;
18814 esac
18815 shared_flag='-shared'
18816 if test "$aix_use_runtimelinking" = yes; then
18817 shared_flag="$shared_flag "'${wl}-G'
18818 fi
18819 else
18820 # not using gcc
18821 if test "$host_cpu" = ia64; then
18822 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18823 # chokes on -Wl,-G. The following line is correct:
18824 shared_flag='-G'
18825 else
18826 if test "$aix_use_runtimelinking" = yes; then
18827 shared_flag='${wl}-G'
18828 else
18829 shared_flag='${wl}-bM:SRE'
18830 fi
18831 fi
18832 fi
18833
18834 # It seems that -bexpall does not export symbols beginning with
18835 # underscore (_), so it is better to generate a list of symbols to export.
18836 always_export_symbols_CXX=yes
18837 if test "$aix_use_runtimelinking" = yes; then
18838 # Warning - without using the other runtime loading flags (-brtl),
18839 # -berok will link without error, but may produce a broken library.
18840 allow_undefined_flag_CXX='-berok'
18841 # Determine the default libpath from the value encoded in an empty executable.
18842 cat >conftest.$ac_ext <<_ACEOF
18843/* confdefs.h. */
18844_ACEOF
18845cat confdefs.h >>conftest.$ac_ext
18846cat >>conftest.$ac_ext <<_ACEOF
18847/* end confdefs.h. */
18848
18849int
18850main ()
18851{
18852
18853 ;
18854 return 0;
18855}
18856_ACEOF
18857rm -f conftest.$ac_objext conftest$ac_exeext
18858if { (ac_try="$ac_link"
18859case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18862esac
18863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_link") 2>conftest.er1
18865 ac_status=$?
18866 grep -v '^ *+' conftest.er1 >conftest.err
18867 rm -f conftest.er1
18868 cat conftest.err >&5
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018870 (exit $ac_status); } &&
18871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18872 { (case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875esac
18876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_try") 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; } &&
18881 { ac_try='test -s conftest$ac_exeext'
18882 { (case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885esac
18886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_try") 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018891
18892aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18893}'`
18894# Check for a 64-bit object if we didn't find anything.
18895if 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; }
18896}'`; fi
18897else
18898 echo "$as_me: failed program was:" >&5
18899sed 's/^/| /' conftest.$ac_ext >&5
18900
18901
18902fi
18903
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018904rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018905 conftest$ac_exeext conftest.$ac_ext
18906if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18907
18908 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18909
18910 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"
18911 else
18912 if test "$host_cpu" = ia64; then
18913 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18914 allow_undefined_flag_CXX="-z nodefs"
18915 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"
18916 else
18917 # Determine the default libpath from the value encoded in an empty executable.
18918 cat >conftest.$ac_ext <<_ACEOF
18919/* confdefs.h. */
18920_ACEOF
18921cat confdefs.h >>conftest.$ac_ext
18922cat >>conftest.$ac_ext <<_ACEOF
18923/* end confdefs.h. */
18924
18925int
18926main ()
18927{
18928
18929 ;
18930 return 0;
18931}
18932_ACEOF
18933rm -f conftest.$ac_objext conftest$ac_exeext
18934if { (ac_try="$ac_link"
18935case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18938esac
18939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_link") 2>conftest.er1
18941 ac_status=$?
18942 grep -v '^ *+' conftest.er1 >conftest.err
18943 rm -f conftest.er1
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018946 (exit $ac_status); } &&
18947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18948 { (case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18951esac
18952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_try") 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
18958 { (case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_try") 2>&5
18964 ac_status=$?
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018967
18968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18969}'`
18970# Check for a 64-bit object if we didn't find anything.
18971if 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; }
18972}'`; fi
18973else
18974 echo "$as_me: failed program was:" >&5
18975sed 's/^/| /' conftest.$ac_ext >&5
18976
18977
18978fi
18979
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018980rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018981 conftest$ac_exeext conftest.$ac_ext
18982if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18983
18984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18985 # Warning - without using the other run time loading flags,
18986 # -berok will link without error, but may produce a broken library.
18987 no_undefined_flag_CXX=' ${wl}-bernotok'
18988 allow_undefined_flag_CXX=' ${wl}-berok'
18989 # Exported symbols can be pulled into shared objects from archives
18990 whole_archive_flag_spec_CXX='$convenience'
18991 archive_cmds_need_lc_CXX=yes
18992 # This is similar to how AIX traditionally builds its shared libraries.
18993 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'
18994 fi
18995 fi
18996 ;;
18997
18998 beos*)
18999 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19000 allow_undefined_flag_CXX=unsupported
19001 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19002 # support --undefined. This deserves some investigation. FIXME
19003 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19004 else
19005 ld_shlibs_CXX=no
19006 fi
19007 ;;
19008
19009 chorus*)
19010 case $cc_basename in
19011 *)
19012 # FIXME: insert proper C++ library support
19013 ld_shlibs_CXX=no
19014 ;;
19015 esac
19016 ;;
19017
19018 cygwin* | mingw* | pw32*)
19019 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19020 # as there is no search path for DLLs.
19021 hardcode_libdir_flag_spec_CXX='-L$libdir'
19022 allow_undefined_flag_CXX=unsupported
19023 always_export_symbols_CXX=no
19024 enable_shared_with_static_runtimes_CXX=yes
19025
19026 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19027 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'
19028 # If the export-symbols file already is a .def file (1st line
19029 # is EXPORTS), use it as is; otherwise, prepend...
19030 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19031 cp $export_symbols $output_objdir/$soname.def;
19032 else
19033 echo EXPORTS > $output_objdir/$soname.def;
19034 cat $export_symbols >> $output_objdir/$soname.def;
19035 fi~
19036 $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'
19037 else
19038 ld_shlibs_CXX=no
19039 fi
19040 ;;
19041 darwin* | rhapsody*)
19042 case $host_os in
19043 rhapsody* | darwin1.[012])
19044 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19045 ;;
19046 *) # Darwin 1.3 on
19047 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19048 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19049 else
19050 case ${MACOSX_DEPLOYMENT_TARGET} in
19051 10.[012])
19052 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19053 ;;
19054 10.*)
19055 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19056 ;;
19057 esac
19058 fi
19059 ;;
19060 esac
19061 archive_cmds_need_lc_CXX=no
19062 hardcode_direct_CXX=no
19063 hardcode_automatic_CXX=yes
19064 hardcode_shlibpath_var_CXX=unsupported
19065 whole_archive_flag_spec_CXX=''
19066 link_all_deplibs_CXX=yes
19067
19068 if test "$GXX" = yes ; then
19069 lt_int_apple_cc_single_mod=no
19070 output_verbose_link_cmd='echo'
19071 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19072 lt_int_apple_cc_single_mod=yes
19073 fi
19074 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19075 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19076 else
19077 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'
19078 fi
19079 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19080 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19081 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19082 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}'
19083 else
19084 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}'
19085 fi
19086 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}'
19087 else
19088 case $cc_basename in
19089 xlc*)
19090 output_verbose_link_cmd='echo'
19091 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'
19092 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19093 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19094 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}'
19095 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}'
19096 ;;
19097 *)
19098 ld_shlibs_CXX=no
19099 ;;
19100 esac
19101 fi
19102 ;;
19103
19104 dgux*)
19105 case $cc_basename in
19106 ec++*)
19107 # FIXME: insert proper C++ library support
19108 ld_shlibs_CXX=no
19109 ;;
19110 ghcx*)
19111 # Green Hills C++ Compiler
19112 # FIXME: insert proper C++ library support
19113 ld_shlibs_CXX=no
19114 ;;
19115 *)
19116 # FIXME: insert proper C++ library support
19117 ld_shlibs_CXX=no
19118 ;;
19119 esac
19120 ;;
19121 freebsd[12]*)
19122 # C++ shared libraries reported to be fairly broken before switch to ELF
19123 ld_shlibs_CXX=no
19124 ;;
19125 freebsd-elf*)
19126 archive_cmds_need_lc_CXX=no
19127 ;;
19128 freebsd* | kfreebsd*-gnu | dragonfly*)
19129 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19130 # conventions
19131 ld_shlibs_CXX=yes
19132 ;;
19133 gnu*)
19134 ;;
19135 hpux9*)
19136 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19137 hardcode_libdir_separator_CXX=:
19138 export_dynamic_flag_spec_CXX='${wl}-E'
19139 hardcode_direct_CXX=yes
19140 hardcode_minus_L_CXX=yes # Not in the search PATH,
19141 # but as the default
19142 # location of the library.
19143
19144 case $cc_basename in
19145 CC*)
19146 # FIXME: insert proper C++ library support
19147 ld_shlibs_CXX=no
19148 ;;
19149 aCC*)
19150 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'
19151 # Commands to make compiler produce verbose output that lists
19152 # what "hidden" libraries, object files and flags are used when
19153 # linking a shared library.
19154 #
19155 # There doesn't appear to be a way to prevent this compiler from
19156 # explicitly linking system object files so we need to strip them
19157 # from the output so that they don't get included in the library
19158 # dependencies.
19159 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'
19160 ;;
19161 *)
19162 if test "$GXX" = yes; then
19163 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'
19164 else
19165 # FIXME: insert proper C++ library support
19166 ld_shlibs_CXX=no
19167 fi
19168 ;;
19169 esac
19170 ;;
19171 hpux10*|hpux11*)
19172 if test $with_gnu_ld = no; then
19173 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19174 hardcode_libdir_separator_CXX=:
19175
19176 case $host_cpu in
19177 hppa*64*|ia64*)
19178 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19179 ;;
19180 *)
19181 export_dynamic_flag_spec_CXX='${wl}-E'
19182 ;;
19183 esac
19184 fi
19185 case $host_cpu in
19186 hppa*64*|ia64*)
19187 hardcode_direct_CXX=no
19188 hardcode_shlibpath_var_CXX=no
19189 ;;
19190 *)
19191 hardcode_direct_CXX=yes
19192 hardcode_minus_L_CXX=yes # Not in the search PATH,
19193 # but as the default
19194 # location of the library.
19195 ;;
19196 esac
19197
19198 case $cc_basename in
19199 CC*)
19200 # FIXME: insert proper C++ library support
19201 ld_shlibs_CXX=no
19202 ;;
19203 aCC*)
19204 case $host_cpu in
19205 hppa*64*)
19206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207 ;;
19208 ia64*)
19209 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19210 ;;
19211 *)
19212 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19213 ;;
19214 esac
19215 # Commands to make compiler produce verbose output that lists
19216 # what "hidden" libraries, object files and flags are used when
19217 # linking a shared library.
19218 #
19219 # There doesn't appear to be a way to prevent this compiler from
19220 # explicitly linking system object files so we need to strip them
19221 # from the output so that they don't get included in the library
19222 # dependencies.
19223 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'
19224 ;;
19225 *)
19226 if test "$GXX" = yes; then
19227 if test $with_gnu_ld = no; then
19228 case $host_cpu in
19229 hppa*64*)
19230 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19231 ;;
19232 ia64*)
19233 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19234 ;;
19235 *)
19236 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'
19237 ;;
19238 esac
19239 fi
19240 else
19241 # FIXME: insert proper C++ library support
19242 ld_shlibs_CXX=no
19243 fi
19244 ;;
19245 esac
19246 ;;
19247 interix3*)
19248 hardcode_direct_CXX=no
19249 hardcode_shlibpath_var_CXX=no
19250 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19251 export_dynamic_flag_spec_CXX='${wl}-E'
19252 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19253 # Instead, shared libraries are loaded at an image base (0x10000000 by
19254 # default) and relocated if they conflict, which is a slow very memory
19255 # consuming and fragmenting process. To avoid this, we pick a random,
19256 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19257 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19258 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'
19259 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'
19260 ;;
19261 irix5* | irix6*)
19262 case $cc_basename in
19263 CC*)
19264 # SGI C++
19265 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'
19266
19267 # Archives containing C++ object files must be created using
19268 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19269 # necessary to make sure instantiated templates are included
19270 # in the archive.
19271 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19272 ;;
19273 *)
19274 if test "$GXX" = yes; then
19275 if test "$with_gnu_ld" = no; then
19276 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'
19277 else
19278 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'
19279 fi
19280 fi
19281 link_all_deplibs_CXX=yes
19282 ;;
19283 esac
19284 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19285 hardcode_libdir_separator_CXX=:
19286 ;;
19287 linux*)
19288 case $cc_basename in
19289 KCC*)
19290 # Kuck and Associates, Inc. (KAI) C++ Compiler
19291
19292 # KCC will only create a shared library if the output file
19293 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19294 # to its proper name (with version) after linking.
19295 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'
19296 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'
19297 # Commands to make compiler produce verbose output that lists
19298 # what "hidden" libraries, object files and flags are used when
19299 # linking a shared library.
19300 #
19301 # There doesn't appear to be a way to prevent this compiler from
19302 # explicitly linking system object files so we need to strip them
19303 # from the output so that they don't get included in the library
19304 # dependencies.
19305 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'
19306
19307 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19309
19310 # Archives containing C++ object files must be created using
19311 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19312 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19313 ;;
19314 icpc*)
19315 # Intel C++
19316 with_gnu_ld=yes
19317 # version 8.0 and above of icpc choke on multiply defined symbols
19318 # if we add $predep_objects and $postdep_objects, however 7.1 and
19319 # earlier do not add the objects themselves.
19320 case `$CC -V 2>&1` in
19321 *"Version 7."*)
19322 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19323 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'
19324 ;;
19325 *) # Version 8.0 or newer
19326 tmp_idyn=
19327 case $host_cpu in
19328 ia64*) tmp_idyn=' -i_dynamic';;
19329 esac
19330 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19331 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'
19332 ;;
19333 esac
19334 archive_cmds_need_lc_CXX=no
19335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19337 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19338 ;;
19339 pgCC*)
19340 # Portland Group C++ compiler
19341 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19342 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'
19343
19344 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19346 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'
19347 ;;
19348 cxx*)
19349 # Compaq C++
19350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351 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'
19352
19353 runpath_var=LD_RUN_PATH
19354 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19355 hardcode_libdir_separator_CXX=:
19356
19357 # Commands to make compiler produce verbose output that lists
19358 # what "hidden" libraries, object files and flags are used when
19359 # linking a shared library.
19360 #
19361 # There doesn't appear to be a way to prevent this compiler from
19362 # explicitly linking system object files so we need to strip them
19363 # from the output so that they don't get included in the library
19364 # dependencies.
19365 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'
19366 ;;
19367 esac
19368 ;;
19369 lynxos*)
19370 # FIXME: insert proper C++ library support
19371 ld_shlibs_CXX=no
19372 ;;
19373 m88k*)
19374 # FIXME: insert proper C++ library support
19375 ld_shlibs_CXX=no
19376 ;;
19377 mvs*)
19378 case $cc_basename in
19379 cxx*)
19380 # FIXME: insert proper C++ library support
19381 ld_shlibs_CXX=no
19382 ;;
19383 *)
19384 # FIXME: insert proper C++ library support
19385 ld_shlibs_CXX=no
19386 ;;
19387 esac
19388 ;;
19389 netbsd*)
19390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19391 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19392 wlarc=
19393 hardcode_libdir_flag_spec_CXX='-R$libdir'
19394 hardcode_direct_CXX=yes
19395 hardcode_shlibpath_var_CXX=no
19396 fi
19397 # Workaround some broken pre-1.5 toolchains
19398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19399 ;;
19400 openbsd2*)
19401 # C++ shared libraries are fairly broken
19402 ld_shlibs_CXX=no
19403 ;;
19404 openbsd*)
19405 hardcode_direct_CXX=yes
19406 hardcode_shlibpath_var_CXX=no
19407 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19409 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19410 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19411 export_dynamic_flag_spec_CXX='${wl}-E'
19412 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19413 fi
19414 output_verbose_link_cmd='echo'
19415 ;;
19416 osf3*)
19417 case $cc_basename in
19418 KCC*)
19419 # Kuck and Associates, Inc. (KAI) C++ Compiler
19420
19421 # KCC will only create a shared library if the output file
19422 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19423 # to its proper name (with version) after linking.
19424 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'
19425
19426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19427 hardcode_libdir_separator_CXX=:
19428
19429 # Archives containing C++ object files must be created using
19430 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19431 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19432
19433 ;;
19434 RCC*)
19435 # Rational C++ 2.4.1
19436 # FIXME: insert proper C++ library support
19437 ld_shlibs_CXX=no
19438 ;;
19439 cxx*)
19440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19441 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'
19442
19443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19444 hardcode_libdir_separator_CXX=:
19445
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19449 #
19450 # There doesn't appear to be a way to prevent this compiler from
19451 # explicitly linking system object files so we need to strip them
19452 # from the output so that they don't get included in the library
19453 # dependencies.
19454 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'
19455 ;;
19456 *)
19457 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19458 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19459 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'
19460
19461 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19462 hardcode_libdir_separator_CXX=:
19463
19464 # Commands to make compiler produce verbose output that lists
19465 # what "hidden" libraries, object files and flags are used when
19466 # linking a shared library.
19467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19468
19469 else
19470 # FIXME: insert proper C++ library support
19471 ld_shlibs_CXX=no
19472 fi
19473 ;;
19474 esac
19475 ;;
19476 osf4* | osf5*)
19477 case $cc_basename in
19478 KCC*)
19479 # Kuck and Associates, Inc. (KAI) C++ Compiler
19480
19481 # KCC will only create a shared library if the output file
19482 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19483 # to its proper name (with version) after linking.
19484 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'
19485
19486 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19487 hardcode_libdir_separator_CXX=:
19488
19489 # Archives containing C++ object files must be created using
19490 # the KAI C++ compiler.
19491 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19492 ;;
19493 RCC*)
19494 # Rational C++ 2.4.1
19495 # FIXME: insert proper C++ library support
19496 ld_shlibs_CXX=no
19497 ;;
19498 cxx*)
19499 allow_undefined_flag_CXX=' -expect_unresolved \*'
19500 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'
19501 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19502 echo "-hidden">> $lib.exp~
19503 $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~
19504 $rm $lib.exp'
19505
19506 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19507 hardcode_libdir_separator_CXX=:
19508
19509 # Commands to make compiler produce verbose output that lists
19510 # what "hidden" libraries, object files and flags are used when
19511 # linking a shared library.
19512 #
19513 # There doesn't appear to be a way to prevent this compiler from
19514 # explicitly linking system object files so we need to strip them
19515 # from the output so that they don't get included in the library
19516 # dependencies.
19517 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'
19518 ;;
19519 *)
19520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19522 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'
19523
19524 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19525 hardcode_libdir_separator_CXX=:
19526
19527 # Commands to make compiler produce verbose output that lists
19528 # what "hidden" libraries, object files and flags are used when
19529 # linking a shared library.
19530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19531
19532 else
19533 # FIXME: insert proper C++ library support
19534 ld_shlibs_CXX=no
19535 fi
19536 ;;
19537 esac
19538 ;;
19539 psos*)
19540 # FIXME: insert proper C++ library support
19541 ld_shlibs_CXX=no
19542 ;;
19543 sunos4*)
19544 case $cc_basename in
19545 CC*)
19546 # Sun C++ 4.x
19547 # FIXME: insert proper C++ library support
19548 ld_shlibs_CXX=no
19549 ;;
19550 lcc*)
19551 # Lucid
19552 # FIXME: insert proper C++ library support
19553 ld_shlibs_CXX=no
19554 ;;
19555 *)
19556 # FIXME: insert proper C++ library support
19557 ld_shlibs_CXX=no
19558 ;;
19559 esac
19560 ;;
19561 solaris*)
19562 case $cc_basename in
19563 CC*)
19564 # Sun C++ 4.2, 5.x and Centerline C++
19565 archive_cmds_need_lc_CXX=yes
19566 no_undefined_flag_CXX=' -zdefs'
19567 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19568 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19569 $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'
19570
19571 hardcode_libdir_flag_spec_CXX='-R$libdir'
19572 hardcode_shlibpath_var_CXX=no
19573 case $host_os in
19574 solaris2.[0-5] | solaris2.[0-5].*) ;;
19575 *)
19576 # The C++ compiler is used as linker so we must use $wl
19577 # flag to pass the commands to the underlying system
19578 # linker. We must also pass each convience library through
19579 # to the system linker between allextract/defaultextract.
19580 # The C++ compiler will combine linker options so we
19581 # cannot just pass the convience library names through
19582 # without $wl.
19583 # Supported since Solaris 2.6 (maybe 2.5.1?)
19584 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'
19585 ;;
19586 esac
19587 link_all_deplibs_CXX=yes
19588
19589 output_verbose_link_cmd='echo'
19590
19591 # Archives containing C++ object files must be created using
19592 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19593 # necessary to make sure instantiated templates are included
19594 # in the archive.
19595 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19596 ;;
19597 gcx*)
19598 # Green Hills C++ Compiler
19599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19600
19601 # The C++ compiler must be used to create the archive.
19602 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19603 ;;
19604 *)
19605 # GNU C++ compiler with Solaris linker
19606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19607 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19608 if $CC --version | grep -v '^2\.7' > /dev/null; then
19609 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19610 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19611 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19612
19613 # Commands to make compiler produce verbose output that lists
19614 # what "hidden" libraries, object files and flags are used when
19615 # linking a shared library.
19616 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19617 else
19618 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19619 # platform.
19620 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19621 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19622 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19623
19624 # Commands to make compiler produce verbose output that lists
19625 # what "hidden" libraries, object files and flags are used when
19626 # linking a shared library.
19627 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19628 fi
19629
19630 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19631 fi
19632 ;;
19633 esac
19634 ;;
19635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19636 no_undefined_flag_CXX='${wl}-z,text'
19637 archive_cmds_need_lc_CXX=no
19638 hardcode_shlibpath_var_CXX=no
19639 runpath_var='LD_RUN_PATH'
19640
19641 case $cc_basename in
19642 CC*)
19643 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19644 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19645 ;;
19646 *)
19647 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19648 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19649 ;;
19650 esac
19651 ;;
19652 sysv5* | sco3.2v5* | sco5v6*)
19653 # Note: We can NOT use -z defs as we might desire, because we do not
19654 # link with -lc, and that would cause any symbols used from libc to
19655 # always be unresolved, which means just about no library would
19656 # ever link correctly. If we're not using GNU ld we use -z text
19657 # though, which does catch some bad symbols but isn't as heavy-handed
19658 # as -z defs.
19659 # For security reasons, it is highly recommended that you always
19660 # use absolute paths for naming shared libraries, and exclude the
19661 # DT_RUNPATH tag from executables and libraries. But doing so
19662 # requires that you compile everything twice, which is a pain.
19663 # So that behaviour is only enabled if SCOABSPATH is set to a
19664 # non-empty value in the environment. Most likely only useful for
19665 # creating official distributions of packages.
19666 # This is a hack until libtool officially supports absolute path
19667 # names for shared libraries.
19668 no_undefined_flag_CXX='${wl}-z,text'
19669 allow_undefined_flag_CXX='${wl}-z,nodefs'
19670 archive_cmds_need_lc_CXX=no
19671 hardcode_shlibpath_var_CXX=no
19672 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19673 hardcode_libdir_separator_CXX=':'
19674 link_all_deplibs_CXX=yes
19675 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19676 runpath_var='LD_RUN_PATH'
19677
19678 case $cc_basename in
19679 CC*)
19680 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19681 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19682 ;;
19683 *)
19684 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19685 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19686 ;;
19687 esac
19688 ;;
19689 tandem*)
19690 case $cc_basename in
19691 NCC*)
19692 # NonStop-UX NCC 3.20
19693 # FIXME: insert proper C++ library support
19694 ld_shlibs_CXX=no
19695 ;;
19696 *)
19697 # FIXME: insert proper C++ library support
19698 ld_shlibs_CXX=no
19699 ;;
19700 esac
19701 ;;
19702 vxworks*)
19703 # FIXME: insert proper C++ library support
19704 ld_shlibs_CXX=no
19705 ;;
19706 *)
19707 # FIXME: insert proper C++ library support
19708 ld_shlibs_CXX=no
19709 ;;
19710esac
19711{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19712echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19713test "$ld_shlibs_CXX" = no && can_build_shared=no
19714
19715GCC_CXX="$GXX"
19716LD_CXX="$LD"
19717
19718
19719cat > conftest.$ac_ext <<EOF
19720class Foo
19721{
19722public:
19723 Foo (void) { a = 0; }
19724private:
19725 int a;
19726};
19727EOF
19728
19729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19730 (eval $ac_compile) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; then
19734 # Parse the compiler output and extract the necessary
19735 # objects, libraries and library flags.
19736
19737 # Sentinel used to keep track of whether or not we are before
19738 # the conftest object file.
19739 pre_test_object_deps_done=no
19740
19741 # The `*' in the case matches for architectures that use `case' in
19742 # $output_verbose_cmd can trigger glob expansion during the loop
19743 # eval without this substitution.
19744 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19745
19746 for p in `eval $output_verbose_link_cmd`; do
19747 case $p in
19748
19749 -L* | -R* | -l*)
19750 # Some compilers place space between "-{L,R}" and the path.
19751 # Remove the space.
19752 if test $p = "-L" \
19753 || test $p = "-R"; then
19754 prev=$p
19755 continue
19756 else
19757 prev=
19758 fi
19759
19760 if test "$pre_test_object_deps_done" = no; then
19761 case $p in
19762 -L* | -R*)
19763 # Internal compiler library paths should come after those
19764 # provided the user. The postdeps already come after the
19765 # user supplied libs so there is no need to process them.
19766 if test -z "$compiler_lib_search_path_CXX"; then
19767 compiler_lib_search_path_CXX="${prev}${p}"
19768 else
19769 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19770 fi
19771 ;;
19772 # The "-l" case would never come before the object being
19773 # linked, so don't bother handling this case.
19774 esac
19775 else
19776 if test -z "$postdeps_CXX"; then
19777 postdeps_CXX="${prev}${p}"
19778 else
19779 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19780 fi
19781 fi
19782 ;;
19783
19784 *.$objext)
19785 # This assumes that the test object file only shows up
19786 # once in the compiler output.
19787 if test "$p" = "conftest.$objext"; then
19788 pre_test_object_deps_done=yes
19789 continue
19790 fi
19791
19792 if test "$pre_test_object_deps_done" = no; then
19793 if test -z "$predep_objects_CXX"; then
19794 predep_objects_CXX="$p"
19795 else
19796 predep_objects_CXX="$predep_objects_CXX $p"
19797 fi
19798 else
19799 if test -z "$postdep_objects_CXX"; then
19800 postdep_objects_CXX="$p"
19801 else
19802 postdep_objects_CXX="$postdep_objects_CXX $p"
19803 fi
19804 fi
19805 ;;
19806
19807 *) ;; # Ignore the rest.
19808
19809 esac
19810 done
19811
19812 # Clean up.
19813 rm -f a.out a.exe
19814else
19815 echo "libtool.m4: error: problem compiling CXX test program"
19816fi
19817
19818$rm -f confest.$objext
19819
19820# PORTME: override above test on systems where it is broken
19821case $host_os in
19822interix3*)
19823 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19824 # hack all around it, let's just trust "g++" to DTRT.
19825 predep_objects_CXX=
19826 postdep_objects_CXX=
19827 postdeps_CXX=
19828 ;;
19829
19830solaris*)
19831 case $cc_basename in
19832 CC*)
19833 # Adding this requires a known-good setup of shared libraries for
19834 # Sun compiler versions before 5.6, else PIC objects from an old
19835 # archive will be linked into the output, leading to subtle bugs.
19836 postdeps_CXX='-lCstd -lCrun'
19837 ;;
19838 esac
19839 ;;
19840esac
19841
19842
19843case " $postdeps_CXX " in
19844*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19845esac
19846
19847lt_prog_compiler_wl_CXX=
19848lt_prog_compiler_pic_CXX=
19849lt_prog_compiler_static_CXX=
19850
19851{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19852echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19853
19854 # C++ specific cases for pic, static, wl, etc.
19855 if test "$GXX" = yes; then
19856 lt_prog_compiler_wl_CXX='-Wl,'
19857 lt_prog_compiler_static_CXX='-static'
19858
19859 case $host_os in
19860 aix*)
19861 # All AIX code is PIC.
19862 if test "$host_cpu" = ia64; then
19863 # AIX 5 now supports IA64 processor
19864 lt_prog_compiler_static_CXX='-Bstatic'
19865 fi
19866 ;;
19867 amigaos*)
19868 # FIXME: we need at least 68020 code to build shared libraries, but
19869 # adding the `-m68020' flag to GCC prevents building anything better,
19870 # like `-m68040'.
19871 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19872 ;;
19873 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19874 # PIC is the default for these OSes.
19875 ;;
19876 mingw* | os2* | pw32*)
19877 # This hack is so that the source file can tell whether it is being
19878 # built for inclusion in a dll (and should export symbols for example).
19879 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19880 ;;
19881 darwin* | rhapsody*)
19882 # PIC is the default on this platform
19883 # Common symbols not allowed in MH_DYLIB files
19884 lt_prog_compiler_pic_CXX='-fno-common'
19885 ;;
19886 *djgpp*)
19887 # DJGPP does not support shared libraries at all
19888 lt_prog_compiler_pic_CXX=
19889 ;;
19890 interix3*)
19891 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19892 # Instead, we relocate shared libraries at runtime.
19893 ;;
19894 sysv4*MP*)
19895 if test -d /usr/nec; then
19896 lt_prog_compiler_pic_CXX=-Kconform_pic
19897 fi
19898 ;;
19899 hpux*)
19900 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19901 # not for PA HP-UX.
19902 case $host_cpu in
19903 hppa*64*|ia64*)
19904 ;;
19905 *)
19906 lt_prog_compiler_pic_CXX='-fPIC'
19907 ;;
19908 esac
19909 ;;
19910 *)
19911 lt_prog_compiler_pic_CXX='-fPIC'
19912 ;;
19913 esac
19914 else
19915 case $host_os in
19916 aix4* | aix5*)
19917 # All AIX code is PIC.
19918 if test "$host_cpu" = ia64; then
19919 # AIX 5 now supports IA64 processor
19920 lt_prog_compiler_static_CXX='-Bstatic'
19921 else
19922 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19923 fi
19924 ;;
19925 chorus*)
19926 case $cc_basename in
19927 cxch68*)
19928 # Green Hills C++ Compiler
19929 # _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"
19930 ;;
19931 esac
19932 ;;
19933 darwin*)
19934 # PIC is the default on this platform
19935 # Common symbols not allowed in MH_DYLIB files
19936 case $cc_basename in
19937 xlc*)
19938 lt_prog_compiler_pic_CXX='-qnocommon'
19939 lt_prog_compiler_wl_CXX='-Wl,'
19940 ;;
19941 esac
19942 ;;
19943 dgux*)
19944 case $cc_basename in
19945 ec++*)
19946 lt_prog_compiler_pic_CXX='-KPIC'
19947 ;;
19948 ghcx*)
19949 # Green Hills C++ Compiler
19950 lt_prog_compiler_pic_CXX='-pic'
19951 ;;
19952 *)
19953 ;;
19954 esac
19955 ;;
19956 freebsd* | kfreebsd*-gnu | dragonfly*)
19957 # FreeBSD uses GNU C++
19958 ;;
19959 hpux9* | hpux10* | hpux11*)
19960 case $cc_basename in
19961 CC*)
19962 lt_prog_compiler_wl_CXX='-Wl,'
19963 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19964 if test "$host_cpu" != ia64; then
19965 lt_prog_compiler_pic_CXX='+Z'
19966 fi
19967 ;;
19968 aCC*)
19969 lt_prog_compiler_wl_CXX='-Wl,'
19970 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19971 case $host_cpu in
19972 hppa*64*|ia64*)
19973 # +Z the default
19974 ;;
19975 *)
19976 lt_prog_compiler_pic_CXX='+Z'
19977 ;;
19978 esac
19979 ;;
19980 *)
19981 ;;
19982 esac
19983 ;;
19984 interix*)
19985 # This is c89, which is MS Visual C++ (no shared libs)
19986 # Anyone wants to do a port?
19987 ;;
19988 irix5* | irix6* | nonstopux*)
19989 case $cc_basename in
19990 CC*)
19991 lt_prog_compiler_wl_CXX='-Wl,'
19992 lt_prog_compiler_static_CXX='-non_shared'
19993 # CC pic flag -KPIC is the default.
19994 ;;
19995 *)
19996 ;;
19997 esac
19998 ;;
19999 linux*)
20000 case $cc_basename in
20001 KCC*)
20002 # KAI C++ Compiler
20003 lt_prog_compiler_wl_CXX='--backend -Wl,'
20004 lt_prog_compiler_pic_CXX='-fPIC'
20005 ;;
20006 icpc* | ecpc*)
20007 # Intel C++
20008 lt_prog_compiler_wl_CXX='-Wl,'
20009 lt_prog_compiler_pic_CXX='-KPIC'
20010 lt_prog_compiler_static_CXX='-static'
20011 ;;
20012 pgCC*)
20013 # Portland Group C++ compiler.
20014 lt_prog_compiler_wl_CXX='-Wl,'
20015 lt_prog_compiler_pic_CXX='-fpic'
20016 lt_prog_compiler_static_CXX='-Bstatic'
20017 ;;
20018 cxx*)
20019 # Compaq C++
20020 # Make sure the PIC flag is empty. It appears that all Alpha
20021 # Linux and Compaq Tru64 Unix objects are PIC.
20022 lt_prog_compiler_pic_CXX=
20023 lt_prog_compiler_static_CXX='-non_shared'
20024 ;;
20025 *)
20026 ;;
20027 esac
20028 ;;
20029 lynxos*)
20030 ;;
20031 m88k*)
20032 ;;
20033 mvs*)
20034 case $cc_basename in
20035 cxx*)
20036 lt_prog_compiler_pic_CXX='-W c,exportall'
20037 ;;
20038 *)
20039 ;;
20040 esac
20041 ;;
20042 netbsd*)
20043 ;;
20044 osf3* | osf4* | osf5*)
20045 case $cc_basename in
20046 KCC*)
20047 lt_prog_compiler_wl_CXX='--backend -Wl,'
20048 ;;
20049 RCC*)
20050 # Rational C++ 2.4.1
20051 lt_prog_compiler_pic_CXX='-pic'
20052 ;;
20053 cxx*)
20054 # Digital/Compaq C++
20055 lt_prog_compiler_wl_CXX='-Wl,'
20056 # Make sure the PIC flag is empty. It appears that all Alpha
20057 # Linux and Compaq Tru64 Unix objects are PIC.
20058 lt_prog_compiler_pic_CXX=
20059 lt_prog_compiler_static_CXX='-non_shared'
20060 ;;
20061 *)
20062 ;;
20063 esac
20064 ;;
20065 psos*)
20066 ;;
20067 solaris*)
20068 case $cc_basename in
20069 CC*)
20070 # Sun C++ 4.2, 5.x and Centerline C++
20071 lt_prog_compiler_pic_CXX='-KPIC'
20072 lt_prog_compiler_static_CXX='-Bstatic'
20073 lt_prog_compiler_wl_CXX='-Qoption ld '
20074 ;;
20075 gcx*)
20076 # Green Hills C++ Compiler
20077 lt_prog_compiler_pic_CXX='-PIC'
20078 ;;
20079 *)
20080 ;;
20081 esac
20082 ;;
20083 sunos4*)
20084 case $cc_basename in
20085 CC*)
20086 # Sun C++ 4.x
20087 lt_prog_compiler_pic_CXX='-pic'
20088 lt_prog_compiler_static_CXX='-Bstatic'
20089 ;;
20090 lcc*)
20091 # Lucid
20092 lt_prog_compiler_pic_CXX='-pic'
20093 ;;
20094 *)
20095 ;;
20096 esac
20097 ;;
20098 tandem*)
20099 case $cc_basename in
20100 NCC*)
20101 # NonStop-UX NCC 3.20
20102 lt_prog_compiler_pic_CXX='-KPIC'
20103 ;;
20104 *)
20105 ;;
20106 esac
20107 ;;
20108 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20109 case $cc_basename in
20110 CC*)
20111 lt_prog_compiler_wl_CXX='-Wl,'
20112 lt_prog_compiler_pic_CXX='-KPIC'
20113 lt_prog_compiler_static_CXX='-Bstatic'
20114 ;;
20115 esac
20116 ;;
20117 vxworks*)
20118 ;;
20119 *)
20120 lt_prog_compiler_can_build_shared_CXX=no
20121 ;;
20122 esac
20123 fi
20124
20125{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20126echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20127
20128#
20129# Check to make sure the PIC flag actually works.
20130#
20131if test -n "$lt_prog_compiler_pic_CXX"; then
20132
20133{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20134echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20135if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137else
20138 lt_prog_compiler_pic_works_CXX=no
20139 ac_outfile=conftest.$ac_objext
20140 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20141 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20142 # Insert the option either (1) after the last *FLAGS variable, or
20143 # (2) before a word containing "conftest.", or (3) at the end.
20144 # Note that $ac_compile itself does not contain backslashes and begins
20145 # with a dollar sign (not a hyphen), so the echo should work correctly.
20146 # The option is referenced via a variable to avoid confusing sed.
20147 lt_compile=`echo "$ac_compile" | $SED \
20148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20150 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyd2813d02009-09-29 05:48:51 +000020151 (eval echo "\"\$as_me:20151: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020152 (eval "$lt_compile" 2>conftest.err)
20153 ac_status=$?
20154 cat conftest.err >&5
Nick Lewyckyd2813d02009-09-29 05:48:51 +000020155 echo "$as_me:20155: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020156 if (exit $ac_status) && test -s "$ac_outfile"; then
20157 # The compiler can only warn and ignore the option if not recognized
20158 # So say no if there are warnings other than the usual output.
20159 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20162 lt_prog_compiler_pic_works_CXX=yes
20163 fi
20164 fi
20165 $rm conftest*
20166
20167fi
20168{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20169echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20170
20171if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20172 case $lt_prog_compiler_pic_CXX in
20173 "" | " "*) ;;
20174 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20175 esac
20176else
20177 lt_prog_compiler_pic_CXX=
20178 lt_prog_compiler_can_build_shared_CXX=no
20179fi
20180
20181fi
20182case $host_os in
20183 # For platforms which do not support PIC, -DPIC is meaningless:
20184 *djgpp*)
20185 lt_prog_compiler_pic_CXX=
20186 ;;
20187 *)
20188 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20189 ;;
20190esac
20191
20192#
20193# Check to make sure the static flag actually works.
20194#
20195wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20196{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20197echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20198if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20200else
20201 lt_prog_compiler_static_works_CXX=no
20202 save_LDFLAGS="$LDFLAGS"
20203 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20204 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20206 # The linker can only warn and ignore the option if not recognized
20207 # So say no if there are warnings
20208 if test -s conftest.err; then
20209 # Append any errors to the config.log.
20210 cat conftest.err 1>&5
20211 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20213 if diff conftest.exp conftest.er2 >/dev/null; then
20214 lt_prog_compiler_static_works_CXX=yes
20215 fi
20216 else
20217 lt_prog_compiler_static_works_CXX=yes
20218 fi
20219 fi
20220 $rm conftest*
20221 LDFLAGS="$save_LDFLAGS"
20222
20223fi
20224{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20225echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20226
20227if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20228 :
20229else
20230 lt_prog_compiler_static_CXX=
20231fi
20232
20233
20234{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20235echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20236if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20238else
20239 lt_cv_prog_compiler_c_o_CXX=no
20240 $rm -r conftest 2>/dev/null
20241 mkdir conftest
20242 cd conftest
20243 mkdir out
20244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20245
20246 lt_compiler_flag="-o out/conftest2.$ac_objext"
20247 # Insert the option either (1) after the last *FLAGS variable, or
20248 # (2) before a word containing "conftest.", or (3) at the end.
20249 # Note that $ac_compile itself does not contain backslashes and begins
20250 # with a dollar sign (not a hyphen), so the echo should work correctly.
20251 lt_compile=`echo "$ac_compile" | $SED \
20252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20254 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyd2813d02009-09-29 05:48:51 +000020255 (eval echo "\"\$as_me:20255: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020256 (eval "$lt_compile" 2>out/conftest.err)
20257 ac_status=$?
20258 cat out/conftest.err >&5
Nick Lewyckyd2813d02009-09-29 05:48:51 +000020259 echo "$as_me:20259: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20261 then
20262 # The compiler can only warn and ignore the option if not recognized
20263 # So say no if there are warnings
20264 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20267 lt_cv_prog_compiler_c_o_CXX=yes
20268 fi
20269 fi
20270 chmod u+w . 2>&5
20271 $rm conftest*
20272 # SGI C++ compiler will create directory out/ii_files/ for
20273 # template instantiation
20274 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20275 $rm out/* && rmdir out
20276 cd ..
20277 rmdir conftest
20278 $rm conftest*
20279
20280fi
20281{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20282echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20283
20284
20285hard_links="nottested"
20286if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20287 # do not overwrite the value of need_locks provided by the user
20288 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20289echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20290 hard_links=yes
20291 $rm conftest*
20292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20293 touch conftest.a
20294 ln conftest.a conftest.b 2>&5 || hard_links=no
20295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20296 { echo "$as_me:$LINENO: result: $hard_links" >&5
20297echo "${ECHO_T}$hard_links" >&6; }
20298 if test "$hard_links" = no; then
20299 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20300echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20301 need_locks=warn
20302 fi
20303else
20304 need_locks=no
20305fi
20306
20307{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20308echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20309
20310 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20311 case $host_os in
20312 aix4* | aix5*)
20313 # If we're using GNU nm, then we don't want the "-C" option.
20314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20316 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'
20317 else
20318 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'
20319 fi
20320 ;;
20321 pw32*)
20322 export_symbols_cmds_CXX="$ltdll_cmds"
20323 ;;
20324 cygwin* | mingw*)
20325 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'
20326 ;;
20327 *)
20328 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20329 ;;
20330 esac
20331
20332{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20333echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20334test "$ld_shlibs_CXX" = no && can_build_shared=no
20335
20336#
20337# Do we need to explicitly link libc?
20338#
20339case "x$archive_cmds_need_lc_CXX" in
20340x|xyes)
20341 # Assume -lc should be added
20342 archive_cmds_need_lc_CXX=yes
20343
20344 if test "$enable_shared" = yes && test "$GCC" = yes; then
20345 case $archive_cmds_CXX in
20346 *'~'*)
20347 # FIXME: we may have to deal with multi-command sequences.
20348 ;;
20349 '$CC '*)
20350 # Test whether the compiler implicitly links with -lc since on some
20351 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20352 # to ld, don't add -lc before -lgcc.
20353 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20354echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20355 $rm conftest*
20356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20357
20358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359 (eval $ac_compile) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } 2>conftest.err; then
20363 soname=conftest
20364 lib=conftest
20365 libobjs=conftest.$ac_objext
20366 deplibs=
20367 wl=$lt_prog_compiler_wl_CXX
20368 pic_flag=$lt_prog_compiler_pic_CXX
20369 compiler_flags=-v
20370 linker_flags=-v
20371 verstring=
20372 output_objdir=.
20373 libname=conftest
20374 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20375 allow_undefined_flag_CXX=
20376 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20377 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20378 ac_status=$?
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }
20381 then
20382 archive_cmds_need_lc_CXX=no
20383 else
20384 archive_cmds_need_lc_CXX=yes
20385 fi
20386 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20387 else
20388 cat conftest.err 1>&5
20389 fi
20390 $rm conftest*
20391 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20392echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20393 ;;
20394 esac
20395 fi
20396 ;;
20397esac
20398
20399{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20400echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20401library_names_spec=
20402libname_spec='lib$name'
20403soname_spec=
20404shrext_cmds=".so"
20405postinstall_cmds=
20406postuninstall_cmds=
20407finish_cmds=
20408finish_eval=
20409shlibpath_var=
20410shlibpath_overrides_runpath=unknown
20411version_type=none
20412dynamic_linker="$host_os ld.so"
20413sys_lib_dlsearch_path_spec="/lib /usr/lib"
20414if test "$GCC" = yes; then
20415 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20416 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20417 # if the path contains ";" then we assume it to be the separator
20418 # otherwise default to the standard path separator (i.e. ":") - it is
20419 # assumed that no part of a normal pathname contains ";" but that should
20420 # okay in the real world where ";" in dirpaths is itself problematic.
20421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20422 else
20423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20424 fi
20425else
20426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20427fi
20428need_lib_prefix=unknown
20429hardcode_into_libs=no
20430
20431# when you set need_version to no, make sure it does not cause -set_version
20432# flags to be left without arguments
20433need_version=unknown
20434
20435case $host_os in
20436aix3*)
20437 version_type=linux
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20439 shlibpath_var=LIBPATH
20440
20441 # AIX 3 has no versioning support, so we append a major version to the name.
20442 soname_spec='${libname}${release}${shared_ext}$major'
20443 ;;
20444
20445aix4* | aix5*)
20446 version_type=linux
20447 need_lib_prefix=no
20448 need_version=no
20449 hardcode_into_libs=yes
20450 if test "$host_cpu" = ia64; then
20451 # AIX 5 supports IA64
20452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20453 shlibpath_var=LD_LIBRARY_PATH
20454 else
20455 # With GCC up to 2.95.x, collect2 would create an import file
20456 # for dependence libraries. The import file would start with
20457 # the line `#! .'. This would cause the generated library to
20458 # depend on `.', always an invalid library. This was fixed in
20459 # development snapshots of GCC prior to 3.0.
20460 case $host_os in
20461 aix4 | aix4.[01] | aix4.[01].*)
20462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20463 echo ' yes '
20464 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20465 :
20466 else
20467 can_build_shared=no
20468 fi
20469 ;;
20470 esac
20471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20472 # soname into executable. Probably we can add versioning support to
20473 # collect2, so additional links can be useful in future.
20474 if test "$aix_use_runtimelinking" = yes; then
20475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20476 # instead of lib<name>.a to let people know that these are not
20477 # typical AIX shared libraries.
20478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20479 else
20480 # We preserve .a as extension for shared libraries through AIX4.2
20481 # and later when we are not doing run time linking.
20482 library_names_spec='${libname}${release}.a $libname.a'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 fi
20485 shlibpath_var=LIBPATH
20486 fi
20487 ;;
20488
20489amigaos*)
20490 library_names_spec='$libname.ixlibrary $libname.a'
20491 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20492 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'
20493 ;;
20494
20495beos*)
20496 library_names_spec='${libname}${shared_ext}'
20497 dynamic_linker="$host_os ld.so"
20498 shlibpath_var=LIBRARY_PATH
20499 ;;
20500
20501bsdi[45]*)
20502 version_type=linux
20503 need_version=no
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505 soname_spec='${libname}${release}${shared_ext}$major'
20506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20507 shlibpath_var=LD_LIBRARY_PATH
20508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20510 # the default ld.so.conf also contains /usr/contrib/lib and
20511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20512 # libtool to hard-code these into programs
20513 ;;
20514
20515cygwin* | mingw* | pw32*)
20516 version_type=windows
20517 shrext_cmds=".dll"
20518 need_version=no
20519 need_lib_prefix=no
20520
20521 case $GCC,$host_os in
20522 yes,cygwin* | yes,mingw* | yes,pw32*)
20523 library_names_spec='$libname.dll.a'
20524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20525 postinstall_cmds='base_file=`basename \${file}`~
20526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20527 dldir=$destdir/`dirname \$dlpath`~
20528 test -d \$dldir || mkdir -p \$dldir~
20529 $install_prog $dir/$dlname \$dldir/$dlname~
20530 chmod a+x \$dldir/$dlname'
20531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20532 dlpath=$dir/\$dldll~
20533 $rm \$dlpath'
20534 shlibpath_overrides_runpath=yes
20535
20536 case $host_os in
20537 cygwin*)
20538 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20539 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20540 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20541 ;;
20542 mingw*)
20543 # MinGW DLLs use traditional 'lib' prefix
20544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20545 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20546 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20547 # It is most probably a Windows format PATH printed by
20548 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20549 # path with ; separators, and with drive letters. We can handle the
20550 # drive letters (cygwin fileutils understands them), so leave them,
20551 # especially as we might pass files found there to a mingw objdump,
20552 # which wouldn't understand a cygwinified path. Ahh.
20553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20554 else
20555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20556 fi
20557 ;;
20558 pw32*)
20559 # pw32 DLLs use 'pw' prefix rather than 'lib'
20560 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20561 ;;
20562 esac
20563 ;;
20564
20565 *)
20566 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20567 ;;
20568 esac
20569 dynamic_linker='Win32 ld.exe'
20570 # FIXME: first we should search . and the directory the executable is in
20571 shlibpath_var=PATH
20572 ;;
20573
20574darwin* | rhapsody*)
20575 dynamic_linker="$host_os dyld"
20576 version_type=darwin
20577 need_lib_prefix=no
20578 need_version=no
20579 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20580 soname_spec='${libname}${release}${major}$shared_ext'
20581 shlibpath_overrides_runpath=yes
20582 shlibpath_var=DYLD_LIBRARY_PATH
20583 shrext_cmds='.dylib'
20584 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20585 if test "$GCC" = yes; then
20586 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"`
20587 else
20588 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20589 fi
20590 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20591 ;;
20592
20593dgux*)
20594 version_type=linux
20595 need_lib_prefix=no
20596 need_version=no
20597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20598 soname_spec='${libname}${release}${shared_ext}$major'
20599 shlibpath_var=LD_LIBRARY_PATH
20600 ;;
20601
20602freebsd1*)
20603 dynamic_linker=no
20604 ;;
20605
20606kfreebsd*-gnu)
20607 version_type=linux
20608 need_lib_prefix=no
20609 need_version=no
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20611 soname_spec='${libname}${release}${shared_ext}$major'
20612 shlibpath_var=LD_LIBRARY_PATH
20613 shlibpath_overrides_runpath=no
20614 hardcode_into_libs=yes
20615 dynamic_linker='GNU ld.so'
20616 ;;
20617
20618freebsd* | dragonfly*)
20619 # DragonFly does not have aout. When/if they implement a new
20620 # versioning mechanism, adjust this.
20621 if test -x /usr/bin/objformat; then
20622 objformat=`/usr/bin/objformat`
20623 else
20624 case $host_os in
20625 freebsd[123]*) objformat=aout ;;
20626 *) objformat=elf ;;
20627 esac
20628 fi
20629 version_type=freebsd-$objformat
20630 case $version_type in
20631 freebsd-elf*)
20632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20633 need_version=no
20634 need_lib_prefix=no
20635 ;;
20636 freebsd-*)
20637 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20638 need_version=yes
20639 ;;
20640 esac
20641 shlibpath_var=LD_LIBRARY_PATH
20642 case $host_os in
20643 freebsd2*)
20644 shlibpath_overrides_runpath=yes
20645 ;;
20646 freebsd3.[01]* | freebsdelf3.[01]*)
20647 shlibpath_overrides_runpath=yes
20648 hardcode_into_libs=yes
20649 ;;
20650 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20651 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20652 shlibpath_overrides_runpath=no
20653 hardcode_into_libs=yes
20654 ;;
20655 freebsd*) # from 4.6 on
20656 shlibpath_overrides_runpath=yes
20657 hardcode_into_libs=yes
20658 ;;
20659 esac
20660 ;;
20661
20662gnu*)
20663 version_type=linux
20664 need_lib_prefix=no
20665 need_version=no
20666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20667 soname_spec='${libname}${release}${shared_ext}$major'
20668 shlibpath_var=LD_LIBRARY_PATH
20669 hardcode_into_libs=yes
20670 ;;
20671
20672hpux9* | hpux10* | hpux11*)
20673 # Give a soname corresponding to the major version so that dld.sl refuses to
20674 # link against other versions.
20675 version_type=sunos
20676 need_lib_prefix=no
20677 need_version=no
20678 case $host_cpu in
20679 ia64*)
20680 shrext_cmds='.so'
20681 hardcode_into_libs=yes
20682 dynamic_linker="$host_os dld.so"
20683 shlibpath_var=LD_LIBRARY_PATH
20684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686 soname_spec='${libname}${release}${shared_ext}$major'
20687 if test "X$HPUX_IA64_MODE" = X32; then
20688 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20689 else
20690 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20691 fi
20692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20693 ;;
20694 hppa*64*)
20695 shrext_cmds='.sl'
20696 hardcode_into_libs=yes
20697 dynamic_linker="$host_os dld.sl"
20698 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20701 soname_spec='${libname}${release}${shared_ext}$major'
20702 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20704 ;;
20705 *)
20706 shrext_cmds='.sl'
20707 dynamic_linker="$host_os dld.sl"
20708 shlibpath_var=SHLIB_PATH
20709 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711 soname_spec='${libname}${release}${shared_ext}$major'
20712 ;;
20713 esac
20714 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20715 postinstall_cmds='chmod 555 $lib'
20716 ;;
20717
20718interix3*)
20719 version_type=linux
20720 need_lib_prefix=no
20721 need_version=no
20722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20723 soname_spec='${libname}${release}${shared_ext}$major'
20724 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20725 shlibpath_var=LD_LIBRARY_PATH
20726 shlibpath_overrides_runpath=no
20727 hardcode_into_libs=yes
20728 ;;
20729
20730irix5* | irix6* | nonstopux*)
20731 case $host_os in
20732 nonstopux*) version_type=nonstopux ;;
20733 *)
20734 if test "$lt_cv_prog_gnu_ld" = yes; then
20735 version_type=linux
20736 else
20737 version_type=irix
20738 fi ;;
20739 esac
20740 need_lib_prefix=no
20741 need_version=no
20742 soname_spec='${libname}${release}${shared_ext}$major'
20743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20744 case $host_os in
20745 irix5* | nonstopux*)
20746 libsuff= shlibsuff=
20747 ;;
20748 *)
20749 case $LD in # libtool.m4 will add one of these switches to LD
20750 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20751 libsuff= shlibsuff= libmagic=32-bit;;
20752 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20753 libsuff=32 shlibsuff=N32 libmagic=N32;;
20754 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20755 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20756 *) libsuff= shlibsuff= libmagic=never-match;;
20757 esac
20758 ;;
20759 esac
20760 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20761 shlibpath_overrides_runpath=no
20762 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20763 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20764 hardcode_into_libs=yes
20765 ;;
20766
20767# No shared lib support for Linux oldld, aout, or coff.
20768linux*oldld* | linux*aout* | linux*coff*)
20769 dynamic_linker=no
20770 ;;
20771
20772# This must be Linux ELF.
20773linux*)
20774 version_type=linux
20775 need_lib_prefix=no
20776 need_version=no
20777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20778 soname_spec='${libname}${release}${shared_ext}$major'
20779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20780 shlibpath_var=LD_LIBRARY_PATH
20781 shlibpath_overrides_runpath=no
20782 # This implies no fast_install, which is unacceptable.
20783 # Some rework will be needed to allow for fast_install
20784 # before this can be enabled.
20785 hardcode_into_libs=yes
20786
20787 # Append ld.so.conf contents to the search path
20788 if test -f /etc/ld.so.conf; then
20789 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' ' '`
20790 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20791 fi
20792
20793 # We used to test for /lib/ld.so.1 and disable shared libraries on
20794 # powerpc, because MkLinux only supported shared libraries with the
20795 # GNU dynamic linker. Since this was broken with cross compilers,
20796 # most powerpc-linux boxes support dynamic linking these days and
20797 # people can always --disable-shared, the test was removed, and we
20798 # assume the GNU/Linux dynamic linker is in use.
20799 dynamic_linker='GNU/Linux ld.so'
20800 ;;
20801
20802knetbsd*-gnu)
20803 version_type=linux
20804 need_lib_prefix=no
20805 need_version=no
20806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20807 soname_spec='${libname}${release}${shared_ext}$major'
20808 shlibpath_var=LD_LIBRARY_PATH
20809 shlibpath_overrides_runpath=no
20810 hardcode_into_libs=yes
20811 dynamic_linker='GNU ld.so'
20812 ;;
20813
20814netbsd*)
20815 version_type=sunos
20816 need_lib_prefix=no
20817 need_version=no
20818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20821 dynamic_linker='NetBSD (a.out) ld.so'
20822 else
20823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20824 soname_spec='${libname}${release}${shared_ext}$major'
20825 dynamic_linker='NetBSD ld.elf_so'
20826 fi
20827 shlibpath_var=LD_LIBRARY_PATH
20828 shlibpath_overrides_runpath=yes
20829 hardcode_into_libs=yes
20830 ;;
20831
20832newsos6)
20833 version_type=linux
20834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20835 shlibpath_var=LD_LIBRARY_PATH
20836 shlibpath_overrides_runpath=yes
20837 ;;
20838
20839nto-qnx*)
20840 version_type=linux
20841 need_lib_prefix=no
20842 need_version=no
20843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20844 soname_spec='${libname}${release}${shared_ext}$major'
20845 shlibpath_var=LD_LIBRARY_PATH
20846 shlibpath_overrides_runpath=yes
20847 ;;
20848
20849openbsd*)
20850 version_type=sunos
20851 sys_lib_dlsearch_path_spec="/usr/lib"
20852 need_lib_prefix=no
20853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20854 case $host_os in
20855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20856 *) need_version=no ;;
20857 esac
20858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20860 shlibpath_var=LD_LIBRARY_PATH
20861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20862 case $host_os in
20863 openbsd2.[89] | openbsd2.[89].*)
20864 shlibpath_overrides_runpath=no
20865 ;;
20866 *)
20867 shlibpath_overrides_runpath=yes
20868 ;;
20869 esac
20870 else
20871 shlibpath_overrides_runpath=yes
20872 fi
20873 ;;
20874
20875os2*)
20876 libname_spec='$name'
20877 shrext_cmds=".dll"
20878 need_lib_prefix=no
20879 library_names_spec='$libname${shared_ext} $libname.a'
20880 dynamic_linker='OS/2 ld.exe'
20881 shlibpath_var=LIBPATH
20882 ;;
20883
20884osf3* | osf4* | osf5*)
20885 version_type=osf
20886 need_lib_prefix=no
20887 need_version=no
20888 soname_spec='${libname}${release}${shared_ext}$major'
20889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20890 shlibpath_var=LD_LIBRARY_PATH
20891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20893 ;;
20894
20895solaris*)
20896 version_type=linux
20897 need_lib_prefix=no
20898 need_version=no
20899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20900 soname_spec='${libname}${release}${shared_ext}$major'
20901 shlibpath_var=LD_LIBRARY_PATH
20902 shlibpath_overrides_runpath=yes
20903 hardcode_into_libs=yes
20904 # ldd complains unless libraries are executable
20905 postinstall_cmds='chmod +x $lib'
20906 ;;
20907
20908sunos4*)
20909 version_type=sunos
20910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20911 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20912 shlibpath_var=LD_LIBRARY_PATH
20913 shlibpath_overrides_runpath=yes
20914 if test "$with_gnu_ld" = yes; then
20915 need_lib_prefix=no
20916 fi
20917 need_version=yes
20918 ;;
20919
20920sysv4 | sysv4.3*)
20921 version_type=linux
20922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20923 soname_spec='${libname}${release}${shared_ext}$major'
20924 shlibpath_var=LD_LIBRARY_PATH
20925 case $host_vendor in
20926 sni)
20927 shlibpath_overrides_runpath=no
20928 need_lib_prefix=no
20929 export_dynamic_flag_spec='${wl}-Blargedynsym'
20930 runpath_var=LD_RUN_PATH
20931 ;;
20932 siemens)
20933 need_lib_prefix=no
20934 ;;
20935 motorola)
20936 need_lib_prefix=no
20937 need_version=no
20938 shlibpath_overrides_runpath=no
20939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20940 ;;
20941 esac
20942 ;;
20943
20944sysv4*MP*)
20945 if test -d /usr/nec ;then
20946 version_type=linux
20947 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20948 soname_spec='$libname${shared_ext}.$major'
20949 shlibpath_var=LD_LIBRARY_PATH
20950 fi
20951 ;;
20952
20953sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20954 version_type=freebsd-elf
20955 need_lib_prefix=no
20956 need_version=no
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 hardcode_into_libs=yes
20961 if test "$with_gnu_ld" = yes; then
20962 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20963 shlibpath_overrides_runpath=no
20964 else
20965 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20966 shlibpath_overrides_runpath=yes
20967 case $host_os in
20968 sco3.2v5*)
20969 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20970 ;;
20971 esac
20972 fi
20973 sys_lib_dlsearch_path_spec='/usr/lib'
20974 ;;
20975
20976uts4*)
20977 version_type=linux
20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20979 soname_spec='${libname}${release}${shared_ext}$major'
20980 shlibpath_var=LD_LIBRARY_PATH
20981 ;;
20982
20983*)
20984 dynamic_linker=no
20985 ;;
20986esac
20987{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20988echo "${ECHO_T}$dynamic_linker" >&6; }
20989test "$dynamic_linker" = no && can_build_shared=no
20990
20991variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20992if test "$GCC" = yes; then
20993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20994fi
20995
20996{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20997echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20998hardcode_action_CXX=
20999if test -n "$hardcode_libdir_flag_spec_CXX" || \
21000 test -n "$runpath_var_CXX" || \
21001 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21002
21003 # We can hardcode non-existant directories.
21004 if test "$hardcode_direct_CXX" != no &&
21005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21006 # have to relink, otherwise we might link with an installed library
21007 # when we should be linking with a yet-to-be-installed one
21008 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21009 test "$hardcode_minus_L_CXX" != no; then
21010 # Linking always hardcodes the temporary library directory.
21011 hardcode_action_CXX=relink
21012 else
21013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21014 hardcode_action_CXX=immediate
21015 fi
21016else
21017 # We cannot hardcode anything, or else we can only hardcode existing
21018 # directories.
21019 hardcode_action_CXX=unsupported
21020fi
21021{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21022echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21023
21024if test "$hardcode_action_CXX" = relink; then
21025 # Fast installation is not supported
21026 enable_fast_install=no
21027elif test "$shlibpath_overrides_runpath" = yes ||
21028 test "$enable_shared" = no; then
21029 # Fast installation is not necessary
21030 enable_fast_install=needless
21031fi
21032
21033
21034# The else clause should only fire when bootstrapping the
21035# libtool distribution, otherwise you forgot to ship ltmain.sh
21036# with your package, and you will get complaints that there are
21037# no rules to generate ltmain.sh.
21038if test -f "$ltmain"; then
21039 # See if we are running on zsh, and set the options which allow our commands through
21040 # without removal of \ escapes.
21041 if test -n "${ZSH_VERSION+set}" ; then
21042 setopt NO_GLOB_SUBST
21043 fi
21044 # Now quote all the things that may contain metacharacters while being
21045 # careful not to overquote the AC_SUBSTed values. We take copies of the
21046 # variables and quote the copies for generation of the libtool script.
21047 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21048 SED SHELL STRIP \
21049 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21050 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21051 deplibs_check_method reload_flag reload_cmds need_locks \
21052 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21053 lt_cv_sys_global_symbol_to_c_name_address \
21054 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21055 old_postinstall_cmds old_postuninstall_cmds \
21056 compiler_CXX \
21057 CC_CXX \
21058 LD_CXX \
21059 lt_prog_compiler_wl_CXX \
21060 lt_prog_compiler_pic_CXX \
21061 lt_prog_compiler_static_CXX \
21062 lt_prog_compiler_no_builtin_flag_CXX \
21063 export_dynamic_flag_spec_CXX \
21064 thread_safe_flag_spec_CXX \
21065 whole_archive_flag_spec_CXX \
21066 enable_shared_with_static_runtimes_CXX \
21067 old_archive_cmds_CXX \
21068 old_archive_from_new_cmds_CXX \
21069 predep_objects_CXX \
21070 postdep_objects_CXX \
21071 predeps_CXX \
21072 postdeps_CXX \
21073 compiler_lib_search_path_CXX \
21074 archive_cmds_CXX \
21075 archive_expsym_cmds_CXX \
21076 postinstall_cmds_CXX \
21077 postuninstall_cmds_CXX \
21078 old_archive_from_expsyms_cmds_CXX \
21079 allow_undefined_flag_CXX \
21080 no_undefined_flag_CXX \
21081 export_symbols_cmds_CXX \
21082 hardcode_libdir_flag_spec_CXX \
21083 hardcode_libdir_flag_spec_ld_CXX \
21084 hardcode_libdir_separator_CXX \
21085 hardcode_automatic_CXX \
21086 module_cmds_CXX \
21087 module_expsym_cmds_CXX \
21088 lt_cv_prog_compiler_c_o_CXX \
21089 exclude_expsyms_CXX \
21090 include_expsyms_CXX; do
21091
21092 case $var in
21093 old_archive_cmds_CXX | \
21094 old_archive_from_new_cmds_CXX | \
21095 archive_cmds_CXX | \
21096 archive_expsym_cmds_CXX | \
21097 module_cmds_CXX | \
21098 module_expsym_cmds_CXX | \
21099 old_archive_from_expsyms_cmds_CXX | \
21100 export_symbols_cmds_CXX | \
21101 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21102 postinstall_cmds | postuninstall_cmds | \
21103 old_postinstall_cmds | old_postuninstall_cmds | \
21104 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21105 # Double-quote double-evaled strings.
21106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21107 ;;
21108 *)
21109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21110 ;;
21111 esac
21112 done
21113
21114 case $lt_echo in
21115 *'\$0 --fallback-echo"')
21116 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21117 ;;
21118 esac
21119
21120cfgfile="$ofile"
21121
21122 cat <<__EOF__ >> "$cfgfile"
21123# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21124
21125# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21126
21127# Shell to use when invoking shell scripts.
21128SHELL=$lt_SHELL
21129
21130# Whether or not to build shared libraries.
21131build_libtool_libs=$enable_shared
21132
21133# Whether or not to build static libraries.
21134build_old_libs=$enable_static
21135
21136# Whether or not to add -lc for building shared libraries.
21137build_libtool_need_lc=$archive_cmds_need_lc_CXX
21138
21139# Whether or not to disallow shared libs when runtime libs are static
21140allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21141
21142# Whether or not to optimize for fast installation.
21143fast_install=$enable_fast_install
21144
21145# The host system.
21146host_alias=$host_alias
21147host=$host
21148host_os=$host_os
21149
21150# The build system.
21151build_alias=$build_alias
21152build=$build
21153build_os=$build_os
21154
21155# An echo program that does not interpret backslashes.
21156echo=$lt_echo
21157
21158# The archiver.
21159AR=$lt_AR
21160AR_FLAGS=$lt_AR_FLAGS
21161
21162# A C compiler.
21163LTCC=$lt_LTCC
21164
21165# LTCC compiler flags.
21166LTCFLAGS=$lt_LTCFLAGS
21167
21168# A language-specific compiler.
21169CC=$lt_compiler_CXX
21170
21171# Is the compiler the GNU C compiler?
21172with_gcc=$GCC_CXX
21173
21174# An ERE matcher.
21175EGREP=$lt_EGREP
21176
21177# The linker used to build libraries.
21178LD=$lt_LD_CXX
21179
21180# Whether we need hard or soft links.
21181LN_S=$lt_LN_S
21182
21183# A BSD-compatible nm program.
21184NM=$lt_NM
21185
21186# A symbol stripping program
21187STRIP=$lt_STRIP
21188
21189# Used to examine libraries when file_magic_cmd begins "file"
21190MAGIC_CMD=$MAGIC_CMD
21191
21192# Used on cygwin: DLL creation program.
21193DLLTOOL="$DLLTOOL"
21194
21195# Used on cygwin: object dumper.
21196OBJDUMP="$OBJDUMP"
21197
21198# Used on cygwin: assembler.
21199AS="$AS"
21200
21201# The name of the directory that contains temporary libtool files.
21202objdir=$objdir
21203
21204# How to create reloadable object files.
21205reload_flag=$lt_reload_flag
21206reload_cmds=$lt_reload_cmds
21207
21208# How to pass a linker flag through the compiler.
21209wl=$lt_lt_prog_compiler_wl_CXX
21210
21211# Object file suffix (normally "o").
21212objext="$ac_objext"
21213
21214# Old archive suffix (normally "a").
21215libext="$libext"
21216
21217# Shared library suffix (normally ".so").
21218shrext_cmds='$shrext_cmds'
21219
21220# Executable file suffix (normally "").
21221exeext="$exeext"
21222
21223# Additional compiler flags for building library objects.
21224pic_flag=$lt_lt_prog_compiler_pic_CXX
21225pic_mode=$pic_mode
21226
21227# What is the maximum length of a command?
21228max_cmd_len=$lt_cv_sys_max_cmd_len
21229
21230# Does compiler simultaneously support -c and -o options?
21231compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21232
21233# Must we lock files when doing compilation?
21234need_locks=$lt_need_locks
21235
21236# Do we need the lib prefix for modules?
21237need_lib_prefix=$need_lib_prefix
21238
21239# Do we need a version for libraries?
21240need_version=$need_version
21241
21242# Whether dlopen is supported.
21243dlopen_support=$enable_dlopen
21244
21245# Whether dlopen of programs is supported.
21246dlopen_self=$enable_dlopen_self
21247
21248# Whether dlopen of statically linked programs is supported.
21249dlopen_self_static=$enable_dlopen_self_static
21250
21251# Compiler flag to prevent dynamic linking.
21252link_static_flag=$lt_lt_prog_compiler_static_CXX
21253
21254# Compiler flag to turn off builtin functions.
21255no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21256
21257# Compiler flag to allow reflexive dlopens.
21258export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21259
21260# Compiler flag to generate shared objects directly from archives.
21261whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21262
21263# Compiler flag to generate thread-safe objects.
21264thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21265
21266# Library versioning type.
21267version_type=$version_type
21268
21269# Format of library name prefix.
21270libname_spec=$lt_libname_spec
21271
21272# List of archive names. First name is the real one, the rest are links.
21273# The last name is the one that the linker finds with -lNAME.
21274library_names_spec=$lt_library_names_spec
21275
21276# The coded name of the library, if different from the real name.
21277soname_spec=$lt_soname_spec
21278
21279# Commands used to build and install an old-style archive.
21280RANLIB=$lt_RANLIB
21281old_archive_cmds=$lt_old_archive_cmds_CXX
21282old_postinstall_cmds=$lt_old_postinstall_cmds
21283old_postuninstall_cmds=$lt_old_postuninstall_cmds
21284
21285# Create an old-style archive from a shared archive.
21286old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21287
21288# Create a temporary old-style archive to link instead of a shared archive.
21289old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21290
21291# Commands used to build and install a shared archive.
21292archive_cmds=$lt_archive_cmds_CXX
21293archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21294postinstall_cmds=$lt_postinstall_cmds
21295postuninstall_cmds=$lt_postuninstall_cmds
21296
21297# Commands used to build a loadable module (assumed same as above if empty)
21298module_cmds=$lt_module_cmds_CXX
21299module_expsym_cmds=$lt_module_expsym_cmds_CXX
21300
21301# Commands to strip libraries.
21302old_striplib=$lt_old_striplib
21303striplib=$lt_striplib
21304
21305# Dependencies to place before the objects being linked to create a
21306# shared library.
21307predep_objects=$lt_predep_objects_CXX
21308
21309# Dependencies to place after the objects being linked to create a
21310# shared library.
21311postdep_objects=$lt_postdep_objects_CXX
21312
21313# Dependencies to place before the objects being linked to create a
21314# shared library.
21315predeps=$lt_predeps_CXX
21316
21317# Dependencies to place after the objects being linked to create a
21318# shared library.
21319postdeps=$lt_postdeps_CXX
21320
21321# The library search path used internally by the compiler when linking
21322# a shared library.
21323compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21324
21325# Method to check whether dependent libraries are shared objects.
21326deplibs_check_method=$lt_deplibs_check_method
21327
21328# Command to use when deplibs_check_method == file_magic.
21329file_magic_cmd=$lt_file_magic_cmd
21330
21331# Flag that allows shared libraries with undefined symbols to be built.
21332allow_undefined_flag=$lt_allow_undefined_flag_CXX
21333
21334# Flag that forces no undefined symbols.
21335no_undefined_flag=$lt_no_undefined_flag_CXX
21336
21337# Commands used to finish a libtool library installation in a directory.
21338finish_cmds=$lt_finish_cmds
21339
21340# Same as above, but a single script fragment to be evaled but not shown.
21341finish_eval=$lt_finish_eval
21342
21343# Take the output of nm and produce a listing of raw symbols and C names.
21344global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21345
21346# Transform the output of nm in a proper C declaration
21347global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21348
21349# Transform the output of nm in a C name address pair
21350global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21351
21352# This is the shared library runtime path variable.
21353runpath_var=$runpath_var
21354
21355# This is the shared library path variable.
21356shlibpath_var=$shlibpath_var
21357
21358# Is shlibpath searched before the hard-coded library search path?
21359shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21360
21361# How to hardcode a shared library path into an executable.
21362hardcode_action=$hardcode_action_CXX
21363
21364# Whether we should hardcode library paths into libraries.
21365hardcode_into_libs=$hardcode_into_libs
21366
21367# Flag to hardcode \$libdir into a binary during linking.
21368# This must work even if \$libdir does not exist.
21369hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21370
21371# If ld is used when linking, flag to hardcode \$libdir into
21372# a binary during linking. This must work even if \$libdir does
21373# not exist.
21374hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21375
21376# Whether we need a single -rpath flag with a separated argument.
21377hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21378
21379# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21380# resulting binary.
21381hardcode_direct=$hardcode_direct_CXX
21382
21383# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21384# resulting binary.
21385hardcode_minus_L=$hardcode_minus_L_CXX
21386
21387# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21388# the resulting binary.
21389hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21390
21391# Set to yes if building a shared library automatically hardcodes DIR into the library
21392# and all subsequent libraries and executables linked against it.
21393hardcode_automatic=$hardcode_automatic_CXX
21394
21395# Variables whose values should be saved in libtool wrapper scripts and
21396# restored at relink time.
21397variables_saved_for_relink="$variables_saved_for_relink"
21398
21399# Whether libtool must link a program against all its dependency libraries.
21400link_all_deplibs=$link_all_deplibs_CXX
21401
21402# Compile-time system search path for libraries
21403sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21404
21405# Run-time system search path for libraries
21406sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21407
21408# Fix the shell variable \$srcfile for the compiler.
21409fix_srcfile_path="$fix_srcfile_path_CXX"
21410
21411# Set to yes if exported symbols are required.
21412always_export_symbols=$always_export_symbols_CXX
21413
21414# The commands to list exported symbols.
21415export_symbols_cmds=$lt_export_symbols_cmds_CXX
21416
21417# The commands to extract the exported symbol list from a shared archive.
21418extract_expsyms_cmds=$lt_extract_expsyms_cmds
21419
21420# Symbols that should not be listed in the preloaded symbols.
21421exclude_expsyms=$lt_exclude_expsyms_CXX
21422
21423# Symbols that must always be exported.
21424include_expsyms=$lt_include_expsyms_CXX
21425
21426# ### END LIBTOOL TAG CONFIG: $tagname
21427
21428__EOF__
21429
21430
21431else
21432 # If there is no Makefile yet, we rely on a make rule to execute
21433 # `config.status --recheck' to rerun these tests and create the
21434 # libtool script then.
21435 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21436 if test -f "$ltmain_in"; then
21437 test -f Makefile && make "$ltmain"
21438 fi
21439fi
21440
21441
21442ac_ext=c
21443ac_cpp='$CPP $CPPFLAGS'
21444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21446ac_compiler_gnu=$ac_cv_c_compiler_gnu
21447
21448CC=$lt_save_CC
21449LDCXX=$LD
21450LD=$lt_save_LD
21451GCC=$lt_save_GCC
21452with_gnu_ldcxx=$with_gnu_ld
21453with_gnu_ld=$lt_save_with_gnu_ld
21454lt_cv_path_LDCXX=$lt_cv_path_LD
21455lt_cv_path_LD=$lt_save_path_LD
21456lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21457lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21458
21459 else
21460 tagname=""
21461 fi
21462 ;;
21463
21464 F77)
21465 if test -n "$F77" && test "X$F77" != "Xno"; then
21466
21467ac_ext=f
21468ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21469ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21470ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21471
21472
21473archive_cmds_need_lc_F77=no
21474allow_undefined_flag_F77=
21475always_export_symbols_F77=no
21476archive_expsym_cmds_F77=
21477export_dynamic_flag_spec_F77=
21478hardcode_direct_F77=no
21479hardcode_libdir_flag_spec_F77=
21480hardcode_libdir_flag_spec_ld_F77=
21481hardcode_libdir_separator_F77=
21482hardcode_minus_L_F77=no
21483hardcode_automatic_F77=no
21484module_cmds_F77=
21485module_expsym_cmds_F77=
21486link_all_deplibs_F77=unknown
21487old_archive_cmds_F77=$old_archive_cmds
21488no_undefined_flag_F77=
21489whole_archive_flag_spec_F77=
21490enable_shared_with_static_runtimes_F77=no
21491
21492# Source file extension for f77 test sources.
21493ac_ext=f
21494
21495# Object file extension for compiled f77 test sources.
21496objext=o
21497objext_F77=$objext
21498
21499# Code to be used in simple compile tests
21500lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21501
21502# Code to be used in simple link tests
21503lt_simple_link_test_code=" program t\n end\n"
21504
21505# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21506
21507# If no C compiler was specified, use CC.
21508LTCC=${LTCC-"$CC"}
21509
21510# If no C compiler flags were specified, use CFLAGS.
21511LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21512
21513# Allow CC to be a program name with arguments.
21514compiler=$CC
21515
21516
21517# save warnings/boilerplate of simple test code
21518ac_outfile=conftest.$ac_objext
21519printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21520eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21521_lt_compiler_boilerplate=`cat conftest.err`
21522$rm conftest*
21523
21524ac_outfile=conftest.$ac_objext
21525printf "$lt_simple_link_test_code" >conftest.$ac_ext
21526eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21527_lt_linker_boilerplate=`cat conftest.err`
21528$rm conftest*
21529
21530
21531# Allow CC to be a program name with arguments.
21532lt_save_CC="$CC"
21533CC=${F77-"f77"}
21534compiler=$CC
21535compiler_F77=$CC
21536for cc_temp in $compiler""; do
21537 case $cc_temp in
21538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21540 \-*) ;;
21541 *) break;;
21542 esac
21543done
21544cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21545
21546
21547{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21548echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21549{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21550echo "${ECHO_T}$can_build_shared" >&6; }
21551
21552{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21553echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21554test "$can_build_shared" = "no" && enable_shared=no
21555
21556# On AIX, shared libraries and static libraries use the same namespace, and
21557# are all built from PIC.
21558case $host_os in
21559aix3*)
21560 test "$enable_shared" = yes && enable_static=no
21561 if test -n "$RANLIB"; then
21562 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21563 postinstall_cmds='$RANLIB $lib'
21564 fi
21565 ;;
21566aix4* | aix5*)
21567 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21568 test "$enable_shared" = yes && enable_static=no
21569 fi
21570 ;;
21571esac
21572{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21573echo "${ECHO_T}$enable_shared" >&6; }
21574
21575{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21576echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21577# Make sure either enable_shared or enable_static is yes.
21578test "$enable_shared" = yes || enable_static=yes
21579{ echo "$as_me:$LINENO: result: $enable_static" >&5
21580echo "${ECHO_T}$enable_static" >&6; }
21581
21582GCC_F77="$G77"
21583LD_F77="$LD"
21584
21585lt_prog_compiler_wl_F77=
21586lt_prog_compiler_pic_F77=
21587lt_prog_compiler_static_F77=
21588
21589{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21590echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21591
21592 if test "$GCC" = yes; then
21593 lt_prog_compiler_wl_F77='-Wl,'
21594 lt_prog_compiler_static_F77='-static'
21595
21596 case $host_os in
21597 aix*)
21598 # All AIX code is PIC.
21599 if test "$host_cpu" = ia64; then
21600 # AIX 5 now supports IA64 processor
21601 lt_prog_compiler_static_F77='-Bstatic'
21602 fi
21603 ;;
21604
21605 amigaos*)
21606 # FIXME: we need at least 68020 code to build shared libraries, but
21607 # adding the `-m68020' flag to GCC prevents building anything better,
21608 # like `-m68040'.
21609 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21610 ;;
21611
21612 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21613 # PIC is the default for these OSes.
21614 ;;
21615
21616 mingw* | pw32* | os2*)
21617 # This hack is so that the source file can tell whether it is being
21618 # built for inclusion in a dll (and should export symbols for example).
21619 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21620 ;;
21621
21622 darwin* | rhapsody*)
21623 # PIC is the default on this platform
21624 # Common symbols not allowed in MH_DYLIB files
21625 lt_prog_compiler_pic_F77='-fno-common'
21626 ;;
21627
21628 interix3*)
21629 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21630 # Instead, we relocate shared libraries at runtime.
21631 ;;
21632
21633 msdosdjgpp*)
21634 # Just because we use GCC doesn't mean we suddenly get shared libraries
21635 # on systems that don't support them.
21636 lt_prog_compiler_can_build_shared_F77=no
21637 enable_shared=no
21638 ;;
21639
21640 sysv4*MP*)
21641 if test -d /usr/nec; then
21642 lt_prog_compiler_pic_F77=-Kconform_pic
21643 fi
21644 ;;
21645
21646 hpux*)
21647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21648 # not for PA HP-UX.
21649 case $host_cpu in
21650 hppa*64*|ia64*)
21651 # +Z the default
21652 ;;
21653 *)
21654 lt_prog_compiler_pic_F77='-fPIC'
21655 ;;
21656 esac
21657 ;;
21658
21659 *)
21660 lt_prog_compiler_pic_F77='-fPIC'
21661 ;;
21662 esac
21663 else
21664 # PORTME Check for flag to pass linker flags through the system compiler.
21665 case $host_os in
21666 aix*)
21667 lt_prog_compiler_wl_F77='-Wl,'
21668 if test "$host_cpu" = ia64; then
21669 # AIX 5 now supports IA64 processor
21670 lt_prog_compiler_static_F77='-Bstatic'
21671 else
21672 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21673 fi
21674 ;;
21675 darwin*)
21676 # PIC is the default on this platform
21677 # Common symbols not allowed in MH_DYLIB files
21678 case $cc_basename in
21679 xlc*)
21680 lt_prog_compiler_pic_F77='-qnocommon'
21681 lt_prog_compiler_wl_F77='-Wl,'
21682 ;;
21683 esac
21684 ;;
21685
21686 mingw* | pw32* | os2*)
21687 # This hack is so that the source file can tell whether it is being
21688 # built for inclusion in a dll (and should export symbols for example).
21689 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21690 ;;
21691
21692 hpux9* | hpux10* | hpux11*)
21693 lt_prog_compiler_wl_F77='-Wl,'
21694 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21695 # not for PA HP-UX.
21696 case $host_cpu in
21697 hppa*64*|ia64*)
21698 # +Z the default
21699 ;;
21700 *)
21701 lt_prog_compiler_pic_F77='+Z'
21702 ;;
21703 esac
21704 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21705 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21706 ;;
21707
21708 irix5* | irix6* | nonstopux*)
21709 lt_prog_compiler_wl_F77='-Wl,'
21710 # PIC (with -KPIC) is the default.
21711 lt_prog_compiler_static_F77='-non_shared'
21712 ;;
21713
21714 newsos6)
21715 lt_prog_compiler_pic_F77='-KPIC'
21716 lt_prog_compiler_static_F77='-Bstatic'
21717 ;;
21718
21719 linux*)
21720 case $cc_basename in
21721 icc* | ecc*)
21722 lt_prog_compiler_wl_F77='-Wl,'
21723 lt_prog_compiler_pic_F77='-KPIC'
21724 lt_prog_compiler_static_F77='-static'
21725 ;;
21726 pgcc* | pgf77* | pgf90* | pgf95*)
21727 # Portland Group compilers (*not* the Pentium gcc compiler,
21728 # which looks to be a dead project)
21729 lt_prog_compiler_wl_F77='-Wl,'
21730 lt_prog_compiler_pic_F77='-fpic'
21731 lt_prog_compiler_static_F77='-Bstatic'
21732 ;;
21733 ccc*)
21734 lt_prog_compiler_wl_F77='-Wl,'
21735 # All Alpha code is PIC.
21736 lt_prog_compiler_static_F77='-non_shared'
21737 ;;
21738 esac
21739 ;;
21740
21741 osf3* | osf4* | osf5*)
21742 lt_prog_compiler_wl_F77='-Wl,'
21743 # All OSF/1 code is PIC.
21744 lt_prog_compiler_static_F77='-non_shared'
21745 ;;
21746
21747 solaris*)
21748 lt_prog_compiler_pic_F77='-KPIC'
21749 lt_prog_compiler_static_F77='-Bstatic'
21750 case $cc_basename in
21751 f77* | f90* | f95*)
21752 lt_prog_compiler_wl_F77='-Qoption ld ';;
21753 *)
21754 lt_prog_compiler_wl_F77='-Wl,';;
21755 esac
21756 ;;
21757
21758 sunos4*)
21759 lt_prog_compiler_wl_F77='-Qoption ld '
21760 lt_prog_compiler_pic_F77='-PIC'
21761 lt_prog_compiler_static_F77='-Bstatic'
21762 ;;
21763
21764 sysv4 | sysv4.2uw2* | sysv4.3*)
21765 lt_prog_compiler_wl_F77='-Wl,'
21766 lt_prog_compiler_pic_F77='-KPIC'
21767 lt_prog_compiler_static_F77='-Bstatic'
21768 ;;
21769
21770 sysv4*MP*)
21771 if test -d /usr/nec ;then
21772 lt_prog_compiler_pic_F77='-Kconform_pic'
21773 lt_prog_compiler_static_F77='-Bstatic'
21774 fi
21775 ;;
21776
21777 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21778 lt_prog_compiler_wl_F77='-Wl,'
21779 lt_prog_compiler_pic_F77='-KPIC'
21780 lt_prog_compiler_static_F77='-Bstatic'
21781 ;;
21782
21783 unicos*)
21784 lt_prog_compiler_wl_F77='-Wl,'
21785 lt_prog_compiler_can_build_shared_F77=no
21786 ;;
21787
21788 uts4*)
21789 lt_prog_compiler_pic_F77='-pic'
21790 lt_prog_compiler_static_F77='-Bstatic'
21791 ;;
21792
21793 *)
21794 lt_prog_compiler_can_build_shared_F77=no
21795 ;;
21796 esac
21797 fi
21798
21799{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21800echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21801
21802#
21803# Check to make sure the PIC flag actually works.
21804#
21805if test -n "$lt_prog_compiler_pic_F77"; then
21806
21807{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21808echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21809if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811else
21812 lt_prog_compiler_pic_works_F77=no
21813 ac_outfile=conftest.$ac_objext
21814 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21815 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21816 # Insert the option either (1) after the last *FLAGS variable, or
21817 # (2) before a word containing "conftest.", or (3) at the end.
21818 # Note that $ac_compile itself does not contain backslashes and begins
21819 # with a dollar sign (not a hyphen), so the echo should work correctly.
21820 # The option is referenced via a variable to avoid confusing sed.
21821 lt_compile=`echo "$ac_compile" | $SED \
21822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21824 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyd2813d02009-09-29 05:48:51 +000021825 (eval echo "\"\$as_me:21825: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021826 (eval "$lt_compile" 2>conftest.err)
21827 ac_status=$?
21828 cat conftest.err >&5
Nick Lewyckyd2813d02009-09-29 05:48:51 +000021829 echo "$as_me:21829: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021830 if (exit $ac_status) && test -s "$ac_outfile"; then
21831 # The compiler can only warn and ignore the option if not recognized
21832 # So say no if there are warnings other than the usual output.
21833 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21836 lt_prog_compiler_pic_works_F77=yes
21837 fi
21838 fi
21839 $rm conftest*
21840
21841fi
21842{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21843echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21844
21845if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21846 case $lt_prog_compiler_pic_F77 in
21847 "" | " "*) ;;
21848 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21849 esac
21850else
21851 lt_prog_compiler_pic_F77=
21852 lt_prog_compiler_can_build_shared_F77=no
21853fi
21854
21855fi
21856case $host_os in
21857 # For platforms which do not support PIC, -DPIC is meaningless:
21858 *djgpp*)
21859 lt_prog_compiler_pic_F77=
21860 ;;
21861 *)
21862 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21863 ;;
21864esac
21865
21866#
21867# Check to make sure the static flag actually works.
21868#
21869wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21870{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21871echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21872if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21873 echo $ECHO_N "(cached) $ECHO_C" >&6
21874else
21875 lt_prog_compiler_static_works_F77=no
21876 save_LDFLAGS="$LDFLAGS"
21877 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21878 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21879 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21880 # The linker can only warn and ignore the option if not recognized
21881 # So say no if there are warnings
21882 if test -s conftest.err; then
21883 # Append any errors to the config.log.
21884 cat conftest.err 1>&5
21885 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21887 if diff conftest.exp conftest.er2 >/dev/null; then
21888 lt_prog_compiler_static_works_F77=yes
21889 fi
21890 else
21891 lt_prog_compiler_static_works_F77=yes
21892 fi
21893 fi
21894 $rm conftest*
21895 LDFLAGS="$save_LDFLAGS"
21896
21897fi
21898{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21899echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21900
21901if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21902 :
21903else
21904 lt_prog_compiler_static_F77=
21905fi
21906
21907
21908{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21909echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21910if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21912else
21913 lt_cv_prog_compiler_c_o_F77=no
21914 $rm -r conftest 2>/dev/null
21915 mkdir conftest
21916 cd conftest
21917 mkdir out
21918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21919
21920 lt_compiler_flag="-o out/conftest2.$ac_objext"
21921 # Insert the option either (1) after the last *FLAGS variable, or
21922 # (2) before a word containing "conftest.", or (3) at the end.
21923 # Note that $ac_compile itself does not contain backslashes and begins
21924 # with a dollar sign (not a hyphen), so the echo should work correctly.
21925 lt_compile=`echo "$ac_compile" | $SED \
21926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21928 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyd2813d02009-09-29 05:48:51 +000021929 (eval echo "\"\$as_me:21929: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021930 (eval "$lt_compile" 2>out/conftest.err)
21931 ac_status=$?
21932 cat out/conftest.err >&5
Nick Lewyckyd2813d02009-09-29 05:48:51 +000021933 echo "$as_me:21933: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021934 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21935 then
21936 # The compiler can only warn and ignore the option if not recognized
21937 # So say no if there are warnings
21938 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21939 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21940 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21941 lt_cv_prog_compiler_c_o_F77=yes
21942 fi
21943 fi
21944 chmod u+w . 2>&5
21945 $rm conftest*
21946 # SGI C++ compiler will create directory out/ii_files/ for
21947 # template instantiation
21948 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21949 $rm out/* && rmdir out
21950 cd ..
21951 rmdir conftest
21952 $rm conftest*
21953
21954fi
21955{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21956echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21957
21958
21959hard_links="nottested"
21960if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21961 # do not overwrite the value of need_locks provided by the user
21962 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21963echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21964 hard_links=yes
21965 $rm conftest*
21966 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21967 touch conftest.a
21968 ln conftest.a conftest.b 2>&5 || hard_links=no
21969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21970 { echo "$as_me:$LINENO: result: $hard_links" >&5
21971echo "${ECHO_T}$hard_links" >&6; }
21972 if test "$hard_links" = no; then
21973 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21974echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21975 need_locks=warn
21976 fi
21977else
21978 need_locks=no
21979fi
21980
21981{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21982echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21983
21984 runpath_var=
21985 allow_undefined_flag_F77=
21986 enable_shared_with_static_runtimes_F77=no
21987 archive_cmds_F77=
21988 archive_expsym_cmds_F77=
21989 old_archive_From_new_cmds_F77=
21990 old_archive_from_expsyms_cmds_F77=
21991 export_dynamic_flag_spec_F77=
21992 whole_archive_flag_spec_F77=
21993 thread_safe_flag_spec_F77=
21994 hardcode_libdir_flag_spec_F77=
21995 hardcode_libdir_flag_spec_ld_F77=
21996 hardcode_libdir_separator_F77=
21997 hardcode_direct_F77=no
21998 hardcode_minus_L_F77=no
21999 hardcode_shlibpath_var_F77=unsupported
22000 link_all_deplibs_F77=unknown
22001 hardcode_automatic_F77=no
22002 module_cmds_F77=
22003 module_expsym_cmds_F77=
22004 always_export_symbols_F77=no
22005 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22006 # include_expsyms should be a list of space-separated symbols to be *always*
22007 # included in the symbol list
22008 include_expsyms_F77=
22009 # exclude_expsyms can be an extended regexp of symbols to exclude
22010 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22011 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22012 # as well as any symbol that contains `d'.
22013 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22014 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22015 # platforms (ab)use it in PIC code, but their linkers get confused if
22016 # the symbol is explicitly referenced. Since portable code cannot
22017 # rely on this symbol name, it's probably fine to never include it in
22018 # preloaded symbol tables.
22019 extract_expsyms_cmds=
22020 # Just being paranoid about ensuring that cc_basename is set.
22021 for cc_temp in $compiler""; do
22022 case $cc_temp in
22023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22025 \-*) ;;
22026 *) break;;
22027 esac
22028done
22029cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22030
22031 case $host_os in
22032 cygwin* | mingw* | pw32*)
22033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22034 # When not using gcc, we currently assume that we are using
22035 # Microsoft Visual C++.
22036 if test "$GCC" != yes; then
22037 with_gnu_ld=no
22038 fi
22039 ;;
22040 interix*)
22041 # we just hope/assume this is gcc and not c89 (= MSVC++)
22042 with_gnu_ld=yes
22043 ;;
22044 openbsd*)
22045 with_gnu_ld=no
22046 ;;
22047 esac
22048
22049 ld_shlibs_F77=yes
22050 if test "$with_gnu_ld" = yes; then
22051 # If archive_cmds runs LD, not CC, wlarc should be empty
22052 wlarc='${wl}'
22053
22054 # Set some defaults for GNU ld with shared library support. These
22055 # are reset later if shared libraries are not supported. Putting them
22056 # here allows them to be overridden if necessary.
22057 runpath_var=LD_RUN_PATH
22058 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22059 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22060 # ancient GNU ld didn't support --whole-archive et. al.
22061 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22062 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22063 else
22064 whole_archive_flag_spec_F77=
22065 fi
22066 supports_anon_versioning=no
22067 case `$LD -v 2>/dev/null` in
22068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22071 *\ 2.11.*) ;; # other 2.11 versions
22072 *) supports_anon_versioning=yes ;;
22073 esac
22074
22075 # See if GNU ld supports shared libraries.
22076 case $host_os in
22077 aix3* | aix4* | aix5*)
22078 # On AIX/PPC, the GNU linker is very broken
22079 if test "$host_cpu" != ia64; then
22080 ld_shlibs_F77=no
22081 cat <<EOF 1>&2
22082
22083*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22084*** to be unable to reliably create shared libraries on AIX.
22085*** Therefore, libtool is disabling shared libraries support. If you
22086*** really care for shared libraries, you may want to modify your PATH
22087*** so that a non-GNU linker is found, and then restart.
22088
22089EOF
22090 fi
22091 ;;
22092
22093 amigaos*)
22094 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)'
22095 hardcode_libdir_flag_spec_F77='-L$libdir'
22096 hardcode_minus_L_F77=yes
22097
22098 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22099 # that the semantics of dynamic libraries on AmigaOS, at least up
22100 # to version 4, is to share data among multiple programs linked
22101 # with the same dynamic library. Since this doesn't match the
22102 # behavior of shared libraries on other platforms, we can't use
22103 # them.
22104 ld_shlibs_F77=no
22105 ;;
22106
22107 beos*)
22108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22109 allow_undefined_flag_F77=unsupported
22110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22111 # support --undefined. This deserves some investigation. FIXME
22112 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22113 else
22114 ld_shlibs_F77=no
22115 fi
22116 ;;
22117
22118 cygwin* | mingw* | pw32*)
22119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22120 # as there is no search path for DLLs.
22121 hardcode_libdir_flag_spec_F77='-L$libdir'
22122 allow_undefined_flag_F77=unsupported
22123 always_export_symbols_F77=no
22124 enable_shared_with_static_runtimes_F77=yes
22125 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22126
22127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22128 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22129 # If the export-symbols file already is a .def file (1st line
22130 # is EXPORTS), use it as is; otherwise, prepend...
22131 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22132 cp $export_symbols $output_objdir/$soname.def;
22133 else
22134 echo EXPORTS > $output_objdir/$soname.def;
22135 cat $export_symbols >> $output_objdir/$soname.def;
22136 fi~
22137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22138 else
22139 ld_shlibs_F77=no
22140 fi
22141 ;;
22142
22143 interix3*)
22144 hardcode_direct_F77=no
22145 hardcode_shlibpath_var_F77=no
22146 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22147 export_dynamic_flag_spec_F77='${wl}-E'
22148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22149 # Instead, shared libraries are loaded at an image base (0x10000000 by
22150 # default) and relocated if they conflict, which is a slow very memory
22151 # consuming and fragmenting process. To avoid this, we pick a random,
22152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22153 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22154 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'
22155 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'
22156 ;;
22157
22158 linux*)
22159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22160 tmp_addflag=
22161 case $cc_basename,$host_cpu in
22162 pgcc*) # Portland Group C compiler
22163 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'
22164 tmp_addflag=' $pic_flag'
22165 ;;
22166 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22167 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'
22168 tmp_addflag=' $pic_flag -Mnomain' ;;
22169 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22170 tmp_addflag=' -i_dynamic' ;;
22171 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22172 tmp_addflag=' -i_dynamic -nofor_main' ;;
22173 ifc* | ifort*) # Intel Fortran compiler
22174 tmp_addflag=' -nofor_main' ;;
22175 esac
22176 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22177
22178 if test $supports_anon_versioning = yes; then
22179 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22181 $echo "local: *; };" >> $output_objdir/$libname.ver~
22182 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22183 fi
22184 else
22185 ld_shlibs_F77=no
22186 fi
22187 ;;
22188
22189 netbsd*)
22190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22191 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22192 wlarc=
22193 else
22194 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22195 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22196 fi
22197 ;;
22198
22199 solaris*)
22200 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22201 ld_shlibs_F77=no
22202 cat <<EOF 1>&2
22203
22204*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22205*** create shared libraries on Solaris systems. Therefore, libtool
22206*** is disabling shared libraries support. We urge you to upgrade GNU
22207*** binutils to release 2.9.1 or newer. Another option is to modify
22208*** your PATH or compiler configuration so that the native linker is
22209*** used, and then restart.
22210
22211EOF
22212 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22213 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22214 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22215 else
22216 ld_shlibs_F77=no
22217 fi
22218 ;;
22219
22220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22221 case `$LD -v 2>&1` in
22222 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22223 ld_shlibs_F77=no
22224 cat <<_LT_EOF 1>&2
22225
22226*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22227*** reliably create shared libraries on SCO systems. Therefore, libtool
22228*** is disabling shared libraries support. We urge you to upgrade GNU
22229*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22230*** your PATH or compiler configuration so that the native linker is
22231*** used, and then restart.
22232
22233_LT_EOF
22234 ;;
22235 *)
22236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22237 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22238 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22239 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22240 else
22241 ld_shlibs_F77=no
22242 fi
22243 ;;
22244 esac
22245 ;;
22246
22247 sunos4*)
22248 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22249 wlarc=
22250 hardcode_direct_F77=yes
22251 hardcode_shlibpath_var_F77=no
22252 ;;
22253
22254 *)
22255 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22256 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22257 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22258 else
22259 ld_shlibs_F77=no
22260 fi
22261 ;;
22262 esac
22263
22264 if test "$ld_shlibs_F77" = no; then
22265 runpath_var=
22266 hardcode_libdir_flag_spec_F77=
22267 export_dynamic_flag_spec_F77=
22268 whole_archive_flag_spec_F77=
22269 fi
22270 else
22271 # PORTME fill in a description of your system's linker (not GNU ld)
22272 case $host_os in
22273 aix3*)
22274 allow_undefined_flag_F77=unsupported
22275 always_export_symbols_F77=yes
22276 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'
22277 # Note: this linker hardcodes the directories in LIBPATH if there
22278 # are no directories specified by -L.
22279 hardcode_minus_L_F77=yes
22280 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22281 # Neither direct hardcoding nor static linking is supported with a
22282 # broken collect2.
22283 hardcode_direct_F77=unsupported
22284 fi
22285 ;;
22286
22287 aix4* | aix5*)
22288 if test "$host_cpu" = ia64; then
22289 # On IA64, the linker does run time linking by default, so we don't
22290 # have to do anything special.
22291 aix_use_runtimelinking=no
22292 exp_sym_flag='-Bexport'
22293 no_entry_flag=""
22294 else
22295 # If we're using GNU nm, then we don't want the "-C" option.
22296 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22297 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22298 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'
22299 else
22300 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'
22301 fi
22302 aix_use_runtimelinking=no
22303
22304 # Test if we are trying to use run time linking or normal
22305 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22306 # need to do runtime linking.
22307 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22308 for ld_flag in $LDFLAGS; do
22309 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22310 aix_use_runtimelinking=yes
22311 break
22312 fi
22313 done
22314 ;;
22315 esac
22316
22317 exp_sym_flag='-bexport'
22318 no_entry_flag='-bnoentry'
22319 fi
22320
22321 # When large executables or shared objects are built, AIX ld can
22322 # have problems creating the table of contents. If linking a library
22323 # or program results in "error TOC overflow" add -mminimal-toc to
22324 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22325 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22326
22327 archive_cmds_F77=''
22328 hardcode_direct_F77=yes
22329 hardcode_libdir_separator_F77=':'
22330 link_all_deplibs_F77=yes
22331
22332 if test "$GCC" = yes; then
22333 case $host_os in aix4.[012]|aix4.[012].*)
22334 # We only want to do this on AIX 4.2 and lower, the check
22335 # below for broken collect2 doesn't work under 4.3+
22336 collect2name=`${CC} -print-prog-name=collect2`
22337 if test -f "$collect2name" && \
22338 strings "$collect2name" | grep resolve_lib_name >/dev/null
22339 then
22340 # We have reworked collect2
22341 hardcode_direct_F77=yes
22342 else
22343 # We have old collect2
22344 hardcode_direct_F77=unsupported
22345 # It fails to find uninstalled libraries when the uninstalled
22346 # path is not listed in the libpath. Setting hardcode_minus_L
22347 # to unsupported forces relinking
22348 hardcode_minus_L_F77=yes
22349 hardcode_libdir_flag_spec_F77='-L$libdir'
22350 hardcode_libdir_separator_F77=
22351 fi
22352 ;;
22353 esac
22354 shared_flag='-shared'
22355 if test "$aix_use_runtimelinking" = yes; then
22356 shared_flag="$shared_flag "'${wl}-G'
22357 fi
22358 else
22359 # not using gcc
22360 if test "$host_cpu" = ia64; then
22361 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22362 # chokes on -Wl,-G. The following line is correct:
22363 shared_flag='-G'
22364 else
22365 if test "$aix_use_runtimelinking" = yes; then
22366 shared_flag='${wl}-G'
22367 else
22368 shared_flag='${wl}-bM:SRE'
22369 fi
22370 fi
22371 fi
22372
22373 # It seems that -bexpall does not export symbols beginning with
22374 # underscore (_), so it is better to generate a list of symbols to export.
22375 always_export_symbols_F77=yes
22376 if test "$aix_use_runtimelinking" = yes; then
22377 # Warning - without using the other runtime loading flags (-brtl),
22378 # -berok will link without error, but may produce a broken library.
22379 allow_undefined_flag_F77='-berok'
22380 # Determine the default libpath from the value encoded in an empty executable.
22381 cat >conftest.$ac_ext <<_ACEOF
22382 program main
22383
22384 end
22385_ACEOF
22386rm -f conftest.$ac_objext conftest$ac_exeext
22387if { (ac_try="$ac_link"
22388case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22391esac
22392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_link") 2>conftest.er1
22394 ac_status=$?
22395 grep -v '^ *+' conftest.er1 >conftest.err
22396 rm -f conftest.er1
22397 cat conftest.err >&5
22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022399 (exit $ac_status); } &&
22400 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22401 { (case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22404esac
22405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_try") 2>&5
22407 ac_status=$?
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); }; } &&
22410 { ac_try='test -s conftest$ac_exeext'
22411 { (case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22414esac
22415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_try") 2>&5
22417 ac_status=$?
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022420
22421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22422}'`
22423# Check for a 64-bit object if we didn't find anything.
22424if 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; }
22425}'`; fi
22426else
22427 echo "$as_me: failed program was:" >&5
22428sed 's/^/| /' conftest.$ac_ext >&5
22429
22430
22431fi
22432
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022433rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022434 conftest$ac_exeext conftest.$ac_ext
22435if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22436
22437 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22438 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"
22439 else
22440 if test "$host_cpu" = ia64; then
22441 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22442 allow_undefined_flag_F77="-z nodefs"
22443 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"
22444 else
22445 # Determine the default libpath from the value encoded in an empty executable.
22446 cat >conftest.$ac_ext <<_ACEOF
22447 program main
22448
22449 end
22450_ACEOF
22451rm -f conftest.$ac_objext conftest$ac_exeext
22452if { (ac_try="$ac_link"
22453case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22456esac
22457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_link") 2>conftest.er1
22459 ac_status=$?
22460 grep -v '^ *+' conftest.er1 >conftest.err
22461 rm -f conftest.er1
22462 cat conftest.err >&5
22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022464 (exit $ac_status); } &&
22465 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22466 { (case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22469esac
22470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_try") 2>&5
22472 ac_status=$?
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; } &&
22475 { ac_try='test -s conftest$ac_exeext'
22476 { (case "(($ac_try" in
22477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478 *) ac_try_echo=$ac_try;;
22479esac
22480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481 (eval "$ac_try") 2>&5
22482 ac_status=$?
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022485
22486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22487}'`
22488# Check for a 64-bit object if we didn't find anything.
22489if 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; }
22490}'`; fi
22491else
22492 echo "$as_me: failed program was:" >&5
22493sed 's/^/| /' conftest.$ac_ext >&5
22494
22495
22496fi
22497
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022498rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022499 conftest$ac_exeext conftest.$ac_ext
22500if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22501
22502 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22503 # Warning - without using the other run time loading flags,
22504 # -berok will link without error, but may produce a broken library.
22505 no_undefined_flag_F77=' ${wl}-bernotok'
22506 allow_undefined_flag_F77=' ${wl}-berok'
22507 # Exported symbols can be pulled into shared objects from archives
22508 whole_archive_flag_spec_F77='$convenience'
22509 archive_cmds_need_lc_F77=yes
22510 # This is similar to how AIX traditionally builds its shared libraries.
22511 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'
22512 fi
22513 fi
22514 ;;
22515
22516 amigaos*)
22517 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)'
22518 hardcode_libdir_flag_spec_F77='-L$libdir'
22519 hardcode_minus_L_F77=yes
22520 # see comment about different semantics on the GNU ld section
22521 ld_shlibs_F77=no
22522 ;;
22523
22524 bsdi[45]*)
22525 export_dynamic_flag_spec_F77=-rdynamic
22526 ;;
22527
22528 cygwin* | mingw* | pw32*)
22529 # When not using gcc, we currently assume that we are using
22530 # Microsoft Visual C++.
22531 # hardcode_libdir_flag_spec is actually meaningless, as there is
22532 # no search path for DLLs.
22533 hardcode_libdir_flag_spec_F77=' '
22534 allow_undefined_flag_F77=unsupported
22535 # Tell ltmain to make .lib files, not .a files.
22536 libext=lib
22537 # Tell ltmain to make .dll files, not .so files.
22538 shrext_cmds=".dll"
22539 # FIXME: Setting linknames here is a bad hack.
22540 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22541 # The linker will automatically build a .lib file if we build a DLL.
22542 old_archive_From_new_cmds_F77='true'
22543 # FIXME: Should let the user specify the lib program.
22544 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22545 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22546 enable_shared_with_static_runtimes_F77=yes
22547 ;;
22548
22549 darwin* | rhapsody*)
22550 case $host_os in
22551 rhapsody* | darwin1.[012])
22552 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22553 ;;
22554 *) # Darwin 1.3 on
22555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22556 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22557 else
22558 case ${MACOSX_DEPLOYMENT_TARGET} in
22559 10.[012])
22560 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22561 ;;
22562 10.*)
22563 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22564 ;;
22565 esac
22566 fi
22567 ;;
22568 esac
22569 archive_cmds_need_lc_F77=no
22570 hardcode_direct_F77=no
22571 hardcode_automatic_F77=yes
22572 hardcode_shlibpath_var_F77=unsupported
22573 whole_archive_flag_spec_F77=''
22574 link_all_deplibs_F77=yes
22575 if test "$GCC" = yes ; then
22576 output_verbose_link_cmd='echo'
22577 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22578 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22579 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22580 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}'
22581 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}'
22582 else
22583 case $cc_basename in
22584 xlc*)
22585 output_verbose_link_cmd='echo'
22586 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22587 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22588 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22589 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}'
22590 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}'
22591 ;;
22592 *)
22593 ld_shlibs_F77=no
22594 ;;
22595 esac
22596 fi
22597 ;;
22598
22599 dgux*)
22600 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22601 hardcode_libdir_flag_spec_F77='-L$libdir'
22602 hardcode_shlibpath_var_F77=no
22603 ;;
22604
22605 freebsd1*)
22606 ld_shlibs_F77=no
22607 ;;
22608
22609 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22610 # support. Future versions do this automatically, but an explicit c++rt0.o
22611 # does not break anything, and helps significantly (at the cost of a little
22612 # extra space).
22613 freebsd2.2*)
22614 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22615 hardcode_libdir_flag_spec_F77='-R$libdir'
22616 hardcode_direct_F77=yes
22617 hardcode_shlibpath_var_F77=no
22618 ;;
22619
22620 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22621 freebsd2*)
22622 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22623 hardcode_direct_F77=yes
22624 hardcode_minus_L_F77=yes
22625 hardcode_shlibpath_var_F77=no
22626 ;;
22627
22628 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22629 freebsd* | kfreebsd*-gnu | dragonfly*)
22630 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22631 hardcode_libdir_flag_spec_F77='-R$libdir'
22632 hardcode_direct_F77=yes
22633 hardcode_shlibpath_var_F77=no
22634 ;;
22635
22636 hpux9*)
22637 if test "$GCC" = yes; then
22638 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'
22639 else
22640 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'
22641 fi
22642 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22643 hardcode_libdir_separator_F77=:
22644 hardcode_direct_F77=yes
22645
22646 # hardcode_minus_L: Not really in the search PATH,
22647 # but as the default location of the library.
22648 hardcode_minus_L_F77=yes
22649 export_dynamic_flag_spec_F77='${wl}-E'
22650 ;;
22651
22652 hpux10*)
22653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22654 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22655 else
22656 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22657 fi
22658 if test "$with_gnu_ld" = no; then
22659 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22660 hardcode_libdir_separator_F77=:
22661
22662 hardcode_direct_F77=yes
22663 export_dynamic_flag_spec_F77='${wl}-E'
22664
22665 # hardcode_minus_L: Not really in the search PATH,
22666 # but as the default location of the library.
22667 hardcode_minus_L_F77=yes
22668 fi
22669 ;;
22670
22671 hpux11*)
22672 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22673 case $host_cpu in
22674 hppa*64*)
22675 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22676 ;;
22677 ia64*)
22678 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22679 ;;
22680 *)
22681 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22682 ;;
22683 esac
22684 else
22685 case $host_cpu in
22686 hppa*64*)
22687 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22688 ;;
22689 ia64*)
22690 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22691 ;;
22692 *)
22693 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22694 ;;
22695 esac
22696 fi
22697 if test "$with_gnu_ld" = no; then
22698 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22699 hardcode_libdir_separator_F77=:
22700
22701 case $host_cpu in
22702 hppa*64*|ia64*)
22703 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22704 hardcode_direct_F77=no
22705 hardcode_shlibpath_var_F77=no
22706 ;;
22707 *)
22708 hardcode_direct_F77=yes
22709 export_dynamic_flag_spec_F77='${wl}-E'
22710
22711 # hardcode_minus_L: Not really in the search PATH,
22712 # but as the default location of the library.
22713 hardcode_minus_L_F77=yes
22714 ;;
22715 esac
22716 fi
22717 ;;
22718
22719 irix5* | irix6* | nonstopux*)
22720 if test "$GCC" = yes; then
22721 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'
22722 else
22723 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'
22724 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22725 fi
22726 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22727 hardcode_libdir_separator_F77=:
22728 link_all_deplibs_F77=yes
22729 ;;
22730
22731 netbsd*)
22732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22733 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22734 else
22735 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22736 fi
22737 hardcode_libdir_flag_spec_F77='-R$libdir'
22738 hardcode_direct_F77=yes
22739 hardcode_shlibpath_var_F77=no
22740 ;;
22741
22742 newsos6)
22743 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22744 hardcode_direct_F77=yes
22745 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22746 hardcode_libdir_separator_F77=:
22747 hardcode_shlibpath_var_F77=no
22748 ;;
22749
22750 openbsd*)
22751 hardcode_direct_F77=yes
22752 hardcode_shlibpath_var_F77=no
22753 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22754 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22755 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22756 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22757 export_dynamic_flag_spec_F77='${wl}-E'
22758 else
22759 case $host_os in
22760 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22761 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22762 hardcode_libdir_flag_spec_F77='-R$libdir'
22763 ;;
22764 *)
22765 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22766 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22767 ;;
22768 esac
22769 fi
22770 ;;
22771
22772 os2*)
22773 hardcode_libdir_flag_spec_F77='-L$libdir'
22774 hardcode_minus_L_F77=yes
22775 allow_undefined_flag_F77=unsupported
22776 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'
22777 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22778 ;;
22779
22780 osf3*)
22781 if test "$GCC" = yes; then
22782 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22783 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'
22784 else
22785 allow_undefined_flag_F77=' -expect_unresolved \*'
22786 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'
22787 fi
22788 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22789 hardcode_libdir_separator_F77=:
22790 ;;
22791
22792 osf4* | osf5*) # as osf3* with the addition of -msym flag
22793 if test "$GCC" = yes; then
22794 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22795 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'
22796 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22797 else
22798 allow_undefined_flag_F77=' -expect_unresolved \*'
22799 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'
22800 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~
22801 $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'
22802
22803 # Both c and cxx compiler support -rpath directly
22804 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22805 fi
22806 hardcode_libdir_separator_F77=:
22807 ;;
22808
22809 solaris*)
22810 no_undefined_flag_F77=' -z text'
22811 if test "$GCC" = yes; then
22812 wlarc='${wl}'
22813 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22814 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22815 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22816 else
22817 wlarc=''
22818 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22819 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22820 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22821 fi
22822 hardcode_libdir_flag_spec_F77='-R$libdir'
22823 hardcode_shlibpath_var_F77=no
22824 case $host_os in
22825 solaris2.[0-5] | solaris2.[0-5].*) ;;
22826 *)
22827 # The compiler driver will combine linker options so we
22828 # cannot just pass the convience library names through
22829 # without $wl, iff we do not link with $LD.
22830 # Luckily, gcc supports the same syntax we need for Sun Studio.
22831 # Supported since Solaris 2.6 (maybe 2.5.1?)
22832 case $wlarc in
22833 '')
22834 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22835 *)
22836 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' ;;
22837 esac ;;
22838 esac
22839 link_all_deplibs_F77=yes
22840 ;;
22841
22842 sunos4*)
22843 if test "x$host_vendor" = xsequent; then
22844 # Use $CC to link under sequent, because it throws in some extra .o
22845 # files that make .init and .fini sections work.
22846 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22847 else
22848 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22849 fi
22850 hardcode_libdir_flag_spec_F77='-L$libdir'
22851 hardcode_direct_F77=yes
22852 hardcode_minus_L_F77=yes
22853 hardcode_shlibpath_var_F77=no
22854 ;;
22855
22856 sysv4)
22857 case $host_vendor in
22858 sni)
22859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22860 hardcode_direct_F77=yes # is this really true???
22861 ;;
22862 siemens)
22863 ## LD is ld it makes a PLAMLIB
22864 ## CC just makes a GrossModule.
22865 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22866 reload_cmds_F77='$CC -r -o $output$reload_objs'
22867 hardcode_direct_F77=no
22868 ;;
22869 motorola)
22870 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22871 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22872 ;;
22873 esac
22874 runpath_var='LD_RUN_PATH'
22875 hardcode_shlibpath_var_F77=no
22876 ;;
22877
22878 sysv4.3*)
22879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22880 hardcode_shlibpath_var_F77=no
22881 export_dynamic_flag_spec_F77='-Bexport'
22882 ;;
22883
22884 sysv4*MP*)
22885 if test -d /usr/nec; then
22886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22887 hardcode_shlibpath_var_F77=no
22888 runpath_var=LD_RUN_PATH
22889 hardcode_runpath_var=yes
22890 ld_shlibs_F77=yes
22891 fi
22892 ;;
22893
22894 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22895 no_undefined_flag_F77='${wl}-z,text'
22896 archive_cmds_need_lc_F77=no
22897 hardcode_shlibpath_var_F77=no
22898 runpath_var='LD_RUN_PATH'
22899
22900 if test "$GCC" = yes; then
22901 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22902 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22903 else
22904 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22905 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22906 fi
22907 ;;
22908
22909 sysv5* | sco3.2v5* | sco5v6*)
22910 # Note: We can NOT use -z defs as we might desire, because we do not
22911 # link with -lc, and that would cause any symbols used from libc to
22912 # always be unresolved, which means just about no library would
22913 # ever link correctly. If we're not using GNU ld we use -z text
22914 # though, which does catch some bad symbols but isn't as heavy-handed
22915 # as -z defs.
22916 no_undefined_flag_F77='${wl}-z,text'
22917 allow_undefined_flag_F77='${wl}-z,nodefs'
22918 archive_cmds_need_lc_F77=no
22919 hardcode_shlibpath_var_F77=no
22920 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22921 hardcode_libdir_separator_F77=':'
22922 link_all_deplibs_F77=yes
22923 export_dynamic_flag_spec_F77='${wl}-Bexport'
22924 runpath_var='LD_RUN_PATH'
22925
22926 if test "$GCC" = yes; then
22927 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22928 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22929 else
22930 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22931 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22932 fi
22933 ;;
22934
22935 uts4*)
22936 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22937 hardcode_libdir_flag_spec_F77='-L$libdir'
22938 hardcode_shlibpath_var_F77=no
22939 ;;
22940
22941 *)
22942 ld_shlibs_F77=no
22943 ;;
22944 esac
22945 fi
22946
22947{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22948echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22949test "$ld_shlibs_F77" = no && can_build_shared=no
22950
22951#
22952# Do we need to explicitly link libc?
22953#
22954case "x$archive_cmds_need_lc_F77" in
22955x|xyes)
22956 # Assume -lc should be added
22957 archive_cmds_need_lc_F77=yes
22958
22959 if test "$enable_shared" = yes && test "$GCC" = yes; then
22960 case $archive_cmds_F77 in
22961 *'~'*)
22962 # FIXME: we may have to deal with multi-command sequences.
22963 ;;
22964 '$CC '*)
22965 # Test whether the compiler implicitly links with -lc since on some
22966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22967 # to ld, don't add -lc before -lgcc.
22968 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22969echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22970 $rm conftest*
22971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22972
22973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22974 (eval $ac_compile) 2>&5
22975 ac_status=$?
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } 2>conftest.err; then
22978 soname=conftest
22979 lib=conftest
22980 libobjs=conftest.$ac_objext
22981 deplibs=
22982 wl=$lt_prog_compiler_wl_F77
22983 pic_flag=$lt_prog_compiler_pic_F77
22984 compiler_flags=-v
22985 linker_flags=-v
22986 verstring=
22987 output_objdir=.
22988 libname=conftest
22989 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22990 allow_undefined_flag_F77=
22991 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22992 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }
22996 then
22997 archive_cmds_need_lc_F77=no
22998 else
22999 archive_cmds_need_lc_F77=yes
23000 fi
23001 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23002 else
23003 cat conftest.err 1>&5
23004 fi
23005 $rm conftest*
23006 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23007echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23008 ;;
23009 esac
23010 fi
23011 ;;
23012esac
23013
23014{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23015echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23016library_names_spec=
23017libname_spec='lib$name'
23018soname_spec=
23019shrext_cmds=".so"
23020postinstall_cmds=
23021postuninstall_cmds=
23022finish_cmds=
23023finish_eval=
23024shlibpath_var=
23025shlibpath_overrides_runpath=unknown
23026version_type=none
23027dynamic_linker="$host_os ld.so"
23028sys_lib_dlsearch_path_spec="/lib /usr/lib"
23029if test "$GCC" = yes; then
23030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23031 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23032 # if the path contains ";" then we assume it to be the separator
23033 # otherwise default to the standard path separator (i.e. ":") - it is
23034 # assumed that no part of a normal pathname contains ";" but that should
23035 # okay in the real world where ";" in dirpaths is itself problematic.
23036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23037 else
23038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23039 fi
23040else
23041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23042fi
23043need_lib_prefix=unknown
23044hardcode_into_libs=no
23045
23046# when you set need_version to no, make sure it does not cause -set_version
23047# flags to be left without arguments
23048need_version=unknown
23049
23050case $host_os in
23051aix3*)
23052 version_type=linux
23053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23054 shlibpath_var=LIBPATH
23055
23056 # AIX 3 has no versioning support, so we append a major version to the name.
23057 soname_spec='${libname}${release}${shared_ext}$major'
23058 ;;
23059
23060aix4* | aix5*)
23061 version_type=linux
23062 need_lib_prefix=no
23063 need_version=no
23064 hardcode_into_libs=yes
23065 if test "$host_cpu" = ia64; then
23066 # AIX 5 supports IA64
23067 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23068 shlibpath_var=LD_LIBRARY_PATH
23069 else
23070 # With GCC up to 2.95.x, collect2 would create an import file
23071 # for dependence libraries. The import file would start with
23072 # the line `#! .'. This would cause the generated library to
23073 # depend on `.', always an invalid library. This was fixed in
23074 # development snapshots of GCC prior to 3.0.
23075 case $host_os in
23076 aix4 | aix4.[01] | aix4.[01].*)
23077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23078 echo ' yes '
23079 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23080 :
23081 else
23082 can_build_shared=no
23083 fi
23084 ;;
23085 esac
23086 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23087 # soname into executable. Probably we can add versioning support to
23088 # collect2, so additional links can be useful in future.
23089 if test "$aix_use_runtimelinking" = yes; then
23090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23091 # instead of lib<name>.a to let people know that these are not
23092 # typical AIX shared libraries.
23093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23094 else
23095 # We preserve .a as extension for shared libraries through AIX4.2
23096 # and later when we are not doing run time linking.
23097 library_names_spec='${libname}${release}.a $libname.a'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23099 fi
23100 shlibpath_var=LIBPATH
23101 fi
23102 ;;
23103
23104amigaos*)
23105 library_names_spec='$libname.ixlibrary $libname.a'
23106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23107 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'
23108 ;;
23109
23110beos*)
23111 library_names_spec='${libname}${shared_ext}'
23112 dynamic_linker="$host_os ld.so"
23113 shlibpath_var=LIBRARY_PATH
23114 ;;
23115
23116bsdi[45]*)
23117 version_type=linux
23118 need_version=no
23119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23120 soname_spec='${libname}${release}${shared_ext}$major'
23121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23122 shlibpath_var=LD_LIBRARY_PATH
23123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23125 # the default ld.so.conf also contains /usr/contrib/lib and
23126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23127 # libtool to hard-code these into programs
23128 ;;
23129
23130cygwin* | mingw* | pw32*)
23131 version_type=windows
23132 shrext_cmds=".dll"
23133 need_version=no
23134 need_lib_prefix=no
23135
23136 case $GCC,$host_os in
23137 yes,cygwin* | yes,mingw* | yes,pw32*)
23138 library_names_spec='$libname.dll.a'
23139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23140 postinstall_cmds='base_file=`basename \${file}`~
23141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23142 dldir=$destdir/`dirname \$dlpath`~
23143 test -d \$dldir || mkdir -p \$dldir~
23144 $install_prog $dir/$dlname \$dldir/$dlname~
23145 chmod a+x \$dldir/$dlname'
23146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23147 dlpath=$dir/\$dldll~
23148 $rm \$dlpath'
23149 shlibpath_overrides_runpath=yes
23150
23151 case $host_os in
23152 cygwin*)
23153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23155 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23156 ;;
23157 mingw*)
23158 # MinGW DLLs use traditional 'lib' prefix
23159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23161 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23162 # It is most probably a Windows format PATH printed by
23163 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23164 # path with ; separators, and with drive letters. We can handle the
23165 # drive letters (cygwin fileutils understands them), so leave them,
23166 # especially as we might pass files found there to a mingw objdump,
23167 # which wouldn't understand a cygwinified path. Ahh.
23168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23169 else
23170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23171 fi
23172 ;;
23173 pw32*)
23174 # pw32 DLLs use 'pw' prefix rather than 'lib'
23175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23176 ;;
23177 esac
23178 ;;
23179
23180 *)
23181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23182 ;;
23183 esac
23184 dynamic_linker='Win32 ld.exe'
23185 # FIXME: first we should search . and the directory the executable is in
23186 shlibpath_var=PATH
23187 ;;
23188
23189darwin* | rhapsody*)
23190 dynamic_linker="$host_os dyld"
23191 version_type=darwin
23192 need_lib_prefix=no
23193 need_version=no
23194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23195 soname_spec='${libname}${release}${major}$shared_ext'
23196 shlibpath_overrides_runpath=yes
23197 shlibpath_var=DYLD_LIBRARY_PATH
23198 shrext_cmds='.dylib'
23199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23200 if test "$GCC" = yes; then
23201 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"`
23202 else
23203 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23204 fi
23205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23206 ;;
23207
23208dgux*)
23209 version_type=linux
23210 need_lib_prefix=no
23211 need_version=no
23212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23213 soname_spec='${libname}${release}${shared_ext}$major'
23214 shlibpath_var=LD_LIBRARY_PATH
23215 ;;
23216
23217freebsd1*)
23218 dynamic_linker=no
23219 ;;
23220
23221kfreebsd*-gnu)
23222 version_type=linux
23223 need_lib_prefix=no
23224 need_version=no
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23226 soname_spec='${libname}${release}${shared_ext}$major'
23227 shlibpath_var=LD_LIBRARY_PATH
23228 shlibpath_overrides_runpath=no
23229 hardcode_into_libs=yes
23230 dynamic_linker='GNU ld.so'
23231 ;;
23232
23233freebsd* | dragonfly*)
23234 # DragonFly does not have aout. When/if they implement a new
23235 # versioning mechanism, adjust this.
23236 if test -x /usr/bin/objformat; then
23237 objformat=`/usr/bin/objformat`
23238 else
23239 case $host_os in
23240 freebsd[123]*) objformat=aout ;;
23241 *) objformat=elf ;;
23242 esac
23243 fi
23244 version_type=freebsd-$objformat
23245 case $version_type in
23246 freebsd-elf*)
23247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23248 need_version=no
23249 need_lib_prefix=no
23250 ;;
23251 freebsd-*)
23252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23253 need_version=yes
23254 ;;
23255 esac
23256 shlibpath_var=LD_LIBRARY_PATH
23257 case $host_os in
23258 freebsd2*)
23259 shlibpath_overrides_runpath=yes
23260 ;;
23261 freebsd3.[01]* | freebsdelf3.[01]*)
23262 shlibpath_overrides_runpath=yes
23263 hardcode_into_libs=yes
23264 ;;
23265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23267 shlibpath_overrides_runpath=no
23268 hardcode_into_libs=yes
23269 ;;
23270 freebsd*) # from 4.6 on
23271 shlibpath_overrides_runpath=yes
23272 hardcode_into_libs=yes
23273 ;;
23274 esac
23275 ;;
23276
23277gnu*)
23278 version_type=linux
23279 need_lib_prefix=no
23280 need_version=no
23281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23282 soname_spec='${libname}${release}${shared_ext}$major'
23283 shlibpath_var=LD_LIBRARY_PATH
23284 hardcode_into_libs=yes
23285 ;;
23286
23287hpux9* | hpux10* | hpux11*)
23288 # Give a soname corresponding to the major version so that dld.sl refuses to
23289 # link against other versions.
23290 version_type=sunos
23291 need_lib_prefix=no
23292 need_version=no
23293 case $host_cpu in
23294 ia64*)
23295 shrext_cmds='.so'
23296 hardcode_into_libs=yes
23297 dynamic_linker="$host_os dld.so"
23298 shlibpath_var=LD_LIBRARY_PATH
23299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23301 soname_spec='${libname}${release}${shared_ext}$major'
23302 if test "X$HPUX_IA64_MODE" = X32; then
23303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23304 else
23305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23306 fi
23307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23308 ;;
23309 hppa*64*)
23310 shrext_cmds='.sl'
23311 hardcode_into_libs=yes
23312 dynamic_linker="$host_os dld.sl"
23313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23316 soname_spec='${libname}${release}${shared_ext}$major'
23317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23319 ;;
23320 *)
23321 shrext_cmds='.sl'
23322 dynamic_linker="$host_os dld.sl"
23323 shlibpath_var=SHLIB_PATH
23324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23326 soname_spec='${libname}${release}${shared_ext}$major'
23327 ;;
23328 esac
23329 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23330 postinstall_cmds='chmod 555 $lib'
23331 ;;
23332
23333interix3*)
23334 version_type=linux
23335 need_lib_prefix=no
23336 need_version=no
23337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23338 soname_spec='${libname}${release}${shared_ext}$major'
23339 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23340 shlibpath_var=LD_LIBRARY_PATH
23341 shlibpath_overrides_runpath=no
23342 hardcode_into_libs=yes
23343 ;;
23344
23345irix5* | irix6* | nonstopux*)
23346 case $host_os in
23347 nonstopux*) version_type=nonstopux ;;
23348 *)
23349 if test "$lt_cv_prog_gnu_ld" = yes; then
23350 version_type=linux
23351 else
23352 version_type=irix
23353 fi ;;
23354 esac
23355 need_lib_prefix=no
23356 need_version=no
23357 soname_spec='${libname}${release}${shared_ext}$major'
23358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23359 case $host_os in
23360 irix5* | nonstopux*)
23361 libsuff= shlibsuff=
23362 ;;
23363 *)
23364 case $LD in # libtool.m4 will add one of these switches to LD
23365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23366 libsuff= shlibsuff= libmagic=32-bit;;
23367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23368 libsuff=32 shlibsuff=N32 libmagic=N32;;
23369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23371 *) libsuff= shlibsuff= libmagic=never-match;;
23372 esac
23373 ;;
23374 esac
23375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23376 shlibpath_overrides_runpath=no
23377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23379 hardcode_into_libs=yes
23380 ;;
23381
23382# No shared lib support for Linux oldld, aout, or coff.
23383linux*oldld* | linux*aout* | linux*coff*)
23384 dynamic_linker=no
23385 ;;
23386
23387# This must be Linux ELF.
23388linux*)
23389 version_type=linux
23390 need_lib_prefix=no
23391 need_version=no
23392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23393 soname_spec='${libname}${release}${shared_ext}$major'
23394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23395 shlibpath_var=LD_LIBRARY_PATH
23396 shlibpath_overrides_runpath=no
23397 # This implies no fast_install, which is unacceptable.
23398 # Some rework will be needed to allow for fast_install
23399 # before this can be enabled.
23400 hardcode_into_libs=yes
23401
23402 # Append ld.so.conf contents to the search path
23403 if test -f /etc/ld.so.conf; then
23404 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' ' '`
23405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23406 fi
23407
23408 # We used to test for /lib/ld.so.1 and disable shared libraries on
23409 # powerpc, because MkLinux only supported shared libraries with the
23410 # GNU dynamic linker. Since this was broken with cross compilers,
23411 # most powerpc-linux boxes support dynamic linking these days and
23412 # people can always --disable-shared, the test was removed, and we
23413 # assume the GNU/Linux dynamic linker is in use.
23414 dynamic_linker='GNU/Linux ld.so'
23415 ;;
23416
23417knetbsd*-gnu)
23418 version_type=linux
23419 need_lib_prefix=no
23420 need_version=no
23421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23422 soname_spec='${libname}${release}${shared_ext}$major'
23423 shlibpath_var=LD_LIBRARY_PATH
23424 shlibpath_overrides_runpath=no
23425 hardcode_into_libs=yes
23426 dynamic_linker='GNU ld.so'
23427 ;;
23428
23429netbsd*)
23430 version_type=sunos
23431 need_lib_prefix=no
23432 need_version=no
23433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23436 dynamic_linker='NetBSD (a.out) ld.so'
23437 else
23438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23439 soname_spec='${libname}${release}${shared_ext}$major'
23440 dynamic_linker='NetBSD ld.elf_so'
23441 fi
23442 shlibpath_var=LD_LIBRARY_PATH
23443 shlibpath_overrides_runpath=yes
23444 hardcode_into_libs=yes
23445 ;;
23446
23447newsos6)
23448 version_type=linux
23449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23450 shlibpath_var=LD_LIBRARY_PATH
23451 shlibpath_overrides_runpath=yes
23452 ;;
23453
23454nto-qnx*)
23455 version_type=linux
23456 need_lib_prefix=no
23457 need_version=no
23458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23459 soname_spec='${libname}${release}${shared_ext}$major'
23460 shlibpath_var=LD_LIBRARY_PATH
23461 shlibpath_overrides_runpath=yes
23462 ;;
23463
23464openbsd*)
23465 version_type=sunos
23466 sys_lib_dlsearch_path_spec="/usr/lib"
23467 need_lib_prefix=no
23468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23469 case $host_os in
23470 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23471 *) need_version=no ;;
23472 esac
23473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23475 shlibpath_var=LD_LIBRARY_PATH
23476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23477 case $host_os in
23478 openbsd2.[89] | openbsd2.[89].*)
23479 shlibpath_overrides_runpath=no
23480 ;;
23481 *)
23482 shlibpath_overrides_runpath=yes
23483 ;;
23484 esac
23485 else
23486 shlibpath_overrides_runpath=yes
23487 fi
23488 ;;
23489
23490os2*)
23491 libname_spec='$name'
23492 shrext_cmds=".dll"
23493 need_lib_prefix=no
23494 library_names_spec='$libname${shared_ext} $libname.a'
23495 dynamic_linker='OS/2 ld.exe'
23496 shlibpath_var=LIBPATH
23497 ;;
23498
23499osf3* | osf4* | osf5*)
23500 version_type=osf
23501 need_lib_prefix=no
23502 need_version=no
23503 soname_spec='${libname}${release}${shared_ext}$major'
23504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23505 shlibpath_var=LD_LIBRARY_PATH
23506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23508 ;;
23509
23510solaris*)
23511 version_type=linux
23512 need_lib_prefix=no
23513 need_version=no
23514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23515 soname_spec='${libname}${release}${shared_ext}$major'
23516 shlibpath_var=LD_LIBRARY_PATH
23517 shlibpath_overrides_runpath=yes
23518 hardcode_into_libs=yes
23519 # ldd complains unless libraries are executable
23520 postinstall_cmds='chmod +x $lib'
23521 ;;
23522
23523sunos4*)
23524 version_type=sunos
23525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23527 shlibpath_var=LD_LIBRARY_PATH
23528 shlibpath_overrides_runpath=yes
23529 if test "$with_gnu_ld" = yes; then
23530 need_lib_prefix=no
23531 fi
23532 need_version=yes
23533 ;;
23534
23535sysv4 | sysv4.3*)
23536 version_type=linux
23537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23538 soname_spec='${libname}${release}${shared_ext}$major'
23539 shlibpath_var=LD_LIBRARY_PATH
23540 case $host_vendor in
23541 sni)
23542 shlibpath_overrides_runpath=no
23543 need_lib_prefix=no
23544 export_dynamic_flag_spec='${wl}-Blargedynsym'
23545 runpath_var=LD_RUN_PATH
23546 ;;
23547 siemens)
23548 need_lib_prefix=no
23549 ;;
23550 motorola)
23551 need_lib_prefix=no
23552 need_version=no
23553 shlibpath_overrides_runpath=no
23554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23555 ;;
23556 esac
23557 ;;
23558
23559sysv4*MP*)
23560 if test -d /usr/nec ;then
23561 version_type=linux
23562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23563 soname_spec='$libname${shared_ext}.$major'
23564 shlibpath_var=LD_LIBRARY_PATH
23565 fi
23566 ;;
23567
23568sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23569 version_type=freebsd-elf
23570 need_lib_prefix=no
23571 need_version=no
23572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23573 soname_spec='${libname}${release}${shared_ext}$major'
23574 shlibpath_var=LD_LIBRARY_PATH
23575 hardcode_into_libs=yes
23576 if test "$with_gnu_ld" = yes; then
23577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23578 shlibpath_overrides_runpath=no
23579 else
23580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23581 shlibpath_overrides_runpath=yes
23582 case $host_os in
23583 sco3.2v5*)
23584 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23585 ;;
23586 esac
23587 fi
23588 sys_lib_dlsearch_path_spec='/usr/lib'
23589 ;;
23590
23591uts4*)
23592 version_type=linux
23593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23594 soname_spec='${libname}${release}${shared_ext}$major'
23595 shlibpath_var=LD_LIBRARY_PATH
23596 ;;
23597
23598*)
23599 dynamic_linker=no
23600 ;;
23601esac
23602{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23603echo "${ECHO_T}$dynamic_linker" >&6; }
23604test "$dynamic_linker" = no && can_build_shared=no
23605
23606variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23607if test "$GCC" = yes; then
23608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23609fi
23610
23611{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23612echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23613hardcode_action_F77=
23614if test -n "$hardcode_libdir_flag_spec_F77" || \
23615 test -n "$runpath_var_F77" || \
23616 test "X$hardcode_automatic_F77" = "Xyes" ; then
23617
23618 # We can hardcode non-existant directories.
23619 if test "$hardcode_direct_F77" != no &&
23620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23621 # have to relink, otherwise we might link with an installed library
23622 # when we should be linking with a yet-to-be-installed one
23623 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23624 test "$hardcode_minus_L_F77" != no; then
23625 # Linking always hardcodes the temporary library directory.
23626 hardcode_action_F77=relink
23627 else
23628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23629 hardcode_action_F77=immediate
23630 fi
23631else
23632 # We cannot hardcode anything, or else we can only hardcode existing
23633 # directories.
23634 hardcode_action_F77=unsupported
23635fi
23636{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23637echo "${ECHO_T}$hardcode_action_F77" >&6; }
23638
23639if test "$hardcode_action_F77" = relink; then
23640 # Fast installation is not supported
23641 enable_fast_install=no
23642elif test "$shlibpath_overrides_runpath" = yes ||
23643 test "$enable_shared" = no; then
23644 # Fast installation is not necessary
23645 enable_fast_install=needless
23646fi
23647
23648
23649# The else clause should only fire when bootstrapping the
23650# libtool distribution, otherwise you forgot to ship ltmain.sh
23651# with your package, and you will get complaints that there are
23652# no rules to generate ltmain.sh.
23653if test -f "$ltmain"; then
23654 # See if we are running on zsh, and set the options which allow our commands through
23655 # without removal of \ escapes.
23656 if test -n "${ZSH_VERSION+set}" ; then
23657 setopt NO_GLOB_SUBST
23658 fi
23659 # Now quote all the things that may contain metacharacters while being
23660 # careful not to overquote the AC_SUBSTed values. We take copies of the
23661 # variables and quote the copies for generation of the libtool script.
23662 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23663 SED SHELL STRIP \
23664 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23665 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23666 deplibs_check_method reload_flag reload_cmds need_locks \
23667 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23668 lt_cv_sys_global_symbol_to_c_name_address \
23669 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23670 old_postinstall_cmds old_postuninstall_cmds \
23671 compiler_F77 \
23672 CC_F77 \
23673 LD_F77 \
23674 lt_prog_compiler_wl_F77 \
23675 lt_prog_compiler_pic_F77 \
23676 lt_prog_compiler_static_F77 \
23677 lt_prog_compiler_no_builtin_flag_F77 \
23678 export_dynamic_flag_spec_F77 \
23679 thread_safe_flag_spec_F77 \
23680 whole_archive_flag_spec_F77 \
23681 enable_shared_with_static_runtimes_F77 \
23682 old_archive_cmds_F77 \
23683 old_archive_from_new_cmds_F77 \
23684 predep_objects_F77 \
23685 postdep_objects_F77 \
23686 predeps_F77 \
23687 postdeps_F77 \
23688 compiler_lib_search_path_F77 \
23689 archive_cmds_F77 \
23690 archive_expsym_cmds_F77 \
23691 postinstall_cmds_F77 \
23692 postuninstall_cmds_F77 \
23693 old_archive_from_expsyms_cmds_F77 \
23694 allow_undefined_flag_F77 \
23695 no_undefined_flag_F77 \
23696 export_symbols_cmds_F77 \
23697 hardcode_libdir_flag_spec_F77 \
23698 hardcode_libdir_flag_spec_ld_F77 \
23699 hardcode_libdir_separator_F77 \
23700 hardcode_automatic_F77 \
23701 module_cmds_F77 \
23702 module_expsym_cmds_F77 \
23703 lt_cv_prog_compiler_c_o_F77 \
23704 exclude_expsyms_F77 \
23705 include_expsyms_F77; do
23706
23707 case $var in
23708 old_archive_cmds_F77 | \
23709 old_archive_from_new_cmds_F77 | \
23710 archive_cmds_F77 | \
23711 archive_expsym_cmds_F77 | \
23712 module_cmds_F77 | \
23713 module_expsym_cmds_F77 | \
23714 old_archive_from_expsyms_cmds_F77 | \
23715 export_symbols_cmds_F77 | \
23716 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23717 postinstall_cmds | postuninstall_cmds | \
23718 old_postinstall_cmds | old_postuninstall_cmds | \
23719 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23720 # Double-quote double-evaled strings.
23721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23722 ;;
23723 *)
23724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23725 ;;
23726 esac
23727 done
23728
23729 case $lt_echo in
23730 *'\$0 --fallback-echo"')
23731 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23732 ;;
23733 esac
23734
23735cfgfile="$ofile"
23736
23737 cat <<__EOF__ >> "$cfgfile"
23738# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23739
23740# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23741
23742# Shell to use when invoking shell scripts.
23743SHELL=$lt_SHELL
23744
23745# Whether or not to build shared libraries.
23746build_libtool_libs=$enable_shared
23747
23748# Whether or not to build static libraries.
23749build_old_libs=$enable_static
23750
23751# Whether or not to add -lc for building shared libraries.
23752build_libtool_need_lc=$archive_cmds_need_lc_F77
23753
23754# Whether or not to disallow shared libs when runtime libs are static
23755allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23756
23757# Whether or not to optimize for fast installation.
23758fast_install=$enable_fast_install
23759
23760# The host system.
23761host_alias=$host_alias
23762host=$host
23763host_os=$host_os
23764
23765# The build system.
23766build_alias=$build_alias
23767build=$build
23768build_os=$build_os
23769
23770# An echo program that does not interpret backslashes.
23771echo=$lt_echo
23772
23773# The archiver.
23774AR=$lt_AR
23775AR_FLAGS=$lt_AR_FLAGS
23776
23777# A C compiler.
23778LTCC=$lt_LTCC
23779
23780# LTCC compiler flags.
23781LTCFLAGS=$lt_LTCFLAGS
23782
23783# A language-specific compiler.
23784CC=$lt_compiler_F77
23785
23786# Is the compiler the GNU C compiler?
23787with_gcc=$GCC_F77
23788
23789# An ERE matcher.
23790EGREP=$lt_EGREP
23791
23792# The linker used to build libraries.
23793LD=$lt_LD_F77
23794
23795# Whether we need hard or soft links.
23796LN_S=$lt_LN_S
23797
23798# A BSD-compatible nm program.
23799NM=$lt_NM
23800
23801# A symbol stripping program
23802STRIP=$lt_STRIP
23803
23804# Used to examine libraries when file_magic_cmd begins "file"
23805MAGIC_CMD=$MAGIC_CMD
23806
23807# Used on cygwin: DLL creation program.
23808DLLTOOL="$DLLTOOL"
23809
23810# Used on cygwin: object dumper.
23811OBJDUMP="$OBJDUMP"
23812
23813# Used on cygwin: assembler.
23814AS="$AS"
23815
23816# The name of the directory that contains temporary libtool files.
23817objdir=$objdir
23818
23819# How to create reloadable object files.
23820reload_flag=$lt_reload_flag
23821reload_cmds=$lt_reload_cmds
23822
23823# How to pass a linker flag through the compiler.
23824wl=$lt_lt_prog_compiler_wl_F77
23825
23826# Object file suffix (normally "o").
23827objext="$ac_objext"
23828
23829# Old archive suffix (normally "a").
23830libext="$libext"
23831
23832# Shared library suffix (normally ".so").
23833shrext_cmds='$shrext_cmds'
23834
23835# Executable file suffix (normally "").
23836exeext="$exeext"
23837
23838# Additional compiler flags for building library objects.
23839pic_flag=$lt_lt_prog_compiler_pic_F77
23840pic_mode=$pic_mode
23841
23842# What is the maximum length of a command?
23843max_cmd_len=$lt_cv_sys_max_cmd_len
23844
23845# Does compiler simultaneously support -c and -o options?
23846compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23847
23848# Must we lock files when doing compilation?
23849need_locks=$lt_need_locks
23850
23851# Do we need the lib prefix for modules?
23852need_lib_prefix=$need_lib_prefix
23853
23854# Do we need a version for libraries?
23855need_version=$need_version
23856
23857# Whether dlopen is supported.
23858dlopen_support=$enable_dlopen
23859
23860# Whether dlopen of programs is supported.
23861dlopen_self=$enable_dlopen_self
23862
23863# Whether dlopen of statically linked programs is supported.
23864dlopen_self_static=$enable_dlopen_self_static
23865
23866# Compiler flag to prevent dynamic linking.
23867link_static_flag=$lt_lt_prog_compiler_static_F77
23868
23869# Compiler flag to turn off builtin functions.
23870no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23871
23872# Compiler flag to allow reflexive dlopens.
23873export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23874
23875# Compiler flag to generate shared objects directly from archives.
23876whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23877
23878# Compiler flag to generate thread-safe objects.
23879thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23880
23881# Library versioning type.
23882version_type=$version_type
23883
23884# Format of library name prefix.
23885libname_spec=$lt_libname_spec
23886
23887# List of archive names. First name is the real one, the rest are links.
23888# The last name is the one that the linker finds with -lNAME.
23889library_names_spec=$lt_library_names_spec
23890
23891# The coded name of the library, if different from the real name.
23892soname_spec=$lt_soname_spec
23893
23894# Commands used to build and install an old-style archive.
23895RANLIB=$lt_RANLIB
23896old_archive_cmds=$lt_old_archive_cmds_F77
23897old_postinstall_cmds=$lt_old_postinstall_cmds
23898old_postuninstall_cmds=$lt_old_postuninstall_cmds
23899
23900# Create an old-style archive from a shared archive.
23901old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23902
23903# Create a temporary old-style archive to link instead of a shared archive.
23904old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23905
23906# Commands used to build and install a shared archive.
23907archive_cmds=$lt_archive_cmds_F77
23908archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23909postinstall_cmds=$lt_postinstall_cmds
23910postuninstall_cmds=$lt_postuninstall_cmds
23911
23912# Commands used to build a loadable module (assumed same as above if empty)
23913module_cmds=$lt_module_cmds_F77
23914module_expsym_cmds=$lt_module_expsym_cmds_F77
23915
23916# Commands to strip libraries.
23917old_striplib=$lt_old_striplib
23918striplib=$lt_striplib
23919
23920# Dependencies to place before the objects being linked to create a
23921# shared library.
23922predep_objects=$lt_predep_objects_F77
23923
23924# Dependencies to place after the objects being linked to create a
23925# shared library.
23926postdep_objects=$lt_postdep_objects_F77
23927
23928# Dependencies to place before the objects being linked to create a
23929# shared library.
23930predeps=$lt_predeps_F77
23931
23932# Dependencies to place after the objects being linked to create a
23933# shared library.
23934postdeps=$lt_postdeps_F77
23935
23936# The library search path used internally by the compiler when linking
23937# a shared library.
23938compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23939
23940# Method to check whether dependent libraries are shared objects.
23941deplibs_check_method=$lt_deplibs_check_method
23942
23943# Command to use when deplibs_check_method == file_magic.
23944file_magic_cmd=$lt_file_magic_cmd
23945
23946# Flag that allows shared libraries with undefined symbols to be built.
23947allow_undefined_flag=$lt_allow_undefined_flag_F77
23948
23949# Flag that forces no undefined symbols.
23950no_undefined_flag=$lt_no_undefined_flag_F77
23951
23952# Commands used to finish a libtool library installation in a directory.
23953finish_cmds=$lt_finish_cmds
23954
23955# Same as above, but a single script fragment to be evaled but not shown.
23956finish_eval=$lt_finish_eval
23957
23958# Take the output of nm and produce a listing of raw symbols and C names.
23959global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23960
23961# Transform the output of nm in a proper C declaration
23962global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23963
23964# Transform the output of nm in a C name address pair
23965global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23966
23967# This is the shared library runtime path variable.
23968runpath_var=$runpath_var
23969
23970# This is the shared library path variable.
23971shlibpath_var=$shlibpath_var
23972
23973# Is shlibpath searched before the hard-coded library search path?
23974shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23975
23976# How to hardcode a shared library path into an executable.
23977hardcode_action=$hardcode_action_F77
23978
23979# Whether we should hardcode library paths into libraries.
23980hardcode_into_libs=$hardcode_into_libs
23981
23982# Flag to hardcode \$libdir into a binary during linking.
23983# This must work even if \$libdir does not exist.
23984hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23985
23986# If ld is used when linking, flag to hardcode \$libdir into
23987# a binary during linking. This must work even if \$libdir does
23988# not exist.
23989hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23990
23991# Whether we need a single -rpath flag with a separated argument.
23992hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23993
23994# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23995# resulting binary.
23996hardcode_direct=$hardcode_direct_F77
23997
23998# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23999# resulting binary.
24000hardcode_minus_L=$hardcode_minus_L_F77
24001
24002# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24003# the resulting binary.
24004hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24005
24006# Set to yes if building a shared library automatically hardcodes DIR into the library
24007# and all subsequent libraries and executables linked against it.
24008hardcode_automatic=$hardcode_automatic_F77
24009
24010# Variables whose values should be saved in libtool wrapper scripts and
24011# restored at relink time.
24012variables_saved_for_relink="$variables_saved_for_relink"
24013
24014# Whether libtool must link a program against all its dependency libraries.
24015link_all_deplibs=$link_all_deplibs_F77
24016
24017# Compile-time system search path for libraries
24018sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24019
24020# Run-time system search path for libraries
24021sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24022
24023# Fix the shell variable \$srcfile for the compiler.
24024fix_srcfile_path="$fix_srcfile_path_F77"
24025
24026# Set to yes if exported symbols are required.
24027always_export_symbols=$always_export_symbols_F77
24028
24029# The commands to list exported symbols.
24030export_symbols_cmds=$lt_export_symbols_cmds_F77
24031
24032# The commands to extract the exported symbol list from a shared archive.
24033extract_expsyms_cmds=$lt_extract_expsyms_cmds
24034
24035# Symbols that should not be listed in the preloaded symbols.
24036exclude_expsyms=$lt_exclude_expsyms_F77
24037
24038# Symbols that must always be exported.
24039include_expsyms=$lt_include_expsyms_F77
24040
24041# ### END LIBTOOL TAG CONFIG: $tagname
24042
24043__EOF__
24044
24045
24046else
24047 # If there is no Makefile yet, we rely on a make rule to execute
24048 # `config.status --recheck' to rerun these tests and create the
24049 # libtool script then.
24050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24051 if test -f "$ltmain_in"; then
24052 test -f Makefile && make "$ltmain"
24053 fi
24054fi
24055
24056
24057ac_ext=c
24058ac_cpp='$CPP $CPPFLAGS'
24059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24061ac_compiler_gnu=$ac_cv_c_compiler_gnu
24062
24063CC="$lt_save_CC"
24064
24065 else
24066 tagname=""
24067 fi
24068 ;;
24069
24070 GCJ)
24071 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24072 ac_ext=c
24073ac_cpp='$CPP $CPPFLAGS'
24074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24076ac_compiler_gnu=$ac_cv_c_compiler_gnu
24077
24078
24079# Source file extension for Java test sources.
24080ac_ext=java
24081
24082# Object file extension for compiled Java test sources.
24083objext=o
24084objext_GCJ=$objext
24085
24086# Code to be used in simple compile tests
24087lt_simple_compile_test_code="class foo {}\n"
24088
24089# Code to be used in simple link tests
24090lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24091
24092# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24093
24094# If no C compiler was specified, use CC.
24095LTCC=${LTCC-"$CC"}
24096
24097# If no C compiler flags were specified, use CFLAGS.
24098LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24099
24100# Allow CC to be a program name with arguments.
24101compiler=$CC
24102
24103
24104# save warnings/boilerplate of simple test code
24105ac_outfile=conftest.$ac_objext
24106printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24107eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24108_lt_compiler_boilerplate=`cat conftest.err`
24109$rm conftest*
24110
24111ac_outfile=conftest.$ac_objext
24112printf "$lt_simple_link_test_code" >conftest.$ac_ext
24113eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24114_lt_linker_boilerplate=`cat conftest.err`
24115$rm conftest*
24116
24117
24118# Allow CC to be a program name with arguments.
24119lt_save_CC="$CC"
24120CC=${GCJ-"gcj"}
24121compiler=$CC
24122compiler_GCJ=$CC
24123for cc_temp in $compiler""; do
24124 case $cc_temp in
24125 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24126 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24127 \-*) ;;
24128 *) break;;
24129 esac
24130done
24131cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24132
24133
24134# GCJ did not exist at the time GCC didn't implicitly link libc in.
24135archive_cmds_need_lc_GCJ=no
24136
24137old_archive_cmds_GCJ=$old_archive_cmds
24138
24139
24140lt_prog_compiler_no_builtin_flag_GCJ=
24141
24142if test "$GCC" = yes; then
24143 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24144
24145
24146{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24147echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24148if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24150else
24151 lt_cv_prog_compiler_rtti_exceptions=no
24152 ac_outfile=conftest.$ac_objext
24153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24154 lt_compiler_flag="-fno-rtti -fno-exceptions"
24155 # Insert the option either (1) after the last *FLAGS variable, or
24156 # (2) before a word containing "conftest.", or (3) at the end.
24157 # Note that $ac_compile itself does not contain backslashes and begins
24158 # with a dollar sign (not a hyphen), so the echo should work correctly.
24159 # The option is referenced via a variable to avoid confusing sed.
24160 lt_compile=`echo "$ac_compile" | $SED \
24161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24163 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyd2813d02009-09-29 05:48:51 +000024164 (eval echo "\"\$as_me:24164: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024165 (eval "$lt_compile" 2>conftest.err)
24166 ac_status=$?
24167 cat conftest.err >&5
Nick Lewyckyd2813d02009-09-29 05:48:51 +000024168 echo "$as_me:24168: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024169 if (exit $ac_status) && test -s "$ac_outfile"; then
24170 # The compiler can only warn and ignore the option if not recognized
24171 # So say no if there are warnings other than the usual output.
24172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24175 lt_cv_prog_compiler_rtti_exceptions=yes
24176 fi
24177 fi
24178 $rm conftest*
24179
24180fi
24181{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24182echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24183
24184if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24185 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24186else
24187 :
24188fi
24189
24190fi
24191
24192lt_prog_compiler_wl_GCJ=
24193lt_prog_compiler_pic_GCJ=
24194lt_prog_compiler_static_GCJ=
24195
24196{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24197echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24198
24199 if test "$GCC" = yes; then
24200 lt_prog_compiler_wl_GCJ='-Wl,'
24201 lt_prog_compiler_static_GCJ='-static'
24202
24203 case $host_os in
24204 aix*)
24205 # All AIX code is PIC.
24206 if test "$host_cpu" = ia64; then
24207 # AIX 5 now supports IA64 processor
24208 lt_prog_compiler_static_GCJ='-Bstatic'
24209 fi
24210 ;;
24211
24212 amigaos*)
24213 # FIXME: we need at least 68020 code to build shared libraries, but
24214 # adding the `-m68020' flag to GCC prevents building anything better,
24215 # like `-m68040'.
24216 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24217 ;;
24218
24219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24220 # PIC is the default for these OSes.
24221 ;;
24222
24223 mingw* | pw32* | os2*)
24224 # This hack is so that the source file can tell whether it is being
24225 # built for inclusion in a dll (and should export symbols for example).
24226 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24227 ;;
24228
24229 darwin* | rhapsody*)
24230 # PIC is the default on this platform
24231 # Common symbols not allowed in MH_DYLIB files
24232 lt_prog_compiler_pic_GCJ='-fno-common'
24233 ;;
24234
24235 interix3*)
24236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24237 # Instead, we relocate shared libraries at runtime.
24238 ;;
24239
24240 msdosdjgpp*)
24241 # Just because we use GCC doesn't mean we suddenly get shared libraries
24242 # on systems that don't support them.
24243 lt_prog_compiler_can_build_shared_GCJ=no
24244 enable_shared=no
24245 ;;
24246
24247 sysv4*MP*)
24248 if test -d /usr/nec; then
24249 lt_prog_compiler_pic_GCJ=-Kconform_pic
24250 fi
24251 ;;
24252
24253 hpux*)
24254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24255 # not for PA HP-UX.
24256 case $host_cpu in
24257 hppa*64*|ia64*)
24258 # +Z the default
24259 ;;
24260 *)
24261 lt_prog_compiler_pic_GCJ='-fPIC'
24262 ;;
24263 esac
24264 ;;
24265
24266 *)
24267 lt_prog_compiler_pic_GCJ='-fPIC'
24268 ;;
24269 esac
24270 else
24271 # PORTME Check for flag to pass linker flags through the system compiler.
24272 case $host_os in
24273 aix*)
24274 lt_prog_compiler_wl_GCJ='-Wl,'
24275 if test "$host_cpu" = ia64; then
24276 # AIX 5 now supports IA64 processor
24277 lt_prog_compiler_static_GCJ='-Bstatic'
24278 else
24279 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24280 fi
24281 ;;
24282 darwin*)
24283 # PIC is the default on this platform
24284 # Common symbols not allowed in MH_DYLIB files
24285 case $cc_basename in
24286 xlc*)
24287 lt_prog_compiler_pic_GCJ='-qnocommon'
24288 lt_prog_compiler_wl_GCJ='-Wl,'
24289 ;;
24290 esac
24291 ;;
24292
24293 mingw* | pw32* | os2*)
24294 # This hack is so that the source file can tell whether it is being
24295 # built for inclusion in a dll (and should export symbols for example).
24296 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24297 ;;
24298
24299 hpux9* | hpux10* | hpux11*)
24300 lt_prog_compiler_wl_GCJ='-Wl,'
24301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24302 # not for PA HP-UX.
24303 case $host_cpu in
24304 hppa*64*|ia64*)
24305 # +Z the default
24306 ;;
24307 *)
24308 lt_prog_compiler_pic_GCJ='+Z'
24309 ;;
24310 esac
24311 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24312 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24313 ;;
24314
24315 irix5* | irix6* | nonstopux*)
24316 lt_prog_compiler_wl_GCJ='-Wl,'
24317 # PIC (with -KPIC) is the default.
24318 lt_prog_compiler_static_GCJ='-non_shared'
24319 ;;
24320
24321 newsos6)
24322 lt_prog_compiler_pic_GCJ='-KPIC'
24323 lt_prog_compiler_static_GCJ='-Bstatic'
24324 ;;
24325
24326 linux*)
24327 case $cc_basename in
24328 icc* | ecc*)
24329 lt_prog_compiler_wl_GCJ='-Wl,'
24330 lt_prog_compiler_pic_GCJ='-KPIC'
24331 lt_prog_compiler_static_GCJ='-static'
24332 ;;
24333 pgcc* | pgf77* | pgf90* | pgf95*)
24334 # Portland Group compilers (*not* the Pentium gcc compiler,
24335 # which looks to be a dead project)
24336 lt_prog_compiler_wl_GCJ='-Wl,'
24337 lt_prog_compiler_pic_GCJ='-fpic'
24338 lt_prog_compiler_static_GCJ='-Bstatic'
24339 ;;
24340 ccc*)
24341 lt_prog_compiler_wl_GCJ='-Wl,'
24342 # All Alpha code is PIC.
24343 lt_prog_compiler_static_GCJ='-non_shared'
24344 ;;
24345 esac
24346 ;;
24347
24348 osf3* | osf4* | osf5*)
24349 lt_prog_compiler_wl_GCJ='-Wl,'
24350 # All OSF/1 code is PIC.
24351 lt_prog_compiler_static_GCJ='-non_shared'
24352 ;;
24353
24354 solaris*)
24355 lt_prog_compiler_pic_GCJ='-KPIC'
24356 lt_prog_compiler_static_GCJ='-Bstatic'
24357 case $cc_basename in
24358 f77* | f90* | f95*)
24359 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24360 *)
24361 lt_prog_compiler_wl_GCJ='-Wl,';;
24362 esac
24363 ;;
24364
24365 sunos4*)
24366 lt_prog_compiler_wl_GCJ='-Qoption ld '
24367 lt_prog_compiler_pic_GCJ='-PIC'
24368 lt_prog_compiler_static_GCJ='-Bstatic'
24369 ;;
24370
24371 sysv4 | sysv4.2uw2* | sysv4.3*)
24372 lt_prog_compiler_wl_GCJ='-Wl,'
24373 lt_prog_compiler_pic_GCJ='-KPIC'
24374 lt_prog_compiler_static_GCJ='-Bstatic'
24375 ;;
24376
24377 sysv4*MP*)
24378 if test -d /usr/nec ;then
24379 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24380 lt_prog_compiler_static_GCJ='-Bstatic'
24381 fi
24382 ;;
24383
24384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24385 lt_prog_compiler_wl_GCJ='-Wl,'
24386 lt_prog_compiler_pic_GCJ='-KPIC'
24387 lt_prog_compiler_static_GCJ='-Bstatic'
24388 ;;
24389
24390 unicos*)
24391 lt_prog_compiler_wl_GCJ='-Wl,'
24392 lt_prog_compiler_can_build_shared_GCJ=no
24393 ;;
24394
24395 uts4*)
24396 lt_prog_compiler_pic_GCJ='-pic'
24397 lt_prog_compiler_static_GCJ='-Bstatic'
24398 ;;
24399
24400 *)
24401 lt_prog_compiler_can_build_shared_GCJ=no
24402 ;;
24403 esac
24404 fi
24405
24406{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24407echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24408
24409#
24410# Check to make sure the PIC flag actually works.
24411#
24412if test -n "$lt_prog_compiler_pic_GCJ"; then
24413
24414{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24415echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24416if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24418else
24419 lt_prog_compiler_pic_works_GCJ=no
24420 ac_outfile=conftest.$ac_objext
24421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24422 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24423 # Insert the option either (1) after the last *FLAGS variable, or
24424 # (2) before a word containing "conftest.", or (3) at the end.
24425 # Note that $ac_compile itself does not contain backslashes and begins
24426 # with a dollar sign (not a hyphen), so the echo should work correctly.
24427 # The option is referenced via a variable to avoid confusing sed.
24428 lt_compile=`echo "$ac_compile" | $SED \
24429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24431 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyd2813d02009-09-29 05:48:51 +000024432 (eval echo "\"\$as_me:24432: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024433 (eval "$lt_compile" 2>conftest.err)
24434 ac_status=$?
24435 cat conftest.err >&5
Nick Lewyckyd2813d02009-09-29 05:48:51 +000024436 echo "$as_me:24436: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024437 if (exit $ac_status) && test -s "$ac_outfile"; then
24438 # The compiler can only warn and ignore the option if not recognized
24439 # So say no if there are warnings other than the usual output.
24440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24443 lt_prog_compiler_pic_works_GCJ=yes
24444 fi
24445 fi
24446 $rm conftest*
24447
24448fi
24449{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24450echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24451
24452if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24453 case $lt_prog_compiler_pic_GCJ in
24454 "" | " "*) ;;
24455 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24456 esac
24457else
24458 lt_prog_compiler_pic_GCJ=
24459 lt_prog_compiler_can_build_shared_GCJ=no
24460fi
24461
24462fi
24463case $host_os in
24464 # For platforms which do not support PIC, -DPIC is meaningless:
24465 *djgpp*)
24466 lt_prog_compiler_pic_GCJ=
24467 ;;
24468 *)
24469 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24470 ;;
24471esac
24472
24473#
24474# Check to make sure the static flag actually works.
24475#
24476wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24477{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24478echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24479if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24480 echo $ECHO_N "(cached) $ECHO_C" >&6
24481else
24482 lt_prog_compiler_static_works_GCJ=no
24483 save_LDFLAGS="$LDFLAGS"
24484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24485 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24487 # The linker can only warn and ignore the option if not recognized
24488 # So say no if there are warnings
24489 if test -s conftest.err; then
24490 # Append any errors to the config.log.
24491 cat conftest.err 1>&5
24492 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24494 if diff conftest.exp conftest.er2 >/dev/null; then
24495 lt_prog_compiler_static_works_GCJ=yes
24496 fi
24497 else
24498 lt_prog_compiler_static_works_GCJ=yes
24499 fi
24500 fi
24501 $rm conftest*
24502 LDFLAGS="$save_LDFLAGS"
24503
24504fi
24505{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24506echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24507
24508if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24509 :
24510else
24511 lt_prog_compiler_static_GCJ=
24512fi
24513
24514
24515{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24516echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24517if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24519else
24520 lt_cv_prog_compiler_c_o_GCJ=no
24521 $rm -r conftest 2>/dev/null
24522 mkdir conftest
24523 cd conftest
24524 mkdir out
24525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24526
24527 lt_compiler_flag="-o out/conftest2.$ac_objext"
24528 # Insert the option either (1) after the last *FLAGS variable, or
24529 # (2) before a word containing "conftest.", or (3) at the end.
24530 # Note that $ac_compile itself does not contain backslashes and begins
24531 # with a dollar sign (not a hyphen), so the echo should work correctly.
24532 lt_compile=`echo "$ac_compile" | $SED \
24533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24535 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyd2813d02009-09-29 05:48:51 +000024536 (eval echo "\"\$as_me:24536: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024537 (eval "$lt_compile" 2>out/conftest.err)
24538 ac_status=$?
24539 cat out/conftest.err >&5
Nick Lewyckyd2813d02009-09-29 05:48:51 +000024540 echo "$as_me:24540: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24542 then
24543 # The compiler can only warn and ignore the option if not recognized
24544 # So say no if there are warnings
24545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24548 lt_cv_prog_compiler_c_o_GCJ=yes
24549 fi
24550 fi
24551 chmod u+w . 2>&5
24552 $rm conftest*
24553 # SGI C++ compiler will create directory out/ii_files/ for
24554 # template instantiation
24555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24556 $rm out/* && rmdir out
24557 cd ..
24558 rmdir conftest
24559 $rm conftest*
24560
24561fi
24562{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24563echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24564
24565
24566hard_links="nottested"
24567if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24568 # do not overwrite the value of need_locks provided by the user
24569 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24570echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24571 hard_links=yes
24572 $rm conftest*
24573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24574 touch conftest.a
24575 ln conftest.a conftest.b 2>&5 || hard_links=no
24576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24577 { echo "$as_me:$LINENO: result: $hard_links" >&5
24578echo "${ECHO_T}$hard_links" >&6; }
24579 if test "$hard_links" = no; then
24580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24581echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24582 need_locks=warn
24583 fi
24584else
24585 need_locks=no
24586fi
24587
24588{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24589echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24590
24591 runpath_var=
24592 allow_undefined_flag_GCJ=
24593 enable_shared_with_static_runtimes_GCJ=no
24594 archive_cmds_GCJ=
24595 archive_expsym_cmds_GCJ=
24596 old_archive_From_new_cmds_GCJ=
24597 old_archive_from_expsyms_cmds_GCJ=
24598 export_dynamic_flag_spec_GCJ=
24599 whole_archive_flag_spec_GCJ=
24600 thread_safe_flag_spec_GCJ=
24601 hardcode_libdir_flag_spec_GCJ=
24602 hardcode_libdir_flag_spec_ld_GCJ=
24603 hardcode_libdir_separator_GCJ=
24604 hardcode_direct_GCJ=no
24605 hardcode_minus_L_GCJ=no
24606 hardcode_shlibpath_var_GCJ=unsupported
24607 link_all_deplibs_GCJ=unknown
24608 hardcode_automatic_GCJ=no
24609 module_cmds_GCJ=
24610 module_expsym_cmds_GCJ=
24611 always_export_symbols_GCJ=no
24612 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24613 # include_expsyms should be a list of space-separated symbols to be *always*
24614 # included in the symbol list
24615 include_expsyms_GCJ=
24616 # exclude_expsyms can be an extended regexp of symbols to exclude
24617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24619 # as well as any symbol that contains `d'.
24620 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24622 # platforms (ab)use it in PIC code, but their linkers get confused if
24623 # the symbol is explicitly referenced. Since portable code cannot
24624 # rely on this symbol name, it's probably fine to never include it in
24625 # preloaded symbol tables.
24626 extract_expsyms_cmds=
24627 # Just being paranoid about ensuring that cc_basename is set.
24628 for cc_temp in $compiler""; do
24629 case $cc_temp in
24630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24632 \-*) ;;
24633 *) break;;
24634 esac
24635done
24636cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24637
24638 case $host_os in
24639 cygwin* | mingw* | pw32*)
24640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24641 # When not using gcc, we currently assume that we are using
24642 # Microsoft Visual C++.
24643 if test "$GCC" != yes; then
24644 with_gnu_ld=no
24645 fi
24646 ;;
24647 interix*)
24648 # we just hope/assume this is gcc and not c89 (= MSVC++)
24649 with_gnu_ld=yes
24650 ;;
24651 openbsd*)
24652 with_gnu_ld=no
24653 ;;
24654 esac
24655
24656 ld_shlibs_GCJ=yes
24657 if test "$with_gnu_ld" = yes; then
24658 # If archive_cmds runs LD, not CC, wlarc should be empty
24659 wlarc='${wl}'
24660
24661 # Set some defaults for GNU ld with shared library support. These
24662 # are reset later if shared libraries are not supported. Putting them
24663 # here allows them to be overridden if necessary.
24664 runpath_var=LD_RUN_PATH
24665 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24666 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24667 # ancient GNU ld didn't support --whole-archive et. al.
24668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24669 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24670 else
24671 whole_archive_flag_spec_GCJ=
24672 fi
24673 supports_anon_versioning=no
24674 case `$LD -v 2>/dev/null` in
24675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24678 *\ 2.11.*) ;; # other 2.11 versions
24679 *) supports_anon_versioning=yes ;;
24680 esac
24681
24682 # See if GNU ld supports shared libraries.
24683 case $host_os in
24684 aix3* | aix4* | aix5*)
24685 # On AIX/PPC, the GNU linker is very broken
24686 if test "$host_cpu" != ia64; then
24687 ld_shlibs_GCJ=no
24688 cat <<EOF 1>&2
24689
24690*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24691*** to be unable to reliably create shared libraries on AIX.
24692*** Therefore, libtool is disabling shared libraries support. If you
24693*** really care for shared libraries, you may want to modify your PATH
24694*** so that a non-GNU linker is found, and then restart.
24695
24696EOF
24697 fi
24698 ;;
24699
24700 amigaos*)
24701 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)'
24702 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24703 hardcode_minus_L_GCJ=yes
24704
24705 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24706 # that the semantics of dynamic libraries on AmigaOS, at least up
24707 # to version 4, is to share data among multiple programs linked
24708 # with the same dynamic library. Since this doesn't match the
24709 # behavior of shared libraries on other platforms, we can't use
24710 # them.
24711 ld_shlibs_GCJ=no
24712 ;;
24713
24714 beos*)
24715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24716 allow_undefined_flag_GCJ=unsupported
24717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24718 # support --undefined. This deserves some investigation. FIXME
24719 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24720 else
24721 ld_shlibs_GCJ=no
24722 fi
24723 ;;
24724
24725 cygwin* | mingw* | pw32*)
24726 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24727 # as there is no search path for DLLs.
24728 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24729 allow_undefined_flag_GCJ=unsupported
24730 always_export_symbols_GCJ=no
24731 enable_shared_with_static_runtimes_GCJ=yes
24732 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24733
24734 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24735 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24736 # If the export-symbols file already is a .def file (1st line
24737 # is EXPORTS), use it as is; otherwise, prepend...
24738 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24739 cp $export_symbols $output_objdir/$soname.def;
24740 else
24741 echo EXPORTS > $output_objdir/$soname.def;
24742 cat $export_symbols >> $output_objdir/$soname.def;
24743 fi~
24744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24745 else
24746 ld_shlibs_GCJ=no
24747 fi
24748 ;;
24749
24750 interix3*)
24751 hardcode_direct_GCJ=no
24752 hardcode_shlibpath_var_GCJ=no
24753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24754 export_dynamic_flag_spec_GCJ='${wl}-E'
24755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24756 # Instead, shared libraries are loaded at an image base (0x10000000 by
24757 # default) and relocated if they conflict, which is a slow very memory
24758 # consuming and fragmenting process. To avoid this, we pick a random,
24759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24761 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'
24762 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'
24763 ;;
24764
24765 linux*)
24766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24767 tmp_addflag=
24768 case $cc_basename,$host_cpu in
24769 pgcc*) # Portland Group C compiler
24770 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'
24771 tmp_addflag=' $pic_flag'
24772 ;;
24773 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24774 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'
24775 tmp_addflag=' $pic_flag -Mnomain' ;;
24776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24777 tmp_addflag=' -i_dynamic' ;;
24778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24779 tmp_addflag=' -i_dynamic -nofor_main' ;;
24780 ifc* | ifort*) # Intel Fortran compiler
24781 tmp_addflag=' -nofor_main' ;;
24782 esac
24783 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24784
24785 if test $supports_anon_versioning = yes; then
24786 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24788 $echo "local: *; };" >> $output_objdir/$libname.ver~
24789 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24790 fi
24791 else
24792 ld_shlibs_GCJ=no
24793 fi
24794 ;;
24795
24796 netbsd*)
24797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24798 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24799 wlarc=
24800 else
24801 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24802 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24803 fi
24804 ;;
24805
24806 solaris*)
24807 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24808 ld_shlibs_GCJ=no
24809 cat <<EOF 1>&2
24810
24811*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24812*** create shared libraries on Solaris systems. Therefore, libtool
24813*** is disabling shared libraries support. We urge you to upgrade GNU
24814*** binutils to release 2.9.1 or newer. Another option is to modify
24815*** your PATH or compiler configuration so that the native linker is
24816*** used, and then restart.
24817
24818EOF
24819 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24821 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24822 else
24823 ld_shlibs_GCJ=no
24824 fi
24825 ;;
24826
24827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24828 case `$LD -v 2>&1` in
24829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24830 ld_shlibs_GCJ=no
24831 cat <<_LT_EOF 1>&2
24832
24833*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24834*** reliably create shared libraries on SCO systems. Therefore, libtool
24835*** is disabling shared libraries support. We urge you to upgrade GNU
24836*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24837*** your PATH or compiler configuration so that the native linker is
24838*** used, and then restart.
24839
24840_LT_EOF
24841 ;;
24842 *)
24843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24844 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24845 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24846 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24847 else
24848 ld_shlibs_GCJ=no
24849 fi
24850 ;;
24851 esac
24852 ;;
24853
24854 sunos4*)
24855 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24856 wlarc=
24857 hardcode_direct_GCJ=yes
24858 hardcode_shlibpath_var_GCJ=no
24859 ;;
24860
24861 *)
24862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24863 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24864 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24865 else
24866 ld_shlibs_GCJ=no
24867 fi
24868 ;;
24869 esac
24870
24871 if test "$ld_shlibs_GCJ" = no; then
24872 runpath_var=
24873 hardcode_libdir_flag_spec_GCJ=
24874 export_dynamic_flag_spec_GCJ=
24875 whole_archive_flag_spec_GCJ=
24876 fi
24877 else
24878 # PORTME fill in a description of your system's linker (not GNU ld)
24879 case $host_os in
24880 aix3*)
24881 allow_undefined_flag_GCJ=unsupported
24882 always_export_symbols_GCJ=yes
24883 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'
24884 # Note: this linker hardcodes the directories in LIBPATH if there
24885 # are no directories specified by -L.
24886 hardcode_minus_L_GCJ=yes
24887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24888 # Neither direct hardcoding nor static linking is supported with a
24889 # broken collect2.
24890 hardcode_direct_GCJ=unsupported
24891 fi
24892 ;;
24893
24894 aix4* | aix5*)
24895 if test "$host_cpu" = ia64; then
24896 # On IA64, the linker does run time linking by default, so we don't
24897 # have to do anything special.
24898 aix_use_runtimelinking=no
24899 exp_sym_flag='-Bexport'
24900 no_entry_flag=""
24901 else
24902 # If we're using GNU nm, then we don't want the "-C" option.
24903 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24904 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24905 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'
24906 else
24907 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'
24908 fi
24909 aix_use_runtimelinking=no
24910
24911 # Test if we are trying to use run time linking or normal
24912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24913 # need to do runtime linking.
24914 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24915 for ld_flag in $LDFLAGS; do
24916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24917 aix_use_runtimelinking=yes
24918 break
24919 fi
24920 done
24921 ;;
24922 esac
24923
24924 exp_sym_flag='-bexport'
24925 no_entry_flag='-bnoentry'
24926 fi
24927
24928 # When large executables or shared objects are built, AIX ld can
24929 # have problems creating the table of contents. If linking a library
24930 # or program results in "error TOC overflow" add -mminimal-toc to
24931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24933
24934 archive_cmds_GCJ=''
24935 hardcode_direct_GCJ=yes
24936 hardcode_libdir_separator_GCJ=':'
24937 link_all_deplibs_GCJ=yes
24938
24939 if test "$GCC" = yes; then
24940 case $host_os in aix4.[012]|aix4.[012].*)
24941 # We only want to do this on AIX 4.2 and lower, the check
24942 # below for broken collect2 doesn't work under 4.3+
24943 collect2name=`${CC} -print-prog-name=collect2`
24944 if test -f "$collect2name" && \
24945 strings "$collect2name" | grep resolve_lib_name >/dev/null
24946 then
24947 # We have reworked collect2
24948 hardcode_direct_GCJ=yes
24949 else
24950 # We have old collect2
24951 hardcode_direct_GCJ=unsupported
24952 # It fails to find uninstalled libraries when the uninstalled
24953 # path is not listed in the libpath. Setting hardcode_minus_L
24954 # to unsupported forces relinking
24955 hardcode_minus_L_GCJ=yes
24956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24957 hardcode_libdir_separator_GCJ=
24958 fi
24959 ;;
24960 esac
24961 shared_flag='-shared'
24962 if test "$aix_use_runtimelinking" = yes; then
24963 shared_flag="$shared_flag "'${wl}-G'
24964 fi
24965 else
24966 # not using gcc
24967 if test "$host_cpu" = ia64; then
24968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24969 # chokes on -Wl,-G. The following line is correct:
24970 shared_flag='-G'
24971 else
24972 if test "$aix_use_runtimelinking" = yes; then
24973 shared_flag='${wl}-G'
24974 else
24975 shared_flag='${wl}-bM:SRE'
24976 fi
24977 fi
24978 fi
24979
24980 # It seems that -bexpall does not export symbols beginning with
24981 # underscore (_), so it is better to generate a list of symbols to export.
24982 always_export_symbols_GCJ=yes
24983 if test "$aix_use_runtimelinking" = yes; then
24984 # Warning - without using the other runtime loading flags (-brtl),
24985 # -berok will link without error, but may produce a broken library.
24986 allow_undefined_flag_GCJ='-berok'
24987 # Determine the default libpath from the value encoded in an empty executable.
24988 cat >conftest.$ac_ext <<_ACEOF
24989/* confdefs.h. */
24990_ACEOF
24991cat confdefs.h >>conftest.$ac_ext
24992cat >>conftest.$ac_ext <<_ACEOF
24993/* end confdefs.h. */
24994
24995int
24996main ()
24997{
24998
24999 ;
25000 return 0;
25001}
25002_ACEOF
25003rm -f conftest.$ac_objext conftest$ac_exeext
25004if { (ac_try="$ac_link"
25005case "(($ac_try" in
25006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25007 *) ac_try_echo=$ac_try;;
25008esac
25009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25010 (eval "$ac_link") 2>conftest.er1
25011 ac_status=$?
25012 grep -v '^ *+' conftest.er1 >conftest.err
25013 rm -f conftest.er1
25014 cat conftest.err >&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025016 (exit $ac_status); } &&
25017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25018 { (case "(($ac_try" in
25019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25020 *) ac_try_echo=$ac_try;;
25021esac
25022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25023 (eval "$ac_try") 2>&5
25024 ac_status=$?
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; } &&
25027 { ac_try='test -s conftest$ac_exeext'
25028 { (case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25031esac
25032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_try") 2>&5
25034 ac_status=$?
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025037
25038aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25039}'`
25040# Check for a 64-bit object if we didn't find anything.
25041if 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; }
25042}'`; fi
25043else
25044 echo "$as_me: failed program was:" >&5
25045sed 's/^/| /' conftest.$ac_ext >&5
25046
25047
25048fi
25049
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025050rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025051 conftest$ac_exeext conftest.$ac_ext
25052if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25053
25054 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25055 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"
25056 else
25057 if test "$host_cpu" = ia64; then
25058 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25059 allow_undefined_flag_GCJ="-z nodefs"
25060 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"
25061 else
25062 # Determine the default libpath from the value encoded in an empty executable.
25063 cat >conftest.$ac_ext <<_ACEOF
25064/* confdefs.h. */
25065_ACEOF
25066cat confdefs.h >>conftest.$ac_ext
25067cat >>conftest.$ac_ext <<_ACEOF
25068/* end confdefs.h. */
25069
25070int
25071main ()
25072{
25073
25074 ;
25075 return 0;
25076}
25077_ACEOF
25078rm -f conftest.$ac_objext conftest$ac_exeext
25079if { (ac_try="$ac_link"
25080case "(($ac_try" in
25081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082 *) ac_try_echo=$ac_try;;
25083esac
25084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085 (eval "$ac_link") 2>conftest.er1
25086 ac_status=$?
25087 grep -v '^ *+' conftest.er1 >conftest.err
25088 rm -f conftest.er1
25089 cat conftest.err >&5
25090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025091 (exit $ac_status); } &&
25092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25093 { (case "(($ac_try" in
25094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095 *) ac_try_echo=$ac_try;;
25096esac
25097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098 (eval "$ac_try") 2>&5
25099 ac_status=$?
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; } &&
25102 { ac_try='test -s conftest$ac_exeext'
25103 { (case "(($ac_try" in
25104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105 *) ac_try_echo=$ac_try;;
25106esac
25107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25108 (eval "$ac_try") 2>&5
25109 ac_status=$?
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025112
25113aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25114}'`
25115# Check for a 64-bit object if we didn't find anything.
25116if 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; }
25117}'`; fi
25118else
25119 echo "$as_me: failed program was:" >&5
25120sed 's/^/| /' conftest.$ac_ext >&5
25121
25122
25123fi
25124
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025125rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025126 conftest$ac_exeext conftest.$ac_ext
25127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25128
25129 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25130 # Warning - without using the other run time loading flags,
25131 # -berok will link without error, but may produce a broken library.
25132 no_undefined_flag_GCJ=' ${wl}-bernotok'
25133 allow_undefined_flag_GCJ=' ${wl}-berok'
25134 # Exported symbols can be pulled into shared objects from archives
25135 whole_archive_flag_spec_GCJ='$convenience'
25136 archive_cmds_need_lc_GCJ=yes
25137 # This is similar to how AIX traditionally builds its shared libraries.
25138 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'
25139 fi
25140 fi
25141 ;;
25142
25143 amigaos*)
25144 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)'
25145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25146 hardcode_minus_L_GCJ=yes
25147 # see comment about different semantics on the GNU ld section
25148 ld_shlibs_GCJ=no
25149 ;;
25150
25151 bsdi[45]*)
25152 export_dynamic_flag_spec_GCJ=-rdynamic
25153 ;;
25154
25155 cygwin* | mingw* | pw32*)
25156 # When not using gcc, we currently assume that we are using
25157 # Microsoft Visual C++.
25158 # hardcode_libdir_flag_spec is actually meaningless, as there is
25159 # no search path for DLLs.
25160 hardcode_libdir_flag_spec_GCJ=' '
25161 allow_undefined_flag_GCJ=unsupported
25162 # Tell ltmain to make .lib files, not .a files.
25163 libext=lib
25164 # Tell ltmain to make .dll files, not .so files.
25165 shrext_cmds=".dll"
25166 # FIXME: Setting linknames here is a bad hack.
25167 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25168 # The linker will automatically build a .lib file if we build a DLL.
25169 old_archive_From_new_cmds_GCJ='true'
25170 # FIXME: Should let the user specify the lib program.
25171 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25172 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25173 enable_shared_with_static_runtimes_GCJ=yes
25174 ;;
25175
25176 darwin* | rhapsody*)
25177 case $host_os in
25178 rhapsody* | darwin1.[012])
25179 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25180 ;;
25181 *) # Darwin 1.3 on
25182 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25183 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25184 else
25185 case ${MACOSX_DEPLOYMENT_TARGET} in
25186 10.[012])
25187 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25188 ;;
25189 10.*)
25190 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25191 ;;
25192 esac
25193 fi
25194 ;;
25195 esac
25196 archive_cmds_need_lc_GCJ=no
25197 hardcode_direct_GCJ=no
25198 hardcode_automatic_GCJ=yes
25199 hardcode_shlibpath_var_GCJ=unsupported
25200 whole_archive_flag_spec_GCJ=''
25201 link_all_deplibs_GCJ=yes
25202 if test "$GCC" = yes ; then
25203 output_verbose_link_cmd='echo'
25204 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25205 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25206 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25207 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}'
25208 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}'
25209 else
25210 case $cc_basename in
25211 xlc*)
25212 output_verbose_link_cmd='echo'
25213 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25214 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25215 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25216 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}'
25217 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}'
25218 ;;
25219 *)
25220 ld_shlibs_GCJ=no
25221 ;;
25222 esac
25223 fi
25224 ;;
25225
25226 dgux*)
25227 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25228 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25229 hardcode_shlibpath_var_GCJ=no
25230 ;;
25231
25232 freebsd1*)
25233 ld_shlibs_GCJ=no
25234 ;;
25235
25236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25237 # support. Future versions do this automatically, but an explicit c++rt0.o
25238 # does not break anything, and helps significantly (at the cost of a little
25239 # extra space).
25240 freebsd2.2*)
25241 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25243 hardcode_direct_GCJ=yes
25244 hardcode_shlibpath_var_GCJ=no
25245 ;;
25246
25247 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25248 freebsd2*)
25249 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25250 hardcode_direct_GCJ=yes
25251 hardcode_minus_L_GCJ=yes
25252 hardcode_shlibpath_var_GCJ=no
25253 ;;
25254
25255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25256 freebsd* | kfreebsd*-gnu | dragonfly*)
25257 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25258 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25259 hardcode_direct_GCJ=yes
25260 hardcode_shlibpath_var_GCJ=no
25261 ;;
25262
25263 hpux9*)
25264 if test "$GCC" = yes; then
25265 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'
25266 else
25267 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'
25268 fi
25269 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25270 hardcode_libdir_separator_GCJ=:
25271 hardcode_direct_GCJ=yes
25272
25273 # hardcode_minus_L: Not really in the search PATH,
25274 # but as the default location of the library.
25275 hardcode_minus_L_GCJ=yes
25276 export_dynamic_flag_spec_GCJ='${wl}-E'
25277 ;;
25278
25279 hpux10*)
25280 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25281 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25282 else
25283 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25284 fi
25285 if test "$with_gnu_ld" = no; then
25286 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25287 hardcode_libdir_separator_GCJ=:
25288
25289 hardcode_direct_GCJ=yes
25290 export_dynamic_flag_spec_GCJ='${wl}-E'
25291
25292 # hardcode_minus_L: Not really in the search PATH,
25293 # but as the default location of the library.
25294 hardcode_minus_L_GCJ=yes
25295 fi
25296 ;;
25297
25298 hpux11*)
25299 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25300 case $host_cpu in
25301 hppa*64*)
25302 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25303 ;;
25304 ia64*)
25305 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25306 ;;
25307 *)
25308 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25309 ;;
25310 esac
25311 else
25312 case $host_cpu in
25313 hppa*64*)
25314 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25315 ;;
25316 ia64*)
25317 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25318 ;;
25319 *)
25320 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25321 ;;
25322 esac
25323 fi
25324 if test "$with_gnu_ld" = no; then
25325 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25326 hardcode_libdir_separator_GCJ=:
25327
25328 case $host_cpu in
25329 hppa*64*|ia64*)
25330 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25331 hardcode_direct_GCJ=no
25332 hardcode_shlibpath_var_GCJ=no
25333 ;;
25334 *)
25335 hardcode_direct_GCJ=yes
25336 export_dynamic_flag_spec_GCJ='${wl}-E'
25337
25338 # hardcode_minus_L: Not really in the search PATH,
25339 # but as the default location of the library.
25340 hardcode_minus_L_GCJ=yes
25341 ;;
25342 esac
25343 fi
25344 ;;
25345
25346 irix5* | irix6* | nonstopux*)
25347 if test "$GCC" = yes; then
25348 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'
25349 else
25350 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'
25351 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25352 fi
25353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25354 hardcode_libdir_separator_GCJ=:
25355 link_all_deplibs_GCJ=yes
25356 ;;
25357
25358 netbsd*)
25359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25360 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25361 else
25362 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25363 fi
25364 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25365 hardcode_direct_GCJ=yes
25366 hardcode_shlibpath_var_GCJ=no
25367 ;;
25368
25369 newsos6)
25370 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25371 hardcode_direct_GCJ=yes
25372 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25373 hardcode_libdir_separator_GCJ=:
25374 hardcode_shlibpath_var_GCJ=no
25375 ;;
25376
25377 openbsd*)
25378 hardcode_direct_GCJ=yes
25379 hardcode_shlibpath_var_GCJ=no
25380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25381 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25382 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25383 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25384 export_dynamic_flag_spec_GCJ='${wl}-E'
25385 else
25386 case $host_os in
25387 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25388 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25389 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25390 ;;
25391 *)
25392 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25393 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25394 ;;
25395 esac
25396 fi
25397 ;;
25398
25399 os2*)
25400 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25401 hardcode_minus_L_GCJ=yes
25402 allow_undefined_flag_GCJ=unsupported
25403 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'
25404 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25405 ;;
25406
25407 osf3*)
25408 if test "$GCC" = yes; then
25409 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25410 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'
25411 else
25412 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25413 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'
25414 fi
25415 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25416 hardcode_libdir_separator_GCJ=:
25417 ;;
25418
25419 osf4* | osf5*) # as osf3* with the addition of -msym flag
25420 if test "$GCC" = yes; then
25421 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25422 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'
25423 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25424 else
25425 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25426 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'
25427 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~
25428 $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'
25429
25430 # Both c and cxx compiler support -rpath directly
25431 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25432 fi
25433 hardcode_libdir_separator_GCJ=:
25434 ;;
25435
25436 solaris*)
25437 no_undefined_flag_GCJ=' -z text'
25438 if test "$GCC" = yes; then
25439 wlarc='${wl}'
25440 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25441 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25442 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25443 else
25444 wlarc=''
25445 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25446 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25448 fi
25449 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25450 hardcode_shlibpath_var_GCJ=no
25451 case $host_os in
25452 solaris2.[0-5] | solaris2.[0-5].*) ;;
25453 *)
25454 # The compiler driver will combine linker options so we
25455 # cannot just pass the convience library names through
25456 # without $wl, iff we do not link with $LD.
25457 # Luckily, gcc supports the same syntax we need for Sun Studio.
25458 # Supported since Solaris 2.6 (maybe 2.5.1?)
25459 case $wlarc in
25460 '')
25461 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25462 *)
25463 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' ;;
25464 esac ;;
25465 esac
25466 link_all_deplibs_GCJ=yes
25467 ;;
25468
25469 sunos4*)
25470 if test "x$host_vendor" = xsequent; then
25471 # Use $CC to link under sequent, because it throws in some extra .o
25472 # files that make .init and .fini sections work.
25473 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25474 else
25475 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25476 fi
25477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25478 hardcode_direct_GCJ=yes
25479 hardcode_minus_L_GCJ=yes
25480 hardcode_shlibpath_var_GCJ=no
25481 ;;
25482
25483 sysv4)
25484 case $host_vendor in
25485 sni)
25486 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25487 hardcode_direct_GCJ=yes # is this really true???
25488 ;;
25489 siemens)
25490 ## LD is ld it makes a PLAMLIB
25491 ## CC just makes a GrossModule.
25492 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25493 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25494 hardcode_direct_GCJ=no
25495 ;;
25496 motorola)
25497 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25498 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25499 ;;
25500 esac
25501 runpath_var='LD_RUN_PATH'
25502 hardcode_shlibpath_var_GCJ=no
25503 ;;
25504
25505 sysv4.3*)
25506 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25507 hardcode_shlibpath_var_GCJ=no
25508 export_dynamic_flag_spec_GCJ='-Bexport'
25509 ;;
25510
25511 sysv4*MP*)
25512 if test -d /usr/nec; then
25513 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25514 hardcode_shlibpath_var_GCJ=no
25515 runpath_var=LD_RUN_PATH
25516 hardcode_runpath_var=yes
25517 ld_shlibs_GCJ=yes
25518 fi
25519 ;;
25520
25521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25522 no_undefined_flag_GCJ='${wl}-z,text'
25523 archive_cmds_need_lc_GCJ=no
25524 hardcode_shlibpath_var_GCJ=no
25525 runpath_var='LD_RUN_PATH'
25526
25527 if test "$GCC" = yes; then
25528 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25529 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25530 else
25531 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25532 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25533 fi
25534 ;;
25535
25536 sysv5* | sco3.2v5* | sco5v6*)
25537 # Note: We can NOT use -z defs as we might desire, because we do not
25538 # link with -lc, and that would cause any symbols used from libc to
25539 # always be unresolved, which means just about no library would
25540 # ever link correctly. If we're not using GNU ld we use -z text
25541 # though, which does catch some bad symbols but isn't as heavy-handed
25542 # as -z defs.
25543 no_undefined_flag_GCJ='${wl}-z,text'
25544 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25545 archive_cmds_need_lc_GCJ=no
25546 hardcode_shlibpath_var_GCJ=no
25547 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25548 hardcode_libdir_separator_GCJ=':'
25549 link_all_deplibs_GCJ=yes
25550 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25551 runpath_var='LD_RUN_PATH'
25552
25553 if test "$GCC" = yes; then
25554 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25555 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25556 else
25557 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25558 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25559 fi
25560 ;;
25561
25562 uts4*)
25563 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25564 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25565 hardcode_shlibpath_var_GCJ=no
25566 ;;
25567
25568 *)
25569 ld_shlibs_GCJ=no
25570 ;;
25571 esac
25572 fi
25573
25574{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25575echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25576test "$ld_shlibs_GCJ" = no && can_build_shared=no
25577
25578#
25579# Do we need to explicitly link libc?
25580#
25581case "x$archive_cmds_need_lc_GCJ" in
25582x|xyes)
25583 # Assume -lc should be added
25584 archive_cmds_need_lc_GCJ=yes
25585
25586 if test "$enable_shared" = yes && test "$GCC" = yes; then
25587 case $archive_cmds_GCJ in
25588 *'~'*)
25589 # FIXME: we may have to deal with multi-command sequences.
25590 ;;
25591 '$CC '*)
25592 # Test whether the compiler implicitly links with -lc since on some
25593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25594 # to ld, don't add -lc before -lgcc.
25595 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25596echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25597 $rm conftest*
25598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25599
25600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25601 (eval $ac_compile) 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } 2>conftest.err; then
25605 soname=conftest
25606 lib=conftest
25607 libobjs=conftest.$ac_objext
25608 deplibs=
25609 wl=$lt_prog_compiler_wl_GCJ
25610 pic_flag=$lt_prog_compiler_pic_GCJ
25611 compiler_flags=-v
25612 linker_flags=-v
25613 verstring=
25614 output_objdir=.
25615 libname=conftest
25616 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25617 allow_undefined_flag_GCJ=
25618 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25619 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25620 ac_status=$?
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }
25623 then
25624 archive_cmds_need_lc_GCJ=no
25625 else
25626 archive_cmds_need_lc_GCJ=yes
25627 fi
25628 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25629 else
25630 cat conftest.err 1>&5
25631 fi
25632 $rm conftest*
25633 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25634echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25635 ;;
25636 esac
25637 fi
25638 ;;
25639esac
25640
25641{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25642echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25643library_names_spec=
25644libname_spec='lib$name'
25645soname_spec=
25646shrext_cmds=".so"
25647postinstall_cmds=
25648postuninstall_cmds=
25649finish_cmds=
25650finish_eval=
25651shlibpath_var=
25652shlibpath_overrides_runpath=unknown
25653version_type=none
25654dynamic_linker="$host_os ld.so"
25655sys_lib_dlsearch_path_spec="/lib /usr/lib"
25656if test "$GCC" = yes; then
25657 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25658 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25659 # if the path contains ";" then we assume it to be the separator
25660 # otherwise default to the standard path separator (i.e. ":") - it is
25661 # assumed that no part of a normal pathname contains ";" but that should
25662 # okay in the real world where ";" in dirpaths is itself problematic.
25663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25664 else
25665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25666 fi
25667else
25668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25669fi
25670need_lib_prefix=unknown
25671hardcode_into_libs=no
25672
25673# when you set need_version to no, make sure it does not cause -set_version
25674# flags to be left without arguments
25675need_version=unknown
25676
25677case $host_os in
25678aix3*)
25679 version_type=linux
25680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25681 shlibpath_var=LIBPATH
25682
25683 # AIX 3 has no versioning support, so we append a major version to the name.
25684 soname_spec='${libname}${release}${shared_ext}$major'
25685 ;;
25686
25687aix4* | aix5*)
25688 version_type=linux
25689 need_lib_prefix=no
25690 need_version=no
25691 hardcode_into_libs=yes
25692 if test "$host_cpu" = ia64; then
25693 # AIX 5 supports IA64
25694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25695 shlibpath_var=LD_LIBRARY_PATH
25696 else
25697 # With GCC up to 2.95.x, collect2 would create an import file
25698 # for dependence libraries. The import file would start with
25699 # the line `#! .'. This would cause the generated library to
25700 # depend on `.', always an invalid library. This was fixed in
25701 # development snapshots of GCC prior to 3.0.
25702 case $host_os in
25703 aix4 | aix4.[01] | aix4.[01].*)
25704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25705 echo ' yes '
25706 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25707 :
25708 else
25709 can_build_shared=no
25710 fi
25711 ;;
25712 esac
25713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25714 # soname into executable. Probably we can add versioning support to
25715 # collect2, so additional links can be useful in future.
25716 if test "$aix_use_runtimelinking" = yes; then
25717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25718 # instead of lib<name>.a to let people know that these are not
25719 # typical AIX shared libraries.
25720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25721 else
25722 # We preserve .a as extension for shared libraries through AIX4.2
25723 # and later when we are not doing run time linking.
25724 library_names_spec='${libname}${release}.a $libname.a'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25726 fi
25727 shlibpath_var=LIBPATH
25728 fi
25729 ;;
25730
25731amigaos*)
25732 library_names_spec='$libname.ixlibrary $libname.a'
25733 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25734 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'
25735 ;;
25736
25737beos*)
25738 library_names_spec='${libname}${shared_ext}'
25739 dynamic_linker="$host_os ld.so"
25740 shlibpath_var=LIBRARY_PATH
25741 ;;
25742
25743bsdi[45]*)
25744 version_type=linux
25745 need_version=no
25746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25747 soname_spec='${libname}${release}${shared_ext}$major'
25748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25749 shlibpath_var=LD_LIBRARY_PATH
25750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25752 # the default ld.so.conf also contains /usr/contrib/lib and
25753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25754 # libtool to hard-code these into programs
25755 ;;
25756
25757cygwin* | mingw* | pw32*)
25758 version_type=windows
25759 shrext_cmds=".dll"
25760 need_version=no
25761 need_lib_prefix=no
25762
25763 case $GCC,$host_os in
25764 yes,cygwin* | yes,mingw* | yes,pw32*)
25765 library_names_spec='$libname.dll.a'
25766 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25767 postinstall_cmds='base_file=`basename \${file}`~
25768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25769 dldir=$destdir/`dirname \$dlpath`~
25770 test -d \$dldir || mkdir -p \$dldir~
25771 $install_prog $dir/$dlname \$dldir/$dlname~
25772 chmod a+x \$dldir/$dlname'
25773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25774 dlpath=$dir/\$dldll~
25775 $rm \$dlpath'
25776 shlibpath_overrides_runpath=yes
25777
25778 case $host_os in
25779 cygwin*)
25780 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25781 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25782 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25783 ;;
25784 mingw*)
25785 # MinGW DLLs use traditional 'lib' prefix
25786 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25788 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25789 # It is most probably a Windows format PATH printed by
25790 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25791 # path with ; separators, and with drive letters. We can handle the
25792 # drive letters (cygwin fileutils understands them), so leave them,
25793 # especially as we might pass files found there to a mingw objdump,
25794 # which wouldn't understand a cygwinified path. Ahh.
25795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25796 else
25797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25798 fi
25799 ;;
25800 pw32*)
25801 # pw32 DLLs use 'pw' prefix rather than 'lib'
25802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25803 ;;
25804 esac
25805 ;;
25806
25807 *)
25808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25809 ;;
25810 esac
25811 dynamic_linker='Win32 ld.exe'
25812 # FIXME: first we should search . and the directory the executable is in
25813 shlibpath_var=PATH
25814 ;;
25815
25816darwin* | rhapsody*)
25817 dynamic_linker="$host_os dyld"
25818 version_type=darwin
25819 need_lib_prefix=no
25820 need_version=no
25821 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25822 soname_spec='${libname}${release}${major}$shared_ext'
25823 shlibpath_overrides_runpath=yes
25824 shlibpath_var=DYLD_LIBRARY_PATH
25825 shrext_cmds='.dylib'
25826 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25827 if test "$GCC" = yes; then
25828 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"`
25829 else
25830 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25831 fi
25832 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25833 ;;
25834
25835dgux*)
25836 version_type=linux
25837 need_lib_prefix=no
25838 need_version=no
25839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25840 soname_spec='${libname}${release}${shared_ext}$major'
25841 shlibpath_var=LD_LIBRARY_PATH
25842 ;;
25843
25844freebsd1*)
25845 dynamic_linker=no
25846 ;;
25847
25848kfreebsd*-gnu)
25849 version_type=linux
25850 need_lib_prefix=no
25851 need_version=no
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25853 soname_spec='${libname}${release}${shared_ext}$major'
25854 shlibpath_var=LD_LIBRARY_PATH
25855 shlibpath_overrides_runpath=no
25856 hardcode_into_libs=yes
25857 dynamic_linker='GNU ld.so'
25858 ;;
25859
25860freebsd* | dragonfly*)
25861 # DragonFly does not have aout. When/if they implement a new
25862 # versioning mechanism, adjust this.
25863 if test -x /usr/bin/objformat; then
25864 objformat=`/usr/bin/objformat`
25865 else
25866 case $host_os in
25867 freebsd[123]*) objformat=aout ;;
25868 *) objformat=elf ;;
25869 esac
25870 fi
25871 version_type=freebsd-$objformat
25872 case $version_type in
25873 freebsd-elf*)
25874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25875 need_version=no
25876 need_lib_prefix=no
25877 ;;
25878 freebsd-*)
25879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25880 need_version=yes
25881 ;;
25882 esac
25883 shlibpath_var=LD_LIBRARY_PATH
25884 case $host_os in
25885 freebsd2*)
25886 shlibpath_overrides_runpath=yes
25887 ;;
25888 freebsd3.[01]* | freebsdelf3.[01]*)
25889 shlibpath_overrides_runpath=yes
25890 hardcode_into_libs=yes
25891 ;;
25892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25894 shlibpath_overrides_runpath=no
25895 hardcode_into_libs=yes
25896 ;;
25897 freebsd*) # from 4.6 on
25898 shlibpath_overrides_runpath=yes
25899 hardcode_into_libs=yes
25900 ;;
25901 esac
25902 ;;
25903
25904gnu*)
25905 version_type=linux
25906 need_lib_prefix=no
25907 need_version=no
25908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25909 soname_spec='${libname}${release}${shared_ext}$major'
25910 shlibpath_var=LD_LIBRARY_PATH
25911 hardcode_into_libs=yes
25912 ;;
25913
25914hpux9* | hpux10* | hpux11*)
25915 # Give a soname corresponding to the major version so that dld.sl refuses to
25916 # link against other versions.
25917 version_type=sunos
25918 need_lib_prefix=no
25919 need_version=no
25920 case $host_cpu in
25921 ia64*)
25922 shrext_cmds='.so'
25923 hardcode_into_libs=yes
25924 dynamic_linker="$host_os dld.so"
25925 shlibpath_var=LD_LIBRARY_PATH
25926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25928 soname_spec='${libname}${release}${shared_ext}$major'
25929 if test "X$HPUX_IA64_MODE" = X32; then
25930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25931 else
25932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25933 fi
25934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25935 ;;
25936 hppa*64*)
25937 shrext_cmds='.sl'
25938 hardcode_into_libs=yes
25939 dynamic_linker="$host_os dld.sl"
25940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25943 soname_spec='${libname}${release}${shared_ext}$major'
25944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25946 ;;
25947 *)
25948 shrext_cmds='.sl'
25949 dynamic_linker="$host_os dld.sl"
25950 shlibpath_var=SHLIB_PATH
25951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25953 soname_spec='${libname}${release}${shared_ext}$major'
25954 ;;
25955 esac
25956 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25957 postinstall_cmds='chmod 555 $lib'
25958 ;;
25959
25960interix3*)
25961 version_type=linux
25962 need_lib_prefix=no
25963 need_version=no
25964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25965 soname_spec='${libname}${release}${shared_ext}$major'
25966 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25967 shlibpath_var=LD_LIBRARY_PATH
25968 shlibpath_overrides_runpath=no
25969 hardcode_into_libs=yes
25970 ;;
25971
25972irix5* | irix6* | nonstopux*)
25973 case $host_os in
25974 nonstopux*) version_type=nonstopux ;;
25975 *)
25976 if test "$lt_cv_prog_gnu_ld" = yes; then
25977 version_type=linux
25978 else
25979 version_type=irix
25980 fi ;;
25981 esac
25982 need_lib_prefix=no
25983 need_version=no
25984 soname_spec='${libname}${release}${shared_ext}$major'
25985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25986 case $host_os in
25987 irix5* | nonstopux*)
25988 libsuff= shlibsuff=
25989 ;;
25990 *)
25991 case $LD in # libtool.m4 will add one of these switches to LD
25992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25993 libsuff= shlibsuff= libmagic=32-bit;;
25994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25995 libsuff=32 shlibsuff=N32 libmagic=N32;;
25996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25998 *) libsuff= shlibsuff= libmagic=never-match;;
25999 esac
26000 ;;
26001 esac
26002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26003 shlibpath_overrides_runpath=no
26004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26006 hardcode_into_libs=yes
26007 ;;
26008
26009# No shared lib support for Linux oldld, aout, or coff.
26010linux*oldld* | linux*aout* | linux*coff*)
26011 dynamic_linker=no
26012 ;;
26013
26014# This must be Linux ELF.
26015linux*)
26016 version_type=linux
26017 need_lib_prefix=no
26018 need_version=no
26019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26020 soname_spec='${libname}${release}${shared_ext}$major'
26021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26022 shlibpath_var=LD_LIBRARY_PATH
26023 shlibpath_overrides_runpath=no
26024 # This implies no fast_install, which is unacceptable.
26025 # Some rework will be needed to allow for fast_install
26026 # before this can be enabled.
26027 hardcode_into_libs=yes
26028
26029 # Append ld.so.conf contents to the search path
26030 if test -f /etc/ld.so.conf; then
26031 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' ' '`
26032 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26033 fi
26034
26035 # We used to test for /lib/ld.so.1 and disable shared libraries on
26036 # powerpc, because MkLinux only supported shared libraries with the
26037 # GNU dynamic linker. Since this was broken with cross compilers,
26038 # most powerpc-linux boxes support dynamic linking these days and
26039 # people can always --disable-shared, the test was removed, and we
26040 # assume the GNU/Linux dynamic linker is in use.
26041 dynamic_linker='GNU/Linux ld.so'
26042 ;;
26043
26044knetbsd*-gnu)
26045 version_type=linux
26046 need_lib_prefix=no
26047 need_version=no
26048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26049 soname_spec='${libname}${release}${shared_ext}$major'
26050 shlibpath_var=LD_LIBRARY_PATH
26051 shlibpath_overrides_runpath=no
26052 hardcode_into_libs=yes
26053 dynamic_linker='GNU ld.so'
26054 ;;
26055
26056netbsd*)
26057 version_type=sunos
26058 need_lib_prefix=no
26059 need_version=no
26060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26063 dynamic_linker='NetBSD (a.out) ld.so'
26064 else
26065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26066 soname_spec='${libname}${release}${shared_ext}$major'
26067 dynamic_linker='NetBSD ld.elf_so'
26068 fi
26069 shlibpath_var=LD_LIBRARY_PATH
26070 shlibpath_overrides_runpath=yes
26071 hardcode_into_libs=yes
26072 ;;
26073
26074newsos6)
26075 version_type=linux
26076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26077 shlibpath_var=LD_LIBRARY_PATH
26078 shlibpath_overrides_runpath=yes
26079 ;;
26080
26081nto-qnx*)
26082 version_type=linux
26083 need_lib_prefix=no
26084 need_version=no
26085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26086 soname_spec='${libname}${release}${shared_ext}$major'
26087 shlibpath_var=LD_LIBRARY_PATH
26088 shlibpath_overrides_runpath=yes
26089 ;;
26090
26091openbsd*)
26092 version_type=sunos
26093 sys_lib_dlsearch_path_spec="/usr/lib"
26094 need_lib_prefix=no
26095 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26096 case $host_os in
26097 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26098 *) need_version=no ;;
26099 esac
26100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26102 shlibpath_var=LD_LIBRARY_PATH
26103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26104 case $host_os in
26105 openbsd2.[89] | openbsd2.[89].*)
26106 shlibpath_overrides_runpath=no
26107 ;;
26108 *)
26109 shlibpath_overrides_runpath=yes
26110 ;;
26111 esac
26112 else
26113 shlibpath_overrides_runpath=yes
26114 fi
26115 ;;
26116
26117os2*)
26118 libname_spec='$name'
26119 shrext_cmds=".dll"
26120 need_lib_prefix=no
26121 library_names_spec='$libname${shared_ext} $libname.a'
26122 dynamic_linker='OS/2 ld.exe'
26123 shlibpath_var=LIBPATH
26124 ;;
26125
26126osf3* | osf4* | osf5*)
26127 version_type=osf
26128 need_lib_prefix=no
26129 need_version=no
26130 soname_spec='${libname}${release}${shared_ext}$major'
26131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26132 shlibpath_var=LD_LIBRARY_PATH
26133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26135 ;;
26136
26137solaris*)
26138 version_type=linux
26139 need_lib_prefix=no
26140 need_version=no
26141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26142 soname_spec='${libname}${release}${shared_ext}$major'
26143 shlibpath_var=LD_LIBRARY_PATH
26144 shlibpath_overrides_runpath=yes
26145 hardcode_into_libs=yes
26146 # ldd complains unless libraries are executable
26147 postinstall_cmds='chmod +x $lib'
26148 ;;
26149
26150sunos4*)
26151 version_type=sunos
26152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26154 shlibpath_var=LD_LIBRARY_PATH
26155 shlibpath_overrides_runpath=yes
26156 if test "$with_gnu_ld" = yes; then
26157 need_lib_prefix=no
26158 fi
26159 need_version=yes
26160 ;;
26161
26162sysv4 | sysv4.3*)
26163 version_type=linux
26164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26165 soname_spec='${libname}${release}${shared_ext}$major'
26166 shlibpath_var=LD_LIBRARY_PATH
26167 case $host_vendor in
26168 sni)
26169 shlibpath_overrides_runpath=no
26170 need_lib_prefix=no
26171 export_dynamic_flag_spec='${wl}-Blargedynsym'
26172 runpath_var=LD_RUN_PATH
26173 ;;
26174 siemens)
26175 need_lib_prefix=no
26176 ;;
26177 motorola)
26178 need_lib_prefix=no
26179 need_version=no
26180 shlibpath_overrides_runpath=no
26181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26182 ;;
26183 esac
26184 ;;
26185
26186sysv4*MP*)
26187 if test -d /usr/nec ;then
26188 version_type=linux
26189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26190 soname_spec='$libname${shared_ext}.$major'
26191 shlibpath_var=LD_LIBRARY_PATH
26192 fi
26193 ;;
26194
26195sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26196 version_type=freebsd-elf
26197 need_lib_prefix=no
26198 need_version=no
26199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26200 soname_spec='${libname}${release}${shared_ext}$major'
26201 shlibpath_var=LD_LIBRARY_PATH
26202 hardcode_into_libs=yes
26203 if test "$with_gnu_ld" = yes; then
26204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26205 shlibpath_overrides_runpath=no
26206 else
26207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26208 shlibpath_overrides_runpath=yes
26209 case $host_os in
26210 sco3.2v5*)
26211 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26212 ;;
26213 esac
26214 fi
26215 sys_lib_dlsearch_path_spec='/usr/lib'
26216 ;;
26217
26218uts4*)
26219 version_type=linux
26220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26221 soname_spec='${libname}${release}${shared_ext}$major'
26222 shlibpath_var=LD_LIBRARY_PATH
26223 ;;
26224
26225*)
26226 dynamic_linker=no
26227 ;;
26228esac
26229{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26230echo "${ECHO_T}$dynamic_linker" >&6; }
26231test "$dynamic_linker" = no && can_build_shared=no
26232
26233variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26234if test "$GCC" = yes; then
26235 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26236fi
26237
26238{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26239echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26240hardcode_action_GCJ=
26241if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26242 test -n "$runpath_var_GCJ" || \
26243 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26244
26245 # We can hardcode non-existant directories.
26246 if test "$hardcode_direct_GCJ" != no &&
26247 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26248 # have to relink, otherwise we might link with an installed library
26249 # when we should be linking with a yet-to-be-installed one
26250 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26251 test "$hardcode_minus_L_GCJ" != no; then
26252 # Linking always hardcodes the temporary library directory.
26253 hardcode_action_GCJ=relink
26254 else
26255 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26256 hardcode_action_GCJ=immediate
26257 fi
26258else
26259 # We cannot hardcode anything, or else we can only hardcode existing
26260 # directories.
26261 hardcode_action_GCJ=unsupported
26262fi
26263{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26264echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26265
26266if test "$hardcode_action_GCJ" = relink; then
26267 # Fast installation is not supported
26268 enable_fast_install=no
26269elif test "$shlibpath_overrides_runpath" = yes ||
26270 test "$enable_shared" = no; then
26271 # Fast installation is not necessary
26272 enable_fast_install=needless
26273fi
26274
26275
26276# The else clause should only fire when bootstrapping the
26277# libtool distribution, otherwise you forgot to ship ltmain.sh
26278# with your package, and you will get complaints that there are
26279# no rules to generate ltmain.sh.
26280if test -f "$ltmain"; then
26281 # See if we are running on zsh, and set the options which allow our commands through
26282 # without removal of \ escapes.
26283 if test -n "${ZSH_VERSION+set}" ; then
26284 setopt NO_GLOB_SUBST
26285 fi
26286 # Now quote all the things that may contain metacharacters while being
26287 # careful not to overquote the AC_SUBSTed values. We take copies of the
26288 # variables and quote the copies for generation of the libtool script.
26289 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26290 SED SHELL STRIP \
26291 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26292 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26293 deplibs_check_method reload_flag reload_cmds need_locks \
26294 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26295 lt_cv_sys_global_symbol_to_c_name_address \
26296 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26297 old_postinstall_cmds old_postuninstall_cmds \
26298 compiler_GCJ \
26299 CC_GCJ \
26300 LD_GCJ \
26301 lt_prog_compiler_wl_GCJ \
26302 lt_prog_compiler_pic_GCJ \
26303 lt_prog_compiler_static_GCJ \
26304 lt_prog_compiler_no_builtin_flag_GCJ \
26305 export_dynamic_flag_spec_GCJ \
26306 thread_safe_flag_spec_GCJ \
26307 whole_archive_flag_spec_GCJ \
26308 enable_shared_with_static_runtimes_GCJ \
26309 old_archive_cmds_GCJ \
26310 old_archive_from_new_cmds_GCJ \
26311 predep_objects_GCJ \
26312 postdep_objects_GCJ \
26313 predeps_GCJ \
26314 postdeps_GCJ \
26315 compiler_lib_search_path_GCJ \
26316 archive_cmds_GCJ \
26317 archive_expsym_cmds_GCJ \
26318 postinstall_cmds_GCJ \
26319 postuninstall_cmds_GCJ \
26320 old_archive_from_expsyms_cmds_GCJ \
26321 allow_undefined_flag_GCJ \
26322 no_undefined_flag_GCJ \
26323 export_symbols_cmds_GCJ \
26324 hardcode_libdir_flag_spec_GCJ \
26325 hardcode_libdir_flag_spec_ld_GCJ \
26326 hardcode_libdir_separator_GCJ \
26327 hardcode_automatic_GCJ \
26328 module_cmds_GCJ \
26329 module_expsym_cmds_GCJ \
26330 lt_cv_prog_compiler_c_o_GCJ \
26331 exclude_expsyms_GCJ \
26332 include_expsyms_GCJ; do
26333
26334 case $var in
26335 old_archive_cmds_GCJ | \
26336 old_archive_from_new_cmds_GCJ | \
26337 archive_cmds_GCJ | \
26338 archive_expsym_cmds_GCJ | \
26339 module_cmds_GCJ | \
26340 module_expsym_cmds_GCJ | \
26341 old_archive_from_expsyms_cmds_GCJ | \
26342 export_symbols_cmds_GCJ | \
26343 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26344 postinstall_cmds | postuninstall_cmds | \
26345 old_postinstall_cmds | old_postuninstall_cmds | \
26346 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26347 # Double-quote double-evaled strings.
26348 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26349 ;;
26350 *)
26351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26352 ;;
26353 esac
26354 done
26355
26356 case $lt_echo in
26357 *'\$0 --fallback-echo"')
26358 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26359 ;;
26360 esac
26361
26362cfgfile="$ofile"
26363
26364 cat <<__EOF__ >> "$cfgfile"
26365# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26366
26367# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26368
26369# Shell to use when invoking shell scripts.
26370SHELL=$lt_SHELL
26371
26372# Whether or not to build shared libraries.
26373build_libtool_libs=$enable_shared
26374
26375# Whether or not to build static libraries.
26376build_old_libs=$enable_static
26377
26378# Whether or not to add -lc for building shared libraries.
26379build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26380
26381# Whether or not to disallow shared libs when runtime libs are static
26382allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26383
26384# Whether or not to optimize for fast installation.
26385fast_install=$enable_fast_install
26386
26387# The host system.
26388host_alias=$host_alias
26389host=$host
26390host_os=$host_os
26391
26392# The build system.
26393build_alias=$build_alias
26394build=$build
26395build_os=$build_os
26396
26397# An echo program that does not interpret backslashes.
26398echo=$lt_echo
26399
26400# The archiver.
26401AR=$lt_AR
26402AR_FLAGS=$lt_AR_FLAGS
26403
26404# A C compiler.
26405LTCC=$lt_LTCC
26406
26407# LTCC compiler flags.
26408LTCFLAGS=$lt_LTCFLAGS
26409
26410# A language-specific compiler.
26411CC=$lt_compiler_GCJ
26412
26413# Is the compiler the GNU C compiler?
26414with_gcc=$GCC_GCJ
26415
26416# An ERE matcher.
26417EGREP=$lt_EGREP
26418
26419# The linker used to build libraries.
26420LD=$lt_LD_GCJ
26421
26422# Whether we need hard or soft links.
26423LN_S=$lt_LN_S
26424
26425# A BSD-compatible nm program.
26426NM=$lt_NM
26427
26428# A symbol stripping program
26429STRIP=$lt_STRIP
26430
26431# Used to examine libraries when file_magic_cmd begins "file"
26432MAGIC_CMD=$MAGIC_CMD
26433
26434# Used on cygwin: DLL creation program.
26435DLLTOOL="$DLLTOOL"
26436
26437# Used on cygwin: object dumper.
26438OBJDUMP="$OBJDUMP"
26439
26440# Used on cygwin: assembler.
26441AS="$AS"
26442
26443# The name of the directory that contains temporary libtool files.
26444objdir=$objdir
26445
26446# How to create reloadable object files.
26447reload_flag=$lt_reload_flag
26448reload_cmds=$lt_reload_cmds
26449
26450# How to pass a linker flag through the compiler.
26451wl=$lt_lt_prog_compiler_wl_GCJ
26452
26453# Object file suffix (normally "o").
26454objext="$ac_objext"
26455
26456# Old archive suffix (normally "a").
26457libext="$libext"
26458
26459# Shared library suffix (normally ".so").
26460shrext_cmds='$shrext_cmds'
26461
26462# Executable file suffix (normally "").
26463exeext="$exeext"
26464
26465# Additional compiler flags for building library objects.
26466pic_flag=$lt_lt_prog_compiler_pic_GCJ
26467pic_mode=$pic_mode
26468
26469# What is the maximum length of a command?
26470max_cmd_len=$lt_cv_sys_max_cmd_len
26471
26472# Does compiler simultaneously support -c and -o options?
26473compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26474
26475# Must we lock files when doing compilation?
26476need_locks=$lt_need_locks
26477
26478# Do we need the lib prefix for modules?
26479need_lib_prefix=$need_lib_prefix
26480
26481# Do we need a version for libraries?
26482need_version=$need_version
26483
26484# Whether dlopen is supported.
26485dlopen_support=$enable_dlopen
26486
26487# Whether dlopen of programs is supported.
26488dlopen_self=$enable_dlopen_self
26489
26490# Whether dlopen of statically linked programs is supported.
26491dlopen_self_static=$enable_dlopen_self_static
26492
26493# Compiler flag to prevent dynamic linking.
26494link_static_flag=$lt_lt_prog_compiler_static_GCJ
26495
26496# Compiler flag to turn off builtin functions.
26497no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26498
26499# Compiler flag to allow reflexive dlopens.
26500export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26501
26502# Compiler flag to generate shared objects directly from archives.
26503whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26504
26505# Compiler flag to generate thread-safe objects.
26506thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26507
26508# Library versioning type.
26509version_type=$version_type
26510
26511# Format of library name prefix.
26512libname_spec=$lt_libname_spec
26513
26514# List of archive names. First name is the real one, the rest are links.
26515# The last name is the one that the linker finds with -lNAME.
26516library_names_spec=$lt_library_names_spec
26517
26518# The coded name of the library, if different from the real name.
26519soname_spec=$lt_soname_spec
26520
26521# Commands used to build and install an old-style archive.
26522RANLIB=$lt_RANLIB
26523old_archive_cmds=$lt_old_archive_cmds_GCJ
26524old_postinstall_cmds=$lt_old_postinstall_cmds
26525old_postuninstall_cmds=$lt_old_postuninstall_cmds
26526
26527# Create an old-style archive from a shared archive.
26528old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26529
26530# Create a temporary old-style archive to link instead of a shared archive.
26531old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26532
26533# Commands used to build and install a shared archive.
26534archive_cmds=$lt_archive_cmds_GCJ
26535archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26536postinstall_cmds=$lt_postinstall_cmds
26537postuninstall_cmds=$lt_postuninstall_cmds
26538
26539# Commands used to build a loadable module (assumed same as above if empty)
26540module_cmds=$lt_module_cmds_GCJ
26541module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26542
26543# Commands to strip libraries.
26544old_striplib=$lt_old_striplib
26545striplib=$lt_striplib
26546
26547# Dependencies to place before the objects being linked to create a
26548# shared library.
26549predep_objects=$lt_predep_objects_GCJ
26550
26551# Dependencies to place after the objects being linked to create a
26552# shared library.
26553postdep_objects=$lt_postdep_objects_GCJ
26554
26555# Dependencies to place before the objects being linked to create a
26556# shared library.
26557predeps=$lt_predeps_GCJ
26558
26559# Dependencies to place after the objects being linked to create a
26560# shared library.
26561postdeps=$lt_postdeps_GCJ
26562
26563# The library search path used internally by the compiler when linking
26564# a shared library.
26565compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26566
26567# Method to check whether dependent libraries are shared objects.
26568deplibs_check_method=$lt_deplibs_check_method
26569
26570# Command to use when deplibs_check_method == file_magic.
26571file_magic_cmd=$lt_file_magic_cmd
26572
26573# Flag that allows shared libraries with undefined symbols to be built.
26574allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26575
26576# Flag that forces no undefined symbols.
26577no_undefined_flag=$lt_no_undefined_flag_GCJ
26578
26579# Commands used to finish a libtool library installation in a directory.
26580finish_cmds=$lt_finish_cmds
26581
26582# Same as above, but a single script fragment to be evaled but not shown.
26583finish_eval=$lt_finish_eval
26584
26585# Take the output of nm and produce a listing of raw symbols and C names.
26586global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26587
26588# Transform the output of nm in a proper C declaration
26589global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26590
26591# Transform the output of nm in a C name address pair
26592global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26593
26594# This is the shared library runtime path variable.
26595runpath_var=$runpath_var
26596
26597# This is the shared library path variable.
26598shlibpath_var=$shlibpath_var
26599
26600# Is shlibpath searched before the hard-coded library search path?
26601shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26602
26603# How to hardcode a shared library path into an executable.
26604hardcode_action=$hardcode_action_GCJ
26605
26606# Whether we should hardcode library paths into libraries.
26607hardcode_into_libs=$hardcode_into_libs
26608
26609# Flag to hardcode \$libdir into a binary during linking.
26610# This must work even if \$libdir does not exist.
26611hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26612
26613# If ld is used when linking, flag to hardcode \$libdir into
26614# a binary during linking. This must work even if \$libdir does
26615# not exist.
26616hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26617
26618# Whether we need a single -rpath flag with a separated argument.
26619hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26620
26621# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26622# resulting binary.
26623hardcode_direct=$hardcode_direct_GCJ
26624
26625# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26626# resulting binary.
26627hardcode_minus_L=$hardcode_minus_L_GCJ
26628
26629# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26630# the resulting binary.
26631hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26632
26633# Set to yes if building a shared library automatically hardcodes DIR into the library
26634# and all subsequent libraries and executables linked against it.
26635hardcode_automatic=$hardcode_automatic_GCJ
26636
26637# Variables whose values should be saved in libtool wrapper scripts and
26638# restored at relink time.
26639variables_saved_for_relink="$variables_saved_for_relink"
26640
26641# Whether libtool must link a program against all its dependency libraries.
26642link_all_deplibs=$link_all_deplibs_GCJ
26643
26644# Compile-time system search path for libraries
26645sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26646
26647# Run-time system search path for libraries
26648sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26649
26650# Fix the shell variable \$srcfile for the compiler.
26651fix_srcfile_path="$fix_srcfile_path_GCJ"
26652
26653# Set to yes if exported symbols are required.
26654always_export_symbols=$always_export_symbols_GCJ
26655
26656# The commands to list exported symbols.
26657export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26658
26659# The commands to extract the exported symbol list from a shared archive.
26660extract_expsyms_cmds=$lt_extract_expsyms_cmds
26661
26662# Symbols that should not be listed in the preloaded symbols.
26663exclude_expsyms=$lt_exclude_expsyms_GCJ
26664
26665# Symbols that must always be exported.
26666include_expsyms=$lt_include_expsyms_GCJ
26667
26668# ### END LIBTOOL TAG CONFIG: $tagname
26669
26670__EOF__
26671
26672
26673else
26674 # If there is no Makefile yet, we rely on a make rule to execute
26675 # `config.status --recheck' to rerun these tests and create the
26676 # libtool script then.
26677 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26678 if test -f "$ltmain_in"; then
26679 test -f Makefile && make "$ltmain"
26680 fi
26681fi
26682
26683
26684ac_ext=c
26685ac_cpp='$CPP $CPPFLAGS'
26686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26688ac_compiler_gnu=$ac_cv_c_compiler_gnu
26689
26690CC="$lt_save_CC"
26691
26692 else
26693 tagname=""
26694 fi
26695 ;;
26696
26697 RC)
26698 ac_ext=c
26699ac_cpp='$CPP $CPPFLAGS'
26700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26702ac_compiler_gnu=$ac_cv_c_compiler_gnu
26703
26704
26705# Source file extension for RC test sources.
26706ac_ext=rc
26707
26708# Object file extension for compiled RC test sources.
26709objext=o
26710objext_RC=$objext
26711
26712# Code to be used in simple compile tests
26713lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26714
26715# Code to be used in simple link tests
26716lt_simple_link_test_code="$lt_simple_compile_test_code"
26717
26718# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26719
26720# If no C compiler was specified, use CC.
26721LTCC=${LTCC-"$CC"}
26722
26723# If no C compiler flags were specified, use CFLAGS.
26724LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26725
26726# Allow CC to be a program name with arguments.
26727compiler=$CC
26728
26729
26730# save warnings/boilerplate of simple test code
26731ac_outfile=conftest.$ac_objext
26732printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26733eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26734_lt_compiler_boilerplate=`cat conftest.err`
26735$rm conftest*
26736
26737ac_outfile=conftest.$ac_objext
26738printf "$lt_simple_link_test_code" >conftest.$ac_ext
26739eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26740_lt_linker_boilerplate=`cat conftest.err`
26741$rm conftest*
26742
26743
26744# Allow CC to be a program name with arguments.
26745lt_save_CC="$CC"
26746CC=${RC-"windres"}
26747compiler=$CC
26748compiler_RC=$CC
26749for cc_temp in $compiler""; do
26750 case $cc_temp in
26751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26753 \-*) ;;
26754 *) break;;
26755 esac
26756done
26757cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26758
26759lt_cv_prog_compiler_c_o_RC=yes
26760
26761# The else clause should only fire when bootstrapping the
26762# libtool distribution, otherwise you forgot to ship ltmain.sh
26763# with your package, and you will get complaints that there are
26764# no rules to generate ltmain.sh.
26765if test -f "$ltmain"; then
26766 # See if we are running on zsh, and set the options which allow our commands through
26767 # without removal of \ escapes.
26768 if test -n "${ZSH_VERSION+set}" ; then
26769 setopt NO_GLOB_SUBST
26770 fi
26771 # Now quote all the things that may contain metacharacters while being
26772 # careful not to overquote the AC_SUBSTed values. We take copies of the
26773 # variables and quote the copies for generation of the libtool script.
26774 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26775 SED SHELL STRIP \
26776 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26777 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26778 deplibs_check_method reload_flag reload_cmds need_locks \
26779 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26780 lt_cv_sys_global_symbol_to_c_name_address \
26781 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26782 old_postinstall_cmds old_postuninstall_cmds \
26783 compiler_RC \
26784 CC_RC \
26785 LD_RC \
26786 lt_prog_compiler_wl_RC \
26787 lt_prog_compiler_pic_RC \
26788 lt_prog_compiler_static_RC \
26789 lt_prog_compiler_no_builtin_flag_RC \
26790 export_dynamic_flag_spec_RC \
26791 thread_safe_flag_spec_RC \
26792 whole_archive_flag_spec_RC \
26793 enable_shared_with_static_runtimes_RC \
26794 old_archive_cmds_RC \
26795 old_archive_from_new_cmds_RC \
26796 predep_objects_RC \
26797 postdep_objects_RC \
26798 predeps_RC \
26799 postdeps_RC \
26800 compiler_lib_search_path_RC \
26801 archive_cmds_RC \
26802 archive_expsym_cmds_RC \
26803 postinstall_cmds_RC \
26804 postuninstall_cmds_RC \
26805 old_archive_from_expsyms_cmds_RC \
26806 allow_undefined_flag_RC \
26807 no_undefined_flag_RC \
26808 export_symbols_cmds_RC \
26809 hardcode_libdir_flag_spec_RC \
26810 hardcode_libdir_flag_spec_ld_RC \
26811 hardcode_libdir_separator_RC \
26812 hardcode_automatic_RC \
26813 module_cmds_RC \
26814 module_expsym_cmds_RC \
26815 lt_cv_prog_compiler_c_o_RC \
26816 exclude_expsyms_RC \
26817 include_expsyms_RC; do
26818
26819 case $var in
26820 old_archive_cmds_RC | \
26821 old_archive_from_new_cmds_RC | \
26822 archive_cmds_RC | \
26823 archive_expsym_cmds_RC | \
26824 module_cmds_RC | \
26825 module_expsym_cmds_RC | \
26826 old_archive_from_expsyms_cmds_RC | \
26827 export_symbols_cmds_RC | \
26828 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26829 postinstall_cmds | postuninstall_cmds | \
26830 old_postinstall_cmds | old_postuninstall_cmds | \
26831 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26832 # Double-quote double-evaled strings.
26833 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26834 ;;
26835 *)
26836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26837 ;;
26838 esac
26839 done
26840
26841 case $lt_echo in
26842 *'\$0 --fallback-echo"')
26843 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26844 ;;
26845 esac
26846
26847cfgfile="$ofile"
26848
26849 cat <<__EOF__ >> "$cfgfile"
26850# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26851
26852# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26853
26854# Shell to use when invoking shell scripts.
26855SHELL=$lt_SHELL
26856
26857# Whether or not to build shared libraries.
26858build_libtool_libs=$enable_shared
26859
26860# Whether or not to build static libraries.
26861build_old_libs=$enable_static
26862
26863# Whether or not to add -lc for building shared libraries.
26864build_libtool_need_lc=$archive_cmds_need_lc_RC
26865
26866# Whether or not to disallow shared libs when runtime libs are static
26867allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26868
26869# Whether or not to optimize for fast installation.
26870fast_install=$enable_fast_install
26871
26872# The host system.
26873host_alias=$host_alias
26874host=$host
26875host_os=$host_os
26876
26877# The build system.
26878build_alias=$build_alias
26879build=$build
26880build_os=$build_os
26881
26882# An echo program that does not interpret backslashes.
26883echo=$lt_echo
26884
26885# The archiver.
26886AR=$lt_AR
26887AR_FLAGS=$lt_AR_FLAGS
26888
26889# A C compiler.
26890LTCC=$lt_LTCC
26891
26892# LTCC compiler flags.
26893LTCFLAGS=$lt_LTCFLAGS
26894
26895# A language-specific compiler.
26896CC=$lt_compiler_RC
26897
26898# Is the compiler the GNU C compiler?
26899with_gcc=$GCC_RC
26900
26901# An ERE matcher.
26902EGREP=$lt_EGREP
26903
26904# The linker used to build libraries.
26905LD=$lt_LD_RC
26906
26907# Whether we need hard or soft links.
26908LN_S=$lt_LN_S
26909
26910# A BSD-compatible nm program.
26911NM=$lt_NM
26912
26913# A symbol stripping program
26914STRIP=$lt_STRIP
26915
26916# Used to examine libraries when file_magic_cmd begins "file"
26917MAGIC_CMD=$MAGIC_CMD
26918
26919# Used on cygwin: DLL creation program.
26920DLLTOOL="$DLLTOOL"
26921
26922# Used on cygwin: object dumper.
26923OBJDUMP="$OBJDUMP"
26924
26925# Used on cygwin: assembler.
26926AS="$AS"
26927
26928# The name of the directory that contains temporary libtool files.
26929objdir=$objdir
26930
26931# How to create reloadable object files.
26932reload_flag=$lt_reload_flag
26933reload_cmds=$lt_reload_cmds
26934
26935# How to pass a linker flag through the compiler.
26936wl=$lt_lt_prog_compiler_wl_RC
26937
26938# Object file suffix (normally "o").
26939objext="$ac_objext"
26940
26941# Old archive suffix (normally "a").
26942libext="$libext"
26943
26944# Shared library suffix (normally ".so").
26945shrext_cmds='$shrext_cmds'
26946
26947# Executable file suffix (normally "").
26948exeext="$exeext"
26949
26950# Additional compiler flags for building library objects.
26951pic_flag=$lt_lt_prog_compiler_pic_RC
26952pic_mode=$pic_mode
26953
26954# What is the maximum length of a command?
26955max_cmd_len=$lt_cv_sys_max_cmd_len
26956
26957# Does compiler simultaneously support -c and -o options?
26958compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26959
26960# Must we lock files when doing compilation?
26961need_locks=$lt_need_locks
26962
26963# Do we need the lib prefix for modules?
26964need_lib_prefix=$need_lib_prefix
26965
26966# Do we need a version for libraries?
26967need_version=$need_version
26968
26969# Whether dlopen is supported.
26970dlopen_support=$enable_dlopen
26971
26972# Whether dlopen of programs is supported.
26973dlopen_self=$enable_dlopen_self
26974
26975# Whether dlopen of statically linked programs is supported.
26976dlopen_self_static=$enable_dlopen_self_static
26977
26978# Compiler flag to prevent dynamic linking.
26979link_static_flag=$lt_lt_prog_compiler_static_RC
26980
26981# Compiler flag to turn off builtin functions.
26982no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26983
26984# Compiler flag to allow reflexive dlopens.
26985export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26986
26987# Compiler flag to generate shared objects directly from archives.
26988whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26989
26990# Compiler flag to generate thread-safe objects.
26991thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26992
26993# Library versioning type.
26994version_type=$version_type
26995
26996# Format of library name prefix.
26997libname_spec=$lt_libname_spec
26998
26999# List of archive names. First name is the real one, the rest are links.
27000# The last name is the one that the linker finds with -lNAME.
27001library_names_spec=$lt_library_names_spec
27002
27003# The coded name of the library, if different from the real name.
27004soname_spec=$lt_soname_spec
27005
27006# Commands used to build and install an old-style archive.
27007RANLIB=$lt_RANLIB
27008old_archive_cmds=$lt_old_archive_cmds_RC
27009old_postinstall_cmds=$lt_old_postinstall_cmds
27010old_postuninstall_cmds=$lt_old_postuninstall_cmds
27011
27012# Create an old-style archive from a shared archive.
27013old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27014
27015# Create a temporary old-style archive to link instead of a shared archive.
27016old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27017
27018# Commands used to build and install a shared archive.
27019archive_cmds=$lt_archive_cmds_RC
27020archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27021postinstall_cmds=$lt_postinstall_cmds
27022postuninstall_cmds=$lt_postuninstall_cmds
27023
27024# Commands used to build a loadable module (assumed same as above if empty)
27025module_cmds=$lt_module_cmds_RC
27026module_expsym_cmds=$lt_module_expsym_cmds_RC
27027
27028# Commands to strip libraries.
27029old_striplib=$lt_old_striplib
27030striplib=$lt_striplib
27031
27032# Dependencies to place before the objects being linked to create a
27033# shared library.
27034predep_objects=$lt_predep_objects_RC
27035
27036# Dependencies to place after the objects being linked to create a
27037# shared library.
27038postdep_objects=$lt_postdep_objects_RC
27039
27040# Dependencies to place before the objects being linked to create a
27041# shared library.
27042predeps=$lt_predeps_RC
27043
27044# Dependencies to place after the objects being linked to create a
27045# shared library.
27046postdeps=$lt_postdeps_RC
27047
27048# The library search path used internally by the compiler when linking
27049# a shared library.
27050compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27051
27052# Method to check whether dependent libraries are shared objects.
27053deplibs_check_method=$lt_deplibs_check_method
27054
27055# Command to use when deplibs_check_method == file_magic.
27056file_magic_cmd=$lt_file_magic_cmd
27057
27058# Flag that allows shared libraries with undefined symbols to be built.
27059allow_undefined_flag=$lt_allow_undefined_flag_RC
27060
27061# Flag that forces no undefined symbols.
27062no_undefined_flag=$lt_no_undefined_flag_RC
27063
27064# Commands used to finish a libtool library installation in a directory.
27065finish_cmds=$lt_finish_cmds
27066
27067# Same as above, but a single script fragment to be evaled but not shown.
27068finish_eval=$lt_finish_eval
27069
27070# Take the output of nm and produce a listing of raw symbols and C names.
27071global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27072
27073# Transform the output of nm in a proper C declaration
27074global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27075
27076# Transform the output of nm in a C name address pair
27077global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27078
27079# This is the shared library runtime path variable.
27080runpath_var=$runpath_var
27081
27082# This is the shared library path variable.
27083shlibpath_var=$shlibpath_var
27084
27085# Is shlibpath searched before the hard-coded library search path?
27086shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27087
27088# How to hardcode a shared library path into an executable.
27089hardcode_action=$hardcode_action_RC
27090
27091# Whether we should hardcode library paths into libraries.
27092hardcode_into_libs=$hardcode_into_libs
27093
27094# Flag to hardcode \$libdir into a binary during linking.
27095# This must work even if \$libdir does not exist.
27096hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27097
27098# If ld is used when linking, flag to hardcode \$libdir into
27099# a binary during linking. This must work even if \$libdir does
27100# not exist.
27101hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27102
27103# Whether we need a single -rpath flag with a separated argument.
27104hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27105
27106# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27107# resulting binary.
27108hardcode_direct=$hardcode_direct_RC
27109
27110# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27111# resulting binary.
27112hardcode_minus_L=$hardcode_minus_L_RC
27113
27114# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27115# the resulting binary.
27116hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27117
27118# Set to yes if building a shared library automatically hardcodes DIR into the library
27119# and all subsequent libraries and executables linked against it.
27120hardcode_automatic=$hardcode_automatic_RC
27121
27122# Variables whose values should be saved in libtool wrapper scripts and
27123# restored at relink time.
27124variables_saved_for_relink="$variables_saved_for_relink"
27125
27126# Whether libtool must link a program against all its dependency libraries.
27127link_all_deplibs=$link_all_deplibs_RC
27128
27129# Compile-time system search path for libraries
27130sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27131
27132# Run-time system search path for libraries
27133sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27134
27135# Fix the shell variable \$srcfile for the compiler.
27136fix_srcfile_path="$fix_srcfile_path_RC"
27137
27138# Set to yes if exported symbols are required.
27139always_export_symbols=$always_export_symbols_RC
27140
27141# The commands to list exported symbols.
27142export_symbols_cmds=$lt_export_symbols_cmds_RC
27143
27144# The commands to extract the exported symbol list from a shared archive.
27145extract_expsyms_cmds=$lt_extract_expsyms_cmds
27146
27147# Symbols that should not be listed in the preloaded symbols.
27148exclude_expsyms=$lt_exclude_expsyms_RC
27149
27150# Symbols that must always be exported.
27151include_expsyms=$lt_include_expsyms_RC
27152
27153# ### END LIBTOOL TAG CONFIG: $tagname
27154
27155__EOF__
27156
27157
27158else
27159 # If there is no Makefile yet, we rely on a make rule to execute
27160 # `config.status --recheck' to rerun these tests and create the
27161 # libtool script then.
27162 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27163 if test -f "$ltmain_in"; then
27164 test -f Makefile && make "$ltmain"
27165 fi
27166fi
27167
27168
27169ac_ext=c
27170ac_cpp='$CPP $CPPFLAGS'
27171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27173ac_compiler_gnu=$ac_cv_c_compiler_gnu
27174
27175CC="$lt_save_CC"
27176
27177 ;;
27178
27179 *)
27180 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27181echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27182 { (exit 1); exit 1; }; }
27183 ;;
27184 esac
27185
27186 # Append the new tag name to the list of available tags.
27187 if test -n "$tagname" ; then
27188 available_tags="$available_tags $tagname"
27189 fi
27190 fi
27191 done
27192 IFS="$lt_save_ifs"
27193
27194 # Now substitute the updated list of available tags.
27195 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27196 mv "${ofile}T" "$ofile"
27197 chmod +x "$ofile"
27198 else
27199 rm -f "${ofile}T"
27200 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27201echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27202 { (exit 1); exit 1; }; }
27203 fi
27204fi
27205
27206
27207
27208# This can be used to rebuild libtool when needed
27209LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27210
27211# Always use our own libtool.
27212LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27213
27214# Prevent multiple expansion
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236if test "$lt_cv_dlopen_self" = "yes" ; then
27237
27238cat >>confdefs.h <<\_ACEOF
27239#define CAN_DLOPEN_SELF 1
27240_ACEOF
27241
27242fi
27243
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000027244
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027245if test "$WITH_LLVMGCCDIR" = "default" ; then
27246 LLVMGCC="llvm-gcc${EXEEXT}"
27247 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027248 LLVMGCCCOMMAND="$LLVMGCC"
27249 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027250 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27251
27252 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27253
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027254 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27255set dummy $LLVMGCC; ac_word=$2
27256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27258if test "${ac_cv_path_LLVMGCC+set}" = set; then
27259 echo $ECHO_N "(cached) $ECHO_C" >&6
27260else
27261 case $LLVMGCC in
27262 [\\/]* | ?:[\\/]*)
27263 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27264 ;;
27265 *)
27266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27267for as_dir in $PATH
27268do
27269 IFS=$as_save_IFS
27270 test -z "$as_dir" && as_dir=.
27271 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027272 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 +000027273 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27275 break 2
27276 fi
27277done
27278done
27279IFS=$as_save_IFS
27280
27281 ;;
27282esac
27283fi
27284LLVMGCC=$ac_cv_path_LLVMGCC
27285if test -n "$LLVMGCC"; then
27286 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27287echo "${ECHO_T}$LLVMGCC" >&6; }
27288else
27289 { echo "$as_me:$LINENO: result: no" >&5
27290echo "${ECHO_T}no" >&6; }
27291fi
27292
27293
27294 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27295set dummy $LLVMGXX; ac_word=$2
27296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27298if test "${ac_cv_path_LLVMGXX+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27300else
27301 case $LLVMGXX in
27302 [\\/]* | ?:[\\/]*)
27303 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27304 ;;
27305 *)
27306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27307for as_dir in $PATH
27308do
27309 IFS=$as_save_IFS
27310 test -z "$as_dir" && as_dir=.
27311 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027312 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 +000027313 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27315 break 2
27316 fi
27317done
27318done
27319IFS=$as_save_IFS
27320
27321 ;;
27322esac
27323fi
27324LLVMGXX=$ac_cv_path_LLVMGXX
27325if test -n "$LLVMGXX"; then
27326 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27327echo "${ECHO_T}$LLVMGXX" >&6; }
27328else
27329 { echo "$as_me:$LINENO: result: no" >&5
27330echo "${ECHO_T}no" >&6; }
27331fi
27332
27333
27334else
Devang Pateld84ba7b2007-12-04 22:54:47 +000027335 if test -z "$LLVMGCC"; then
27336 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027337 LLVMGCCCOMMAND="$LLVMGCC"
Devang Pateld84ba7b2007-12-04 22:54:47 +000027338 fi
27339 if test -z "$LLVMGXX"; then
27340 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027341 LLVMGXXCOMMAND="$LLVMGXX"
Devang Pateld84ba7b2007-12-04 22:54:47 +000027342 fi
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027343
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027344 LLVMGCC=$LLVMGCC
27345
27346 LLVMGXX=$LLVMGXX
27347
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027348 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27349
27350 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27351
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027352fi
27353
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027354
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027355{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27356echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27357
27358ICC=no
27359IXX=no
27360case $CC in
27361 icc*|icpc*)
27362 ICC=yes
27363 IXX=yes
27364 ;;
27365 *)
27366 ;;
27367esac
27368
27369if test "$GCC" != "yes" && test "$ICC" != "yes"
27370then
27371 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27372echo "$as_me: error: gcc|icc required but not found" >&2;}
27373 { (exit 1); exit 1; }; }
27374fi
27375
27376if test "$GXX" != "yes" && test "$IXX" != "yes"
27377then
27378 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27379echo "$as_me: error: g++|icc required but not found" >&2;}
27380 { (exit 1); exit 1; }; }
27381fi
27382
27383if test "$GCC" = "yes"
27384then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027385 cat >conftest.$ac_ext <<_ACEOF
27386#if !defined(__GNUC__) || __GNUC__ < 3
27387#error Unsupported GCC version
27388#endif
27389
27390_ACEOF
27391rm -f conftest.$ac_objext
27392if { (ac_try="$ac_compile"
27393case "(($ac_try" in
27394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27395 *) ac_try_echo=$ac_try;;
27396esac
27397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27398 (eval "$ac_compile") 2>conftest.er1
27399 ac_status=$?
27400 grep -v '^ *+' conftest.er1 >conftest.err
27401 rm -f conftest.er1
27402 cat conftest.err >&5
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027404 (exit $ac_status); } &&
27405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27406 { (case "(($ac_try" in
27407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408 *) ac_try_echo=$ac_try;;
27409esac
27410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411 (eval "$ac_try") 2>&5
27412 ac_status=$?
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; } &&
27415 { ac_try='test -s conftest.$ac_objext'
27416 { (case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27419esac
27420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27421 (eval "$ac_try") 2>&5
27422 ac_status=$?
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); }; }; then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027425 :
27426else
27427 echo "$as_me: failed program was:" >&5
27428sed 's/^/| /' conftest.$ac_ext >&5
27429
27430 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027431echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27432 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027433fi
27434
27435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027436fi
27437
27438if test -z "$llvm_cv_gnu_make_command"
27439then
27440 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27441echo "$as_me: error: GNU Make required but not found" >&2;}
27442 { (exit 1); exit 1; }; }
27443fi
27444
27445{ echo "$as_me:$LINENO: result: ok" >&5
27446echo "${ECHO_T}ok" >&6; }
27447
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000027448
27449
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027450{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27451echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27452if test "${ac_cv_lib_m_sin+set}" = set; then
27453 echo $ECHO_N "(cached) $ECHO_C" >&6
27454else
27455 ac_check_lib_save_LIBS=$LIBS
27456LIBS="-lm $LIBS"
27457cat >conftest.$ac_ext <<_ACEOF
27458/* confdefs.h. */
27459_ACEOF
27460cat confdefs.h >>conftest.$ac_ext
27461cat >>conftest.$ac_ext <<_ACEOF
27462/* end confdefs.h. */
27463
27464/* Override any GCC internal prototype to avoid an error.
27465 Use char because int might match the return type of a GCC
27466 builtin and then its argument prototype would still apply. */
27467#ifdef __cplusplus
27468extern "C"
27469#endif
27470char sin ();
27471int
27472main ()
27473{
27474return sin ();
27475 ;
27476 return 0;
27477}
27478_ACEOF
27479rm -f conftest.$ac_objext conftest$ac_exeext
27480if { (ac_try="$ac_link"
27481case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27484esac
27485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_link") 2>conftest.er1
27487 ac_status=$?
27488 grep -v '^ *+' conftest.er1 >conftest.err
27489 rm -f conftest.er1
27490 cat conftest.err >&5
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027492 (exit $ac_status); } &&
27493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27494 { (case "(($ac_try" in
27495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27496 *) ac_try_echo=$ac_try;;
27497esac
27498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27499 (eval "$ac_try") 2>&5
27500 ac_status=$?
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; } &&
27503 { ac_try='test -s conftest$ac_exeext'
27504 { (case "(($ac_try" in
27505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27506 *) ac_try_echo=$ac_try;;
27507esac
27508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27509 (eval "$ac_try") 2>&5
27510 ac_status=$?
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027513 ac_cv_lib_m_sin=yes
27514else
27515 echo "$as_me: failed program was:" >&5
27516sed 's/^/| /' conftest.$ac_ext >&5
27517
27518 ac_cv_lib_m_sin=no
27519fi
27520
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027521rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027522 conftest$ac_exeext conftest.$ac_ext
27523LIBS=$ac_check_lib_save_LIBS
27524fi
27525{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27526echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27527if test $ac_cv_lib_m_sin = yes; then
27528 cat >>confdefs.h <<_ACEOF
27529#define HAVE_LIBM 1
27530_ACEOF
27531
27532 LIBS="-lm $LIBS"
27533
27534fi
27535
27536if test "$llvm_cv_os_type" = "MingW" ; then
27537
27538{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27539echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27540if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27541 echo $ECHO_N "(cached) $ECHO_C" >&6
27542else
27543 ac_check_lib_save_LIBS=$LIBS
27544LIBS="-limagehlp $LIBS"
27545cat >conftest.$ac_ext <<_ACEOF
27546/* confdefs.h. */
27547_ACEOF
27548cat confdefs.h >>conftest.$ac_ext
27549cat >>conftest.$ac_ext <<_ACEOF
27550/* end confdefs.h. */
27551
27552
27553int
27554main ()
27555{
27556return main ();
27557 ;
27558 return 0;
27559}
27560_ACEOF
27561rm -f conftest.$ac_objext conftest$ac_exeext
27562if { (ac_try="$ac_link"
27563case "(($ac_try" in
27564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27566esac
27567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_link") 2>conftest.er1
27569 ac_status=$?
27570 grep -v '^ *+' conftest.er1 >conftest.err
27571 rm -f conftest.er1
27572 cat conftest.err >&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027574 (exit $ac_status); } &&
27575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27576 { (case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27579esac
27580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_try") 2>&5
27582 ac_status=$?
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; } &&
27585 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027595 ac_cv_lib_imagehlp_main=yes
27596else
27597 echo "$as_me: failed program was:" >&5
27598sed 's/^/| /' conftest.$ac_ext >&5
27599
27600 ac_cv_lib_imagehlp_main=no
27601fi
27602
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027603rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027604 conftest$ac_exeext conftest.$ac_ext
27605LIBS=$ac_check_lib_save_LIBS
27606fi
27607{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27608echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27609if test $ac_cv_lib_imagehlp_main = yes; then
27610 cat >>confdefs.h <<_ACEOF
27611#define HAVE_LIBIMAGEHLP 1
27612_ACEOF
27613
27614 LIBS="-limagehlp $LIBS"
27615
27616fi
27617
27618
27619{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27620echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27621if test "${ac_cv_lib_psapi_main+set}" = set; then
27622 echo $ECHO_N "(cached) $ECHO_C" >&6
27623else
27624 ac_check_lib_save_LIBS=$LIBS
27625LIBS="-lpsapi $LIBS"
27626cat >conftest.$ac_ext <<_ACEOF
27627/* confdefs.h. */
27628_ACEOF
27629cat confdefs.h >>conftest.$ac_ext
27630cat >>conftest.$ac_ext <<_ACEOF
27631/* end confdefs.h. */
27632
27633
27634int
27635main ()
27636{
27637return main ();
27638 ;
27639 return 0;
27640}
27641_ACEOF
27642rm -f conftest.$ac_objext conftest$ac_exeext
27643if { (ac_try="$ac_link"
27644case "(($ac_try" in
27645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27646 *) ac_try_echo=$ac_try;;
27647esac
27648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27649 (eval "$ac_link") 2>conftest.er1
27650 ac_status=$?
27651 grep -v '^ *+' conftest.er1 >conftest.err
27652 rm -f conftest.er1
27653 cat conftest.err >&5
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027655 (exit $ac_status); } &&
27656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27657 { (case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27660esac
27661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_try") 2>&5
27663 ac_status=$?
27664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665 (exit $ac_status); }; } &&
27666 { ac_try='test -s conftest$ac_exeext'
27667 { (case "(($ac_try" in
27668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669 *) ac_try_echo=$ac_try;;
27670esac
27671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27672 (eval "$ac_try") 2>&5
27673 ac_status=$?
27674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027676 ac_cv_lib_psapi_main=yes
27677else
27678 echo "$as_me: failed program was:" >&5
27679sed 's/^/| /' conftest.$ac_ext >&5
27680
27681 ac_cv_lib_psapi_main=no
27682fi
27683
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027684rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027685 conftest$ac_exeext conftest.$ac_ext
27686LIBS=$ac_check_lib_save_LIBS
27687fi
27688{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27689echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27690if test $ac_cv_lib_psapi_main = yes; then
27691 cat >>confdefs.h <<_ACEOF
27692#define HAVE_LIBPSAPI 1
27693_ACEOF
27694
27695 LIBS="-lpsapi $LIBS"
27696
27697fi
27698
27699fi
27700
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027701{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27702echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27703if test "${ac_cv_search_dlopen+set}" = set; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27705else
27706 ac_func_search_save_LIBS=$LIBS
27707cat >conftest.$ac_ext <<_ACEOF
27708/* confdefs.h. */
27709_ACEOF
27710cat confdefs.h >>conftest.$ac_ext
27711cat >>conftest.$ac_ext <<_ACEOF
27712/* end confdefs.h. */
27713
27714/* Override any GCC internal prototype to avoid an error.
27715 Use char because int might match the return type of a GCC
27716 builtin and then its argument prototype would still apply. */
27717#ifdef __cplusplus
27718extern "C"
27719#endif
27720char dlopen ();
27721int
27722main ()
27723{
27724return dlopen ();
27725 ;
27726 return 0;
27727}
27728_ACEOF
27729for ac_lib in '' dl; do
27730 if test -z "$ac_lib"; then
27731 ac_res="none required"
27732 else
27733 ac_res=-l$ac_lib
27734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27735 fi
27736 rm -f conftest.$ac_objext conftest$ac_exeext
27737if { (ac_try="$ac_link"
27738case "(($ac_try" in
27739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740 *) ac_try_echo=$ac_try;;
27741esac
27742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27743 (eval "$ac_link") 2>conftest.er1
27744 ac_status=$?
27745 grep -v '^ *+' conftest.er1 >conftest.err
27746 rm -f conftest.er1
27747 cat conftest.err >&5
27748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027749 (exit $ac_status); } &&
27750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27751 { (case "(($ac_try" in
27752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753 *) ac_try_echo=$ac_try;;
27754esac
27755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27756 (eval "$ac_try") 2>&5
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; } &&
27760 { ac_try='test -s conftest$ac_exeext'
27761 { (case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27764esac
27765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_try") 2>&5
27767 ac_status=$?
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027770 ac_cv_search_dlopen=$ac_res
27771else
27772 echo "$as_me: failed program was:" >&5
27773sed 's/^/| /' conftest.$ac_ext >&5
27774
27775
27776fi
27777
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027778rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027779 conftest$ac_exeext
27780 if test "${ac_cv_search_dlopen+set}" = set; then
27781 break
27782fi
27783done
27784if test "${ac_cv_search_dlopen+set}" = set; then
27785 :
27786else
27787 ac_cv_search_dlopen=no
27788fi
27789rm conftest.$ac_ext
27790LIBS=$ac_func_search_save_LIBS
27791fi
27792{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27793echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27794ac_res=$ac_cv_search_dlopen
27795if test "$ac_res" != no; then
27796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27797
27798cat >>confdefs.h <<\_ACEOF
27799#define HAVE_DLOPEN 1
27800_ACEOF
27801
27802else
27803 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27804echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27805fi
27806
27807
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000027808if test "$llvm_cv_enable_libffi" = "yes" ; then
27809 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000027810echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27811if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky0235b622009-02-04 06:27:44 +000027812 echo $ECHO_N "(cached) $ECHO_C" >&6
27813else
Nick Lewycky6c58a402009-04-13 04:26:27 +000027814 ac_func_search_save_LIBS=$LIBS
Nick Lewycky0235b622009-02-04 06:27:44 +000027815cat >conftest.$ac_ext <<_ACEOF
27816/* confdefs.h. */
27817_ACEOF
27818cat confdefs.h >>conftest.$ac_ext
27819cat >>conftest.$ac_ext <<_ACEOF
27820/* end confdefs.h. */
27821
27822/* Override any GCC internal prototype to avoid an error.
27823 Use char because int might match the return type of a GCC
27824 builtin and then its argument prototype would still apply. */
27825#ifdef __cplusplus
27826extern "C"
27827#endif
27828char ffi_call ();
27829int
27830main ()
27831{
27832return ffi_call ();
27833 ;
27834 return 0;
27835}
27836_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000027837for ac_lib in '' ffi; do
27838 if test -z "$ac_lib"; then
27839 ac_res="none required"
27840 else
27841 ac_res=-l$ac_lib
27842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27843 fi
27844 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewycky0235b622009-02-04 06:27:44 +000027845if { (ac_try="$ac_link"
27846case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27849esac
27850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_link") 2>conftest.er1
27852 ac_status=$?
27853 grep -v '^ *+' conftest.er1 >conftest.err
27854 rm -f conftest.er1
27855 cat conftest.err >&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027857 (exit $ac_status); } &&
27858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27859 { (case "(($ac_try" in
27860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861 *) ac_try_echo=$ac_try;;
27862esac
27863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864 (eval "$ac_try") 2>&5
27865 ac_status=$?
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); }; } &&
27868 { ac_try='test -s conftest$ac_exeext'
27869 { (case "(($ac_try" in
27870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871 *) ac_try_echo=$ac_try;;
27872esac
27873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27874 (eval "$ac_try") 2>&5
27875 ac_status=$?
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000027878 ac_cv_search_ffi_call=$ac_res
Nick Lewycky0235b622009-02-04 06:27:44 +000027879else
27880 echo "$as_me: failed program was:" >&5
27881sed 's/^/| /' conftest.$ac_ext >&5
27882
Nick Lewycky6c58a402009-04-13 04:26:27 +000027883
Nick Lewycky0235b622009-02-04 06:27:44 +000027884fi
27885
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027886rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky6c58a402009-04-13 04:26:27 +000027887 conftest$ac_exeext
27888 if test "${ac_cv_search_ffi_call+set}" = set; then
27889 break
Nick Lewycky0235b622009-02-04 06:27:44 +000027890fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000027891done
27892if test "${ac_cv_search_ffi_call+set}" = set; then
27893 :
27894else
27895 ac_cv_search_ffi_call=no
27896fi
27897rm conftest.$ac_ext
27898LIBS=$ac_func_search_save_LIBS
27899fi
27900{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27901echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27902ac_res=$ac_cv_search_ffi_call
27903if test "$ac_res" != no; then
27904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27905
27906cat >>confdefs.h <<\_ACEOF
27907#define HAVE_FFI_CALL 1
27908_ACEOF
27909
Nick Lewycky0235b622009-02-04 06:27:44 +000027910else
27911 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27912echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27913fi
27914
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000027915fi
Nick Lewycky0235b622009-02-04 06:27:44 +000027916
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027917{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27918echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27919if test "${ac_cv_search_mallinfo+set}" = set; then
27920 echo $ECHO_N "(cached) $ECHO_C" >&6
27921else
27922 ac_func_search_save_LIBS=$LIBS
27923cat >conftest.$ac_ext <<_ACEOF
27924/* confdefs.h. */
27925_ACEOF
27926cat confdefs.h >>conftest.$ac_ext
27927cat >>conftest.$ac_ext <<_ACEOF
27928/* end confdefs.h. */
27929
27930/* Override any GCC internal prototype to avoid an error.
27931 Use char because int might match the return type of a GCC
27932 builtin and then its argument prototype would still apply. */
27933#ifdef __cplusplus
27934extern "C"
27935#endif
27936char mallinfo ();
27937int
27938main ()
27939{
27940return mallinfo ();
27941 ;
27942 return 0;
27943}
27944_ACEOF
27945for ac_lib in '' malloc; do
27946 if test -z "$ac_lib"; then
27947 ac_res="none required"
27948 else
27949 ac_res=-l$ac_lib
27950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27951 fi
27952 rm -f conftest.$ac_objext conftest$ac_exeext
27953if { (ac_try="$ac_link"
27954case "(($ac_try" in
27955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27956 *) ac_try_echo=$ac_try;;
27957esac
27958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27959 (eval "$ac_link") 2>conftest.er1
27960 ac_status=$?
27961 grep -v '^ *+' conftest.er1 >conftest.err
27962 rm -f conftest.er1
27963 cat conftest.err >&5
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027965 (exit $ac_status); } &&
27966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27967 { (case "(($ac_try" in
27968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969 *) ac_try_echo=$ac_try;;
27970esac
27971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27972 (eval "$ac_try") 2>&5
27973 ac_status=$?
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); }; } &&
27976 { ac_try='test -s conftest$ac_exeext'
27977 { (case "(($ac_try" in
27978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979 *) ac_try_echo=$ac_try;;
27980esac
27981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982 (eval "$ac_try") 2>&5
27983 ac_status=$?
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027986 ac_cv_search_mallinfo=$ac_res
27987else
27988 echo "$as_me: failed program was:" >&5
27989sed 's/^/| /' conftest.$ac_ext >&5
27990
27991
27992fi
27993
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027994rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027995 conftest$ac_exeext
27996 if test "${ac_cv_search_mallinfo+set}" = set; then
27997 break
27998fi
27999done
28000if test "${ac_cv_search_mallinfo+set}" = set; then
28001 :
28002else
28003 ac_cv_search_mallinfo=no
28004fi
28005rm conftest.$ac_ext
28006LIBS=$ac_func_search_save_LIBS
28007fi
28008{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28009echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28010ac_res=$ac_cv_search_mallinfo
28011if test "$ac_res" != no; then
28012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28013
28014cat >>confdefs.h <<\_ACEOF
28015#define HAVE_MALLINFO 1
28016_ACEOF
28017
28018fi
28019
28020
28021if test "$ENABLE_THREADS" -eq 1 ; then
28022
28023{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28024echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28025if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28027else
28028 ac_check_lib_save_LIBS=$LIBS
28029LIBS="-lpthread $LIBS"
28030cat >conftest.$ac_ext <<_ACEOF
28031/* confdefs.h. */
28032_ACEOF
28033cat confdefs.h >>conftest.$ac_ext
28034cat >>conftest.$ac_ext <<_ACEOF
28035/* end confdefs.h. */
28036
28037/* Override any GCC internal prototype to avoid an error.
28038 Use char because int might match the return type of a GCC
28039 builtin and then its argument prototype would still apply. */
28040#ifdef __cplusplus
28041extern "C"
28042#endif
28043char pthread_mutex_init ();
28044int
28045main ()
28046{
28047return pthread_mutex_init ();
28048 ;
28049 return 0;
28050}
28051_ACEOF
28052rm -f conftest.$ac_objext conftest$ac_exeext
28053if { (ac_try="$ac_link"
28054case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28057esac
28058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_link") 2>conftest.er1
28060 ac_status=$?
28061 grep -v '^ *+' conftest.er1 >conftest.err
28062 rm -f conftest.er1
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28070esac
28071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
28073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest$ac_exeext'
28077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28080esac
28081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
28083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028086 ac_cv_lib_pthread_pthread_mutex_init=yes
28087else
28088 echo "$as_me: failed program was:" >&5
28089sed 's/^/| /' conftest.$ac_ext >&5
28090
28091 ac_cv_lib_pthread_pthread_mutex_init=no
28092fi
28093
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028094rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028095 conftest$ac_exeext conftest.$ac_ext
28096LIBS=$ac_check_lib_save_LIBS
28097fi
28098{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28099echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28100if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28101 cat >>confdefs.h <<_ACEOF
28102#define HAVE_LIBPTHREAD 1
28103_ACEOF
28104
28105 LIBS="-lpthread $LIBS"
28106
28107fi
28108
28109 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28110echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28111if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28112 echo $ECHO_N "(cached) $ECHO_C" >&6
28113else
28114 ac_func_search_save_LIBS=$LIBS
28115cat >conftest.$ac_ext <<_ACEOF
28116/* confdefs.h. */
28117_ACEOF
28118cat confdefs.h >>conftest.$ac_ext
28119cat >>conftest.$ac_ext <<_ACEOF
28120/* end confdefs.h. */
28121
28122/* Override any GCC internal prototype to avoid an error.
28123 Use char because int might match the return type of a GCC
28124 builtin and then its argument prototype would still apply. */
28125#ifdef __cplusplus
28126extern "C"
28127#endif
28128char pthread_mutex_lock ();
28129int
28130main ()
28131{
28132return pthread_mutex_lock ();
28133 ;
28134 return 0;
28135}
28136_ACEOF
28137for ac_lib in '' pthread; do
28138 if test -z "$ac_lib"; then
28139 ac_res="none required"
28140 else
28141 ac_res=-l$ac_lib
28142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28143 fi
28144 rm -f conftest.$ac_objext conftest$ac_exeext
28145if { (ac_try="$ac_link"
28146case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28149esac
28150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151 (eval "$ac_link") 2>conftest.er1
28152 ac_status=$?
28153 grep -v '^ *+' conftest.er1 >conftest.err
28154 rm -f conftest.er1
28155 cat conftest.err >&5
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028157 (exit $ac_status); } &&
28158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28159 { (case "(($ac_try" in
28160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161 *) ac_try_echo=$ac_try;;
28162esac
28163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28164 (eval "$ac_try") 2>&5
28165 ac_status=$?
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; } &&
28168 { ac_try='test -s conftest$ac_exeext'
28169 { (case "(($ac_try" in
28170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171 *) ac_try_echo=$ac_try;;
28172esac
28173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174 (eval "$ac_try") 2>&5
28175 ac_status=$?
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028178 ac_cv_search_pthread_mutex_lock=$ac_res
28179else
28180 echo "$as_me: failed program was:" >&5
28181sed 's/^/| /' conftest.$ac_ext >&5
28182
28183
28184fi
28185
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028186rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028187 conftest$ac_exeext
28188 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28189 break
28190fi
28191done
28192if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28193 :
28194else
28195 ac_cv_search_pthread_mutex_lock=no
28196fi
28197rm conftest.$ac_ext
28198LIBS=$ac_func_search_save_LIBS
28199fi
28200{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28201echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28202ac_res=$ac_cv_search_pthread_mutex_lock
28203if test "$ac_res" != no; then
28204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28205
28206cat >>confdefs.h <<\_ACEOF
28207#define HAVE_PTHREAD_MUTEX_LOCK 1
28208_ACEOF
28209
28210fi
28211
Owen Anderson23c36602009-06-16 18:20:20 +000028212 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28213echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28214if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28215 echo $ECHO_N "(cached) $ECHO_C" >&6
28216else
28217 ac_func_search_save_LIBS=$LIBS
28218cat >conftest.$ac_ext <<_ACEOF
28219/* confdefs.h. */
28220_ACEOF
28221cat confdefs.h >>conftest.$ac_ext
28222cat >>conftest.$ac_ext <<_ACEOF
28223/* end confdefs.h. */
28224
28225/* Override any GCC internal prototype to avoid an error.
28226 Use char because int might match the return type of a GCC
28227 builtin and then its argument prototype would still apply. */
28228#ifdef __cplusplus
28229extern "C"
28230#endif
28231char pthread_rwlock_init ();
28232int
28233main ()
28234{
28235return pthread_rwlock_init ();
28236 ;
28237 return 0;
28238}
28239_ACEOF
28240for ac_lib in '' pthread; do
28241 if test -z "$ac_lib"; then
28242 ac_res="none required"
28243 else
28244 ac_res=-l$ac_lib
28245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28246 fi
28247 rm -f conftest.$ac_objext conftest$ac_exeext
28248if { (ac_try="$ac_link"
28249case "(($ac_try" in
28250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251 *) ac_try_echo=$ac_try;;
28252esac
28253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254 (eval "$ac_link") 2>conftest.er1
28255 ac_status=$?
28256 grep -v '^ *+' conftest.er1 >conftest.err
28257 rm -f conftest.er1
28258 cat conftest.err >&5
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } &&
28261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28262 { (case "(($ac_try" in
28263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264 *) ac_try_echo=$ac_try;;
28265esac
28266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267 (eval "$ac_try") 2>&5
28268 ac_status=$?
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; } &&
28271 { ac_try='test -s conftest$ac_exeext'
28272 { (case "(($ac_try" in
28273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274 *) ac_try_echo=$ac_try;;
28275esac
28276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277 (eval "$ac_try") 2>&5
28278 ac_status=$?
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; }; then
28281 ac_cv_search_pthread_rwlock_init=$ac_res
28282else
28283 echo "$as_me: failed program was:" >&5
28284sed 's/^/| /' conftest.$ac_ext >&5
28285
28286
28287fi
28288
28289rm -f core conftest.err conftest.$ac_objext \
28290 conftest$ac_exeext
28291 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28292 break
28293fi
28294done
28295if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28296 :
28297else
28298 ac_cv_search_pthread_rwlock_init=no
28299fi
28300rm conftest.$ac_ext
28301LIBS=$ac_func_search_save_LIBS
28302fi
28303{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28304echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28305ac_res=$ac_cv_search_pthread_rwlock_init
28306if test "$ac_res" != no; then
28307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28308
28309cat >>confdefs.h <<\_ACEOF
28310#define HAVE_PTHREAD_RWLOCK_INIT 1
28311_ACEOF
28312
28313fi
28314
Owen Andersoncc135af2009-06-25 23:10:26 +000028315 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28316echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28317if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28318 echo $ECHO_N "(cached) $ECHO_C" >&6
28319else
28320 ac_func_search_save_LIBS=$LIBS
28321cat >conftest.$ac_ext <<_ACEOF
28322/* confdefs.h. */
28323_ACEOF
28324cat confdefs.h >>conftest.$ac_ext
28325cat >>conftest.$ac_ext <<_ACEOF
28326/* end confdefs.h. */
28327
28328/* Override any GCC internal prototype to avoid an error.
28329 Use char because int might match the return type of a GCC
28330 builtin and then its argument prototype would still apply. */
28331#ifdef __cplusplus
28332extern "C"
28333#endif
28334char pthread_getspecific ();
28335int
28336main ()
28337{
28338return pthread_getspecific ();
28339 ;
28340 return 0;
28341}
28342_ACEOF
28343for ac_lib in '' pthread; do
28344 if test -z "$ac_lib"; then
28345 ac_res="none required"
28346 else
28347 ac_res=-l$ac_lib
28348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28349 fi
28350 rm -f conftest.$ac_objext conftest$ac_exeext
28351if { (ac_try="$ac_link"
28352case "(($ac_try" in
28353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354 *) ac_try_echo=$ac_try;;
28355esac
28356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28357 (eval "$ac_link") 2>conftest.er1
28358 ac_status=$?
28359 grep -v '^ *+' conftest.er1 >conftest.err
28360 rm -f conftest.er1
28361 cat conftest.err >&5
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); } &&
28364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28365 { (case "(($ac_try" in
28366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28367 *) ac_try_echo=$ac_try;;
28368esac
28369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28370 (eval "$ac_try") 2>&5
28371 ac_status=$?
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; } &&
28374 { ac_try='test -s conftest$ac_exeext'
28375 { (case "(($ac_try" in
28376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28377 *) ac_try_echo=$ac_try;;
28378esac
28379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28380 (eval "$ac_try") 2>&5
28381 ac_status=$?
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); }; }; then
28384 ac_cv_search_pthread_getspecific=$ac_res
28385else
28386 echo "$as_me: failed program was:" >&5
28387sed 's/^/| /' conftest.$ac_ext >&5
28388
28389
28390fi
28391
28392rm -f core conftest.err conftest.$ac_objext \
28393 conftest$ac_exeext
28394 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28395 break
28396fi
28397done
28398if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28399 :
28400else
28401 ac_cv_search_pthread_getspecific=no
28402fi
28403rm conftest.$ac_ext
28404LIBS=$ac_func_search_save_LIBS
28405fi
28406{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28407echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28408ac_res=$ac_cv_search_pthread_getspecific
28409if test "$ac_res" != no; then
28410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28411
28412cat >>confdefs.h <<\_ACEOF
28413#define HAVE_PTHREAD_GETSPECIFIC 1
28414_ACEOF
28415
28416fi
28417
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028418fi
28419
28420
28421# Check whether --with-udis86 was given.
28422if test "${with_udis86+set}" = set; then
28423 withval=$with_udis86;
28424 USE_UDIS86=1
28425
28426 case "$withval" in
28427 /usr/lib|yes) ;;
28428 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28429 esac
28430
28431{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28432echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28433if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28434 echo $ECHO_N "(cached) $ECHO_C" >&6
28435else
28436 ac_check_lib_save_LIBS=$LIBS
28437LIBS="-ludis86 $LIBS"
28438cat >conftest.$ac_ext <<_ACEOF
28439/* confdefs.h. */
28440_ACEOF
28441cat confdefs.h >>conftest.$ac_ext
28442cat >>conftest.$ac_ext <<_ACEOF
28443/* end confdefs.h. */
28444
28445/* Override any GCC internal prototype to avoid an error.
28446 Use char because int might match the return type of a GCC
28447 builtin and then its argument prototype would still apply. */
28448#ifdef __cplusplus
28449extern "C"
28450#endif
28451char ud_init ();
28452int
28453main ()
28454{
28455return ud_init ();
28456 ;
28457 return 0;
28458}
28459_ACEOF
28460rm -f conftest.$ac_objext conftest$ac_exeext
28461if { (ac_try="$ac_link"
28462case "(($ac_try" in
28463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464 *) ac_try_echo=$ac_try;;
28465esac
28466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467 (eval "$ac_link") 2>conftest.er1
28468 ac_status=$?
28469 grep -v '^ *+' conftest.er1 >conftest.err
28470 rm -f conftest.er1
28471 cat conftest.err >&5
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028473 (exit $ac_status); } &&
28474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28475 { (case "(($ac_try" in
28476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477 *) ac_try_echo=$ac_try;;
28478esac
28479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480 (eval "$ac_try") 2>&5
28481 ac_status=$?
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); }; } &&
28484 { ac_try='test -s conftest$ac_exeext'
28485 { (case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28488esac
28489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_try") 2>&5
28491 ac_status=$?
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028494 ac_cv_lib_udis86_ud_init=yes
28495else
28496 echo "$as_me: failed program was:" >&5
28497sed 's/^/| /' conftest.$ac_ext >&5
28498
28499 ac_cv_lib_udis86_ud_init=no
28500fi
28501
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028502rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028503 conftest$ac_exeext conftest.$ac_ext
28504LIBS=$ac_check_lib_save_LIBS
28505fi
28506{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28507echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28508if test $ac_cv_lib_udis86_ud_init = yes; then
28509 cat >>confdefs.h <<_ACEOF
28510#define HAVE_LIBUDIS86 1
28511_ACEOF
28512
28513 LIBS="-ludis86 $LIBS"
28514
28515else
28516
28517 echo "Error! You need to have libudis86 around."
28518 exit -1
28519
28520fi
28521
28522
28523else
28524 USE_UDIS86=0
28525
28526fi
28527
28528
28529cat >>confdefs.h <<_ACEOF
28530#define USE_UDIS86 $USE_UDIS86
28531_ACEOF
28532
28533
28534
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000028535# Check whether --with-oprofile was given.
28536if test "${with_oprofile+set}" = set; then
28537 withval=$with_oprofile;
28538 USE_OPROFILE=1
28539
28540 case "$withval" in
28541 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28542 *) llvm_cv_oppath="${withval}/lib/oprofile"
28543 CPPFLAGS="-I${withval}/include";;
28544 esac
28545 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28546 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28547echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28548if test "${ac_cv_search_op_open_agent+set}" = set; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28550else
28551 ac_func_search_save_LIBS=$LIBS
28552cat >conftest.$ac_ext <<_ACEOF
28553/* confdefs.h. */
28554_ACEOF
28555cat confdefs.h >>conftest.$ac_ext
28556cat >>conftest.$ac_ext <<_ACEOF
28557/* end confdefs.h. */
28558
28559/* Override any GCC internal prototype to avoid an error.
28560 Use char because int might match the return type of a GCC
28561 builtin and then its argument prototype would still apply. */
28562#ifdef __cplusplus
28563extern "C"
28564#endif
28565char op_open_agent ();
28566int
28567main ()
28568{
28569return op_open_agent ();
28570 ;
28571 return 0;
28572}
28573_ACEOF
28574for ac_lib in '' opagent; do
28575 if test -z "$ac_lib"; then
28576 ac_res="none required"
28577 else
28578 ac_res=-l$ac_lib
28579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28580 fi
28581 rm -f conftest.$ac_objext conftest$ac_exeext
28582if { (ac_try="$ac_link"
28583case "(($ac_try" in
28584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28585 *) ac_try_echo=$ac_try;;
28586esac
28587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28588 (eval "$ac_link") 2>conftest.er1
28589 ac_status=$?
28590 grep -v '^ *+' conftest.er1 >conftest.err
28591 rm -f conftest.er1
28592 cat conftest.err >&5
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); } &&
28595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28596 { (case "(($ac_try" in
28597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598 *) ac_try_echo=$ac_try;;
28599esac
28600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601 (eval "$ac_try") 2>&5
28602 ac_status=$?
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); }; } &&
28605 { ac_try='test -s conftest$ac_exeext'
28606 { (case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28609esac
28610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_try") 2>&5
28612 ac_status=$?
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; }; then
28615 ac_cv_search_op_open_agent=$ac_res
28616else
28617 echo "$as_me: failed program was:" >&5
28618sed 's/^/| /' conftest.$ac_ext >&5
28619
28620
28621fi
28622
28623rm -f core conftest.err conftest.$ac_objext \
28624 conftest$ac_exeext
28625 if test "${ac_cv_search_op_open_agent+set}" = set; then
28626 break
28627fi
28628done
28629if test "${ac_cv_search_op_open_agent+set}" = set; then
28630 :
28631else
28632 ac_cv_search_op_open_agent=no
28633fi
28634rm conftest.$ac_ext
28635LIBS=$ac_func_search_save_LIBS
28636fi
28637{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28638echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28639ac_res=$ac_cv_search_op_open_agent
28640if test "$ac_res" != no; then
28641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28642
28643else
28644
28645 echo "Error! You need to have libopagent around."
28646 exit -1
28647
28648fi
28649
28650 if test "${ac_cv_header_opagent_h+set}" = set; then
28651 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28652echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28653if test "${ac_cv_header_opagent_h+set}" = set; then
28654 echo $ECHO_N "(cached) $ECHO_C" >&6
28655fi
28656{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28657echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28658else
28659 # Is the header compilable?
28660{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28661echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28662cat >conftest.$ac_ext <<_ACEOF
28663/* confdefs.h. */
28664_ACEOF
28665cat confdefs.h >>conftest.$ac_ext
28666cat >>conftest.$ac_ext <<_ACEOF
28667/* end confdefs.h. */
28668$ac_includes_default
28669#include <opagent.h>
28670_ACEOF
28671rm -f conftest.$ac_objext
28672if { (ac_try="$ac_compile"
28673case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28676esac
28677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678 (eval "$ac_compile") 2>conftest.er1
28679 ac_status=$?
28680 grep -v '^ *+' conftest.er1 >conftest.err
28681 rm -f conftest.er1
28682 cat conftest.err >&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } &&
28685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28686 { (case "(($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_try") 2>&5
28692 ac_status=$?
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; } &&
28695 { ac_try='test -s conftest.$ac_objext'
28696 { (case "(($ac_try" in
28697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698 *) ac_try_echo=$ac_try;;
28699esac
28700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28701 (eval "$ac_try") 2>&5
28702 ac_status=$?
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); }; }; then
28705 ac_header_compiler=yes
28706else
28707 echo "$as_me: failed program was:" >&5
28708sed 's/^/| /' conftest.$ac_ext >&5
28709
28710 ac_header_compiler=no
28711fi
28712
28713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28714{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28715echo "${ECHO_T}$ac_header_compiler" >&6; }
28716
28717# Is the header present?
28718{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28719echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28720cat >conftest.$ac_ext <<_ACEOF
28721/* confdefs.h. */
28722_ACEOF
28723cat confdefs.h >>conftest.$ac_ext
28724cat >>conftest.$ac_ext <<_ACEOF
28725/* end confdefs.h. */
28726#include <opagent.h>
28727_ACEOF
28728if { (ac_try="$ac_cpp conftest.$ac_ext"
28729case "(($ac_try" in
28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731 *) ac_try_echo=$ac_try;;
28732esac
28733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28735 ac_status=$?
28736 grep -v '^ *+' conftest.er1 >conftest.err
28737 rm -f conftest.er1
28738 cat conftest.err >&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } >/dev/null; then
28741 if test -s conftest.err; then
28742 ac_cpp_err=$ac_c_preproc_warn_flag
28743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28744 else
28745 ac_cpp_err=
28746 fi
28747else
28748 ac_cpp_err=yes
28749fi
28750if test -z "$ac_cpp_err"; then
28751 ac_header_preproc=yes
28752else
28753 echo "$as_me: failed program was:" >&5
28754sed 's/^/| /' conftest.$ac_ext >&5
28755
28756 ac_header_preproc=no
28757fi
28758
28759rm -f conftest.err conftest.$ac_ext
28760{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28761echo "${ECHO_T}$ac_header_preproc" >&6; }
28762
28763# So? What about this header?
28764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28765 yes:no: )
28766 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28767echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28768 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28769echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28770 ac_header_preproc=yes
28771 ;;
28772 no:yes:* )
28773 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28774echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28775 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28776echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28777 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28778echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28779 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28780echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28781 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28782echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28783 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28784echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28785 ( cat <<\_ASBOX
28786## ----------------------------------- ##
28787## Report this to llvmbugs@cs.uiuc.edu ##
28788## ----------------------------------- ##
28789_ASBOX
28790 ) | sed "s/^/$as_me: WARNING: /" >&2
28791 ;;
28792esac
28793{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28794echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28795if test "${ac_cv_header_opagent_h+set}" = set; then
28796 echo $ECHO_N "(cached) $ECHO_C" >&6
28797else
28798 ac_cv_header_opagent_h=$ac_header_preproc
28799fi
28800{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28801echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28802
28803fi
28804if test $ac_cv_header_opagent_h = yes; then
28805 :
28806else
28807
28808 echo "Error! You need to have opagent.h around."
28809 exit -1
28810
28811fi
28812
28813
28814
28815else
28816
28817 llvm_cv_old_LIBS="$LIBS"
28818 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28819 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28820echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28821if test "${ac_cv_search_op_open_agent+set}" = set; then
28822 echo $ECHO_N "(cached) $ECHO_C" >&6
28823else
28824 ac_func_search_save_LIBS=$LIBS
28825cat >conftest.$ac_ext <<_ACEOF
28826/* confdefs.h. */
28827_ACEOF
28828cat confdefs.h >>conftest.$ac_ext
28829cat >>conftest.$ac_ext <<_ACEOF
28830/* end confdefs.h. */
28831
28832/* Override any GCC internal prototype to avoid an error.
28833 Use char because int might match the return type of a GCC
28834 builtin and then its argument prototype would still apply. */
28835#ifdef __cplusplus
28836extern "C"
28837#endif
28838char op_open_agent ();
28839int
28840main ()
28841{
28842return op_open_agent ();
28843 ;
28844 return 0;
28845}
28846_ACEOF
28847for ac_lib in '' opagent; do
28848 if test -z "$ac_lib"; then
28849 ac_res="none required"
28850 else
28851 ac_res=-l$ac_lib
28852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28853 fi
28854 rm -f conftest.$ac_objext conftest$ac_exeext
28855if { (ac_try="$ac_link"
28856case "(($ac_try" in
28857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858 *) ac_try_echo=$ac_try;;
28859esac
28860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861 (eval "$ac_link") 2>conftest.er1
28862 ac_status=$?
28863 grep -v '^ *+' conftest.er1 >conftest.err
28864 rm -f conftest.er1
28865 cat conftest.err >&5
28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 (exit $ac_status); } &&
28868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28869 { (case "(($ac_try" in
28870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28871 *) ac_try_echo=$ac_try;;
28872esac
28873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28874 (eval "$ac_try") 2>&5
28875 ac_status=$?
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; } &&
28878 { ac_try='test -s conftest$ac_exeext'
28879 { (case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28882esac
28883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_try") 2>&5
28885 ac_status=$?
28886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887 (exit $ac_status); }; }; then
28888 ac_cv_search_op_open_agent=$ac_res
28889else
28890 echo "$as_me: failed program was:" >&5
28891sed 's/^/| /' conftest.$ac_ext >&5
28892
28893
28894fi
28895
28896rm -f core conftest.err conftest.$ac_objext \
28897 conftest$ac_exeext
28898 if test "${ac_cv_search_op_open_agent+set}" = set; then
28899 break
28900fi
28901done
28902if test "${ac_cv_search_op_open_agent+set}" = set; then
28903 :
28904else
28905 ac_cv_search_op_open_agent=no
28906fi
28907rm conftest.$ac_ext
28908LIBS=$ac_func_search_save_LIBS
28909fi
28910{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28911echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28912ac_res=$ac_cv_search_op_open_agent
28913if test "$ac_res" != no; then
28914 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28915 USE_OPROFILE=1
28916
28917else
28918 LIBS="$llvm_cv_old_LIBS"
28919 USE_OPROFILE=0
28920
28921fi
28922
28923 if test "${ac_cv_header_opagent_h+set}" = set; then
28924 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28925echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28926if test "${ac_cv_header_opagent_h+set}" = set; then
28927 echo $ECHO_N "(cached) $ECHO_C" >&6
28928fi
28929{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28930echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28931else
28932 # Is the header compilable?
28933{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28934echo $ECHO_N "checking opagent.h 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 <opagent.h>
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
28957 (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
28978 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 opagent.h presence" >&5
28992echo $ECHO_N "checking opagent.h 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 <opagent.h>
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
29013 (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
29024 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: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29040echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29041 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29042echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29043 ac_header_preproc=yes
29044 ;;
29045 no:yes:* )
29046 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29047echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29049echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29050 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29051echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29052 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29053echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29054 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29055echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29056 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29057echo "$as_me: WARNING: opagent.h: 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 opagent.h" >&5
29067echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29068if test "${ac_cv_header_opagent_h+set}" = set; then
29069 echo $ECHO_N "(cached) $ECHO_C" >&6
29070else
29071 ac_cv_header_opagent_h=$ac_header_preproc
29072fi
29073{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29074echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29075
29076fi
29077if test $ac_cv_header_opagent_h = yes; then
29078 :
29079else
29080
29081 LIBS="$llvm_cv_old_LIBS"
29082 USE_OPROFILE=0
29083
29084
29085fi
29086
29087
29088
29089fi
29090
29091
29092cat >>confdefs.h <<_ACEOF
29093#define USE_OPROFILE $USE_OPROFILE
29094_ACEOF
29095
29096
29097
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029098
29099
29100
29101
29102
29103ac_header_dirent=no
29104for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29105 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29106{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29107echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29109 echo $ECHO_N "(cached) $ECHO_C" >&6
29110else
29111 cat >conftest.$ac_ext <<_ACEOF
29112/* confdefs.h. */
29113_ACEOF
29114cat confdefs.h >>conftest.$ac_ext
29115cat >>conftest.$ac_ext <<_ACEOF
29116/* end confdefs.h. */
29117#include <sys/types.h>
29118#include <$ac_hdr>
29119
29120int
29121main ()
29122{
29123if ((DIR *) 0)
29124return 0;
29125 ;
29126 return 0;
29127}
29128_ACEOF
29129rm -f conftest.$ac_objext
29130if { (ac_try="$ac_compile"
29131case "(($ac_try" in
29132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29133 *) ac_try_echo=$ac_try;;
29134esac
29135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29136 (eval "$ac_compile") 2>conftest.er1
29137 ac_status=$?
29138 grep -v '^ *+' conftest.er1 >conftest.err
29139 rm -f conftest.er1
29140 cat conftest.err >&5
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029142 (exit $ac_status); } &&
29143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29144 { (case "(($ac_try" in
29145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146 *) ac_try_echo=$ac_try;;
29147esac
29148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29149 (eval "$ac_try") 2>&5
29150 ac_status=$?
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); }; } &&
29153 { ac_try='test -s conftest.$ac_objext'
29154 { (case "(($ac_try" in
29155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156 *) ac_try_echo=$ac_try;;
29157esac
29158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29159 (eval "$ac_try") 2>&5
29160 ac_status=$?
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029163 eval "$as_ac_Header=yes"
29164else
29165 echo "$as_me: failed program was:" >&5
29166sed 's/^/| /' conftest.$ac_ext >&5
29167
29168 eval "$as_ac_Header=no"
29169fi
29170
29171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29172fi
29173ac_res=`eval echo '${'$as_ac_Header'}'`
29174 { echo "$as_me:$LINENO: result: $ac_res" >&5
29175echo "${ECHO_T}$ac_res" >&6; }
29176if test `eval echo '${'$as_ac_Header'}'` = yes; then
29177 cat >>confdefs.h <<_ACEOF
29178#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29179_ACEOF
29180
29181ac_header_dirent=$ac_hdr; break
29182fi
29183
29184done
29185# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29186if test $ac_header_dirent = dirent.h; then
29187 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29188echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29189if test "${ac_cv_search_opendir+set}" = set; then
29190 echo $ECHO_N "(cached) $ECHO_C" >&6
29191else
29192 ac_func_search_save_LIBS=$LIBS
29193cat >conftest.$ac_ext <<_ACEOF
29194/* confdefs.h. */
29195_ACEOF
29196cat confdefs.h >>conftest.$ac_ext
29197cat >>conftest.$ac_ext <<_ACEOF
29198/* end confdefs.h. */
29199
29200/* Override any GCC internal prototype to avoid an error.
29201 Use char because int might match the return type of a GCC
29202 builtin and then its argument prototype would still apply. */
29203#ifdef __cplusplus
29204extern "C"
29205#endif
29206char opendir ();
29207int
29208main ()
29209{
29210return opendir ();
29211 ;
29212 return 0;
29213}
29214_ACEOF
29215for ac_lib in '' dir; do
29216 if test -z "$ac_lib"; then
29217 ac_res="none required"
29218 else
29219 ac_res=-l$ac_lib
29220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29221 fi
29222 rm -f conftest.$ac_objext conftest$ac_exeext
29223if { (ac_try="$ac_link"
29224case "(($ac_try" in
29225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226 *) ac_try_echo=$ac_try;;
29227esac
29228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229 (eval "$ac_link") 2>conftest.er1
29230 ac_status=$?
29231 grep -v '^ *+' conftest.er1 >conftest.err
29232 rm -f conftest.er1
29233 cat conftest.err >&5
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029235 (exit $ac_status); } &&
29236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29237 { (case "(($ac_try" in
29238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239 *) ac_try_echo=$ac_try;;
29240esac
29241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242 (eval "$ac_try") 2>&5
29243 ac_status=$?
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest$ac_exeext'
29247 { (case "(($ac_try" in
29248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249 *) ac_try_echo=$ac_try;;
29250esac
29251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252 (eval "$ac_try") 2>&5
29253 ac_status=$?
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029256 ac_cv_search_opendir=$ac_res
29257else
29258 echo "$as_me: failed program was:" >&5
29259sed 's/^/| /' conftest.$ac_ext >&5
29260
29261
29262fi
29263
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029264rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029265 conftest$ac_exeext
29266 if test "${ac_cv_search_opendir+set}" = set; then
29267 break
29268fi
29269done
29270if test "${ac_cv_search_opendir+set}" = set; then
29271 :
29272else
29273 ac_cv_search_opendir=no
29274fi
29275rm conftest.$ac_ext
29276LIBS=$ac_func_search_save_LIBS
29277fi
29278{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29279echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29280ac_res=$ac_cv_search_opendir
29281if test "$ac_res" != no; then
29282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29283
29284fi
29285
29286else
29287 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29288echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29289if test "${ac_cv_search_opendir+set}" = set; then
29290 echo $ECHO_N "(cached) $ECHO_C" >&6
29291else
29292 ac_func_search_save_LIBS=$LIBS
29293cat >conftest.$ac_ext <<_ACEOF
29294/* confdefs.h. */
29295_ACEOF
29296cat confdefs.h >>conftest.$ac_ext
29297cat >>conftest.$ac_ext <<_ACEOF
29298/* end confdefs.h. */
29299
29300/* Override any GCC internal prototype to avoid an error.
29301 Use char because int might match the return type of a GCC
29302 builtin and then its argument prototype would still apply. */
29303#ifdef __cplusplus
29304extern "C"
29305#endif
29306char opendir ();
29307int
29308main ()
29309{
29310return opendir ();
29311 ;
29312 return 0;
29313}
29314_ACEOF
29315for ac_lib in '' x; do
29316 if test -z "$ac_lib"; then
29317 ac_res="none required"
29318 else
29319 ac_res=-l$ac_lib
29320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29321 fi
29322 rm -f conftest.$ac_objext conftest$ac_exeext
29323if { (ac_try="$ac_link"
29324case "(($ac_try" in
29325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326 *) ac_try_echo=$ac_try;;
29327esac
29328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329 (eval "$ac_link") 2>conftest.er1
29330 ac_status=$?
29331 grep -v '^ *+' conftest.er1 >conftest.err
29332 rm -f conftest.er1
29333 cat conftest.err >&5
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029335 (exit $ac_status); } &&
29336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29337 { (case "(($ac_try" in
29338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339 *) ac_try_echo=$ac_try;;
29340esac
29341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342 (eval "$ac_try") 2>&5
29343 ac_status=$?
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; } &&
29346 { ac_try='test -s conftest$ac_exeext'
29347 { (case "(($ac_try" in
29348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29349 *) ac_try_echo=$ac_try;;
29350esac
29351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29352 (eval "$ac_try") 2>&5
29353 ac_status=$?
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029356 ac_cv_search_opendir=$ac_res
29357else
29358 echo "$as_me: failed program was:" >&5
29359sed 's/^/| /' conftest.$ac_ext >&5
29360
29361
29362fi
29363
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029364rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029365 conftest$ac_exeext
29366 if test "${ac_cv_search_opendir+set}" = set; then
29367 break
29368fi
29369done
29370if test "${ac_cv_search_opendir+set}" = set; then
29371 :
29372else
29373 ac_cv_search_opendir=no
29374fi
29375rm conftest.$ac_ext
29376LIBS=$ac_func_search_save_LIBS
29377fi
29378{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29379echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29380ac_res=$ac_cv_search_opendir
29381if test "$ac_res" != no; then
29382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29383
29384fi
29385
29386fi
29387
29388{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29389echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29390if test "${ac_cv_header_mmap_anon+set}" = set; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29392else
29393 ac_ext=c
29394ac_cpp='$CPP $CPPFLAGS'
29395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29397ac_compiler_gnu=$ac_cv_c_compiler_gnu
29398
29399 cat >conftest.$ac_ext <<_ACEOF
29400/* confdefs.h. */
29401_ACEOF
29402cat confdefs.h >>conftest.$ac_ext
29403cat >>conftest.$ac_ext <<_ACEOF
29404/* end confdefs.h. */
29405#include <sys/mman.h>
29406#include <unistd.h>
29407#include <fcntl.h>
29408int
29409main ()
29410{
29411mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29412 ;
29413 return 0;
29414}
29415_ACEOF
29416rm -f conftest.$ac_objext
29417if { (ac_try="$ac_compile"
29418case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29421esac
29422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_compile") 2>conftest.er1
29424 ac_status=$?
29425 grep -v '^ *+' conftest.er1 >conftest.err
29426 rm -f conftest.er1
29427 cat conftest.err >&5
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029429 (exit $ac_status); } &&
29430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29431 { (case "(($ac_try" in
29432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433 *) ac_try_echo=$ac_try;;
29434esac
29435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436 (eval "$ac_try") 2>&5
29437 ac_status=$?
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; } &&
29440 { ac_try='test -s conftest.$ac_objext'
29441 { (case "(($ac_try" in
29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443 *) ac_try_echo=$ac_try;;
29444esac
29445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_try") 2>&5
29447 ac_status=$?
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029450 ac_cv_header_mmap_anon=yes
29451else
29452 echo "$as_me: failed program was:" >&5
29453sed 's/^/| /' conftest.$ac_ext >&5
29454
29455 ac_cv_header_mmap_anon=no
29456fi
29457
29458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29459 ac_ext=c
29460ac_cpp='$CPP $CPPFLAGS'
29461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29463ac_compiler_gnu=$ac_cv_c_compiler_gnu
29464
29465
29466fi
29467{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29468echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29469if test "$ac_cv_header_mmap_anon" = yes; then
29470
29471cat >>confdefs.h <<\_ACEOF
29472#define HAVE_MMAP_ANONYMOUS 1
29473_ACEOF
29474
29475fi
29476
29477{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29478echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29479if test "${ac_cv_header_stat_broken+set}" = set; then
29480 echo $ECHO_N "(cached) $ECHO_C" >&6
29481else
29482 cat >conftest.$ac_ext <<_ACEOF
29483/* confdefs.h. */
29484_ACEOF
29485cat confdefs.h >>conftest.$ac_ext
29486cat >>conftest.$ac_ext <<_ACEOF
29487/* end confdefs.h. */
29488#include <sys/types.h>
29489#include <sys/stat.h>
29490
29491#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029492# if S_ISBLK (S_IFDIR)
29493You lose.
29494# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029495#endif
29496
29497#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029498# if S_ISBLK (S_IFCHR)
29499You lose.
29500# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029501#endif
29502
29503#if defined S_ISLNK && defined S_IFREG
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029504# if S_ISLNK (S_IFREG)
29505You lose.
29506# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029507#endif
29508
29509#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029510# if S_ISSOCK (S_IFREG)
29511You lose.
29512# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029513#endif
29514
29515_ACEOF
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29517 $EGREP "You lose" >/dev/null 2>&1; then
29518 ac_cv_header_stat_broken=yes
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029519else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029520 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029521fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029522rm -f conftest*
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029523
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029524fi
29525{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29526echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29527if test $ac_cv_header_stat_broken = yes; then
29528
29529cat >>confdefs.h <<\_ACEOF
29530#define STAT_MACROS_BROKEN 1
29531_ACEOF
29532
29533fi
29534
29535{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29536echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29537if test "${ac_cv_header_stdc+set}" = set; then
29538 echo $ECHO_N "(cached) $ECHO_C" >&6
29539else
29540 cat >conftest.$ac_ext <<_ACEOF
29541/* confdefs.h. */
29542_ACEOF
29543cat confdefs.h >>conftest.$ac_ext
29544cat >>conftest.$ac_ext <<_ACEOF
29545/* end confdefs.h. */
29546#include <stdlib.h>
29547#include <stdarg.h>
29548#include <string.h>
29549#include <float.h>
29550
29551int
29552main ()
29553{
29554
29555 ;
29556 return 0;
29557}
29558_ACEOF
29559rm -f conftest.$ac_objext
29560if { (ac_try="$ac_compile"
29561case "(($ac_try" in
29562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563 *) ac_try_echo=$ac_try;;
29564esac
29565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566 (eval "$ac_compile") 2>conftest.er1
29567 ac_status=$?
29568 grep -v '^ *+' conftest.er1 >conftest.err
29569 rm -f conftest.er1
29570 cat conftest.err >&5
29571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029572 (exit $ac_status); } &&
29573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29574 { (case "(($ac_try" in
29575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29576 *) ac_try_echo=$ac_try;;
29577esac
29578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29579 (eval "$ac_try") 2>&5
29580 ac_status=$?
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); }; } &&
29583 { ac_try='test -s conftest.$ac_objext'
29584 { (case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29587esac
29588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_try") 2>&5
29590 ac_status=$?
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029593 ac_cv_header_stdc=yes
29594else
29595 echo "$as_me: failed program was:" >&5
29596sed 's/^/| /' conftest.$ac_ext >&5
29597
29598 ac_cv_header_stdc=no
29599fi
29600
29601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29602
29603if test $ac_cv_header_stdc = yes; then
29604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29605 cat >conftest.$ac_ext <<_ACEOF
29606/* confdefs.h. */
29607_ACEOF
29608cat confdefs.h >>conftest.$ac_ext
29609cat >>conftest.$ac_ext <<_ACEOF
29610/* end confdefs.h. */
29611#include <string.h>
29612
29613_ACEOF
29614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29615 $EGREP "memchr" >/dev/null 2>&1; then
29616 :
29617else
29618 ac_cv_header_stdc=no
29619fi
29620rm -f conftest*
29621
29622fi
29623
29624if test $ac_cv_header_stdc = yes; then
29625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29626 cat >conftest.$ac_ext <<_ACEOF
29627/* confdefs.h. */
29628_ACEOF
29629cat confdefs.h >>conftest.$ac_ext
29630cat >>conftest.$ac_ext <<_ACEOF
29631/* end confdefs.h. */
29632#include <stdlib.h>
29633
29634_ACEOF
29635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29636 $EGREP "free" >/dev/null 2>&1; then
29637 :
29638else
29639 ac_cv_header_stdc=no
29640fi
29641rm -f conftest*
29642
29643fi
29644
29645if test $ac_cv_header_stdc = yes; then
29646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29647 if test "$cross_compiling" = yes; then
29648 :
29649else
29650 cat >conftest.$ac_ext <<_ACEOF
29651/* confdefs.h. */
29652_ACEOF
29653cat confdefs.h >>conftest.$ac_ext
29654cat >>conftest.$ac_ext <<_ACEOF
29655/* end confdefs.h. */
29656#include <ctype.h>
29657#include <stdlib.h>
29658#if ((' ' & 0x0FF) == 0x020)
29659# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29660# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29661#else
29662# define ISLOWER(c) \
29663 (('a' <= (c) && (c) <= 'i') \
29664 || ('j' <= (c) && (c) <= 'r') \
29665 || ('s' <= (c) && (c) <= 'z'))
29666# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29667#endif
29668
29669#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29670int
29671main ()
29672{
29673 int i;
29674 for (i = 0; i < 256; i++)
29675 if (XOR (islower (i), ISLOWER (i))
29676 || toupper (i) != TOUPPER (i))
29677 return 2;
29678 return 0;
29679}
29680_ACEOF
29681rm -f conftest$ac_exeext
29682if { (ac_try="$ac_link"
29683case "(($ac_try" in
29684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685 *) ac_try_echo=$ac_try;;
29686esac
29687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688 (eval "$ac_link") 2>&5
29689 ac_status=$?
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29692 { (case "(($ac_try" in
29693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29694 *) ac_try_echo=$ac_try;;
29695esac
29696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29697 (eval "$ac_try") 2>&5
29698 ac_status=$?
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; }; then
29701 :
29702else
29703 echo "$as_me: program exited with status $ac_status" >&5
29704echo "$as_me: failed program was:" >&5
29705sed 's/^/| /' conftest.$ac_ext >&5
29706
29707( exit $ac_status )
29708ac_cv_header_stdc=no
29709fi
29710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29711fi
29712
29713
29714fi
29715fi
29716{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29717echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29718if test $ac_cv_header_stdc = yes; then
29719
29720cat >>confdefs.h <<\_ACEOF
29721#define STDC_HEADERS 1
29722_ACEOF
29723
29724fi
29725
29726{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29727echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29728if test "${ac_cv_header_sys_wait_h+set}" = set; then
29729 echo $ECHO_N "(cached) $ECHO_C" >&6
29730else
29731 cat >conftest.$ac_ext <<_ACEOF
29732/* confdefs.h. */
29733_ACEOF
29734cat confdefs.h >>conftest.$ac_ext
29735cat >>conftest.$ac_ext <<_ACEOF
29736/* end confdefs.h. */
29737#include <sys/types.h>
29738#include <sys/wait.h>
29739#ifndef WEXITSTATUS
29740# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29741#endif
29742#ifndef WIFEXITED
29743# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29744#endif
29745
29746int
29747main ()
29748{
29749 int s;
29750 wait (&s);
29751 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29752 ;
29753 return 0;
29754}
29755_ACEOF
29756rm -f conftest.$ac_objext
29757if { (ac_try="$ac_compile"
29758case "(($ac_try" in
29759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760 *) ac_try_echo=$ac_try;;
29761esac
29762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29763 (eval "$ac_compile") 2>conftest.er1
29764 ac_status=$?
29765 grep -v '^ *+' conftest.er1 >conftest.err
29766 rm -f conftest.er1
29767 cat conftest.err >&5
29768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029769 (exit $ac_status); } &&
29770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29771 { (case "(($ac_try" in
29772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29773 *) ac_try_echo=$ac_try;;
29774esac
29775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29776 (eval "$ac_try") 2>&5
29777 ac_status=$?
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; } &&
29780 { ac_try='test -s conftest.$ac_objext'
29781 { (case "(($ac_try" in
29782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783 *) ac_try_echo=$ac_try;;
29784esac
29785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786 (eval "$ac_try") 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029790 ac_cv_header_sys_wait_h=yes
29791else
29792 echo "$as_me: failed program was:" >&5
29793sed 's/^/| /' conftest.$ac_ext >&5
29794
29795 ac_cv_header_sys_wait_h=no
29796fi
29797
29798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29799fi
29800{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29801echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29802if test $ac_cv_header_sys_wait_h = yes; then
29803
29804cat >>confdefs.h <<\_ACEOF
29805#define HAVE_SYS_WAIT_H 1
29806_ACEOF
29807
29808fi
29809
29810{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29811echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29812if test "${ac_cv_header_time+set}" = set; then
29813 echo $ECHO_N "(cached) $ECHO_C" >&6
29814else
29815 cat >conftest.$ac_ext <<_ACEOF
29816/* confdefs.h. */
29817_ACEOF
29818cat confdefs.h >>conftest.$ac_ext
29819cat >>conftest.$ac_ext <<_ACEOF
29820/* end confdefs.h. */
29821#include <sys/types.h>
29822#include <sys/time.h>
29823#include <time.h>
29824
29825int
29826main ()
29827{
29828if ((struct tm *) 0)
29829return 0;
29830 ;
29831 return 0;
29832}
29833_ACEOF
29834rm -f conftest.$ac_objext
29835if { (ac_try="$ac_compile"
29836case "(($ac_try" in
29837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838 *) ac_try_echo=$ac_try;;
29839esac
29840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841 (eval "$ac_compile") 2>conftest.er1
29842 ac_status=$?
29843 grep -v '^ *+' conftest.er1 >conftest.err
29844 rm -f conftest.er1
29845 cat conftest.err >&5
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029847 (exit $ac_status); } &&
29848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29849 { (case "(($ac_try" in
29850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29851 *) ac_try_echo=$ac_try;;
29852esac
29853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854 (eval "$ac_try") 2>&5
29855 ac_status=$?
29856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857 (exit $ac_status); }; } &&
29858 { ac_try='test -s conftest.$ac_objext'
29859 { (case "(($ac_try" in
29860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29861 *) ac_try_echo=$ac_try;;
29862esac
29863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29864 (eval "$ac_try") 2>&5
29865 ac_status=$?
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029868 ac_cv_header_time=yes
29869else
29870 echo "$as_me: failed program was:" >&5
29871sed 's/^/| /' conftest.$ac_ext >&5
29872
29873 ac_cv_header_time=no
29874fi
29875
29876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29877fi
29878{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29879echo "${ECHO_T}$ac_cv_header_time" >&6; }
29880if test $ac_cv_header_time = yes; then
29881
29882cat >>confdefs.h <<\_ACEOF
29883#define TIME_WITH_SYS_TIME 1
29884_ACEOF
29885
29886fi
29887
29888
29889
29890
29891
29892
29893
29894
29895for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29896do
29897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29900echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29903fi
29904ac_res=`eval echo '${'$as_ac_Header'}'`
29905 { echo "$as_me:$LINENO: result: $ac_res" >&5
29906echo "${ECHO_T}$ac_res" >&6; }
29907else
29908 # Is the header compilable?
29909{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29910echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29911cat >conftest.$ac_ext <<_ACEOF
29912/* confdefs.h. */
29913_ACEOF
29914cat confdefs.h >>conftest.$ac_ext
29915cat >>conftest.$ac_ext <<_ACEOF
29916/* end confdefs.h. */
29917$ac_includes_default
29918#include <$ac_header>
29919_ACEOF
29920rm -f conftest.$ac_objext
29921if { (ac_try="$ac_compile"
29922case "(($ac_try" in
29923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29924 *) ac_try_echo=$ac_try;;
29925esac
29926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29927 (eval "$ac_compile") 2>conftest.er1
29928 ac_status=$?
29929 grep -v '^ *+' conftest.er1 >conftest.err
29930 rm -f conftest.er1
29931 cat conftest.err >&5
29932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029933 (exit $ac_status); } &&
29934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29935 { (case "(($ac_try" in
29936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937 *) ac_try_echo=$ac_try;;
29938esac
29939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29940 (eval "$ac_try") 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; } &&
29944 { ac_try='test -s conftest.$ac_objext'
29945 { (case "(($ac_try" in
29946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947 *) ac_try_echo=$ac_try;;
29948esac
29949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950 (eval "$ac_try") 2>&5
29951 ac_status=$?
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029954 ac_header_compiler=yes
29955else
29956 echo "$as_me: failed program was:" >&5
29957sed 's/^/| /' conftest.$ac_ext >&5
29958
29959 ac_header_compiler=no
29960fi
29961
29962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29963{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29964echo "${ECHO_T}$ac_header_compiler" >&6; }
29965
29966# Is the header present?
29967{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29969cat >conftest.$ac_ext <<_ACEOF
29970/* confdefs.h. */
29971_ACEOF
29972cat confdefs.h >>conftest.$ac_ext
29973cat >>conftest.$ac_ext <<_ACEOF
29974/* end confdefs.h. */
29975#include <$ac_header>
29976_ACEOF
29977if { (ac_try="$ac_cpp conftest.$ac_ext"
29978case "(($ac_try" in
29979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980 *) ac_try_echo=$ac_try;;
29981esac
29982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29984 ac_status=$?
29985 grep -v '^ *+' conftest.er1 >conftest.err
29986 rm -f conftest.er1
29987 cat conftest.err >&5
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029989 (exit $ac_status); } >/dev/null; then
29990 if test -s conftest.err; then
29991 ac_cpp_err=$ac_c_preproc_warn_flag
29992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29993 else
29994 ac_cpp_err=
29995 fi
29996else
29997 ac_cpp_err=yes
29998fi
29999if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030000 ac_header_preproc=yes
30001else
30002 echo "$as_me: failed program was:" >&5
30003sed 's/^/| /' conftest.$ac_ext >&5
30004
30005 ac_header_preproc=no
30006fi
30007
30008rm -f conftest.err conftest.$ac_ext
30009{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30010echo "${ECHO_T}$ac_header_preproc" >&6; }
30011
30012# So? What about this header?
30013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30014 yes:no: )
30015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30019 ac_header_preproc=yes
30020 ;;
30021 no:yes:* )
30022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30034 ( cat <<\_ASBOX
30035## ----------------------------------- ##
30036## Report this to llvmbugs@cs.uiuc.edu ##
30037## ----------------------------------- ##
30038_ASBOX
30039 ) | sed "s/^/$as_me: WARNING: /" >&2
30040 ;;
30041esac
30042{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30045 echo $ECHO_N "(cached) $ECHO_C" >&6
30046else
30047 eval "$as_ac_Header=\$ac_header_preproc"
30048fi
30049ac_res=`eval echo '${'$as_ac_Header'}'`
30050 { echo "$as_me:$LINENO: result: $ac_res" >&5
30051echo "${ECHO_T}$ac_res" >&6; }
30052
30053fi
30054if test `eval echo '${'$as_ac_Header'}'` = yes; then
30055 cat >>confdefs.h <<_ACEOF
30056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30057_ACEOF
30058
30059fi
30060
30061done
30062
30063
30064
30065
30066
30067
30068
Douglas Gregor6230bee2009-05-18 17:21:34 +000030069for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030070do
30071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30076 echo $ECHO_N "(cached) $ECHO_C" >&6
30077fi
30078ac_res=`eval echo '${'$as_ac_Header'}'`
30079 { echo "$as_me:$LINENO: result: $ac_res" >&5
30080echo "${ECHO_T}$ac_res" >&6; }
30081else
30082 # Is the header compilable?
30083{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30085cat >conftest.$ac_ext <<_ACEOF
30086/* confdefs.h. */
30087_ACEOF
30088cat confdefs.h >>conftest.$ac_ext
30089cat >>conftest.$ac_ext <<_ACEOF
30090/* end confdefs.h. */
30091$ac_includes_default
30092#include <$ac_header>
30093_ACEOF
30094rm -f conftest.$ac_objext
30095if { (ac_try="$ac_compile"
30096case "(($ac_try" in
30097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30098 *) ac_try_echo=$ac_try;;
30099esac
30100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30101 (eval "$ac_compile") 2>conftest.er1
30102 ac_status=$?
30103 grep -v '^ *+' conftest.er1 >conftest.err
30104 rm -f conftest.er1
30105 cat conftest.err >&5
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030107 (exit $ac_status); } &&
30108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30109 { (case "(($ac_try" in
30110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111 *) ac_try_echo=$ac_try;;
30112esac
30113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114 (eval "$ac_try") 2>&5
30115 ac_status=$?
30116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30117 (exit $ac_status); }; } &&
30118 { ac_try='test -s conftest.$ac_objext'
30119 { (case "(($ac_try" in
30120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121 *) ac_try_echo=$ac_try;;
30122esac
30123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124 (eval "$ac_try") 2>&5
30125 ac_status=$?
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030128 ac_header_compiler=yes
30129else
30130 echo "$as_me: failed program was:" >&5
30131sed 's/^/| /' conftest.$ac_ext >&5
30132
30133 ac_header_compiler=no
30134fi
30135
30136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30137{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30138echo "${ECHO_T}$ac_header_compiler" >&6; }
30139
30140# Is the header present?
30141{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30143cat >conftest.$ac_ext <<_ACEOF
30144/* confdefs.h. */
30145_ACEOF
30146cat confdefs.h >>conftest.$ac_ext
30147cat >>conftest.$ac_ext <<_ACEOF
30148/* end confdefs.h. */
30149#include <$ac_header>
30150_ACEOF
30151if { (ac_try="$ac_cpp conftest.$ac_ext"
30152case "(($ac_try" in
30153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30154 *) ac_try_echo=$ac_try;;
30155esac
30156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30158 ac_status=$?
30159 grep -v '^ *+' conftest.er1 >conftest.err
30160 rm -f conftest.er1
30161 cat conftest.err >&5
30162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030163 (exit $ac_status); } >/dev/null; then
30164 if test -s conftest.err; then
30165 ac_cpp_err=$ac_c_preproc_warn_flag
30166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30167 else
30168 ac_cpp_err=
30169 fi
30170else
30171 ac_cpp_err=yes
30172fi
30173if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030174 ac_header_preproc=yes
30175else
30176 echo "$as_me: failed program was:" >&5
30177sed 's/^/| /' conftest.$ac_ext >&5
30178
30179 ac_header_preproc=no
30180fi
30181
30182rm -f conftest.err conftest.$ac_ext
30183{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30184echo "${ECHO_T}$ac_header_preproc" >&6; }
30185
30186# So? What about this header?
30187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30188 yes:no: )
30189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30193 ac_header_preproc=yes
30194 ;;
30195 no:yes:* )
30196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30208 ( cat <<\_ASBOX
30209## ----------------------------------- ##
30210## Report this to llvmbugs@cs.uiuc.edu ##
30211## ----------------------------------- ##
30212_ASBOX
30213 ) | sed "s/^/$as_me: WARNING: /" >&2
30214 ;;
30215esac
30216{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30219 echo $ECHO_N "(cached) $ECHO_C" >&6
30220else
30221 eval "$as_ac_Header=\$ac_header_preproc"
30222fi
30223ac_res=`eval echo '${'$as_ac_Header'}'`
30224 { echo "$as_me:$LINENO: result: $ac_res" >&5
30225echo "${ECHO_T}$ac_res" >&6; }
30226
30227fi
30228if test `eval echo '${'$as_ac_Header'}'` = yes; then
30229 cat >>confdefs.h <<_ACEOF
30230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30231_ACEOF
30232
30233fi
30234
30235done
30236
30237
Douglas Gregor6230bee2009-05-18 17:21:34 +000030238
30239for ac_header in utime.h windows.h
Reid Spencer096a8142007-08-17 05:45:26 +000030240do
30241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30246 echo $ECHO_N "(cached) $ECHO_C" >&6
30247fi
30248ac_res=`eval echo '${'$as_ac_Header'}'`
30249 { echo "$as_me:$LINENO: result: $ac_res" >&5
30250echo "${ECHO_T}$ac_res" >&6; }
30251else
30252 # Is the header compilable?
30253{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30255cat >conftest.$ac_ext <<_ACEOF
30256/* confdefs.h. */
30257_ACEOF
30258cat confdefs.h >>conftest.$ac_ext
30259cat >>conftest.$ac_ext <<_ACEOF
30260/* end confdefs.h. */
30261$ac_includes_default
30262#include <$ac_header>
30263_ACEOF
30264rm -f conftest.$ac_objext
30265if { (ac_try="$ac_compile"
30266case "(($ac_try" in
30267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30268 *) ac_try_echo=$ac_try;;
30269esac
30270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30271 (eval "$ac_compile") 2>conftest.er1
30272 ac_status=$?
30273 grep -v '^ *+' conftest.er1 >conftest.err
30274 rm -f conftest.er1
30275 cat conftest.err >&5
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030277 (exit $ac_status); } &&
30278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30279 { (case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30282esac
30283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_try") 2>&5
30285 ac_status=$?
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; } &&
30288 { ac_try='test -s conftest.$ac_objext'
30289 { (case "(($ac_try" in
30290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30291 *) ac_try_echo=$ac_try;;
30292esac
30293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30294 (eval "$ac_try") 2>&5
30295 ac_status=$?
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); }; }; then
Reid Spencer096a8142007-08-17 05:45:26 +000030298 ac_header_compiler=yes
30299else
30300 echo "$as_me: failed program was:" >&5
30301sed 's/^/| /' conftest.$ac_ext >&5
30302
30303 ac_header_compiler=no
30304fi
30305
30306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30307{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30308echo "${ECHO_T}$ac_header_compiler" >&6; }
30309
30310# Is the header present?
30311{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30313cat >conftest.$ac_ext <<_ACEOF
30314/* confdefs.h. */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h. */
30319#include <$ac_header>
30320_ACEOF
30321if { (ac_try="$ac_cpp conftest.$ac_ext"
30322case "(($ac_try" in
30323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30324 *) ac_try_echo=$ac_try;;
30325esac
30326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30328 ac_status=$?
30329 grep -v '^ *+' conftest.er1 >conftest.err
30330 rm -f conftest.er1
30331 cat conftest.err >&5
30332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030333 (exit $ac_status); } >/dev/null; then
30334 if test -s conftest.err; then
30335 ac_cpp_err=$ac_c_preproc_warn_flag
30336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30337 else
30338 ac_cpp_err=
30339 fi
30340else
30341 ac_cpp_err=yes
30342fi
30343if test -z "$ac_cpp_err"; then
Reid Spencer096a8142007-08-17 05:45:26 +000030344 ac_header_preproc=yes
30345else
30346 echo "$as_me: failed program was:" >&5
30347sed 's/^/| /' conftest.$ac_ext >&5
30348
30349 ac_header_preproc=no
30350fi
30351
30352rm -f conftest.err conftest.$ac_ext
30353{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30354echo "${ECHO_T}$ac_header_preproc" >&6; }
30355
30356# So? What about this header?
30357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30358 yes:no: )
30359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30363 ac_header_preproc=yes
30364 ;;
30365 no:yes:* )
30366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30373echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30378 ( cat <<\_ASBOX
30379## ----------------------------------- ##
30380## Report this to llvmbugs@cs.uiuc.edu ##
30381## ----------------------------------- ##
30382_ASBOX
30383 ) | sed "s/^/$as_me: WARNING: /" >&2
30384 ;;
30385esac
30386{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30389 echo $ECHO_N "(cached) $ECHO_C" >&6
30390else
30391 eval "$as_ac_Header=\$ac_header_preproc"
30392fi
30393ac_res=`eval echo '${'$as_ac_Header'}'`
30394 { echo "$as_me:$LINENO: result: $ac_res" >&5
30395echo "${ECHO_T}$ac_res" >&6; }
30396
30397fi
30398if test `eval echo '${'$as_ac_Header'}'` = yes; then
30399 cat >>confdefs.h <<_ACEOF
30400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30401_ACEOF
30402
30403fi
30404
30405done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030406
30407
30408
30409
Reid Spencer096a8142007-08-17 05:45:26 +000030410
30411for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030412do
30413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30418 echo $ECHO_N "(cached) $ECHO_C" >&6
30419fi
30420ac_res=`eval echo '${'$as_ac_Header'}'`
30421 { echo "$as_me:$LINENO: result: $ac_res" >&5
30422echo "${ECHO_T}$ac_res" >&6; }
30423else
30424 # Is the header compilable?
30425{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30426echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30427cat >conftest.$ac_ext <<_ACEOF
30428/* confdefs.h. */
30429_ACEOF
30430cat confdefs.h >>conftest.$ac_ext
30431cat >>conftest.$ac_ext <<_ACEOF
30432/* end confdefs.h. */
30433$ac_includes_default
30434#include <$ac_header>
30435_ACEOF
30436rm -f conftest.$ac_objext
30437if { (ac_try="$ac_compile"
30438case "(($ac_try" in
30439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30440 *) ac_try_echo=$ac_try;;
30441esac
30442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30443 (eval "$ac_compile") 2>conftest.er1
30444 ac_status=$?
30445 grep -v '^ *+' conftest.er1 >conftest.err
30446 rm -f conftest.er1
30447 cat conftest.err >&5
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030449 (exit $ac_status); } &&
30450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30451 { (case "(($ac_try" in
30452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30453 *) ac_try_echo=$ac_try;;
30454esac
30455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30456 (eval "$ac_try") 2>&5
30457 ac_status=$?
30458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 (exit $ac_status); }; } &&
30460 { ac_try='test -s conftest.$ac_objext'
30461 { (case "(($ac_try" in
30462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463 *) ac_try_echo=$ac_try;;
30464esac
30465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466 (eval "$ac_try") 2>&5
30467 ac_status=$?
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030470 ac_header_compiler=yes
30471else
30472 echo "$as_me: failed program was:" >&5
30473sed 's/^/| /' conftest.$ac_ext >&5
30474
30475 ac_header_compiler=no
30476fi
30477
30478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30479{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30480echo "${ECHO_T}$ac_header_compiler" >&6; }
30481
30482# Is the header present?
30483{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30485cat >conftest.$ac_ext <<_ACEOF
30486/* confdefs.h. */
30487_ACEOF
30488cat confdefs.h >>conftest.$ac_ext
30489cat >>conftest.$ac_ext <<_ACEOF
30490/* end confdefs.h. */
30491#include <$ac_header>
30492_ACEOF
30493if { (ac_try="$ac_cpp conftest.$ac_ext"
30494case "(($ac_try" in
30495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30496 *) ac_try_echo=$ac_try;;
30497esac
30498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30500 ac_status=$?
30501 grep -v '^ *+' conftest.er1 >conftest.err
30502 rm -f conftest.er1
30503 cat conftest.err >&5
30504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030505 (exit $ac_status); } >/dev/null; then
30506 if test -s conftest.err; then
30507 ac_cpp_err=$ac_c_preproc_warn_flag
30508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30509 else
30510 ac_cpp_err=
30511 fi
30512else
30513 ac_cpp_err=yes
30514fi
30515if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030516 ac_header_preproc=yes
30517else
30518 echo "$as_me: failed program was:" >&5
30519sed 's/^/| /' conftest.$ac_ext >&5
30520
30521 ac_header_preproc=no
30522fi
30523
30524rm -f conftest.err conftest.$ac_ext
30525{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30526echo "${ECHO_T}$ac_header_preproc" >&6; }
30527
30528# So? What about this header?
30529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30530 yes:no: )
30531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30535 ac_header_preproc=yes
30536 ;;
30537 no:yes:* )
30538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30550 ( cat <<\_ASBOX
30551## ----------------------------------- ##
30552## Report this to llvmbugs@cs.uiuc.edu ##
30553## ----------------------------------- ##
30554_ASBOX
30555 ) | sed "s/^/$as_me: WARNING: /" >&2
30556 ;;
30557esac
30558{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30561 echo $ECHO_N "(cached) $ECHO_C" >&6
30562else
30563 eval "$as_ac_Header=\$ac_header_preproc"
30564fi
30565ac_res=`eval echo '${'$as_ac_Header'}'`
30566 { echo "$as_me:$LINENO: result: $ac_res" >&5
30567echo "${ECHO_T}$ac_res" >&6; }
30568
30569fi
30570if test `eval echo '${'$as_ac_Header'}'` = yes; then
30571 cat >>confdefs.h <<_ACEOF
30572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30573_ACEOF
30574
30575fi
30576
30577done
30578
30579
30580
30581
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000030582
30583for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030584do
30585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30590 echo $ECHO_N "(cached) $ECHO_C" >&6
30591fi
30592ac_res=`eval echo '${'$as_ac_Header'}'`
30593 { echo "$as_me:$LINENO: result: $ac_res" >&5
30594echo "${ECHO_T}$ac_res" >&6; }
30595else
30596 # Is the header compilable?
30597{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30598echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30599cat >conftest.$ac_ext <<_ACEOF
30600/* confdefs.h. */
30601_ACEOF
30602cat confdefs.h >>conftest.$ac_ext
30603cat >>conftest.$ac_ext <<_ACEOF
30604/* end confdefs.h. */
30605$ac_includes_default
30606#include <$ac_header>
30607_ACEOF
30608rm -f conftest.$ac_objext
30609if { (ac_try="$ac_compile"
30610case "(($ac_try" in
30611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30612 *) ac_try_echo=$ac_try;;
30613esac
30614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30615 (eval "$ac_compile") 2>conftest.er1
30616 ac_status=$?
30617 grep -v '^ *+' conftest.er1 >conftest.err
30618 rm -f conftest.er1
30619 cat conftest.err >&5
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030621 (exit $ac_status); } &&
30622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30623 { (case "(($ac_try" in
30624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625 *) ac_try_echo=$ac_try;;
30626esac
30627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628 (eval "$ac_try") 2>&5
30629 ac_status=$?
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); }; } &&
30632 { ac_try='test -s conftest.$ac_objext'
30633 { (case "(($ac_try" in
30634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30635 *) ac_try_echo=$ac_try;;
30636esac
30637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638 (eval "$ac_try") 2>&5
30639 ac_status=$?
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030642 ac_header_compiler=yes
30643else
30644 echo "$as_me: failed program was:" >&5
30645sed 's/^/| /' conftest.$ac_ext >&5
30646
30647 ac_header_compiler=no
30648fi
30649
30650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30651{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30652echo "${ECHO_T}$ac_header_compiler" >&6; }
30653
30654# Is the header present?
30655{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30656echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30657cat >conftest.$ac_ext <<_ACEOF
30658/* confdefs.h. */
30659_ACEOF
30660cat confdefs.h >>conftest.$ac_ext
30661cat >>conftest.$ac_ext <<_ACEOF
30662/* end confdefs.h. */
30663#include <$ac_header>
30664_ACEOF
30665if { (ac_try="$ac_cpp conftest.$ac_ext"
30666case "(($ac_try" in
30667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30668 *) ac_try_echo=$ac_try;;
30669esac
30670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30672 ac_status=$?
30673 grep -v '^ *+' conftest.er1 >conftest.err
30674 rm -f conftest.er1
30675 cat conftest.err >&5
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030677 (exit $ac_status); } >/dev/null; then
30678 if test -s conftest.err; then
30679 ac_cpp_err=$ac_c_preproc_warn_flag
30680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30681 else
30682 ac_cpp_err=
30683 fi
30684else
30685 ac_cpp_err=yes
30686fi
30687if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030688 ac_header_preproc=yes
30689else
30690 echo "$as_me: failed program was:" >&5
30691sed 's/^/| /' conftest.$ac_ext >&5
30692
30693 ac_header_preproc=no
30694fi
30695
30696rm -f conftest.err conftest.$ac_ext
30697{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30698echo "${ECHO_T}$ac_header_preproc" >&6; }
30699
30700# So? What about this header?
30701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30702 yes:no: )
30703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30706echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30707 ac_header_preproc=yes
30708 ;;
30709 no:yes:* )
30710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30713echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30715echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30717echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30721echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30722 ( cat <<\_ASBOX
30723## ----------------------------------- ##
30724## Report this to llvmbugs@cs.uiuc.edu ##
30725## ----------------------------------- ##
30726_ASBOX
30727 ) | sed "s/^/$as_me: WARNING: /" >&2
30728 ;;
30729esac
30730{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30733 echo $ECHO_N "(cached) $ECHO_C" >&6
30734else
30735 eval "$as_ac_Header=\$ac_header_preproc"
30736fi
30737ac_res=`eval echo '${'$as_ac_Header'}'`
30738 { echo "$as_me:$LINENO: result: $ac_res" >&5
30739echo "${ECHO_T}$ac_res" >&6; }
30740
30741fi
30742if test `eval echo '${'$as_ac_Header'}'` = yes; then
30743 cat >>confdefs.h <<_ACEOF
30744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30745_ACEOF
30746
30747fi
30748
30749done
30750
30751if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000030752
30753for ac_header in pthread.h
30754do
30755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030760 echo $ECHO_N "(cached) $ECHO_C" >&6
30761fi
Reid Spencer096a8142007-08-17 05:45:26 +000030762ac_res=`eval echo '${'$as_ac_Header'}'`
30763 { echo "$as_me:$LINENO: result: $ac_res" >&5
30764echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030765else
30766 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000030767{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30768echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030769cat >conftest.$ac_ext <<_ACEOF
30770/* confdefs.h. */
30771_ACEOF
30772cat confdefs.h >>conftest.$ac_ext
30773cat >>conftest.$ac_ext <<_ACEOF
30774/* end confdefs.h. */
30775$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000030776#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030777_ACEOF
30778rm -f conftest.$ac_objext
30779if { (ac_try="$ac_compile"
30780case "(($ac_try" in
30781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782 *) ac_try_echo=$ac_try;;
30783esac
30784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785 (eval "$ac_compile") 2>conftest.er1
30786 ac_status=$?
30787 grep -v '^ *+' conftest.er1 >conftest.err
30788 rm -f conftest.er1
30789 cat conftest.err >&5
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030791 (exit $ac_status); } &&
30792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30793 { (case "(($ac_try" in
30794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30795 *) ac_try_echo=$ac_try;;
30796esac
30797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30798 (eval "$ac_try") 2>&5
30799 ac_status=$?
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); }; } &&
30802 { ac_try='test -s conftest.$ac_objext'
30803 { (case "(($ac_try" in
30804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30805 *) ac_try_echo=$ac_try;;
30806esac
30807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30808 (eval "$ac_try") 2>&5
30809 ac_status=$?
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030812 ac_header_compiler=yes
30813else
30814 echo "$as_me: failed program was:" >&5
30815sed 's/^/| /' conftest.$ac_ext >&5
30816
30817 ac_header_compiler=no
30818fi
30819
30820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30821{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30822echo "${ECHO_T}$ac_header_compiler" >&6; }
30823
30824# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000030825{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30826echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030827cat >conftest.$ac_ext <<_ACEOF
30828/* confdefs.h. */
30829_ACEOF
30830cat confdefs.h >>conftest.$ac_ext
30831cat >>conftest.$ac_ext <<_ACEOF
30832/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000030833#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030834_ACEOF
30835if { (ac_try="$ac_cpp conftest.$ac_ext"
30836case "(($ac_try" in
30837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30838 *) ac_try_echo=$ac_try;;
30839esac
30840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30842 ac_status=$?
30843 grep -v '^ *+' conftest.er1 >conftest.err
30844 rm -f conftest.er1
30845 cat conftest.err >&5
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030847 (exit $ac_status); } >/dev/null; then
30848 if test -s conftest.err; then
30849 ac_cpp_err=$ac_c_preproc_warn_flag
30850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30851 else
30852 ac_cpp_err=
30853 fi
30854else
30855 ac_cpp_err=yes
30856fi
30857if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030858 ac_header_preproc=yes
30859else
30860 echo "$as_me: failed program was:" >&5
30861sed 's/^/| /' conftest.$ac_ext >&5
30862
30863 ac_header_preproc=no
30864fi
30865
30866rm -f conftest.err conftest.$ac_ext
30867{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30868echo "${ECHO_T}$ac_header_preproc" >&6; }
30869
30870# So? What about this header?
30871case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30872 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000030873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030877 ac_header_preproc=yes
30878 ;;
30879 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000030880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030892 ( cat <<\_ASBOX
30893## ----------------------------------- ##
30894## Report this to llvmbugs@cs.uiuc.edu ##
30895## ----------------------------------- ##
30896_ASBOX
30897 ) | sed "s/^/$as_me: WARNING: /" >&2
30898 ;;
30899esac
Reid Spencer096a8142007-08-17 05:45:26 +000030900{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030903 echo $ECHO_N "(cached) $ECHO_C" >&6
30904else
Reid Spencer096a8142007-08-17 05:45:26 +000030905 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030906fi
Reid Spencer096a8142007-08-17 05:45:26 +000030907ac_res=`eval echo '${'$as_ac_Header'}'`
30908 { echo "$as_me:$LINENO: result: $ac_res" >&5
30909echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030910
30911fi
Reid Spencer096a8142007-08-17 05:45:26 +000030912if test `eval echo '${'$as_ac_Header'}'` = yes; then
30913 cat >>confdefs.h <<_ACEOF
30914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30915_ACEOF
30916 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030917
30918else
30919 HAVE_PTHREAD=0
30920
30921fi
30922
Reid Spencer096a8142007-08-17 05:45:26 +000030923done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030924
30925else
30926 HAVE_PTHREAD=0
30927
30928fi
30929
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000030930if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewycky0235b622009-02-04 06:27:44 +000030931
30932
30933for ac_header in ffi.h ffi/ffi.h
30934do
30935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30940 echo $ECHO_N "(cached) $ECHO_C" >&6
30941fi
30942ac_res=`eval echo '${'$as_ac_Header'}'`
30943 { echo "$as_me:$LINENO: result: $ac_res" >&5
30944echo "${ECHO_T}$ac_res" >&6; }
30945else
30946 # Is the header compilable?
30947{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30949cat >conftest.$ac_ext <<_ACEOF
30950/* confdefs.h. */
30951_ACEOF
30952cat confdefs.h >>conftest.$ac_ext
30953cat >>conftest.$ac_ext <<_ACEOF
30954/* end confdefs.h. */
30955$ac_includes_default
30956#include <$ac_header>
30957_ACEOF
30958rm -f conftest.$ac_objext
30959if { (ac_try="$ac_compile"
30960case "(($ac_try" in
30961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962 *) ac_try_echo=$ac_try;;
30963esac
30964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30965 (eval "$ac_compile") 2>conftest.er1
30966 ac_status=$?
30967 grep -v '^ *+' conftest.er1 >conftest.err
30968 rm -f conftest.er1
30969 cat conftest.err >&5
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030971 (exit $ac_status); } &&
30972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30973 { (case "(($ac_try" in
30974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975 *) ac_try_echo=$ac_try;;
30976esac
30977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30978 (eval "$ac_try") 2>&5
30979 ac_status=$?
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981 (exit $ac_status); }; } &&
30982 { ac_try='test -s conftest.$ac_objext'
30983 { (case "(($ac_try" in
30984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985 *) ac_try_echo=$ac_try;;
30986esac
30987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30988 (eval "$ac_try") 2>&5
30989 ac_status=$?
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); }; }; then
Nick Lewycky0235b622009-02-04 06:27:44 +000030992 ac_header_compiler=yes
30993else
30994 echo "$as_me: failed program was:" >&5
30995sed 's/^/| /' conftest.$ac_ext >&5
30996
30997 ac_header_compiler=no
30998fi
30999
31000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31001{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31002echo "${ECHO_T}$ac_header_compiler" >&6; }
31003
31004# Is the header present?
31005{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31007cat >conftest.$ac_ext <<_ACEOF
31008/* confdefs.h. */
31009_ACEOF
31010cat confdefs.h >>conftest.$ac_ext
31011cat >>conftest.$ac_ext <<_ACEOF
31012/* end confdefs.h. */
31013#include <$ac_header>
31014_ACEOF
31015if { (ac_try="$ac_cpp conftest.$ac_ext"
31016case "(($ac_try" in
31017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31018 *) ac_try_echo=$ac_try;;
31019esac
31020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31022 ac_status=$?
31023 grep -v '^ *+' conftest.er1 >conftest.err
31024 rm -f conftest.er1
31025 cat conftest.err >&5
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031027 (exit $ac_status); } >/dev/null; then
31028 if test -s conftest.err; then
31029 ac_cpp_err=$ac_c_preproc_warn_flag
31030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31031 else
31032 ac_cpp_err=
31033 fi
31034else
31035 ac_cpp_err=yes
31036fi
31037if test -z "$ac_cpp_err"; then
Nick Lewycky0235b622009-02-04 06:27:44 +000031038 ac_header_preproc=yes
31039else
31040 echo "$as_me: failed program was:" >&5
31041sed 's/^/| /' conftest.$ac_ext >&5
31042
31043 ac_header_preproc=no
31044fi
31045
31046rm -f conftest.err conftest.$ac_ext
31047{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31048echo "${ECHO_T}$ac_header_preproc" >&6; }
31049
31050# So? What about this header?
31051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31052 yes:no: )
31053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31057 ac_header_preproc=yes
31058 ;;
31059 no:yes:* )
31060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31072 ( cat <<\_ASBOX
31073## ----------------------------------- ##
31074## Report this to llvmbugs@cs.uiuc.edu ##
31075## ----------------------------------- ##
31076_ASBOX
31077 ) | sed "s/^/$as_me: WARNING: /" >&2
31078 ;;
31079esac
31080{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31083 echo $ECHO_N "(cached) $ECHO_C" >&6
31084else
31085 eval "$as_ac_Header=\$ac_header_preproc"
31086fi
31087ac_res=`eval echo '${'$as_ac_Header'}'`
31088 { echo "$as_me:$LINENO: result: $ac_res" >&5
31089echo "${ECHO_T}$ac_res" >&6; }
31090
31091fi
31092if test `eval echo '${'$as_ac_Header'}'` = yes; then
31093 cat >>confdefs.h <<_ACEOF
31094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31095_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000031096
31097fi
31098
31099done
31100
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000031101fi
Nick Lewycky0235b622009-02-04 06:27:44 +000031102
Nick Lewycky5d713ec2009-01-20 00:52:24 +000031103
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031104
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031105 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31106echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31107if test "${ac_cv_huge_val_sanity+set}" = set; then
31108 echo $ECHO_N "(cached) $ECHO_C" >&6
31109else
31110
31111 ac_ext=cpp
31112ac_cpp='$CXXCPP $CPPFLAGS'
31113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31116
31117 CXXFLAGS=-pedantic
31118 if test "$cross_compiling" = yes; then
31119 ac_cv_huge_val_sanity=yes
31120else
31121 cat >conftest.$ac_ext <<_ACEOF
31122/* confdefs.h. */
31123_ACEOF
31124cat confdefs.h >>conftest.$ac_ext
31125cat >>conftest.$ac_ext <<_ACEOF
31126/* end confdefs.h. */
31127#include <math.h>
31128int
31129main ()
31130{
31131double x = HUGE_VAL; return x != x;
31132 ;
31133 return 0;
31134}
31135_ACEOF
31136rm -f conftest$ac_exeext
31137if { (ac_try="$ac_link"
31138case "(($ac_try" in
31139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140 *) ac_try_echo=$ac_try;;
31141esac
31142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143 (eval "$ac_link") 2>&5
31144 ac_status=$?
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31147 { (case "(($ac_try" in
31148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149 *) ac_try_echo=$ac_try;;
31150esac
31151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152 (eval "$ac_try") 2>&5
31153 ac_status=$?
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; }; then
31156 ac_cv_huge_val_sanity=yes
31157else
31158 echo "$as_me: program exited with status $ac_status" >&5
31159echo "$as_me: failed program was:" >&5
31160sed 's/^/| /' conftest.$ac_ext >&5
31161
31162( exit $ac_status )
31163ac_cv_huge_val_sanity=no
31164fi
31165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31166fi
31167
31168
31169 ac_ext=c
31170ac_cpp='$CPP $CPPFLAGS'
31171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31173ac_compiler_gnu=$ac_cv_c_compiler_gnu
31174
31175
31176fi
31177{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31178echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31179 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31180
31181
31182{ echo "$as_me:$LINENO: checking for pid_t" >&5
31183echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31184if test "${ac_cv_type_pid_t+set}" = set; then
31185 echo $ECHO_N "(cached) $ECHO_C" >&6
31186else
31187 cat >conftest.$ac_ext <<_ACEOF
31188/* confdefs.h. */
31189_ACEOF
31190cat confdefs.h >>conftest.$ac_ext
31191cat >>conftest.$ac_ext <<_ACEOF
31192/* end confdefs.h. */
31193$ac_includes_default
31194typedef pid_t ac__type_new_;
31195int
31196main ()
31197{
31198if ((ac__type_new_ *) 0)
31199 return 0;
31200if (sizeof (ac__type_new_))
31201 return 0;
31202 ;
31203 return 0;
31204}
31205_ACEOF
31206rm -f conftest.$ac_objext
31207if { (ac_try="$ac_compile"
31208case "(($ac_try" in
31209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210 *) ac_try_echo=$ac_try;;
31211esac
31212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213 (eval "$ac_compile") 2>conftest.er1
31214 ac_status=$?
31215 grep -v '^ *+' conftest.er1 >conftest.err
31216 rm -f conftest.er1
31217 cat conftest.err >&5
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031219 (exit $ac_status); } &&
31220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31221 { (case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31224esac
31225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_try") 2>&5
31227 ac_status=$?
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; } &&
31230 { ac_try='test -s conftest.$ac_objext'
31231 { (case "(($ac_try" in
31232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233 *) ac_try_echo=$ac_try;;
31234esac
31235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236 (eval "$ac_try") 2>&5
31237 ac_status=$?
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031240 ac_cv_type_pid_t=yes
31241else
31242 echo "$as_me: failed program was:" >&5
31243sed 's/^/| /' conftest.$ac_ext >&5
31244
31245 ac_cv_type_pid_t=no
31246fi
31247
31248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31249fi
31250{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31251echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31252if test $ac_cv_type_pid_t = yes; then
31253 :
31254else
31255
31256cat >>confdefs.h <<_ACEOF
31257#define pid_t int
31258_ACEOF
31259
31260fi
31261
31262{ echo "$as_me:$LINENO: checking for size_t" >&5
31263echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31264if test "${ac_cv_type_size_t+set}" = set; then
31265 echo $ECHO_N "(cached) $ECHO_C" >&6
31266else
31267 cat >conftest.$ac_ext <<_ACEOF
31268/* confdefs.h. */
31269_ACEOF
31270cat confdefs.h >>conftest.$ac_ext
31271cat >>conftest.$ac_ext <<_ACEOF
31272/* end confdefs.h. */
31273$ac_includes_default
31274typedef size_t ac__type_new_;
31275int
31276main ()
31277{
31278if ((ac__type_new_ *) 0)
31279 return 0;
31280if (sizeof (ac__type_new_))
31281 return 0;
31282 ;
31283 return 0;
31284}
31285_ACEOF
31286rm -f conftest.$ac_objext
31287if { (ac_try="$ac_compile"
31288case "(($ac_try" in
31289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31291esac
31292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_compile") 2>conftest.er1
31294 ac_status=$?
31295 grep -v '^ *+' conftest.er1 >conftest.err
31296 rm -f conftest.er1
31297 cat conftest.err >&5
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031299 (exit $ac_status); } &&
31300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31301 { (case "(($ac_try" in
31302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31303 *) ac_try_echo=$ac_try;;
31304esac
31305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31306 (eval "$ac_try") 2>&5
31307 ac_status=$?
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); }; } &&
31310 { ac_try='test -s conftest.$ac_objext'
31311 { (case "(($ac_try" in
31312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313 *) ac_try_echo=$ac_try;;
31314esac
31315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316 (eval "$ac_try") 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031320 ac_cv_type_size_t=yes
31321else
31322 echo "$as_me: failed program was:" >&5
31323sed 's/^/| /' conftest.$ac_ext >&5
31324
31325 ac_cv_type_size_t=no
31326fi
31327
31328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31329fi
31330{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31331echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31332if test $ac_cv_type_size_t = yes; then
31333 :
31334else
31335
31336cat >>confdefs.h <<_ACEOF
31337#define size_t unsigned int
31338_ACEOF
31339
31340fi
31341
31342{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31343echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31344if test "${ac_cv_type_signal+set}" = set; then
31345 echo $ECHO_N "(cached) $ECHO_C" >&6
31346else
31347 cat >conftest.$ac_ext <<_ACEOF
31348/* confdefs.h. */
31349_ACEOF
31350cat confdefs.h >>conftest.$ac_ext
31351cat >>conftest.$ac_ext <<_ACEOF
31352/* end confdefs.h. */
31353#include <sys/types.h>
31354#include <signal.h>
31355
31356int
31357main ()
31358{
31359return *(signal (0, 0)) (0) == 1;
31360 ;
31361 return 0;
31362}
31363_ACEOF
31364rm -f conftest.$ac_objext
31365if { (ac_try="$ac_compile"
31366case "(($ac_try" in
31367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31368 *) ac_try_echo=$ac_try;;
31369esac
31370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31371 (eval "$ac_compile") 2>conftest.er1
31372 ac_status=$?
31373 grep -v '^ *+' conftest.er1 >conftest.err
31374 rm -f conftest.er1
31375 cat conftest.err >&5
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031377 (exit $ac_status); } &&
31378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31379 { (case "(($ac_try" in
31380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31381 *) ac_try_echo=$ac_try;;
31382esac
31383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31384 (eval "$ac_try") 2>&5
31385 ac_status=$?
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); }; } &&
31388 { ac_try='test -s conftest.$ac_objext'
31389 { (case "(($ac_try" in
31390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391 *) ac_try_echo=$ac_try;;
31392esac
31393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31394 (eval "$ac_try") 2>&5
31395 ac_status=$?
31396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031398 ac_cv_type_signal=int
31399else
31400 echo "$as_me: failed program was:" >&5
31401sed 's/^/| /' conftest.$ac_ext >&5
31402
31403 ac_cv_type_signal=void
31404fi
31405
31406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31407fi
31408{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31409echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31410
31411cat >>confdefs.h <<_ACEOF
31412#define RETSIGTYPE $ac_cv_type_signal
31413_ACEOF
31414
31415
31416{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31417echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31418if test "${ac_cv_struct_tm+set}" = set; then
31419 echo $ECHO_N "(cached) $ECHO_C" >&6
31420else
31421 cat >conftest.$ac_ext <<_ACEOF
31422/* confdefs.h. */
31423_ACEOF
31424cat confdefs.h >>conftest.$ac_ext
31425cat >>conftest.$ac_ext <<_ACEOF
31426/* end confdefs.h. */
31427#include <sys/types.h>
31428#include <time.h>
31429
31430int
31431main ()
31432{
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031433struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031434 ;
31435 return 0;
31436}
31437_ACEOF
31438rm -f conftest.$ac_objext
31439if { (ac_try="$ac_compile"
31440case "(($ac_try" in
31441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31442 *) ac_try_echo=$ac_try;;
31443esac
31444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445 (eval "$ac_compile") 2>conftest.er1
31446 ac_status=$?
31447 grep -v '^ *+' conftest.er1 >conftest.err
31448 rm -f conftest.er1
31449 cat conftest.err >&5
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031451 (exit $ac_status); } &&
31452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31453 { (case "(($ac_try" in
31454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455 *) ac_try_echo=$ac_try;;
31456esac
31457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458 (eval "$ac_try") 2>&5
31459 ac_status=$?
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); }; } &&
31462 { ac_try='test -s conftest.$ac_objext'
31463 { (case "(($ac_try" in
31464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465 *) ac_try_echo=$ac_try;;
31466esac
31467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468 (eval "$ac_try") 2>&5
31469 ac_status=$?
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031472 ac_cv_struct_tm=time.h
31473else
31474 echo "$as_me: failed program was:" >&5
31475sed 's/^/| /' conftest.$ac_ext >&5
31476
31477 ac_cv_struct_tm=sys/time.h
31478fi
31479
31480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31481fi
31482{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31483echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31484if test $ac_cv_struct_tm = sys/time.h; then
31485
31486cat >>confdefs.h <<\_ACEOF
31487#define TM_IN_SYS_TIME 1
31488_ACEOF
31489
31490fi
31491
31492{ echo "$as_me:$LINENO: checking for int64_t" >&5
31493echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31494if test "${ac_cv_type_int64_t+set}" = set; then
31495 echo $ECHO_N "(cached) $ECHO_C" >&6
31496else
31497 cat >conftest.$ac_ext <<_ACEOF
31498/* confdefs.h. */
31499_ACEOF
31500cat confdefs.h >>conftest.$ac_ext
31501cat >>conftest.$ac_ext <<_ACEOF
31502/* end confdefs.h. */
31503$ac_includes_default
31504typedef int64_t ac__type_new_;
31505int
31506main ()
31507{
31508if ((ac__type_new_ *) 0)
31509 return 0;
31510if (sizeof (ac__type_new_))
31511 return 0;
31512 ;
31513 return 0;
31514}
31515_ACEOF
31516rm -f conftest.$ac_objext
31517if { (ac_try="$ac_compile"
31518case "(($ac_try" in
31519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31520 *) ac_try_echo=$ac_try;;
31521esac
31522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31523 (eval "$ac_compile") 2>conftest.er1
31524 ac_status=$?
31525 grep -v '^ *+' conftest.er1 >conftest.err
31526 rm -f conftest.er1
31527 cat conftest.err >&5
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031529 (exit $ac_status); } &&
31530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31531 { (case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31534esac
31535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_try") 2>&5
31537 ac_status=$?
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; } &&
31540 { ac_try='test -s conftest.$ac_objext'
31541 { (case "(($ac_try" in
31542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543 *) ac_try_echo=$ac_try;;
31544esac
31545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31546 (eval "$ac_try") 2>&5
31547 ac_status=$?
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031550 ac_cv_type_int64_t=yes
31551else
31552 echo "$as_me: failed program was:" >&5
31553sed 's/^/| /' conftest.$ac_ext >&5
31554
31555 ac_cv_type_int64_t=no
31556fi
31557
31558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31559fi
31560{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31561echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31562if test $ac_cv_type_int64_t = yes; then
31563
31564cat >>confdefs.h <<_ACEOF
31565#define HAVE_INT64_T 1
31566_ACEOF
31567
31568
31569else
31570 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31571echo "$as_me: error: Type int64_t required but not found" >&2;}
31572 { (exit 1); exit 1; }; }
31573fi
31574
31575{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31576echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31577if test "${ac_cv_type_uint64_t+set}" = set; then
31578 echo $ECHO_N "(cached) $ECHO_C" >&6
31579else
31580 cat >conftest.$ac_ext <<_ACEOF
31581/* confdefs.h. */
31582_ACEOF
31583cat confdefs.h >>conftest.$ac_ext
31584cat >>conftest.$ac_ext <<_ACEOF
31585/* end confdefs.h. */
31586$ac_includes_default
31587typedef uint64_t ac__type_new_;
31588int
31589main ()
31590{
31591if ((ac__type_new_ *) 0)
31592 return 0;
31593if (sizeof (ac__type_new_))
31594 return 0;
31595 ;
31596 return 0;
31597}
31598_ACEOF
31599rm -f conftest.$ac_objext
31600if { (ac_try="$ac_compile"
31601case "(($ac_try" in
31602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31603 *) ac_try_echo=$ac_try;;
31604esac
31605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31606 (eval "$ac_compile") 2>conftest.er1
31607 ac_status=$?
31608 grep -v '^ *+' conftest.er1 >conftest.err
31609 rm -f conftest.er1
31610 cat conftest.err >&5
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031612 (exit $ac_status); } &&
31613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31614 { (case "(($ac_try" in
31615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31616 *) ac_try_echo=$ac_try;;
31617esac
31618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31619 (eval "$ac_try") 2>&5
31620 ac_status=$?
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); }; } &&
31623 { ac_try='test -s conftest.$ac_objext'
31624 { (case "(($ac_try" in
31625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31626 *) ac_try_echo=$ac_try;;
31627esac
31628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31629 (eval "$ac_try") 2>&5
31630 ac_status=$?
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031633 ac_cv_type_uint64_t=yes
31634else
31635 echo "$as_me: failed program was:" >&5
31636sed 's/^/| /' conftest.$ac_ext >&5
31637
31638 ac_cv_type_uint64_t=no
31639fi
31640
31641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31642fi
31643{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31644echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31645if test $ac_cv_type_uint64_t = yes; then
31646
31647cat >>confdefs.h <<_ACEOF
31648#define HAVE_UINT64_T 1
31649_ACEOF
31650
31651
31652else
31653 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31654echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31655if test "${ac_cv_type_u_int64_t+set}" = set; then
31656 echo $ECHO_N "(cached) $ECHO_C" >&6
31657else
31658 cat >conftest.$ac_ext <<_ACEOF
31659/* confdefs.h. */
31660_ACEOF
31661cat confdefs.h >>conftest.$ac_ext
31662cat >>conftest.$ac_ext <<_ACEOF
31663/* end confdefs.h. */
31664$ac_includes_default
31665typedef u_int64_t ac__type_new_;
31666int
31667main ()
31668{
31669if ((ac__type_new_ *) 0)
31670 return 0;
31671if (sizeof (ac__type_new_))
31672 return 0;
31673 ;
31674 return 0;
31675}
31676_ACEOF
31677rm -f conftest.$ac_objext
31678if { (ac_try="$ac_compile"
31679case "(($ac_try" in
31680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31681 *) ac_try_echo=$ac_try;;
31682esac
31683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31684 (eval "$ac_compile") 2>conftest.er1
31685 ac_status=$?
31686 grep -v '^ *+' conftest.er1 >conftest.err
31687 rm -f conftest.er1
31688 cat conftest.err >&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031690 (exit $ac_status); } &&
31691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31692 { (case "(($ac_try" in
31693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694 *) ac_try_echo=$ac_try;;
31695esac
31696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697 (eval "$ac_try") 2>&5
31698 ac_status=$?
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; } &&
31701 { ac_try='test -s conftest.$ac_objext'
31702 { (case "(($ac_try" in
31703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704 *) ac_try_echo=$ac_try;;
31705esac
31706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707 (eval "$ac_try") 2>&5
31708 ac_status=$?
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031711 ac_cv_type_u_int64_t=yes
31712else
31713 echo "$as_me: failed program was:" >&5
31714sed 's/^/| /' conftest.$ac_ext >&5
31715
31716 ac_cv_type_u_int64_t=no
31717fi
31718
31719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31720fi
31721{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31722echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31723if test $ac_cv_type_u_int64_t = yes; then
31724
31725cat >>confdefs.h <<_ACEOF
31726#define HAVE_U_INT64_T 1
31727_ACEOF
31728
31729
31730else
31731 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31732echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31733 { (exit 1); exit 1; }; }
31734fi
31735
31736fi
31737
31738
31739
31740
31741
31742
31743
31744
31745
31746
31747for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31748do
31749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31750{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31753 echo $ECHO_N "(cached) $ECHO_C" >&6
31754else
31755 cat >conftest.$ac_ext <<_ACEOF
31756/* confdefs.h. */
31757_ACEOF
31758cat confdefs.h >>conftest.$ac_ext
31759cat >>conftest.$ac_ext <<_ACEOF
31760/* end confdefs.h. */
31761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31763#define $ac_func innocuous_$ac_func
31764
31765/* System header to define __stub macros and hopefully few prototypes,
31766 which can conflict with char $ac_func (); below.
31767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31768 <limits.h> exists even on freestanding compilers. */
31769
31770#ifdef __STDC__
31771# include <limits.h>
31772#else
31773# include <assert.h>
31774#endif
31775
31776#undef $ac_func
31777
31778/* Override any GCC internal prototype to avoid an error.
31779 Use char because int might match the return type of a GCC
31780 builtin and then its argument prototype would still apply. */
31781#ifdef __cplusplus
31782extern "C"
31783#endif
31784char $ac_func ();
31785/* The GNU C library defines this for functions which it implements
31786 to always fail with ENOSYS. Some functions are actually named
31787 something starting with __ and the normal name is an alias. */
31788#if defined __stub_$ac_func || defined __stub___$ac_func
31789choke me
31790#endif
31791
31792int
31793main ()
31794{
31795return $ac_func ();
31796 ;
31797 return 0;
31798}
31799_ACEOF
31800rm -f conftest.$ac_objext conftest$ac_exeext
31801if { (ac_try="$ac_link"
31802case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31805esac
31806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_link") 2>conftest.er1
31808 ac_status=$?
31809 grep -v '^ *+' conftest.er1 >conftest.err
31810 rm -f conftest.er1
31811 cat conftest.err >&5
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031813 (exit $ac_status); } &&
31814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31815 { (case "(($ac_try" in
31816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817 *) ac_try_echo=$ac_try;;
31818esac
31819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820 (eval "$ac_try") 2>&5
31821 ac_status=$?
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); }; } &&
31824 { ac_try='test -s conftest$ac_exeext'
31825 { (case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31828esac
31829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_try") 2>&5
31831 ac_status=$?
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031834 eval "$as_ac_var=yes"
31835else
31836 echo "$as_me: failed program was:" >&5
31837sed 's/^/| /' conftest.$ac_ext >&5
31838
31839 eval "$as_ac_var=no"
31840fi
31841
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031842rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031843 conftest$ac_exeext conftest.$ac_ext
31844fi
31845ac_res=`eval echo '${'$as_ac_var'}'`
31846 { echo "$as_me:$LINENO: result: $ac_res" >&5
31847echo "${ECHO_T}$ac_res" >&6; }
31848if test `eval echo '${'$as_ac_var'}'` = yes; then
31849 cat >>confdefs.h <<_ACEOF
31850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31851_ACEOF
31852
31853fi
31854done
31855
31856
31857
31858
31859
31860for ac_func in powf fmodf strtof round
31861do
31862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31863{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31865if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31866 echo $ECHO_N "(cached) $ECHO_C" >&6
31867else
31868 cat >conftest.$ac_ext <<_ACEOF
31869/* confdefs.h. */
31870_ACEOF
31871cat confdefs.h >>conftest.$ac_ext
31872cat >>conftest.$ac_ext <<_ACEOF
31873/* end confdefs.h. */
31874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31876#define $ac_func innocuous_$ac_func
31877
31878/* System header to define __stub macros and hopefully few prototypes,
31879 which can conflict with char $ac_func (); below.
31880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31881 <limits.h> exists even on freestanding compilers. */
31882
31883#ifdef __STDC__
31884# include <limits.h>
31885#else
31886# include <assert.h>
31887#endif
31888
31889#undef $ac_func
31890
31891/* Override any GCC internal prototype to avoid an error.
31892 Use char because int might match the return type of a GCC
31893 builtin and then its argument prototype would still apply. */
31894#ifdef __cplusplus
31895extern "C"
31896#endif
31897char $ac_func ();
31898/* The GNU C library defines this for functions which it implements
31899 to always fail with ENOSYS. Some functions are actually named
31900 something starting with __ and the normal name is an alias. */
31901#if defined __stub_$ac_func || defined __stub___$ac_func
31902choke me
31903#endif
31904
31905int
31906main ()
31907{
31908return $ac_func ();
31909 ;
31910 return 0;
31911}
31912_ACEOF
31913rm -f conftest.$ac_objext conftest$ac_exeext
31914if { (ac_try="$ac_link"
31915case "(($ac_try" in
31916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917 *) ac_try_echo=$ac_try;;
31918esac
31919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920 (eval "$ac_link") 2>conftest.er1
31921 ac_status=$?
31922 grep -v '^ *+' conftest.er1 >conftest.err
31923 rm -f conftest.er1
31924 cat conftest.err >&5
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031926 (exit $ac_status); } &&
31927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31928 { (case "(($ac_try" in
31929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930 *) ac_try_echo=$ac_try;;
31931esac
31932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933 (eval "$ac_try") 2>&5
31934 ac_status=$?
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); }; } &&
31937 { ac_try='test -s conftest$ac_exeext'
31938 { (case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31941esac
31942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_try") 2>&5
31944 ac_status=$?
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031947 eval "$as_ac_var=yes"
31948else
31949 echo "$as_me: failed program was:" >&5
31950sed 's/^/| /' conftest.$ac_ext >&5
31951
31952 eval "$as_ac_var=no"
31953fi
31954
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031955rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031956 conftest$ac_exeext conftest.$ac_ext
31957fi
31958ac_res=`eval echo '${'$as_ac_var'}'`
31959 { echo "$as_me:$LINENO: result: $ac_res" >&5
31960echo "${ECHO_T}$ac_res" >&6; }
31961if test `eval echo '${'$as_ac_var'}'` = yes; then
31962 cat >>confdefs.h <<_ACEOF
31963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31964_ACEOF
31965
31966fi
31967done
31968
31969
31970
31971
31972
31973
31974for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31975do
31976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31977{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31979if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31980 echo $ECHO_N "(cached) $ECHO_C" >&6
31981else
31982 cat >conftest.$ac_ext <<_ACEOF
31983/* confdefs.h. */
31984_ACEOF
31985cat confdefs.h >>conftest.$ac_ext
31986cat >>conftest.$ac_ext <<_ACEOF
31987/* end confdefs.h. */
31988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31990#define $ac_func innocuous_$ac_func
31991
31992/* System header to define __stub macros and hopefully few prototypes,
31993 which can conflict with char $ac_func (); below.
31994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31995 <limits.h> exists even on freestanding compilers. */
31996
31997#ifdef __STDC__
31998# include <limits.h>
31999#else
32000# include <assert.h>
32001#endif
32002
32003#undef $ac_func
32004
32005/* Override any GCC internal prototype to avoid an error.
32006 Use char because int might match the return type of a GCC
32007 builtin and then its argument prototype would still apply. */
32008#ifdef __cplusplus
32009extern "C"
32010#endif
32011char $ac_func ();
32012/* The GNU C library defines this for functions which it implements
32013 to always fail with ENOSYS. Some functions are actually named
32014 something starting with __ and the normal name is an alias. */
32015#if defined __stub_$ac_func || defined __stub___$ac_func
32016choke me
32017#endif
32018
32019int
32020main ()
32021{
32022return $ac_func ();
32023 ;
32024 return 0;
32025}
32026_ACEOF
32027rm -f conftest.$ac_objext conftest$ac_exeext
32028if { (ac_try="$ac_link"
32029case "(($ac_try" in
32030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32031 *) ac_try_echo=$ac_try;;
32032esac
32033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32034 (eval "$ac_link") 2>conftest.er1
32035 ac_status=$?
32036 grep -v '^ *+' conftest.er1 >conftest.err
32037 rm -f conftest.er1
32038 cat conftest.err >&5
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032040 (exit $ac_status); } &&
32041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32042 { (case "(($ac_try" in
32043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32044 *) ac_try_echo=$ac_try;;
32045esac
32046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32047 (eval "$ac_try") 2>&5
32048 ac_status=$?
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); }; } &&
32051 { ac_try='test -s conftest$ac_exeext'
32052 { (case "(($ac_try" in
32053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32054 *) ac_try_echo=$ac_try;;
32055esac
32056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32057 (eval "$ac_try") 2>&5
32058 ac_status=$?
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032061 eval "$as_ac_var=yes"
32062else
32063 echo "$as_me: failed program was:" >&5
32064sed 's/^/| /' conftest.$ac_ext >&5
32065
32066 eval "$as_ac_var=no"
32067fi
32068
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032069rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032070 conftest$ac_exeext conftest.$ac_ext
32071fi
32072ac_res=`eval echo '${'$as_ac_var'}'`
32073 { echo "$as_me:$LINENO: result: $ac_res" >&5
32074echo "${ECHO_T}$ac_res" >&6; }
32075if test `eval echo '${'$as_ac_var'}'` = yes; then
32076 cat >>confdefs.h <<_ACEOF
32077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32078_ACEOF
32079
32080fi
32081done
32082
32083
32084
32085
32086for ac_func in isatty mkdtemp mkstemp
32087do
32088as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32089{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32091if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32092 echo $ECHO_N "(cached) $ECHO_C" >&6
32093else
32094 cat >conftest.$ac_ext <<_ACEOF
32095/* confdefs.h. */
32096_ACEOF
32097cat confdefs.h >>conftest.$ac_ext
32098cat >>conftest.$ac_ext <<_ACEOF
32099/* end confdefs.h. */
32100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32102#define $ac_func innocuous_$ac_func
32103
32104/* System header to define __stub macros and hopefully few prototypes,
32105 which can conflict with char $ac_func (); below.
32106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32107 <limits.h> exists even on freestanding compilers. */
32108
32109#ifdef __STDC__
32110# include <limits.h>
32111#else
32112# include <assert.h>
32113#endif
32114
32115#undef $ac_func
32116
32117/* Override any GCC internal prototype to avoid an error.
32118 Use char because int might match the return type of a GCC
32119 builtin and then its argument prototype would still apply. */
32120#ifdef __cplusplus
32121extern "C"
32122#endif
32123char $ac_func ();
32124/* The GNU C library defines this for functions which it implements
32125 to always fail with ENOSYS. Some functions are actually named
32126 something starting with __ and the normal name is an alias. */
32127#if defined __stub_$ac_func || defined __stub___$ac_func
32128choke me
32129#endif
32130
32131int
32132main ()
32133{
32134return $ac_func ();
32135 ;
32136 return 0;
32137}
32138_ACEOF
32139rm -f conftest.$ac_objext conftest$ac_exeext
32140if { (ac_try="$ac_link"
32141case "(($ac_try" in
32142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143 *) ac_try_echo=$ac_try;;
32144esac
32145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146 (eval "$ac_link") 2>conftest.er1
32147 ac_status=$?
32148 grep -v '^ *+' conftest.er1 >conftest.err
32149 rm -f conftest.er1
32150 cat conftest.err >&5
32151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032152 (exit $ac_status); } &&
32153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32154 { (case "(($ac_try" in
32155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156 *) ac_try_echo=$ac_try;;
32157esac
32158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159 (eval "$ac_try") 2>&5
32160 ac_status=$?
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; } &&
32163 { ac_try='test -s conftest$ac_exeext'
32164 { (case "(($ac_try" in
32165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166 *) ac_try_echo=$ac_try;;
32167esac
32168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169 (eval "$ac_try") 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032173 eval "$as_ac_var=yes"
32174else
32175 echo "$as_me: failed program was:" >&5
32176sed 's/^/| /' conftest.$ac_ext >&5
32177
32178 eval "$as_ac_var=no"
32179fi
32180
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032181rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032182 conftest$ac_exeext conftest.$ac_ext
32183fi
32184ac_res=`eval echo '${'$as_ac_var'}'`
32185 { echo "$as_me:$LINENO: result: $ac_res" >&5
32186echo "${ECHO_T}$ac_res" >&6; }
32187if test `eval echo '${'$as_ac_var'}'` = yes; then
32188 cat >>confdefs.h <<_ACEOF
32189#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32190_ACEOF
32191
32192fi
32193done
32194
32195
32196
32197
32198
32199
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000032200for ac_func in mktemp realpath sbrk setrlimit strdup
32201do
32202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32203{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32205if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32206 echo $ECHO_N "(cached) $ECHO_C" >&6
32207else
32208 cat >conftest.$ac_ext <<_ACEOF
32209/* confdefs.h. */
32210_ACEOF
32211cat confdefs.h >>conftest.$ac_ext
32212cat >>conftest.$ac_ext <<_ACEOF
32213/* end confdefs.h. */
32214/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32216#define $ac_func innocuous_$ac_func
32217
32218/* System header to define __stub macros and hopefully few prototypes,
32219 which can conflict with char $ac_func (); below.
32220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32221 <limits.h> exists even on freestanding compilers. */
32222
32223#ifdef __STDC__
32224# include <limits.h>
32225#else
32226# include <assert.h>
32227#endif
32228
32229#undef $ac_func
32230
32231/* Override any GCC internal prototype to avoid an error.
32232 Use char because int might match the return type of a GCC
32233 builtin and then its argument prototype would still apply. */
32234#ifdef __cplusplus
32235extern "C"
32236#endif
32237char $ac_func ();
32238/* The GNU C library defines this for functions which it implements
32239 to always fail with ENOSYS. Some functions are actually named
32240 something starting with __ and the normal name is an alias. */
32241#if defined __stub_$ac_func || defined __stub___$ac_func
32242choke me
32243#endif
32244
32245int
32246main ()
32247{
32248return $ac_func ();
32249 ;
32250 return 0;
32251}
32252_ACEOF
32253rm -f conftest.$ac_objext conftest$ac_exeext
32254if { (ac_try="$ac_link"
32255case "(($ac_try" in
32256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32257 *) ac_try_echo=$ac_try;;
32258esac
32259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32260 (eval "$ac_link") 2>conftest.er1
32261 ac_status=$?
32262 grep -v '^ *+' conftest.er1 >conftest.err
32263 rm -f conftest.er1
32264 cat conftest.err >&5
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); } &&
32267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32268 { (case "(($ac_try" in
32269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32270 *) ac_try_echo=$ac_try;;
32271esac
32272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32273 (eval "$ac_try") 2>&5
32274 ac_status=$?
32275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32276 (exit $ac_status); }; } &&
32277 { ac_try='test -s conftest$ac_exeext'
32278 { (case "(($ac_try" in
32279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32280 *) ac_try_echo=$ac_try;;
32281esac
32282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283 (eval "$ac_try") 2>&5
32284 ac_status=$?
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); }; }; then
32287 eval "$as_ac_var=yes"
32288else
32289 echo "$as_me: failed program was:" >&5
32290sed 's/^/| /' conftest.$ac_ext >&5
32291
32292 eval "$as_ac_var=no"
32293fi
32294
32295rm -f core conftest.err conftest.$ac_objext \
32296 conftest$ac_exeext conftest.$ac_ext
32297fi
32298ac_res=`eval echo '${'$as_ac_var'}'`
32299 { echo "$as_me:$LINENO: result: $ac_res" >&5
32300echo "${ECHO_T}$ac_res" >&6; }
32301if test `eval echo '${'$as_ac_var'}'` = yes; then
32302 cat >>confdefs.h <<_ACEOF
32303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32304_ACEOF
32305
32306fi
32307done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032308
32309
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000032310
32311
Jeffrey Yasskin41a338b2009-09-25 21:07:20 +000032312
32313for ac_func in strerror strerror_r strerror_s setenv
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032314do
32315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32316{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32318if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32319 echo $ECHO_N "(cached) $ECHO_C" >&6
32320else
32321 cat >conftest.$ac_ext <<_ACEOF
32322/* confdefs.h. */
32323_ACEOF
32324cat confdefs.h >>conftest.$ac_ext
32325cat >>conftest.$ac_ext <<_ACEOF
32326/* end confdefs.h. */
32327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32329#define $ac_func innocuous_$ac_func
32330
32331/* System header to define __stub macros and hopefully few prototypes,
32332 which can conflict with char $ac_func (); below.
32333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32334 <limits.h> exists even on freestanding compilers. */
32335
32336#ifdef __STDC__
32337# include <limits.h>
32338#else
32339# include <assert.h>
32340#endif
32341
32342#undef $ac_func
32343
32344/* Override any GCC internal prototype to avoid an error.
32345 Use char because int might match the return type of a GCC
32346 builtin and then its argument prototype would still apply. */
32347#ifdef __cplusplus
32348extern "C"
32349#endif
32350char $ac_func ();
32351/* The GNU C library defines this for functions which it implements
32352 to always fail with ENOSYS. Some functions are actually named
32353 something starting with __ and the normal name is an alias. */
32354#if defined __stub_$ac_func || defined __stub___$ac_func
32355choke me
32356#endif
32357
32358int
32359main ()
32360{
32361return $ac_func ();
32362 ;
32363 return 0;
32364}
32365_ACEOF
32366rm -f conftest.$ac_objext conftest$ac_exeext
32367if { (ac_try="$ac_link"
32368case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32371esac
32372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_link") 2>conftest.er1
32374 ac_status=$?
32375 grep -v '^ *+' conftest.er1 >conftest.err
32376 rm -f conftest.er1
32377 cat conftest.err >&5
32378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032379 (exit $ac_status); } &&
32380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32381 { (case "(($ac_try" in
32382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383 *) ac_try_echo=$ac_try;;
32384esac
32385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386 (eval "$ac_try") 2>&5
32387 ac_status=$?
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); }; } &&
32390 { ac_try='test -s conftest$ac_exeext'
32391 { (case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32394esac
32395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_try") 2>&5
32397 ac_status=$?
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032400 eval "$as_ac_var=yes"
32401else
32402 echo "$as_me: failed program was:" >&5
32403sed 's/^/| /' conftest.$ac_ext >&5
32404
32405 eval "$as_ac_var=no"
32406fi
32407
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032408rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032409 conftest$ac_exeext conftest.$ac_ext
32410fi
32411ac_res=`eval echo '${'$as_ac_var'}'`
32412 { echo "$as_me:$LINENO: result: $ac_res" >&5
32413echo "${ECHO_T}$ac_res" >&6; }
32414if test `eval echo '${'$as_ac_var'}'` = yes; then
32415 cat >>confdefs.h <<_ACEOF
32416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32417_ACEOF
32418
32419fi
32420done
32421
32422
32423
32424
32425
32426for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32427do
32428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32429{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32431if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32432 echo $ECHO_N "(cached) $ECHO_C" >&6
32433else
32434 cat >conftest.$ac_ext <<_ACEOF
32435/* confdefs.h. */
32436_ACEOF
32437cat confdefs.h >>conftest.$ac_ext
32438cat >>conftest.$ac_ext <<_ACEOF
32439/* end confdefs.h. */
32440/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32442#define $ac_func innocuous_$ac_func
32443
32444/* System header to define __stub macros and hopefully few prototypes,
32445 which can conflict with char $ac_func (); below.
32446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32447 <limits.h> exists even on freestanding compilers. */
32448
32449#ifdef __STDC__
32450# include <limits.h>
32451#else
32452# include <assert.h>
32453#endif
32454
32455#undef $ac_func
32456
32457/* Override any GCC internal prototype to avoid an error.
32458 Use char because int might match the return type of a GCC
32459 builtin and then its argument prototype would still apply. */
32460#ifdef __cplusplus
32461extern "C"
32462#endif
32463char $ac_func ();
32464/* The GNU C library defines this for functions which it implements
32465 to always fail with ENOSYS. Some functions are actually named
32466 something starting with __ and the normal name is an alias. */
32467#if defined __stub_$ac_func || defined __stub___$ac_func
32468choke me
32469#endif
32470
32471int
32472main ()
32473{
32474return $ac_func ();
32475 ;
32476 return 0;
32477}
32478_ACEOF
32479rm -f conftest.$ac_objext conftest$ac_exeext
32480if { (ac_try="$ac_link"
32481case "(($ac_try" in
32482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483 *) ac_try_echo=$ac_try;;
32484esac
32485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486 (eval "$ac_link") 2>conftest.er1
32487 ac_status=$?
32488 grep -v '^ *+' conftest.er1 >conftest.err
32489 rm -f conftest.er1
32490 cat conftest.err >&5
32491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032492 (exit $ac_status); } &&
32493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
32503 { ac_try='test -s conftest$ac_exeext'
32504 { (case "(($ac_try" in
32505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32506 *) ac_try_echo=$ac_try;;
32507esac
32508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509 (eval "$ac_try") 2>&5
32510 ac_status=$?
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032513 eval "$as_ac_var=yes"
32514else
32515 echo "$as_me: failed program was:" >&5
32516sed 's/^/| /' conftest.$ac_ext >&5
32517
32518 eval "$as_ac_var=no"
32519fi
32520
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032521rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032522 conftest$ac_exeext conftest.$ac_ext
32523fi
32524ac_res=`eval echo '${'$as_ac_var'}'`
32525 { echo "$as_me:$LINENO: result: $ac_res" >&5
32526echo "${ECHO_T}$ac_res" >&6; }
32527if test `eval echo '${'$as_ac_var'}'` = yes; then
32528 cat >>confdefs.h <<_ACEOF
32529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32530_ACEOF
32531
32532fi
32533done
32534
32535
32536
32537
32538
32539for ac_func in setjmp longjmp sigsetjmp siglongjmp
32540do
32541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32542{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32544if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32545 echo $ECHO_N "(cached) $ECHO_C" >&6
32546else
32547 cat >conftest.$ac_ext <<_ACEOF
32548/* confdefs.h. */
32549_ACEOF
32550cat confdefs.h >>conftest.$ac_ext
32551cat >>conftest.$ac_ext <<_ACEOF
32552/* end confdefs.h. */
32553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32555#define $ac_func innocuous_$ac_func
32556
32557/* System header to define __stub macros and hopefully few prototypes,
32558 which can conflict with char $ac_func (); below.
32559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32560 <limits.h> exists even on freestanding compilers. */
32561
32562#ifdef __STDC__
32563# include <limits.h>
32564#else
32565# include <assert.h>
32566#endif
32567
32568#undef $ac_func
32569
32570/* Override any GCC internal prototype to avoid an error.
32571 Use char because int might match the return type of a GCC
32572 builtin and then its argument prototype would still apply. */
32573#ifdef __cplusplus
32574extern "C"
32575#endif
32576char $ac_func ();
32577/* The GNU C library defines this for functions which it implements
32578 to always fail with ENOSYS. Some functions are actually named
32579 something starting with __ and the normal name is an alias. */
32580#if defined __stub_$ac_func || defined __stub___$ac_func
32581choke me
32582#endif
32583
32584int
32585main ()
32586{
32587return $ac_func ();
32588 ;
32589 return 0;
32590}
32591_ACEOF
32592rm -f conftest.$ac_objext conftest$ac_exeext
32593if { (ac_try="$ac_link"
32594case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32597esac
32598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599 (eval "$ac_link") 2>conftest.er1
32600 ac_status=$?
32601 grep -v '^ *+' conftest.er1 >conftest.err
32602 rm -f conftest.er1
32603 cat conftest.err >&5
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032605 (exit $ac_status); } &&
32606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32607 { (case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32610esac
32611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_try") 2>&5
32613 ac_status=$?
32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615 (exit $ac_status); }; } &&
32616 { ac_try='test -s conftest$ac_exeext'
32617 { (case "(($ac_try" in
32618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32619 *) ac_try_echo=$ac_try;;
32620esac
32621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32622 (eval "$ac_try") 2>&5
32623 ac_status=$?
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032626 eval "$as_ac_var=yes"
32627else
32628 echo "$as_me: failed program was:" >&5
32629sed 's/^/| /' conftest.$ac_ext >&5
32630
32631 eval "$as_ac_var=no"
32632fi
32633
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032634rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032635 conftest$ac_exeext conftest.$ac_ext
32636fi
32637ac_res=`eval echo '${'$as_ac_var'}'`
32638 { echo "$as_me:$LINENO: result: $ac_res" >&5
32639echo "${ECHO_T}$ac_res" >&6; }
32640if test `eval echo '${'$as_ac_var'}'` = yes; then
32641 cat >>confdefs.h <<_ACEOF
32642#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32643_ACEOF
32644
32645fi
32646done
32647
32648{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32649echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32650if test "${llvm_cv_c_printf_a+set}" = set; then
32651 echo $ECHO_N "(cached) $ECHO_C" >&6
32652else
32653 ac_ext=c
32654ac_cpp='$CPP $CPPFLAGS'
32655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32657ac_compiler_gnu=$ac_cv_c_compiler_gnu
32658
32659 if test "$cross_compiling" = yes; then
32660 llvmac_cv_c_printf_a=no
32661else
32662 cat >conftest.$ac_ext <<_ACEOF
32663
32664 /* confdefs.h. */
32665_ACEOF
32666cat confdefs.h >>conftest.$ac_ext
32667cat >>conftest.$ac_ext <<_ACEOF
32668/* end confdefs.h. */
32669
32670#include <stdio.h>
32671#include <stdlib.h>
32672
32673int
32674main ()
32675{
32676
32677volatile double A, B;
32678char Buffer[100];
32679A = 1;
32680A /= 10.0;
32681sprintf(Buffer, "%a", A);
32682B = atof(Buffer);
32683if (A != B)
32684 return (1);
32685if (A != 0x1.999999999999ap-4)
32686 return (1);
32687return (0);
32688 ;
32689 return 0;
32690}
32691_ACEOF
32692rm -f conftest$ac_exeext
32693if { (ac_try="$ac_link"
32694case "(($ac_try" in
32695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32696 *) ac_try_echo=$ac_try;;
32697esac
32698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699 (eval "$ac_link") 2>&5
32700 ac_status=$?
32701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32706esac
32707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; }; then
32712 llvm_cv_c_printf_a=yes
32713else
32714 echo "$as_me: program exited with status $ac_status" >&5
32715echo "$as_me: failed program was:" >&5
32716sed 's/^/| /' conftest.$ac_ext >&5
32717
32718( exit $ac_status )
32719llvmac_cv_c_printf_a=no
32720fi
32721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32722fi
32723
32724
32725 ac_ext=c
32726ac_cpp='$CPP $CPPFLAGS'
32727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32729ac_compiler_gnu=$ac_cv_c_compiler_gnu
32730
32731fi
32732{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32733echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32734 if test "$llvm_cv_c_printf_a" = "yes"; then
32735
32736cat >>confdefs.h <<\_ACEOF
32737#define HAVE_PRINTF_A 1
32738_ACEOF
32739
32740 fi
32741
32742# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32743# for constant arguments. Useless!
32744{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32745echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32746if test "${ac_cv_working_alloca_h+set}" = set; then
32747 echo $ECHO_N "(cached) $ECHO_C" >&6
32748else
32749 cat >conftest.$ac_ext <<_ACEOF
32750/* confdefs.h. */
32751_ACEOF
32752cat confdefs.h >>conftest.$ac_ext
32753cat >>conftest.$ac_ext <<_ACEOF
32754/* end confdefs.h. */
32755#include <alloca.h>
32756int
32757main ()
32758{
32759char *p = (char *) alloca (2 * sizeof (int));
32760 if (p) return 0;
32761 ;
32762 return 0;
32763}
32764_ACEOF
32765rm -f conftest.$ac_objext conftest$ac_exeext
32766if { (ac_try="$ac_link"
32767case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32770esac
32771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_link") 2>conftest.er1
32773 ac_status=$?
32774 grep -v '^ *+' conftest.er1 >conftest.err
32775 rm -f conftest.er1
32776 cat conftest.err >&5
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032778 (exit $ac_status); } &&
32779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32780 { (case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32783esac
32784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_try") 2>&5
32786 ac_status=$?
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); }; } &&
32789 { ac_try='test -s conftest$ac_exeext'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32793esac
32794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032799 ac_cv_working_alloca_h=yes
32800else
32801 echo "$as_me: failed program was:" >&5
32802sed 's/^/| /' conftest.$ac_ext >&5
32803
32804 ac_cv_working_alloca_h=no
32805fi
32806
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032807rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032808 conftest$ac_exeext conftest.$ac_ext
32809fi
32810{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32811echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32812if test $ac_cv_working_alloca_h = yes; then
32813
32814cat >>confdefs.h <<\_ACEOF
32815#define HAVE_ALLOCA_H 1
32816_ACEOF
32817
32818fi
32819
32820{ echo "$as_me:$LINENO: checking for alloca" >&5
32821echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32822if test "${ac_cv_func_alloca_works+set}" = set; then
32823 echo $ECHO_N "(cached) $ECHO_C" >&6
32824else
32825 cat >conftest.$ac_ext <<_ACEOF
32826/* confdefs.h. */
32827_ACEOF
32828cat confdefs.h >>conftest.$ac_ext
32829cat >>conftest.$ac_ext <<_ACEOF
32830/* end confdefs.h. */
32831#ifdef __GNUC__
32832# define alloca __builtin_alloca
32833#else
32834# ifdef _MSC_VER
32835# include <malloc.h>
32836# define alloca _alloca
32837# else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032838# if HAVE_ALLOCA_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032839# include <alloca.h>
32840# else
32841# ifdef _AIX
32842 #pragma alloca
32843# else
32844# ifndef alloca /* predefined by HP cc +Olibcalls */
32845char *alloca ();
32846# endif
32847# endif
32848# endif
32849# endif
32850#endif
32851
32852int
32853main ()
32854{
32855char *p = (char *) alloca (1);
32856 if (p) return 0;
32857 ;
32858 return 0;
32859}
32860_ACEOF
32861rm -f conftest.$ac_objext conftest$ac_exeext
32862if { (ac_try="$ac_link"
32863case "(($ac_try" in
32864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865 *) ac_try_echo=$ac_try;;
32866esac
32867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868 (eval "$ac_link") 2>conftest.er1
32869 ac_status=$?
32870 grep -v '^ *+' conftest.er1 >conftest.err
32871 rm -f conftest.er1
32872 cat conftest.err >&5
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032874 (exit $ac_status); } &&
32875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32876 { (case "(($ac_try" in
32877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32878 *) ac_try_echo=$ac_try;;
32879esac
32880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32881 (eval "$ac_try") 2>&5
32882 ac_status=$?
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); }; } &&
32885 { ac_try='test -s conftest$ac_exeext'
32886 { (case "(($ac_try" in
32887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32888 *) ac_try_echo=$ac_try;;
32889esac
32890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32891 (eval "$ac_try") 2>&5
32892 ac_status=$?
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032895 ac_cv_func_alloca_works=yes
32896else
32897 echo "$as_me: failed program was:" >&5
32898sed 's/^/| /' conftest.$ac_ext >&5
32899
32900 ac_cv_func_alloca_works=no
32901fi
32902
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032903rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032904 conftest$ac_exeext conftest.$ac_ext
32905fi
32906{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32907echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32908
32909if test $ac_cv_func_alloca_works = yes; then
32910
32911cat >>confdefs.h <<\_ACEOF
32912#define HAVE_ALLOCA 1
32913_ACEOF
32914
32915else
32916 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32917# that cause trouble. Some versions do not even contain alloca or
32918# contain a buggy version. If you still want to use their alloca,
32919# use ar to extract alloca.o from them instead of compiling alloca.c.
32920
32921ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32922
32923cat >>confdefs.h <<\_ACEOF
32924#define C_ALLOCA 1
32925_ACEOF
32926
32927
32928{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32929echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32930if test "${ac_cv_os_cray+set}" = set; then
32931 echo $ECHO_N "(cached) $ECHO_C" >&6
32932else
32933 cat >conftest.$ac_ext <<_ACEOF
32934/* confdefs.h. */
32935_ACEOF
32936cat confdefs.h >>conftest.$ac_ext
32937cat >>conftest.$ac_ext <<_ACEOF
32938/* end confdefs.h. */
32939#if defined CRAY && ! defined CRAY2
32940webecray
32941#else
32942wenotbecray
32943#endif
32944
32945_ACEOF
32946if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32947 $EGREP "webecray" >/dev/null 2>&1; then
32948 ac_cv_os_cray=yes
32949else
32950 ac_cv_os_cray=no
32951fi
32952rm -f conftest*
32953
32954fi
32955{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32956echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32957if test $ac_cv_os_cray = yes; then
32958 for ac_func in _getb67 GETB67 getb67; do
32959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32960{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32963 echo $ECHO_N "(cached) $ECHO_C" >&6
32964else
32965 cat >conftest.$ac_ext <<_ACEOF
32966/* confdefs.h. */
32967_ACEOF
32968cat confdefs.h >>conftest.$ac_ext
32969cat >>conftest.$ac_ext <<_ACEOF
32970/* end confdefs.h. */
32971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32973#define $ac_func innocuous_$ac_func
32974
32975/* System header to define __stub macros and hopefully few prototypes,
32976 which can conflict with char $ac_func (); below.
32977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32978 <limits.h> exists even on freestanding compilers. */
32979
32980#ifdef __STDC__
32981# include <limits.h>
32982#else
32983# include <assert.h>
32984#endif
32985
32986#undef $ac_func
32987
32988/* Override any GCC internal prototype to avoid an error.
32989 Use char because int might match the return type of a GCC
32990 builtin and then its argument prototype would still apply. */
32991#ifdef __cplusplus
32992extern "C"
32993#endif
32994char $ac_func ();
32995/* The GNU C library defines this for functions which it implements
32996 to always fail with ENOSYS. Some functions are actually named
32997 something starting with __ and the normal name is an alias. */
32998#if defined __stub_$ac_func || defined __stub___$ac_func
32999choke me
33000#endif
33001
33002int
33003main ()
33004{
33005return $ac_func ();
33006 ;
33007 return 0;
33008}
33009_ACEOF
33010rm -f conftest.$ac_objext conftest$ac_exeext
33011if { (ac_try="$ac_link"
33012case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33015esac
33016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_link") 2>conftest.er1
33018 ac_status=$?
33019 grep -v '^ *+' conftest.er1 >conftest.err
33020 rm -f conftest.er1
33021 cat conftest.err >&5
33022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033023 (exit $ac_status); } &&
33024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33025 { (case "(($ac_try" in
33026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33027 *) ac_try_echo=$ac_try;;
33028esac
33029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33030 (eval "$ac_try") 2>&5
33031 ac_status=$?
33032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033 (exit $ac_status); }; } &&
33034 { ac_try='test -s conftest$ac_exeext'
33035 { (case "(($ac_try" in
33036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33037 *) ac_try_echo=$ac_try;;
33038esac
33039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33040 (eval "$ac_try") 2>&5
33041 ac_status=$?
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033044 eval "$as_ac_var=yes"
33045else
33046 echo "$as_me: failed program was:" >&5
33047sed 's/^/| /' conftest.$ac_ext >&5
33048
33049 eval "$as_ac_var=no"
33050fi
33051
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033052rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033053 conftest$ac_exeext conftest.$ac_ext
33054fi
33055ac_res=`eval echo '${'$as_ac_var'}'`
33056 { echo "$as_me:$LINENO: result: $ac_res" >&5
33057echo "${ECHO_T}$ac_res" >&6; }
33058if test `eval echo '${'$as_ac_var'}'` = yes; then
33059
33060cat >>confdefs.h <<_ACEOF
33061#define CRAY_STACKSEG_END $ac_func
33062_ACEOF
33063
33064 break
33065fi
33066
33067 done
33068fi
33069
33070{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33071echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33072if test "${ac_cv_c_stack_direction+set}" = set; then
33073 echo $ECHO_N "(cached) $ECHO_C" >&6
33074else
33075 if test "$cross_compiling" = yes; then
33076 ac_cv_c_stack_direction=0
33077else
33078 cat >conftest.$ac_ext <<_ACEOF
33079/* confdefs.h. */
33080_ACEOF
33081cat confdefs.h >>conftest.$ac_ext
33082cat >>conftest.$ac_ext <<_ACEOF
33083/* end confdefs.h. */
33084$ac_includes_default
33085int
33086find_stack_direction ()
33087{
33088 static char *addr = 0;
33089 auto char dummy;
33090 if (addr == 0)
33091 {
33092 addr = &dummy;
33093 return find_stack_direction ();
33094 }
33095 else
33096 return (&dummy > addr) ? 1 : -1;
33097}
33098
33099int
33100main ()
33101{
33102 return find_stack_direction () < 0;
33103}
33104_ACEOF
33105rm -f conftest$ac_exeext
33106if { (ac_try="$ac_link"
33107case "(($ac_try" in
33108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33109 *) ac_try_echo=$ac_try;;
33110esac
33111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33112 (eval "$ac_link") 2>&5
33113 ac_status=$?
33114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33116 { (case "(($ac_try" in
33117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118 *) ac_try_echo=$ac_try;;
33119esac
33120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121 (eval "$ac_try") 2>&5
33122 ac_status=$?
33123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124 (exit $ac_status); }; }; then
33125 ac_cv_c_stack_direction=1
33126else
33127 echo "$as_me: program exited with status $ac_status" >&5
33128echo "$as_me: failed program was:" >&5
33129sed 's/^/| /' conftest.$ac_ext >&5
33130
33131( exit $ac_status )
33132ac_cv_c_stack_direction=-1
33133fi
33134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33135fi
33136
33137
33138fi
33139{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33140echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33141
33142cat >>confdefs.h <<_ACEOF
33143#define STACK_DIRECTION $ac_cv_c_stack_direction
33144_ACEOF
33145
33146
33147fi
33148
33149
33150{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33151echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33152if test "${ac_cv_func_rand48+set}" = set; then
33153 echo $ECHO_N "(cached) $ECHO_C" >&6
33154else
33155 ac_ext=cpp
33156ac_cpp='$CXXCPP $CPPFLAGS'
33157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33160
33161 cat >conftest.$ac_ext <<_ACEOF
33162/* confdefs.h. */
33163_ACEOF
33164cat confdefs.h >>conftest.$ac_ext
33165cat >>conftest.$ac_ext <<_ACEOF
33166/* end confdefs.h. */
33167#include <stdlib.h>
33168int
33169main ()
33170{
33171srand48(0);lrand48();drand48();
33172 ;
33173 return 0;
33174}
33175_ACEOF
33176rm -f conftest.$ac_objext
33177if { (ac_try="$ac_compile"
33178case "(($ac_try" in
33179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180 *) ac_try_echo=$ac_try;;
33181esac
33182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183 (eval "$ac_compile") 2>conftest.er1
33184 ac_status=$?
33185 grep -v '^ *+' conftest.er1 >conftest.err
33186 rm -f conftest.er1
33187 cat conftest.err >&5
33188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033189 (exit $ac_status); } &&
33190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33191 { (case "(($ac_try" in
33192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193 *) ac_try_echo=$ac_try;;
33194esac
33195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33196 (eval "$ac_try") 2>&5
33197 ac_status=$?
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; } &&
33200 { ac_try='test -s conftest.$ac_objext'
33201 { (case "(($ac_try" in
33202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203 *) ac_try_echo=$ac_try;;
33204esac
33205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206 (eval "$ac_try") 2>&5
33207 ac_status=$?
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033210 ac_cv_func_rand48=yes
33211else
33212 echo "$as_me: failed program was:" >&5
33213sed 's/^/| /' conftest.$ac_ext >&5
33214
33215 ac_cv_func_rand48=no
33216fi
33217
33218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33219 ac_ext=c
33220ac_cpp='$CPP $CPPFLAGS'
33221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33223ac_compiler_gnu=$ac_cv_c_compiler_gnu
33224
33225fi
33226{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33227echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33228
33229if test "$ac_cv_func_rand48" = "yes" ; then
33230
33231cat >>confdefs.h <<\_ACEOF
33232#define HAVE_RAND48 1
33233_ACEOF
33234
33235fi
33236
33237
33238{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33239echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33240if test "${ac_cv_cxx_namespaces+set}" = set; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33242else
33243 ac_ext=cpp
33244ac_cpp='$CXXCPP $CPPFLAGS'
33245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33248
33249 cat >conftest.$ac_ext <<_ACEOF
33250/* confdefs.h. */
33251_ACEOF
33252cat confdefs.h >>conftest.$ac_ext
33253cat >>conftest.$ac_ext <<_ACEOF
33254/* end confdefs.h. */
33255namespace Outer { namespace Inner { int i = 0; }}
33256int
33257main ()
33258{
33259using namespace Outer::Inner; return i;
33260 ;
33261 return 0;
33262}
33263_ACEOF
33264rm -f conftest.$ac_objext
33265if { (ac_try="$ac_compile"
33266case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33269esac
33270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_compile") 2>conftest.er1
33272 ac_status=$?
33273 grep -v '^ *+' conftest.er1 >conftest.err
33274 rm -f conftest.er1
33275 cat conftest.err >&5
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033277 (exit $ac_status); } &&
33278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33279 { (case "(($ac_try" in
33280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33281 *) ac_try_echo=$ac_try;;
33282esac
33283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33284 (eval "$ac_try") 2>&5
33285 ac_status=$?
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); }; } &&
33288 { ac_try='test -s conftest.$ac_objext'
33289 { (case "(($ac_try" in
33290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33291 *) ac_try_echo=$ac_try;;
33292esac
33293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33294 (eval "$ac_try") 2>&5
33295 ac_status=$?
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033298 ac_cv_cxx_namespaces=yes
33299else
33300 echo "$as_me: failed program was:" >&5
33301sed 's/^/| /' conftest.$ac_ext >&5
33302
33303 ac_cv_cxx_namespaces=no
33304fi
33305
33306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33307 ac_ext=c
33308ac_cpp='$CPP $CPPFLAGS'
33309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33311ac_compiler_gnu=$ac_cv_c_compiler_gnu
33312
33313
33314fi
33315{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33316echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33317if test "$ac_cv_cxx_namespaces" = yes; then
33318
33319cat >>confdefs.h <<\_ACEOF
33320#define HAVE_NAMESPACES
33321_ACEOF
33322
33323fi
33324
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033325{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33326echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33327if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33328 echo $ECHO_N "(cached) $ECHO_C" >&6
33329else
33330
33331 ac_ext=cpp
33332ac_cpp='$CXXCPP $CPPFLAGS'
33333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33336
33337 cat >conftest.$ac_ext <<_ACEOF
33338/* confdefs.h. */
33339_ACEOF
33340cat confdefs.h >>conftest.$ac_ext
33341cat >>conftest.$ac_ext <<_ACEOF
33342/* end confdefs.h. */
33343#include <iterator>
33344#ifdef HAVE_NAMESPACES
33345using namespace std;
33346#endif
33347int
33348main ()
33349{
33350iterator<int,int,int> t; return 0;
33351 ;
33352 return 0;
33353}
33354_ACEOF
33355rm -f conftest.$ac_objext
33356if { (ac_try="$ac_compile"
33357case "(($ac_try" in
33358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33359 *) ac_try_echo=$ac_try;;
33360esac
33361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33362 (eval "$ac_compile") 2>conftest.er1
33363 ac_status=$?
33364 grep -v '^ *+' conftest.er1 >conftest.err
33365 rm -f conftest.er1
33366 cat conftest.err >&5
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033368 (exit $ac_status); } &&
33369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33370 { (case "(($ac_try" in
33371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372 *) ac_try_echo=$ac_try;;
33373esac
33374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375 (eval "$ac_try") 2>&5
33376 ac_status=$?
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); }; } &&
33379 { ac_try='test -s conftest.$ac_objext'
33380 { (case "(($ac_try" in
33381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33382 *) ac_try_echo=$ac_try;;
33383esac
33384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33385 (eval "$ac_try") 2>&5
33386 ac_status=$?
33387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033389 ac_cv_cxx_have_std_iterator=yes
33390else
33391 echo "$as_me: failed program was:" >&5
33392sed 's/^/| /' conftest.$ac_ext >&5
33393
33394 ac_cv_cxx_have_std_iterator=no
33395fi
33396
33397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33398 ac_ext=c
33399ac_cpp='$CPP $CPPFLAGS'
33400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33402ac_compiler_gnu=$ac_cv_c_compiler_gnu
33403
33404
33405fi
33406{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33407echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33408if test "$ac_cv_cxx_have_std_iterator" = yes
33409then
33410
33411cat >>confdefs.h <<\_ACEOF
33412#define HAVE_STD_ITERATOR 1
33413_ACEOF
33414
33415else
33416
33417cat >>confdefs.h <<\_ACEOF
33418#define HAVE_STD_ITERATOR 0
33419_ACEOF
33420
33421fi
33422
33423{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33424echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33425if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33426 echo $ECHO_N "(cached) $ECHO_C" >&6
33427else
33428
33429 ac_ext=cpp
33430ac_cpp='$CXXCPP $CPPFLAGS'
33431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33434
33435 cat >conftest.$ac_ext <<_ACEOF
33436/* confdefs.h. */
33437_ACEOF
33438cat confdefs.h >>conftest.$ac_ext
33439cat >>conftest.$ac_ext <<_ACEOF
33440/* end confdefs.h. */
33441#include <iterator>
33442#ifdef HAVE_NAMESPACES
33443using namespace std;
33444#endif
33445int
33446main ()
33447{
33448bidirectional_iterator<int,int> t; return 0;
33449 ;
33450 return 0;
33451}
33452_ACEOF
33453rm -f conftest.$ac_objext
33454if { (ac_try="$ac_compile"
33455case "(($ac_try" in
33456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33457 *) ac_try_echo=$ac_try;;
33458esac
33459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33460 (eval "$ac_compile") 2>conftest.er1
33461 ac_status=$?
33462 grep -v '^ *+' conftest.er1 >conftest.err
33463 rm -f conftest.er1
33464 cat conftest.err >&5
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033466 (exit $ac_status); } &&
33467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33468 { (case "(($ac_try" in
33469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470 *) ac_try_echo=$ac_try;;
33471esac
33472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473 (eval "$ac_try") 2>&5
33474 ac_status=$?
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); }; } &&
33477 { ac_try='test -s conftest.$ac_objext'
33478 { (case "(($ac_try" in
33479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33480 *) ac_try_echo=$ac_try;;
33481esac
33482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33483 (eval "$ac_try") 2>&5
33484 ac_status=$?
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033487 ac_cv_cxx_have_bi_iterator=yes
33488else
33489 echo "$as_me: failed program was:" >&5
33490sed 's/^/| /' conftest.$ac_ext >&5
33491
33492 ac_cv_cxx_have_bi_iterator=no
33493fi
33494
33495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33496 ac_ext=c
33497ac_cpp='$CPP $CPPFLAGS'
33498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33500ac_compiler_gnu=$ac_cv_c_compiler_gnu
33501
33502
33503fi
33504{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33505echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33506if test "$ac_cv_cxx_have_bi_iterator" = yes
33507then
33508
33509cat >>confdefs.h <<\_ACEOF
33510#define HAVE_BI_ITERATOR 1
33511_ACEOF
33512
33513else
33514
33515cat >>confdefs.h <<\_ACEOF
33516#define HAVE_BI_ITERATOR 0
33517_ACEOF
33518
33519fi
33520
33521{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33522echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33523if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33524 echo $ECHO_N "(cached) $ECHO_C" >&6
33525else
33526
33527 ac_ext=cpp
33528ac_cpp='$CXXCPP $CPPFLAGS'
33529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33532
33533 cat >conftest.$ac_ext <<_ACEOF
33534/* confdefs.h. */
33535_ACEOF
33536cat confdefs.h >>conftest.$ac_ext
33537cat >>conftest.$ac_ext <<_ACEOF
33538/* end confdefs.h. */
33539#include <iterator>
33540#ifdef HAVE_NAMESPACES
33541using namespace std;
33542#endif
33543int
33544main ()
33545{
33546forward_iterator<int,int> t; return 0;
33547 ;
33548 return 0;
33549}
33550_ACEOF
33551rm -f conftest.$ac_objext
33552if { (ac_try="$ac_compile"
33553case "(($ac_try" in
33554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33555 *) ac_try_echo=$ac_try;;
33556esac
33557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33558 (eval "$ac_compile") 2>conftest.er1
33559 ac_status=$?
33560 grep -v '^ *+' conftest.er1 >conftest.err
33561 rm -f conftest.er1
33562 cat conftest.err >&5
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033564 (exit $ac_status); } &&
33565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33566 { (case "(($ac_try" in
33567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33568 *) ac_try_echo=$ac_try;;
33569esac
33570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33571 (eval "$ac_try") 2>&5
33572 ac_status=$?
33573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574 (exit $ac_status); }; } &&
33575 { ac_try='test -s conftest.$ac_objext'
33576 { (case "(($ac_try" in
33577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33578 *) ac_try_echo=$ac_try;;
33579esac
33580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33581 (eval "$ac_try") 2>&5
33582 ac_status=$?
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033585 ac_cv_cxx_have_fwd_iterator=yes
33586else
33587 echo "$as_me: failed program was:" >&5
33588sed 's/^/| /' conftest.$ac_ext >&5
33589
33590 ac_cv_cxx_have_fwd_iterator=no
33591fi
33592
33593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33594 ac_ext=c
33595ac_cpp='$CPP $CPPFLAGS'
33596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33598ac_compiler_gnu=$ac_cv_c_compiler_gnu
33599
33600
33601fi
33602{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33603echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33604if test "$ac_cv_cxx_have_fwd_iterator" = yes
33605then
33606
33607cat >>confdefs.h <<\_ACEOF
33608#define HAVE_FWD_ITERATOR 1
33609_ACEOF
33610
33611else
33612
33613cat >>confdefs.h <<\_ACEOF
33614#define HAVE_FWD_ITERATOR 0
33615_ACEOF
33616
33617fi
33618
33619
33620{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33621echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33622if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33623 echo $ECHO_N "(cached) $ECHO_C" >&6
33624else
33625 ac_ext=cpp
33626ac_cpp='$CXXCPP $CPPFLAGS'
33627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33630
33631 cat >conftest.$ac_ext <<_ACEOF
33632/* confdefs.h. */
33633_ACEOF
33634cat confdefs.h >>conftest.$ac_ext
33635cat >>conftest.$ac_ext <<_ACEOF
33636/* end confdefs.h. */
33637#include <math.h>
33638int
33639main ()
33640{
33641float f; isnan(f);
33642 ;
33643 return 0;
33644}
33645_ACEOF
33646rm -f conftest.$ac_objext
33647if { (ac_try="$ac_compile"
33648case "(($ac_try" in
33649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33650 *) ac_try_echo=$ac_try;;
33651esac
33652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33653 (eval "$ac_compile") 2>conftest.er1
33654 ac_status=$?
33655 grep -v '^ *+' conftest.er1 >conftest.err
33656 rm -f conftest.er1
33657 cat conftest.err >&5
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033659 (exit $ac_status); } &&
33660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33661 { (case "(($ac_try" in
33662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33663 *) ac_try_echo=$ac_try;;
33664esac
33665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33666 (eval "$ac_try") 2>&5
33667 ac_status=$?
33668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669 (exit $ac_status); }; } &&
33670 { ac_try='test -s conftest.$ac_objext'
33671 { (case "(($ac_try" in
33672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33673 *) ac_try_echo=$ac_try;;
33674esac
33675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33676 (eval "$ac_try") 2>&5
33677 ac_status=$?
33678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033680 ac_cv_func_isnan_in_math_h=yes
33681else
33682 echo "$as_me: failed program was:" >&5
33683sed 's/^/| /' conftest.$ac_ext >&5
33684
33685 ac_cv_func_isnan_in_math_h=no
33686fi
33687
33688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33689 ac_ext=c
33690ac_cpp='$CPP $CPPFLAGS'
33691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33693ac_compiler_gnu=$ac_cv_c_compiler_gnu
33694
33695fi
33696{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33697echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33698
33699
33700if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33701
33702cat >>confdefs.h <<\_ACEOF
33703#define HAVE_ISNAN_IN_MATH_H 1
33704_ACEOF
33705
33706fi
33707
33708{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33709echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33710if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33711 echo $ECHO_N "(cached) $ECHO_C" >&6
33712else
33713 ac_ext=cpp
33714ac_cpp='$CXXCPP $CPPFLAGS'
33715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33718
33719 cat >conftest.$ac_ext <<_ACEOF
33720/* confdefs.h. */
33721_ACEOF
33722cat confdefs.h >>conftest.$ac_ext
33723cat >>conftest.$ac_ext <<_ACEOF
33724/* end confdefs.h. */
33725#include <cmath>
33726int
33727main ()
33728{
33729float f; isnan(f);
33730 ;
33731 return 0;
33732}
33733_ACEOF
33734rm -f conftest.$ac_objext
33735if { (ac_try="$ac_compile"
33736case "(($ac_try" in
33737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33738 *) ac_try_echo=$ac_try;;
33739esac
33740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33741 (eval "$ac_compile") 2>conftest.er1
33742 ac_status=$?
33743 grep -v '^ *+' conftest.er1 >conftest.err
33744 rm -f conftest.er1
33745 cat conftest.err >&5
33746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033747 (exit $ac_status); } &&
33748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33749 { (case "(($ac_try" in
33750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33751 *) ac_try_echo=$ac_try;;
33752esac
33753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33754 (eval "$ac_try") 2>&5
33755 ac_status=$?
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); }; } &&
33758 { ac_try='test -s conftest.$ac_objext'
33759 { (case "(($ac_try" in
33760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761 *) ac_try_echo=$ac_try;;
33762esac
33763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764 (eval "$ac_try") 2>&5
33765 ac_status=$?
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033768 ac_cv_func_isnan_in_cmath=yes
33769else
33770 echo "$as_me: failed program was:" >&5
33771sed 's/^/| /' conftest.$ac_ext >&5
33772
33773 ac_cv_func_isnan_in_cmath=no
33774fi
33775
33776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33777 ac_ext=c
33778ac_cpp='$CPP $CPPFLAGS'
33779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33781ac_compiler_gnu=$ac_cv_c_compiler_gnu
33782
33783fi
33784{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33785echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33786
33787if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33788
33789cat >>confdefs.h <<\_ACEOF
33790#define HAVE_ISNAN_IN_CMATH 1
33791_ACEOF
33792
33793fi
33794
33795{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33796echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33797if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33798 echo $ECHO_N "(cached) $ECHO_C" >&6
33799else
33800 ac_ext=cpp
33801ac_cpp='$CXXCPP $CPPFLAGS'
33802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33805
33806 cat >conftest.$ac_ext <<_ACEOF
33807/* confdefs.h. */
33808_ACEOF
33809cat confdefs.h >>conftest.$ac_ext
33810cat >>conftest.$ac_ext <<_ACEOF
33811/* end confdefs.h. */
33812#include <cmath>
33813int
33814main ()
33815{
33816float f; std::isnan(f);
33817 ;
33818 return 0;
33819}
33820_ACEOF
33821rm -f conftest.$ac_objext
33822if { (ac_try="$ac_compile"
33823case "(($ac_try" in
33824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33825 *) ac_try_echo=$ac_try;;
33826esac
33827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33828 (eval "$ac_compile") 2>conftest.er1
33829 ac_status=$?
33830 grep -v '^ *+' conftest.er1 >conftest.err
33831 rm -f conftest.er1
33832 cat conftest.err >&5
33833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033834 (exit $ac_status); } &&
33835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33836 { (case "(($ac_try" in
33837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33838 *) ac_try_echo=$ac_try;;
33839esac
33840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33841 (eval "$ac_try") 2>&5
33842 ac_status=$?
33843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); }; } &&
33845 { ac_try='test -s conftest.$ac_objext'
33846 { (case "(($ac_try" in
33847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33848 *) ac_try_echo=$ac_try;;
33849esac
33850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33851 (eval "$ac_try") 2>&5
33852 ac_status=$?
33853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33854 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033855 ac_cv_func_std_isnan_in_cmath=yes
33856else
33857 echo "$as_me: failed program was:" >&5
33858sed 's/^/| /' conftest.$ac_ext >&5
33859
33860 ac_cv_func_std_isnan_in_cmath=no
33861fi
33862
33863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33864 ac_ext=c
33865ac_cpp='$CPP $CPPFLAGS'
33866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33868ac_compiler_gnu=$ac_cv_c_compiler_gnu
33869
33870fi
33871{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33872echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33873
33874if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33875
33876cat >>confdefs.h <<\_ACEOF
33877#define HAVE_STD_ISNAN_IN_CMATH 1
33878_ACEOF
33879
33880fi
33881
33882
33883{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33884echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33885if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33886 echo $ECHO_N "(cached) $ECHO_C" >&6
33887else
33888 ac_ext=cpp
33889ac_cpp='$CXXCPP $CPPFLAGS'
33890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33893
33894 cat >conftest.$ac_ext <<_ACEOF
33895/* confdefs.h. */
33896_ACEOF
33897cat confdefs.h >>conftest.$ac_ext
33898cat >>conftest.$ac_ext <<_ACEOF
33899/* end confdefs.h. */
33900#include <math.h>
33901int
33902main ()
33903{
33904float f; isinf(f);
33905 ;
33906 return 0;
33907}
33908_ACEOF
33909rm -f conftest.$ac_objext
33910if { (ac_try="$ac_compile"
33911case "(($ac_try" in
33912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913 *) ac_try_echo=$ac_try;;
33914esac
33915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916 (eval "$ac_compile") 2>conftest.er1
33917 ac_status=$?
33918 grep -v '^ *+' conftest.er1 >conftest.err
33919 rm -f conftest.er1
33920 cat conftest.err >&5
33921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033922 (exit $ac_status); } &&
33923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33924 { (case "(($ac_try" in
33925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33926 *) ac_try_echo=$ac_try;;
33927esac
33928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33929 (eval "$ac_try") 2>&5
33930 ac_status=$?
33931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932 (exit $ac_status); }; } &&
33933 { ac_try='test -s conftest.$ac_objext'
33934 { (case "(($ac_try" in
33935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33936 *) ac_try_echo=$ac_try;;
33937esac
33938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33939 (eval "$ac_try") 2>&5
33940 ac_status=$?
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033943 ac_cv_func_isinf_in_math_h=yes
33944else
33945 echo "$as_me: failed program was:" >&5
33946sed 's/^/| /' conftest.$ac_ext >&5
33947
33948 ac_cv_func_isinf_in_math_h=no
33949fi
33950
33951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33952 ac_ext=c
33953ac_cpp='$CPP $CPPFLAGS'
33954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33956ac_compiler_gnu=$ac_cv_c_compiler_gnu
33957
33958fi
33959{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33960echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33961
33962if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33963
33964cat >>confdefs.h <<\_ACEOF
33965#define HAVE_ISINF_IN_MATH_H 1
33966_ACEOF
33967
33968fi
33969
33970{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33971echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33972if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33973 echo $ECHO_N "(cached) $ECHO_C" >&6
33974else
33975 ac_ext=cpp
33976ac_cpp='$CXXCPP $CPPFLAGS'
33977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33980
33981 cat >conftest.$ac_ext <<_ACEOF
33982/* confdefs.h. */
33983_ACEOF
33984cat confdefs.h >>conftest.$ac_ext
33985cat >>conftest.$ac_ext <<_ACEOF
33986/* end confdefs.h. */
33987#include <cmath>
33988int
33989main ()
33990{
33991float f; isinf(f);
33992 ;
33993 return 0;
33994}
33995_ACEOF
33996rm -f conftest.$ac_objext
33997if { (ac_try="$ac_compile"
33998case "(($ac_try" in
33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34001esac
34002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_compile") 2>conftest.er1
34004 ac_status=$?
34005 grep -v '^ *+' conftest.er1 >conftest.err
34006 rm -f conftest.er1
34007 cat conftest.err >&5
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034009 (exit $ac_status); } &&
34010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34011 { (case "(($ac_try" in
34012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34013 *) ac_try_echo=$ac_try;;
34014esac
34015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34016 (eval "$ac_try") 2>&5
34017 ac_status=$?
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; } &&
34020 { ac_try='test -s conftest.$ac_objext'
34021 { (case "(($ac_try" in
34022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34023 *) ac_try_echo=$ac_try;;
34024esac
34025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34026 (eval "$ac_try") 2>&5
34027 ac_status=$?
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034030 ac_cv_func_isinf_in_cmath=yes
34031else
34032 echo "$as_me: failed program was:" >&5
34033sed 's/^/| /' conftest.$ac_ext >&5
34034
34035 ac_cv_func_isinf_in_cmath=no
34036fi
34037
34038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34039 ac_ext=c
34040ac_cpp='$CPP $CPPFLAGS'
34041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043ac_compiler_gnu=$ac_cv_c_compiler_gnu
34044
34045fi
34046{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34047echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34048
34049if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34050
34051cat >>confdefs.h <<\_ACEOF
34052#define HAVE_ISINF_IN_CMATH 1
34053_ACEOF
34054
34055fi
34056
34057{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34058echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34059if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34060 echo $ECHO_N "(cached) $ECHO_C" >&6
34061else
34062 ac_ext=cpp
34063ac_cpp='$CXXCPP $CPPFLAGS'
34064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34067
34068 cat >conftest.$ac_ext <<_ACEOF
34069/* confdefs.h. */
34070_ACEOF
34071cat confdefs.h >>conftest.$ac_ext
34072cat >>conftest.$ac_ext <<_ACEOF
34073/* end confdefs.h. */
34074#include <cmath>
34075int
34076main ()
34077{
34078float f; std::isinf(f)}
34079 ;
34080 return 0;
34081}
34082_ACEOF
34083rm -f conftest.$ac_objext
34084if { (ac_try="$ac_compile"
34085case "(($ac_try" in
34086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34087 *) ac_try_echo=$ac_try;;
34088esac
34089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34090 (eval "$ac_compile") 2>conftest.er1
34091 ac_status=$?
34092 grep -v '^ *+' conftest.er1 >conftest.err
34093 rm -f conftest.er1
34094 cat conftest.err >&5
34095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034096 (exit $ac_status); } &&
34097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34098 { (case "(($ac_try" in
34099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34100 *) ac_try_echo=$ac_try;;
34101esac
34102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34103 (eval "$ac_try") 2>&5
34104 ac_status=$?
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; } &&
34107 { ac_try='test -s conftest.$ac_objext'
34108 { (case "(($ac_try" in
34109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34110 *) ac_try_echo=$ac_try;;
34111esac
34112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34113 (eval "$ac_try") 2>&5
34114 ac_status=$?
34115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34116 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034117 ac_cv_func_std_isinf_in_cmath=yes
34118else
34119 echo "$as_me: failed program was:" >&5
34120sed 's/^/| /' conftest.$ac_ext >&5
34121
34122 ac_cv_func_std_isinf_in_cmath=no
34123fi
34124
34125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34126 ac_ext=c
34127ac_cpp='$CPP $CPPFLAGS'
34128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34130ac_compiler_gnu=$ac_cv_c_compiler_gnu
34131
34132fi
34133{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34134echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34135
34136if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34137
34138cat >>confdefs.h <<\_ACEOF
34139#define HAVE_STD_ISINF_IN_CMATH 1
34140_ACEOF
34141
34142fi
34143
34144{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34145echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34146if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34147 echo $ECHO_N "(cached) $ECHO_C" >&6
34148else
34149 ac_ext=cpp
34150ac_cpp='$CXXCPP $CPPFLAGS'
34151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34154
34155 cat >conftest.$ac_ext <<_ACEOF
34156/* confdefs.h. */
34157_ACEOF
34158cat confdefs.h >>conftest.$ac_ext
34159cat >>conftest.$ac_ext <<_ACEOF
34160/* end confdefs.h. */
34161#include <ieeefp.h>
34162int
34163main ()
34164{
34165float f; finite(f);
34166 ;
34167 return 0;
34168}
34169_ACEOF
34170rm -f conftest.$ac_objext
34171if { (ac_try="$ac_compile"
34172case "(($ac_try" in
34173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34174 *) ac_try_echo=$ac_try;;
34175esac
34176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34177 (eval "$ac_compile") 2>conftest.er1
34178 ac_status=$?
34179 grep -v '^ *+' conftest.er1 >conftest.err
34180 rm -f conftest.er1
34181 cat conftest.err >&5
34182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034183 (exit $ac_status); } &&
34184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34185 { (case "(($ac_try" in
34186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34187 *) ac_try_echo=$ac_try;;
34188esac
34189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34190 (eval "$ac_try") 2>&5
34191 ac_status=$?
34192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 (exit $ac_status); }; } &&
34194 { ac_try='test -s conftest.$ac_objext'
34195 { (case "(($ac_try" in
34196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34197 *) ac_try_echo=$ac_try;;
34198esac
34199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34200 (eval "$ac_try") 2>&5
34201 ac_status=$?
34202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034204 ac_cv_func_finite_in_ieeefp_h=yes
34205else
34206 echo "$as_me: failed program was:" >&5
34207sed 's/^/| /' conftest.$ac_ext >&5
34208
34209 ac_cv_func_finite_in_ieeefp_h=no
34210fi
34211
34212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34213 ac_ext=c
34214ac_cpp='$CPP $CPPFLAGS'
34215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34217ac_compiler_gnu=$ac_cv_c_compiler_gnu
34218
34219fi
34220{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34221echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34222
34223if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34224
34225cat >>confdefs.h <<\_ACEOF
34226#define HAVE_FINITE_IN_IEEEFP_H 1
34227_ACEOF
34228
34229fi
34230
34231
34232
34233if test "$llvm_cv_platform_type" = "Unix" ; then
34234
34235
34236for ac_header in stdlib.h unistd.h
34237do
34238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34243 echo $ECHO_N "(cached) $ECHO_C" >&6
34244fi
34245ac_res=`eval echo '${'$as_ac_Header'}'`
34246 { echo "$as_me:$LINENO: result: $ac_res" >&5
34247echo "${ECHO_T}$ac_res" >&6; }
34248else
34249 # Is the header compilable?
34250{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34252cat >conftest.$ac_ext <<_ACEOF
34253/* confdefs.h. */
34254_ACEOF
34255cat confdefs.h >>conftest.$ac_ext
34256cat >>conftest.$ac_ext <<_ACEOF
34257/* end confdefs.h. */
34258$ac_includes_default
34259#include <$ac_header>
34260_ACEOF
34261rm -f conftest.$ac_objext
34262if { (ac_try="$ac_compile"
34263case "(($ac_try" in
34264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34265 *) ac_try_echo=$ac_try;;
34266esac
34267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34268 (eval "$ac_compile") 2>conftest.er1
34269 ac_status=$?
34270 grep -v '^ *+' conftest.er1 >conftest.err
34271 rm -f conftest.er1
34272 cat conftest.err >&5
34273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034274 (exit $ac_status); } &&
34275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34276 { (case "(($ac_try" in
34277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34278 *) ac_try_echo=$ac_try;;
34279esac
34280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34281 (eval "$ac_try") 2>&5
34282 ac_status=$?
34283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284 (exit $ac_status); }; } &&
34285 { ac_try='test -s conftest.$ac_objext'
34286 { (case "(($ac_try" in
34287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34288 *) ac_try_echo=$ac_try;;
34289esac
34290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34291 (eval "$ac_try") 2>&5
34292 ac_status=$?
34293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34294 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034295 ac_header_compiler=yes
34296else
34297 echo "$as_me: failed program was:" >&5
34298sed 's/^/| /' conftest.$ac_ext >&5
34299
34300 ac_header_compiler=no
34301fi
34302
34303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34304{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34305echo "${ECHO_T}$ac_header_compiler" >&6; }
34306
34307# Is the header present?
34308{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34310cat >conftest.$ac_ext <<_ACEOF
34311/* confdefs.h. */
34312_ACEOF
34313cat confdefs.h >>conftest.$ac_ext
34314cat >>conftest.$ac_ext <<_ACEOF
34315/* end confdefs.h. */
34316#include <$ac_header>
34317_ACEOF
34318if { (ac_try="$ac_cpp conftest.$ac_ext"
34319case "(($ac_try" in
34320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34321 *) ac_try_echo=$ac_try;;
34322esac
34323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34325 ac_status=$?
34326 grep -v '^ *+' conftest.er1 >conftest.err
34327 rm -f conftest.er1
34328 cat conftest.err >&5
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034330 (exit $ac_status); } >/dev/null; then
34331 if test -s conftest.err; then
34332 ac_cpp_err=$ac_c_preproc_warn_flag
34333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34334 else
34335 ac_cpp_err=
34336 fi
34337else
34338 ac_cpp_err=yes
34339fi
34340if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034341 ac_header_preproc=yes
34342else
34343 echo "$as_me: failed program was:" >&5
34344sed 's/^/| /' conftest.$ac_ext >&5
34345
34346 ac_header_preproc=no
34347fi
34348
34349rm -f conftest.err conftest.$ac_ext
34350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34351echo "${ECHO_T}$ac_header_preproc" >&6; }
34352
34353# So? What about this header?
34354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34355 yes:no: )
34356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34360 ac_header_preproc=yes
34361 ;;
34362 no:yes:* )
34363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34375 ( cat <<\_ASBOX
34376## ----------------------------------- ##
34377## Report this to llvmbugs@cs.uiuc.edu ##
34378## ----------------------------------- ##
34379_ASBOX
34380 ) | sed "s/^/$as_me: WARNING: /" >&2
34381 ;;
34382esac
34383{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34386 echo $ECHO_N "(cached) $ECHO_C" >&6
34387else
34388 eval "$as_ac_Header=\$ac_header_preproc"
34389fi
34390ac_res=`eval echo '${'$as_ac_Header'}'`
34391 { echo "$as_me:$LINENO: result: $ac_res" >&5
34392echo "${ECHO_T}$ac_res" >&6; }
34393
34394fi
34395if test `eval echo '${'$as_ac_Header'}'` = yes; then
34396 cat >>confdefs.h <<_ACEOF
34397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34398_ACEOF
34399
34400fi
34401
34402done
34403
34404
34405for ac_func in getpagesize
34406do
34407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34408{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34410if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34411 echo $ECHO_N "(cached) $ECHO_C" >&6
34412else
34413 cat >conftest.$ac_ext <<_ACEOF
34414/* confdefs.h. */
34415_ACEOF
34416cat confdefs.h >>conftest.$ac_ext
34417cat >>conftest.$ac_ext <<_ACEOF
34418/* end confdefs.h. */
34419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34421#define $ac_func innocuous_$ac_func
34422
34423/* System header to define __stub macros and hopefully few prototypes,
34424 which can conflict with char $ac_func (); below.
34425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34426 <limits.h> exists even on freestanding compilers. */
34427
34428#ifdef __STDC__
34429# include <limits.h>
34430#else
34431# include <assert.h>
34432#endif
34433
34434#undef $ac_func
34435
34436/* Override any GCC internal prototype to avoid an error.
34437 Use char because int might match the return type of a GCC
34438 builtin and then its argument prototype would still apply. */
34439#ifdef __cplusplus
34440extern "C"
34441#endif
34442char $ac_func ();
34443/* The GNU C library defines this for functions which it implements
34444 to always fail with ENOSYS. Some functions are actually named
34445 something starting with __ and the normal name is an alias. */
34446#if defined __stub_$ac_func || defined __stub___$ac_func
34447choke me
34448#endif
34449
34450int
34451main ()
34452{
34453return $ac_func ();
34454 ;
34455 return 0;
34456}
34457_ACEOF
34458rm -f conftest.$ac_objext conftest$ac_exeext
34459if { (ac_try="$ac_link"
34460case "(($ac_try" in
34461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34462 *) ac_try_echo=$ac_try;;
34463esac
34464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34465 (eval "$ac_link") 2>conftest.er1
34466 ac_status=$?
34467 grep -v '^ *+' conftest.er1 >conftest.err
34468 rm -f conftest.er1
34469 cat conftest.err >&5
34470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034471 (exit $ac_status); } &&
34472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34473 { (case "(($ac_try" in
34474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34475 *) ac_try_echo=$ac_try;;
34476esac
34477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34478 (eval "$ac_try") 2>&5
34479 ac_status=$?
34480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481 (exit $ac_status); }; } &&
34482 { ac_try='test -s conftest$ac_exeext'
34483 { (case "(($ac_try" in
34484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34485 *) ac_try_echo=$ac_try;;
34486esac
34487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34488 (eval "$ac_try") 2>&5
34489 ac_status=$?
34490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034492 eval "$as_ac_var=yes"
34493else
34494 echo "$as_me: failed program was:" >&5
34495sed 's/^/| /' conftest.$ac_ext >&5
34496
34497 eval "$as_ac_var=no"
34498fi
34499
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034500rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034501 conftest$ac_exeext conftest.$ac_ext
34502fi
34503ac_res=`eval echo '${'$as_ac_var'}'`
34504 { echo "$as_me:$LINENO: result: $ac_res" >&5
34505echo "${ECHO_T}$ac_res" >&6; }
34506if test `eval echo '${'$as_ac_var'}'` = yes; then
34507 cat >>confdefs.h <<_ACEOF
34508#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34509_ACEOF
34510
34511fi
34512done
34513
34514{ echo "$as_me:$LINENO: checking for working mmap" >&5
34515echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34516if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34517 echo $ECHO_N "(cached) $ECHO_C" >&6
34518else
34519 if test "$cross_compiling" = yes; then
34520 ac_cv_func_mmap_fixed_mapped=no
34521else
34522 cat >conftest.$ac_ext <<_ACEOF
34523/* confdefs.h. */
34524_ACEOF
34525cat confdefs.h >>conftest.$ac_ext
34526cat >>conftest.$ac_ext <<_ACEOF
34527/* end confdefs.h. */
34528$ac_includes_default
34529/* malloc might have been renamed as rpl_malloc. */
34530#undef malloc
34531
34532/* Thanks to Mike Haertel and Jim Avera for this test.
34533 Here is a matrix of mmap possibilities:
34534 mmap private not fixed
34535 mmap private fixed at somewhere currently unmapped
34536 mmap private fixed at somewhere already mapped
34537 mmap shared not fixed
34538 mmap shared fixed at somewhere currently unmapped
34539 mmap shared fixed at somewhere already mapped
34540 For private mappings, we should verify that changes cannot be read()
34541 back from the file, nor mmap's back from the file at a different
34542 address. (There have been systems where private was not correctly
34543 implemented like the infamous i386 svr4.0, and systems where the
34544 VM page cache was not coherent with the file system buffer cache
34545 like early versions of FreeBSD and possibly contemporary NetBSD.)
34546 For shared mappings, we should conversely verify that changes get
34547 propagated back to all the places they're supposed to be.
34548
34549 Grep wants private fixed already mapped.
34550 The main things grep needs to know about mmap are:
34551 * does it exist and is it safe to write into the mmap'd area
34552 * how to use it (BSD variants) */
34553
34554#include <fcntl.h>
34555#include <sys/mman.h>
34556
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034557#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034558char *malloc ();
34559#endif
34560
34561/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034562#if !HAVE_GETPAGESIZE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034563/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034564# if !HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034565# define HAVE_SYS_PARAM_H 1
34566# endif
34567
34568# ifdef _SC_PAGESIZE
34569# define getpagesize() sysconf(_SC_PAGESIZE)
34570# else /* no _SC_PAGESIZE */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034571# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034572# include <sys/param.h>
34573# ifdef EXEC_PAGESIZE
34574# define getpagesize() EXEC_PAGESIZE
34575# else /* no EXEC_PAGESIZE */
34576# ifdef NBPG
34577# define getpagesize() NBPG * CLSIZE
34578# ifndef CLSIZE
34579# define CLSIZE 1
34580# endif /* no CLSIZE */
34581# else /* no NBPG */
34582# ifdef NBPC
34583# define getpagesize() NBPC
34584# else /* no NBPC */
34585# ifdef PAGESIZE
34586# define getpagesize() PAGESIZE
34587# endif /* PAGESIZE */
34588# endif /* no NBPC */
34589# endif /* no NBPG */
34590# endif /* no EXEC_PAGESIZE */
34591# else /* no HAVE_SYS_PARAM_H */
34592# define getpagesize() 8192 /* punt totally */
34593# endif /* no HAVE_SYS_PARAM_H */
34594# endif /* no _SC_PAGESIZE */
34595
34596#endif /* no HAVE_GETPAGESIZE */
34597
34598int
34599main ()
34600{
34601 char *data, *data2, *data3;
34602 int i, pagesize;
34603 int fd;
34604
34605 pagesize = getpagesize ();
34606
34607 /* First, make a file with some known garbage in it. */
34608 data = (char *) malloc (pagesize);
34609 if (!data)
34610 return 1;
34611 for (i = 0; i < pagesize; ++i)
34612 *(data + i) = rand ();
34613 umask (0);
34614 fd = creat ("conftest.mmap", 0600);
34615 if (fd < 0)
34616 return 1;
34617 if (write (fd, data, pagesize) != pagesize)
34618 return 1;
34619 close (fd);
34620
34621 /* Next, try to mmap the file at a fixed address which already has
34622 something else allocated at it. If we can, also make sure that
34623 we see the same garbage. */
34624 fd = open ("conftest.mmap", O_RDWR);
34625 if (fd < 0)
34626 return 1;
34627 data2 = (char *) malloc (2 * pagesize);
34628 if (!data2)
34629 return 1;
34630 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34631 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34632 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34633 return 1;
34634 for (i = 0; i < pagesize; ++i)
34635 if (*(data + i) != *(data2 + i))
34636 return 1;
34637
34638 /* Finally, make sure that changes to the mapped area do not
34639 percolate back to the file as seen by read(). (This is a bug on
34640 some variants of i386 svr4.0.) */
34641 for (i = 0; i < pagesize; ++i)
34642 *(data2 + i) = *(data2 + i) + 1;
34643 data3 = (char *) malloc (pagesize);
34644 if (!data3)
34645 return 1;
34646 if (read (fd, data3, pagesize) != pagesize)
34647 return 1;
34648 for (i = 0; i < pagesize; ++i)
34649 if (*(data + i) != *(data3 + i))
34650 return 1;
34651 close (fd);
34652 return 0;
34653}
34654_ACEOF
34655rm -f conftest$ac_exeext
34656if { (ac_try="$ac_link"
34657case "(($ac_try" in
34658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34659 *) ac_try_echo=$ac_try;;
34660esac
34661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34662 (eval "$ac_link") 2>&5
34663 ac_status=$?
34664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34666 { (case "(($ac_try" in
34667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34668 *) ac_try_echo=$ac_try;;
34669esac
34670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34671 (eval "$ac_try") 2>&5
34672 ac_status=$?
34673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); }; }; then
34675 ac_cv_func_mmap_fixed_mapped=yes
34676else
34677 echo "$as_me: program exited with status $ac_status" >&5
34678echo "$as_me: failed program was:" >&5
34679sed 's/^/| /' conftest.$ac_ext >&5
34680
34681( exit $ac_status )
34682ac_cv_func_mmap_fixed_mapped=no
34683fi
34684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34685fi
34686
34687
34688fi
34689{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34690echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34691if test $ac_cv_func_mmap_fixed_mapped = yes; then
34692
34693cat >>confdefs.h <<\_ACEOF
34694#define HAVE_MMAP 1
34695_ACEOF
34696
34697fi
34698rm -f conftest.mmap
34699
34700 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34701echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34702if test "${ac_cv_func_mmap_file+set}" = set; then
34703 echo $ECHO_N "(cached) $ECHO_C" >&6
34704else
34705 ac_ext=c
34706ac_cpp='$CPP $CPPFLAGS'
34707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34709ac_compiler_gnu=$ac_cv_c_compiler_gnu
34710
34711 if test "$cross_compiling" = yes; then
34712 ac_cv_func_mmap_file=no
34713else
34714 cat >conftest.$ac_ext <<_ACEOF
34715
34716 /* confdefs.h. */
34717_ACEOF
34718cat confdefs.h >>conftest.$ac_ext
34719cat >>conftest.$ac_ext <<_ACEOF
34720/* end confdefs.h. */
34721
34722#include <sys/types.h>
34723#include <sys/mman.h>
34724#include <fcntl.h>
34725
34726int
34727main ()
34728{
34729
34730 int fd;
34731 fd = creat ("foo",0777);
34732 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34733 unlink ("foo");
34734 return (fd != (int) MAP_FAILED);
34735 ;
34736 return 0;
34737}
34738_ACEOF
34739rm -f conftest$ac_exeext
34740if { (ac_try="$ac_link"
34741case "(($ac_try" in
34742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34743 *) ac_try_echo=$ac_try;;
34744esac
34745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34746 (eval "$ac_link") 2>&5
34747 ac_status=$?
34748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34750 { (case "(($ac_try" in
34751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34752 *) ac_try_echo=$ac_try;;
34753esac
34754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34755 (eval "$ac_try") 2>&5
34756 ac_status=$?
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; }; then
34759 ac_cv_func_mmap_file=yes
34760else
34761 echo "$as_me: program exited with status $ac_status" >&5
34762echo "$as_me: failed program was:" >&5
34763sed 's/^/| /' conftest.$ac_ext >&5
34764
34765( exit $ac_status )
34766ac_cv_func_mmap_file=no
34767fi
34768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34769fi
34770
34771
34772 ac_ext=c
34773ac_cpp='$CPP $CPPFLAGS'
34774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34776ac_compiler_gnu=$ac_cv_c_compiler_gnu
34777
34778
34779fi
34780{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34781echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34782if test "$ac_cv_func_mmap_file" = yes; then
34783
34784cat >>confdefs.h <<\_ACEOF
34785#define HAVE_MMAP_FILE
34786_ACEOF
34787
34788 MMAP_FILE=yes
34789
34790fi
34791
34792 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34793echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34794if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34795 echo $ECHO_N "(cached) $ECHO_C" >&6
34796else
34797 if test "$llvm_cv_os_type" = "Interix" ; then
34798 ac_cv_need_dev_zero_for_mmap=yes
34799 else
34800 ac_cv_need_dev_zero_for_mmap=no
34801 fi
34802
34803fi
34804{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34805echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34806if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34807
34808cat >>confdefs.h <<\_ACEOF
34809#define NEED_DEV_ZERO_FOR_MMAP 1
34810_ACEOF
34811
34812fi
34813
34814 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34815 then
34816 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34817echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34818 fi
34819 if test "$ac_cv_func_mmap_file" = "no"
34820 then
34821 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34822echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34823 fi
34824fi
34825
Owen Anderson96237ec2009-05-19 22:18:56 +000034826{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000034827echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000034828cat >conftest.$ac_ext <<_ACEOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000034829/* confdefs.h. */
34830_ACEOF
34831cat confdefs.h >>conftest.$ac_ext
34832cat >>conftest.$ac_ext <<_ACEOF
34833/* end confdefs.h. */
34834int main() {
Owen Anderson96237ec2009-05-19 22:18:56 +000034835 volatile unsigned long val = 1;
34836 __sync_synchronize();
34837 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson465fa532009-06-17 00:13:00 +000034838 __sync_add_and_fetch(&val, 1);
34839 __sync_sub_and_fetch(&val, 1);
Owen Anderson96237ec2009-05-19 22:18:56 +000034840 return 0;
34841 }
Owen Andersonff0f88e2009-05-18 23:58:51 +000034842
34843_ACEOF
34844rm -f conftest.$ac_objext conftest$ac_exeext
34845if { (ac_try="$ac_link"
34846case "(($ac_try" in
34847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34848 *) ac_try_echo=$ac_try;;
34849esac
34850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34851 (eval "$ac_link") 2>conftest.er1
34852 ac_status=$?
34853 grep -v '^ *+' conftest.er1 >conftest.err
34854 rm -f conftest.er1
34855 cat conftest.err >&5
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); } &&
34858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34859 { (case "(($ac_try" in
34860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34861 *) ac_try_echo=$ac_try;;
34862esac
34863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34864 (eval "$ac_try") 2>&5
34865 ac_status=$?
34866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867 (exit $ac_status); }; } &&
34868 { ac_try='test -s conftest$ac_exeext'
34869 { (case "(($ac_try" in
34870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34871 *) ac_try_echo=$ac_try;;
34872esac
34873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34874 (eval "$ac_try") 2>&5
34875 ac_status=$?
34876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877 (exit $ac_status); }; }; then
34878 { echo "$as_me:$LINENO: result: yes" >&5
34879echo "${ECHO_T}yes" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000034880
34881cat >>confdefs.h <<\_ACEOF
34882#define LLVM_MULTITHREADED 1
34883_ACEOF
34884
Owen Andersonff0f88e2009-05-18 23:58:51 +000034885else
34886 echo "$as_me: failed program was:" >&5
34887sed 's/^/| /' conftest.$ac_ext >&5
34888
34889 { echo "$as_me:$LINENO: result: no" >&5
34890echo "${ECHO_T}no" >&6; }
Owen Andersonff0f88e2009-05-18 23:58:51 +000034891
Owen Anderson96237ec2009-05-19 22:18:56 +000034892cat >>confdefs.h <<\_ACEOF
34893#define LLVM_MULTITHREADED 0
34894_ACEOF
34895
34896 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34897echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersonff0f88e2009-05-18 23:58:51 +000034898fi
34899
34900rm -f core conftest.err conftest.$ac_objext \
34901 conftest$ac_exeext conftest.$ac_ext
Owen Andersonff0f88e2009-05-18 23:58:51 +000034902
34903
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034904
Nick Lewycky5c2dc212009-09-29 06:18:23 +000034905if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
34906 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
34907echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
34908if test "${llvm_cv_linux_mixed+set}" = set; then
34909 echo $ECHO_N "(cached) $ECHO_C" >&6
34910else
34911 ac_ext=c
34912ac_cpp='$CPP $CPPFLAGS'
34913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34915ac_compiler_gnu=$ac_cv_c_compiler_gnu
34916
34917 cat >conftest.$ac_ext <<_ACEOF
34918/* confdefs.h. */
34919_ACEOF
34920cat confdefs.h >>conftest.$ac_ext
34921cat >>conftest.$ac_ext <<_ACEOF
34922/* end confdefs.h. */
34923#ifndef __x86_64__
34924 error: Not x86-64 even if uname says so!
34925 #endif
34926
34927int
34928main ()
34929{
34930
34931 ;
34932 return 0;
34933}
34934_ACEOF
34935rm -f conftest.$ac_objext
34936if { (ac_try="$ac_compile"
34937case "(($ac_try" in
34938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939 *) ac_try_echo=$ac_try;;
34940esac
34941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34942 (eval "$ac_compile") 2>conftest.er1
34943 ac_status=$?
34944 grep -v '^ *+' conftest.er1 >conftest.err
34945 rm -f conftest.er1
34946 cat conftest.err >&5
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 (exit $ac_status); } &&
34949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34950 { (case "(($ac_try" in
34951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34952 *) ac_try_echo=$ac_try;;
34953esac
34954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34955 (eval "$ac_try") 2>&5
34956 ac_status=$?
34957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34958 (exit $ac_status); }; } &&
34959 { ac_try='test -s conftest.$ac_objext'
34960 { (case "(($ac_try" in
34961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34962 *) ac_try_echo=$ac_try;;
34963esac
34964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34965 (eval "$ac_try") 2>&5
34966 ac_status=$?
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); }; }; then
34969 llvm_cv_linux_mixed=no
34970else
34971 echo "$as_me: failed program was:" >&5
34972sed 's/^/| /' conftest.$ac_ext >&5
34973
34974 llvm_cv_linux_mixed=yes
34975fi
34976
34977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34978 ac_ext=c
34979ac_cpp='$CPP $CPPFLAGS'
34980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34982ac_compiler_gnu=$ac_cv_c_compiler_gnu
34983
34984
34985fi
34986{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
34987echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
34988
34989 if test "$llvm_cv_linux_mixed" = "yes"; then
34990 llvm_cv_target_arch="x86"
34991 ARCH="x86"
34992 fi
34993fi
34994
Reid Spencer59c09b32007-07-30 20:13:24 +000034995
34996for ac_func in __dso_handle
34997do
34998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34999{ echo "$as_me:$LINENO: checking for $ac_func" >&5
35000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35001if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35002 echo $ECHO_N "(cached) $ECHO_C" >&6
35003else
35004 cat >conftest.$ac_ext <<_ACEOF
35005/* confdefs.h. */
35006_ACEOF
35007cat confdefs.h >>conftest.$ac_ext
35008cat >>conftest.$ac_ext <<_ACEOF
35009/* end confdefs.h. */
35010/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35012#define $ac_func innocuous_$ac_func
35013
35014/* System header to define __stub macros and hopefully few prototypes,
35015 which can conflict with char $ac_func (); below.
35016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35017 <limits.h> exists even on freestanding compilers. */
35018
35019#ifdef __STDC__
35020# include <limits.h>
35021#else
35022# include <assert.h>
35023#endif
35024
35025#undef $ac_func
35026
35027/* Override any GCC internal prototype to avoid an error.
35028 Use char because int might match the return type of a GCC
35029 builtin and then its argument prototype would still apply. */
35030#ifdef __cplusplus
35031extern "C"
35032#endif
35033char $ac_func ();
35034/* The GNU C library defines this for functions which it implements
35035 to always fail with ENOSYS. Some functions are actually named
35036 something starting with __ and the normal name is an alias. */
35037#if defined __stub_$ac_func || defined __stub___$ac_func
35038choke me
35039#endif
35040
35041int
35042main ()
35043{
35044return $ac_func ();
35045 ;
35046 return 0;
35047}
35048_ACEOF
35049rm -f conftest.$ac_objext conftest$ac_exeext
35050if { (ac_try="$ac_link"
35051case "(($ac_try" in
35052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35053 *) ac_try_echo=$ac_try;;
35054esac
35055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35056 (eval "$ac_link") 2>conftest.er1
35057 ac_status=$?
35058 grep -v '^ *+' conftest.er1 >conftest.err
35059 rm -f conftest.er1
35060 cat conftest.err >&5
35061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035062 (exit $ac_status); } &&
35063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35064 { (case "(($ac_try" in
35065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35066 *) ac_try_echo=$ac_try;;
35067esac
35068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35069 (eval "$ac_try") 2>&5
35070 ac_status=$?
35071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072 (exit $ac_status); }; } &&
35073 { ac_try='test -s conftest$ac_exeext'
35074 { (case "(($ac_try" in
35075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35076 *) ac_try_echo=$ac_try;;
35077esac
35078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35079 (eval "$ac_try") 2>&5
35080 ac_status=$?
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); }; }; then
Reid Spencer59c09b32007-07-30 20:13:24 +000035083 eval "$as_ac_var=yes"
35084else
35085 echo "$as_me: failed program was:" >&5
35086sed 's/^/| /' conftest.$ac_ext >&5
35087
35088 eval "$as_ac_var=no"
35089fi
35090
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035091rm -f core conftest.err conftest.$ac_objext \
Reid Spencer59c09b32007-07-30 20:13:24 +000035092 conftest$ac_exeext conftest.$ac_ext
35093fi
35094ac_res=`eval echo '${'$as_ac_var'}'`
35095 { echo "$as_me:$LINENO: result: $ac_res" >&5
35096echo "${ECHO_T}$ac_res" >&6; }
35097if test `eval echo '${'$as_ac_var'}'` = yes; then
35098 cat >>confdefs.h <<_ACEOF
35099#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35100_ACEOF
35101
35102fi
35103done
35104
35105
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035106{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35107echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35108if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35109 echo $ECHO_N "(cached) $ECHO_C" >&6
35110else
35111 llvm_cv_llvmgcc_sanity="no"
35112if test -x "$LLVMGCC" ; then
35113 cp /dev/null conftest.c
35114 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35115 grep 'target datalayout =' > /dev/null 2>&1
35116 if test $? -eq 0 ; then
35117 llvm_cv_llvmgcc_sanity="yes"
35118 fi
35119 rm conftest.c
35120fi
35121fi
35122{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35123echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35124
35125if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35126 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35127echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35128 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35129 LLVMCC1=$llvmcc1path
35130
35131 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35132 LLVMCC1PLUS=$llvmcc1pluspath
35133
35134 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35135 LLVMGCCDIR=$llvmgccdir
35136
35137 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35138 LLVMGCCLIBEXEC=$llvmgcclibexec
35139
35140 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35141 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35142 LLVMGCC_VERSION=$llvmgccversion
35143
35144 LLVMGCC_MAJVERS=$llvmgccmajvers
35145
Tanya Lattner9894c2c2008-10-07 22:21:03 +000035146 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035147 LLVMGCC_LANGS=$llvmgcclangs
35148
35149 { echo "$as_me:$LINENO: result: ok" >&5
35150echo "${ECHO_T}ok" >&6; }
35151fi
35152
35153SHLIBEXT=$libltdl_cv_shlibext
35154
35155
35156# Translate the various configuration directories and other basic
35157# information into substitutions that will end up in Makefile.config.in
35158# that these configured values can be used by the makefiles
35159if test "${prefix}" = "NONE" ; then
35160 prefix="/usr/local"
35161fi
35162eval LLVM_PREFIX="${prefix}";
35163eval LLVM_BINDIR="${prefix}/bin";
35164eval LLVM_LIBDIR="${prefix}/lib";
35165eval LLVM_DATADIR="${prefix}/share/llvm";
35166eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35167eval LLVM_ETCDIR="${prefix}/etc/llvm";
35168eval LLVM_INCLUDEDIR="${prefix}/include";
35169eval LLVM_INFODIR="${prefix}/info";
35170eval LLVM_MANDIR="${prefix}/man";
35171LLVM_CONFIGTIME=`date`
35172
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182
35183# Place the various directores into the config.h file as #defines so that we
35184# can know about the installation paths within LLVM.
35185
35186cat >>confdefs.h <<_ACEOF
35187#define LLVM_PREFIX "$LLVM_PREFIX"
35188_ACEOF
35189
35190
35191cat >>confdefs.h <<_ACEOF
35192#define LLVM_BINDIR "$LLVM_BINDIR"
35193_ACEOF
35194
35195
35196cat >>confdefs.h <<_ACEOF
35197#define LLVM_LIBDIR "$LLVM_LIBDIR"
35198_ACEOF
35199
35200
35201cat >>confdefs.h <<_ACEOF
35202#define LLVM_DATADIR "$LLVM_DATADIR"
35203_ACEOF
35204
35205
35206cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000035207#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035208_ACEOF
35209
35210
35211cat >>confdefs.h <<_ACEOF
35212#define LLVM_ETCDIR "$LLVM_ETCDIR"
35213_ACEOF
35214
35215
35216cat >>confdefs.h <<_ACEOF
35217#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35218_ACEOF
35219
35220
35221cat >>confdefs.h <<_ACEOF
35222#define LLVM_INFODIR "$LLVM_INFODIR"
35223_ACEOF
35224
35225
35226cat >>confdefs.h <<_ACEOF
35227#define LLVM_MANDIR "$LLVM_MANDIR"
35228_ACEOF
35229
35230
35231cat >>confdefs.h <<_ACEOF
35232#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35233_ACEOF
35234
35235
Eric Christopher8b274472007-12-01 00:34:39 +000035236cat >>confdefs.h <<_ACEOF
35237#define LLVM_HOSTTRIPLE "$host"
35238_ACEOF
35239
35240
Gordon Henriksen016ec472007-10-02 09:50:32 +000035241# Determine which bindings to build.
35242if test "$BINDINGS_TO_BUILD" = auto ; then
35243 BINDINGS_TO_BUILD=""
35244 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35245 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35246 fi
35247fi
35248BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35249
35250
35251# This isn't really configurey, but it avoids having to repeat the list in
35252# other files.
35253ALL_BINDINGS=ocaml
35254
35255
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035256# Do any work necessary to ensure that bindings have what they need.
35257binding_prereqs_failed=0
35258for a_binding in $BINDINGS_TO_BUILD ; do
35259 case "$a_binding" in
35260 ocaml)
35261 if test "x$OCAMLC" = x ; then
35262 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35263echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35264 binding_prereqs_failed=1
35265 fi
35266 if test "x$OCAMLDEP" = x ; then
35267 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35268echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35269 binding_prereqs_failed=1
35270 fi
35271 if test "x$OCAMLOPT" = x ; then
35272 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35273echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35274 fi
35275 if test "x$with_ocaml_libdir" != xauto ; then
35276 OCAML_LIBDIR=$with_ocaml_libdir
35277
35278 else
35279 ocaml_stdlib="`"$OCAMLC" -where`"
35280 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35281 then
35282 # ocaml stdlib is beneath our prefix; use stdlib
35283 OCAML_LIBDIR=$ocaml_stdlib
35284
35285 else
35286 # ocaml stdlib is outside our prefix; use libdir/ocaml
35287 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35288
35289 fi
35290 fi
35291 ;;
35292 esac
35293done
35294if test "$binding_prereqs_failed" = 1 ; then
35295 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35296echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35297 { (exit 1); exit 1; }; }
35298fi
35299
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000035300{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35301echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35302if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35303 echo $ECHO_N "(cached) $ECHO_C" >&6
35304else
35305 ac_ext=cpp
35306ac_cpp='$CXXCPP $CPPFLAGS'
35307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35310
35311 oldcxxflags="$CXXFLAGS"
35312 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35313 cat >conftest.$ac_ext <<_ACEOF
35314/* confdefs.h. */
35315_ACEOF
35316cat confdefs.h >>conftest.$ac_ext
35317cat >>conftest.$ac_ext <<_ACEOF
35318/* end confdefs.h. */
35319
35320int
35321main ()
35322{
35323
35324 ;
35325 return 0;
35326}
35327_ACEOF
35328rm -f conftest.$ac_objext
35329if { (ac_try="$ac_compile"
35330case "(($ac_try" in
35331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35332 *) ac_try_echo=$ac_try;;
35333esac
35334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35335 (eval "$ac_compile") 2>conftest.er1
35336 ac_status=$?
35337 grep -v '^ *+' conftest.er1 >conftest.err
35338 rm -f conftest.er1
35339 cat conftest.err >&5
35340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035341 (exit $ac_status); } &&
35342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35343 { (case "(($ac_try" in
35344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35345 *) ac_try_echo=$ac_try;;
35346esac
35347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35348 (eval "$ac_try") 2>&5
35349 ac_status=$?
35350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351 (exit $ac_status); }; } &&
35352 { ac_try='test -s conftest.$ac_objext'
35353 { (case "(($ac_try" in
35354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35355 *) ac_try_echo=$ac_try;;
35356esac
35357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35358 (eval "$ac_try") 2>&5
35359 ac_status=$?
35360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35361 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000035362 llvm_cv_cxx_visibility_inlines_hidden=yes
35363else
35364 echo "$as_me: failed program was:" >&5
35365sed 's/^/| /' conftest.$ac_ext >&5
35366
35367 llvm_cv_cxx_visibility_inlines_hidden=no
35368fi
35369
35370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35371 CXXFLAGS="$oldcxxflags"
35372 ac_ext=c
35373ac_cpp='$CPP $CPPFLAGS'
35374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35376ac_compiler_gnu=$ac_cv_c_compiler_gnu
35377
35378
35379fi
35380{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35381echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35382if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35383 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35384
35385else
35386 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35387
35388fi
35389
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035390
Nick Lewycky6eab6652009-03-05 08:20:44 +000035391if test "$llvm_cv_link_use_r" = "yes" ; then
35392 RPATH="-Wl,-R"
35393else
35394 RPATH="-Wl,-rpath"
35395fi
35396
35397
35398if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35399 RDYNAMIC="-Wl,-export-dynamic"
35400else
35401 RDYNAMIC=""
35402fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000035403
35404
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035405
35406ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35407
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000035408ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35409
35410ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35411
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000035412ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35413
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035414ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35415
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035416
35417ac_config_files="$ac_config_files Makefile.config"
35418
35419
35420ac_config_files="$ac_config_files llvm.spec"
35421
35422
35423ac_config_files="$ac_config_files docs/doxygen.cfg"
35424
35425
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000035426ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35427
35428
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035429ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35430
35431
35432ac_config_commands="$ac_config_commands setup"
35433
35434ac_config_commands="$ac_config_commands Makefile"
35435
35436
35437ac_config_commands="$ac_config_commands Makefile.common"
35438
35439
35440ac_config_commands="$ac_config_commands examples/Makefile"
35441
35442
35443ac_config_commands="$ac_config_commands lib/Makefile"
35444
35445
35446ac_config_commands="$ac_config_commands runtime/Makefile"
35447
35448
35449ac_config_commands="$ac_config_commands test/Makefile"
35450
35451
35452ac_config_commands="$ac_config_commands test/Makefile.tests"
35453
35454
Bill Wendling9b9833f2009-01-04 23:12:30 +000035455ac_config_commands="$ac_config_commands unittests/Makefile"
35456
35457
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035458ac_config_commands="$ac_config_commands tools/Makefile"
35459
35460
35461ac_config_commands="$ac_config_commands utils/Makefile"
35462
35463
35464ac_config_commands="$ac_config_commands projects/Makefile"
35465
35466
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035467ac_config_commands="$ac_config_commands bindings/Makefile"
35468
35469
35470ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35471
35472
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035473
35474cat >confcache <<\_ACEOF
35475# This file is a shell script that caches the results of configure
35476# tests run on this system so they can be shared between configure
35477# scripts and configure runs, see configure's option --config-cache.
35478# It is not useful on other systems. If it contains results you don't
35479# want to keep, you may remove or edit it.
35480#
35481# config.status only pays attention to the cache file if you give it
35482# the --recheck option to rerun configure.
35483#
35484# `ac_cv_env_foo' variables (set or unset) will be overridden when
35485# loading this file, other *unset* `ac_cv_foo' will be assigned the
35486# following values.
35487
35488_ACEOF
35489
35490# The following way of writing the cache mishandles newlines in values,
35491# but we know of no workaround that is simple, portable, and efficient.
35492# So, we kill variables containing newlines.
35493# Ultrix sh set writes to stderr and can't be redirected directly,
35494# and sets the high bit in the cache file unless we assign to the vars.
35495(
35496 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35497 eval ac_val=\$$ac_var
35498 case $ac_val in #(
35499 *${as_nl}*)
35500 case $ac_var in #(
35501 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35502echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35503 esac
35504 case $ac_var in #(
35505 _ | IFS | as_nl) ;; #(
35506 *) $as_unset $ac_var ;;
35507 esac ;;
35508 esac
35509 done
35510
35511 (set) 2>&1 |
35512 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35513 *${as_nl}ac_space=\ *)
35514 # `set' does not quote correctly, so add quotes (double-quote
35515 # substitution turns \\\\ into \\, and sed turns \\ into \).
35516 sed -n \
35517 "s/'/'\\\\''/g;
35518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35519 ;; #(
35520 *)
35521 # `set' quotes correctly as required by POSIX, so do not add quotes.
35522 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35523 ;;
35524 esac |
35525 sort
35526) |
35527 sed '
35528 /^ac_cv_env_/b end
35529 t clear
35530 :clear
35531 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35532 t end
35533 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35534 :end' >>confcache
35535if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35536 if test -w "$cache_file"; then
35537 test "x$cache_file" != "x/dev/null" &&
35538 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35539echo "$as_me: updating cache $cache_file" >&6;}
35540 cat confcache >$cache_file
35541 else
35542 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35543echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35544 fi
35545fi
35546rm -f confcache
35547
35548test "x$prefix" = xNONE && prefix=$ac_default_prefix
35549# Let make expand exec_prefix.
35550test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35551
35552DEFS=-DHAVE_CONFIG_H
35553
35554ac_libobjs=
35555ac_ltlibobjs=
35556for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35557 # 1. Remove the extension, and $U if already installed.
35558 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35559 ac_i=`echo "$ac_i" | sed "$ac_script"`
35560 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35561 # will be set to the directory where LIBOBJS objects are built.
35562 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35563 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35564done
35565LIBOBJS=$ac_libobjs
35566
35567LTLIBOBJS=$ac_ltlibobjs
35568
35569
35570if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35571 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35572Usually this means the macro was only invoked conditionally." >&5
35573echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35574Usually this means the macro was only invoked conditionally." >&2;}
35575 { (exit 1); exit 1; }; }
35576fi
35577if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35578 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35579Usually this means the macro was only invoked conditionally." >&5
35580echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35581Usually this means the macro was only invoked conditionally." >&2;}
35582 { (exit 1); exit 1; }; }
35583fi
35584
35585: ${CONFIG_STATUS=./config.status}
35586ac_clean_files_save=$ac_clean_files
35587ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35588{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35589echo "$as_me: creating $CONFIG_STATUS" >&6;}
35590cat >$CONFIG_STATUS <<_ACEOF
35591#! $SHELL
35592# Generated by $as_me.
35593# Run this file to recreate the current configuration.
35594# Compiler output produced by configure, useful for debugging
35595# configure, is in config.log if it exists.
35596
35597debug=false
35598ac_cs_recheck=false
35599ac_cs_silent=false
35600SHELL=\${CONFIG_SHELL-$SHELL}
35601_ACEOF
35602
35603cat >>$CONFIG_STATUS <<\_ACEOF
35604## --------------------- ##
35605## M4sh Initialization. ##
35606## --------------------- ##
35607
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035608# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035609if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35610 emulate sh
35611 NULLCMD=:
35612 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35613 # is contrary to our usage. Disable this feature.
35614 alias -g '${1+"$@"}'='"$@"'
35615 setopt NO_GLOB_SUBST
35616else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035617 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035618fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035619BIN_SH=xpg4; export BIN_SH # for Tru64
35620DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035621
35622
35623# PATH needs CR
35624# Avoid depending upon Character Ranges.
35625as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35626as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35627as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35628as_cr_digits='0123456789'
35629as_cr_alnum=$as_cr_Letters$as_cr_digits
35630
35631# The user is always right.
35632if test "${PATH_SEPARATOR+set}" != set; then
35633 echo "#! /bin/sh" >conf$$.sh
35634 echo "exit 0" >>conf$$.sh
35635 chmod +x conf$$.sh
35636 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35637 PATH_SEPARATOR=';'
35638 else
35639 PATH_SEPARATOR=:
35640 fi
35641 rm -f conf$$.sh
35642fi
35643
35644# Support unset when possible.
35645if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35646 as_unset=unset
35647else
35648 as_unset=false
35649fi
35650
35651
35652# IFS
35653# We need space, tab and new line, in precisely that order. Quoting is
35654# there to prevent editors from complaining about space-tab.
35655# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35656# splitting by setting IFS to empty value.)
35657as_nl='
35658'
35659IFS=" "" $as_nl"
35660
35661# Find who we are. Look in the path if we contain no directory separator.
35662case $0 in
35663 *[\\/]* ) as_myself=$0 ;;
35664 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35665for as_dir in $PATH
35666do
35667 IFS=$as_save_IFS
35668 test -z "$as_dir" && as_dir=.
35669 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35670done
35671IFS=$as_save_IFS
35672
35673 ;;
35674esac
35675# We did not find ourselves, most probably we were run as `sh COMMAND'
35676# in which case we are not to be found in the path.
35677if test "x$as_myself" = x; then
35678 as_myself=$0
35679fi
35680if test ! -f "$as_myself"; then
35681 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35682 { (exit 1); exit 1; }
35683fi
35684
35685# Work around bugs in pre-3.0 UWIN ksh.
35686for as_var in ENV MAIL MAILPATH
35687do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35688done
35689PS1='$ '
35690PS2='> '
35691PS4='+ '
35692
35693# NLS nuisances.
35694for as_var in \
35695 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35696 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35697 LC_TELEPHONE LC_TIME
35698do
35699 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35700 eval $as_var=C; export $as_var
35701 else
35702 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35703 fi
35704done
35705
35706# Required to use basename.
35707if expr a : '\(a\)' >/dev/null 2>&1 &&
35708 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35709 as_expr=expr
35710else
35711 as_expr=false
35712fi
35713
35714if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35715 as_basename=basename
35716else
35717 as_basename=false
35718fi
35719
35720
35721# Name of the executable.
35722as_me=`$as_basename -- "$0" ||
35723$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35724 X"$0" : 'X\(//\)$' \| \
35725 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35726echo X/"$0" |
35727 sed '/^.*\/\([^/][^/]*\)\/*$/{
35728 s//\1/
35729 q
35730 }
35731 /^X\/\(\/\/\)$/{
35732 s//\1/
35733 q
35734 }
35735 /^X\/\(\/\).*/{
35736 s//\1/
35737 q
35738 }
35739 s/.*/./; q'`
35740
35741# CDPATH.
35742$as_unset CDPATH
35743
35744
35745
35746 as_lineno_1=$LINENO
35747 as_lineno_2=$LINENO
35748 test "x$as_lineno_1" != "x$as_lineno_2" &&
35749 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35750
35751 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35752 # uniformly replaced by the line number. The first 'sed' inserts a
35753 # line-number line after each line using $LINENO; the second 'sed'
35754 # does the real work. The second script uses 'N' to pair each
35755 # line-number line with the line containing $LINENO, and appends
35756 # trailing '-' during substitution so that $LINENO is not a special
35757 # case at line end.
35758 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35759 # scripts with optimization help from Paolo Bonzini. Blame Lee
35760 # E. McMahon (1931-1989) for sed's syntax. :-)
35761 sed -n '
35762 p
35763 /[$]LINENO/=
35764 ' <$as_myself |
35765 sed '
35766 s/[$]LINENO.*/&-/
35767 t lineno
35768 b
35769 :lineno
35770 N
35771 :loop
35772 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35773 t loop
35774 s/-\n.*//
35775 ' >$as_me.lineno &&
35776 chmod +x "$as_me.lineno" ||
35777 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35778 { (exit 1); exit 1; }; }
35779
35780 # Don't try to exec as it changes $[0], causing all sort of problems
35781 # (the dirname of $[0] is not the place where we might find the
35782 # original and so on. Autoconf is especially sensitive to this).
35783 . "./$as_me.lineno"
35784 # Exit status is that of the last command.
35785 exit
35786}
35787
35788
35789if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35790 as_dirname=dirname
35791else
35792 as_dirname=false
35793fi
35794
35795ECHO_C= ECHO_N= ECHO_T=
35796case `echo -n x` in
35797-n*)
35798 case `echo 'x\c'` in
35799 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35800 *) ECHO_C='\c';;
35801 esac;;
35802*)
35803 ECHO_N='-n';;
35804esac
35805
35806if expr a : '\(a\)' >/dev/null 2>&1 &&
35807 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35808 as_expr=expr
35809else
35810 as_expr=false
35811fi
35812
35813rm -f conf$$ conf$$.exe conf$$.file
35814if test -d conf$$.dir; then
35815 rm -f conf$$.dir/conf$$.file
35816else
35817 rm -f conf$$.dir
35818 mkdir conf$$.dir
35819fi
35820echo >conf$$.file
35821if ln -s conf$$.file conf$$ 2>/dev/null; then
35822 as_ln_s='ln -s'
35823 # ... but there are two gotchas:
35824 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35825 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35826 # In both cases, we have to default to `cp -p'.
35827 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35828 as_ln_s='cp -p'
35829elif ln conf$$.file conf$$ 2>/dev/null; then
35830 as_ln_s=ln
35831else
35832 as_ln_s='cp -p'
35833fi
35834rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35835rmdir conf$$.dir 2>/dev/null
35836
35837if mkdir -p . 2>/dev/null; then
35838 as_mkdir_p=:
35839else
35840 test -d ./-p && rmdir ./-p
35841 as_mkdir_p=false
35842fi
35843
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035844# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35845# systems may use methods other than mode bits to determine executability.
35846cat >conf$$.file <<_ASEOF
35847#! /bin/sh
35848exit 0
35849_ASEOF
35850chmod +x conf$$.file
35851if test -x conf$$.file >/dev/null 2>&1; then
35852 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035853else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035854 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035855fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035856rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035857
35858# Sed expression to map a string onto a valid CPP name.
35859as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35860
35861# Sed expression to map a string onto a valid variable name.
35862as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35863
35864
35865exec 6>&1
35866
35867# Save the log message, to keep $[0] and so on meaningful, and to
35868# report actual input values of CONFIG_FILES etc. instead of their
35869# values after options handling.
35870ac_log="
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000035871This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035872generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035873
35874 CONFIG_FILES = $CONFIG_FILES
35875 CONFIG_HEADERS = $CONFIG_HEADERS
35876 CONFIG_LINKS = $CONFIG_LINKS
35877 CONFIG_COMMANDS = $CONFIG_COMMANDS
35878 $ $0 $@
35879
35880on `(hostname || uname -n) 2>/dev/null | sed 1q`
35881"
35882
35883_ACEOF
35884
35885cat >>$CONFIG_STATUS <<_ACEOF
35886# Files that config.status was made for.
35887config_files="$ac_config_files"
35888config_headers="$ac_config_headers"
35889config_commands="$ac_config_commands"
35890
35891_ACEOF
35892
35893cat >>$CONFIG_STATUS <<\_ACEOF
35894ac_cs_usage="\
35895\`$as_me' instantiates files from templates according to the
35896current configuration.
35897
35898Usage: $0 [OPTIONS] [FILE]...
35899
35900 -h, --help print this help, then exit
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035901 -V, --version print version number, then exit
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035902 -q, --quiet do not print progress messages
35903 -d, --debug don't remove temporary files
35904 --recheck update $as_me by reconfiguring in the same conditions
35905 --file=FILE[:TEMPLATE]
35906 instantiate the configuration file FILE
35907 --header=FILE[:TEMPLATE]
35908 instantiate the configuration header FILE
35909
35910Configuration files:
35911$config_files
35912
35913Configuration headers:
35914$config_headers
35915
35916Configuration commands:
35917$config_commands
35918
35919Report bugs to <bug-autoconf@gnu.org>."
35920
35921_ACEOF
35922cat >>$CONFIG_STATUS <<_ACEOF
35923ac_cs_version="\\
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000035924llvm config.status 2.7svn
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035925configured by $0, generated by GNU Autoconf 2.60,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035926 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35927
35928Copyright (C) 2006 Free Software Foundation, Inc.
35929This config.status script is free software; the Free Software Foundation
35930gives unlimited permission to copy, distribute and modify it."
35931
35932ac_pwd='$ac_pwd'
35933srcdir='$srcdir'
35934INSTALL='$INSTALL'
35935_ACEOF
35936
35937cat >>$CONFIG_STATUS <<\_ACEOF
35938# If no file are specified by the user, then we need to provide default
35939# value. By we need to know if files were specified by the user.
35940ac_need_defaults=:
35941while test $# != 0
35942do
35943 case $1 in
35944 --*=*)
35945 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35946 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35947 ac_shift=:
35948 ;;
35949 *)
35950 ac_option=$1
35951 ac_optarg=$2
35952 ac_shift=shift
35953 ;;
35954 esac
35955
35956 case $ac_option in
35957 # Handling of the options.
35958 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35959 ac_cs_recheck=: ;;
35960 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35961 echo "$ac_cs_version"; exit ;;
35962 --debug | --debu | --deb | --de | --d | -d )
35963 debug=: ;;
35964 --file | --fil | --fi | --f )
35965 $ac_shift
35966 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35967 ac_need_defaults=false;;
35968 --header | --heade | --head | --hea )
35969 $ac_shift
35970 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35971 ac_need_defaults=false;;
35972 --he | --h)
35973 # Conflict between --help and --header
35974 { echo "$as_me: error: ambiguous option: $1
35975Try \`$0 --help' for more information." >&2
35976 { (exit 1); exit 1; }; };;
35977 --help | --hel | -h )
35978 echo "$ac_cs_usage"; exit ;;
35979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35980 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35981 ac_cs_silent=: ;;
35982
35983 # This is an error.
35984 -*) { echo "$as_me: error: unrecognized option: $1
35985Try \`$0 --help' for more information." >&2
35986 { (exit 1); exit 1; }; } ;;
35987
35988 *) ac_config_targets="$ac_config_targets $1"
35989 ac_need_defaults=false ;;
35990
35991 esac
35992 shift
35993done
35994
35995ac_configure_extra_args=
35996
35997if $ac_cs_silent; then
35998 exec 6>/dev/null
35999 ac_configure_extra_args="$ac_configure_extra_args --silent"
36000fi
36001
36002_ACEOF
36003cat >>$CONFIG_STATUS <<_ACEOF
36004if \$ac_cs_recheck; then
36005 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36006 CONFIG_SHELL=$SHELL
36007 export CONFIG_SHELL
36008 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36009fi
36010
36011_ACEOF
36012cat >>$CONFIG_STATUS <<\_ACEOF
36013exec 5>>config.log
36014{
36015 echo
36016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36017## Running $as_me. ##
36018_ASBOX
36019 echo "$ac_log"
36020} >&5
36021
36022_ACEOF
36023cat >>$CONFIG_STATUS <<_ACEOF
36024#
36025# INIT-COMMANDS
36026#
36027llvm_src="${srcdir}"
36028
36029_ACEOF
36030
36031cat >>$CONFIG_STATUS <<\_ACEOF
36032
36033# Handling of arguments.
36034for ac_config_target in $ac_config_targets
36035do
36036 case $ac_config_target in
36037 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000036038 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
36039 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000036040 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036041 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036042 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
36043 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
36044 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000036045 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036046 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
36047 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
36048 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
36049 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
36050 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
36051 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
36052 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
36053 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
36054 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000036055 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036056 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
36057 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
36058 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000036059 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
36060 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036061
36062 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36063echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36064 { (exit 1); exit 1; }; };;
36065 esac
36066done
36067
36068
36069# If the user did not use the arguments to specify the items to instantiate,
36070# then the envvar interface is used. Set only those that are not.
36071# We use the long form for the default assignment because of an extremely
36072# bizarre bug on SunOS 4.1.3.
36073if $ac_need_defaults; then
36074 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36075 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36076 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36077fi
36078
36079# Have a temporary directory for convenience. Make it in the build tree
36080# simply because there is no reason against having it here, and in addition,
36081# creating and moving files from /tmp can sometimes cause problems.
36082# Hook for its removal unless debugging.
36083# Note that there is a small window in which the directory will not be cleaned:
36084# after its creation but before its name has been assigned to `$tmp'.
36085$debug ||
36086{
36087 tmp=
36088 trap 'exit_status=$?
36089 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36090' 0
36091 trap '{ (exit 1); exit 1; }' 1 2 13 15
36092}
36093# Create a (secure) tmp directory for tmp files.
36094
36095{
36096 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36097 test -n "$tmp" && test -d "$tmp"
36098} ||
36099{
36100 tmp=./conf$$-$RANDOM
36101 (umask 077 && mkdir "$tmp")
36102} ||
36103{
36104 echo "$me: cannot create a temporary directory in ." >&2
36105 { (exit 1); exit 1; }
36106}
36107
36108#
36109# Set up the sed scripts for CONFIG_FILES section.
36110#
36111
36112# No need to generate the scripts if there are no CONFIG_FILES.
36113# This happens for instance when ./config.status config.h
36114if test -n "$CONFIG_FILES"; then
36115
36116_ACEOF
36117
36118
36119
36120ac_delim='%!_!# '
36121for ac_last_try in false false false false false :; do
36122 cat >conf$$subs.sed <<_ACEOF
36123SHELL!$SHELL$ac_delim
36124PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36125PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36126PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36127PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36128PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36129PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36130exec_prefix!$exec_prefix$ac_delim
36131prefix!$prefix$ac_delim
36132program_transform_name!$program_transform_name$ac_delim
36133bindir!$bindir$ac_delim
36134sbindir!$sbindir$ac_delim
36135libexecdir!$libexecdir$ac_delim
36136datarootdir!$datarootdir$ac_delim
36137datadir!$datadir$ac_delim
36138sysconfdir!$sysconfdir$ac_delim
36139sharedstatedir!$sharedstatedir$ac_delim
36140localstatedir!$localstatedir$ac_delim
36141includedir!$includedir$ac_delim
36142oldincludedir!$oldincludedir$ac_delim
36143docdir!$docdir$ac_delim
36144infodir!$infodir$ac_delim
36145htmldir!$htmldir$ac_delim
36146dvidir!$dvidir$ac_delim
36147pdfdir!$pdfdir$ac_delim
36148psdir!$psdir$ac_delim
36149libdir!$libdir$ac_delim
36150localedir!$localedir$ac_delim
36151mandir!$mandir$ac_delim
36152DEFS!$DEFS$ac_delim
36153ECHO_C!$ECHO_C$ac_delim
36154ECHO_N!$ECHO_N$ac_delim
36155ECHO_T!$ECHO_T$ac_delim
36156LIBS!$LIBS$ac_delim
36157build_alias!$build_alias$ac_delim
36158host_alias!$host_alias$ac_delim
36159target_alias!$target_alias$ac_delim
36160LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36161subdirs!$subdirs$ac_delim
36162build!$build$ac_delim
36163build_cpu!$build_cpu$ac_delim
36164build_vendor!$build_vendor$ac_delim
36165build_os!$build_os$ac_delim
36166host!$host$ac_delim
36167host_cpu!$host_cpu$ac_delim
36168host_vendor!$host_vendor$ac_delim
36169host_os!$host_os$ac_delim
36170target!$target$ac_delim
36171target_cpu!$target_cpu$ac_delim
36172target_vendor!$target_vendor$ac_delim
36173target_os!$target_os$ac_delim
36174OS!$OS$ac_delim
Anton Korobeynikov1207b902009-08-18 00:40:51 +000036175HOST_OS!$HOST_OS$ac_delim
36176TARGET_OS!$TARGET_OS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036177LINKALL!$LINKALL$ac_delim
36178NOLINKALL!$NOLINKALL$ac_delim
36179LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36180LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Nick Lewyckyd2813d02009-09-29 05:48:51 +000036181ARCH!$ARCH$ac_delim
36182ENDIAN!$ENDIAN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036183CC!$CC$ac_delim
36184CFLAGS!$CFLAGS$ac_delim
36185LDFLAGS!$LDFLAGS$ac_delim
36186CPPFLAGS!$CPPFLAGS$ac_delim
36187ac_ct_CC!$ac_ct_CC$ac_delim
36188EXEEXT!$EXEEXT$ac_delim
36189OBJEXT!$OBJEXT$ac_delim
36190CPP!$CPP$ac_delim
36191GREP!$GREP$ac_delim
36192EGREP!$EGREP$ac_delim
36193LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36194BUILD_CC!$BUILD_CC$ac_delim
36195BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbache4c032e2008-10-02 22:56:44 +000036196BUILD_CXX!$BUILD_CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036197CVSBUILD!$CVSBUILD$ac_delim
36198ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene19b1cbd2009-04-17 14:50:39 +000036199ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036200DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
36201ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36202EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36203DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Jeffrey Yasskined62bf32009-09-27 17:47:29 +000036204DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036205JIT!$JIT$ac_delim
36206TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36207ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36208ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36209ENABLE_PIC!$ENABLE_PIC$ac_delim
36210TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000036211LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36212LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000036213LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036214ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36215EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckyf9c14662009-02-03 07:10:30 +000036216BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkov9e045892009-07-04 14:23:08 +000036217ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36218ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036219CXX!$CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036220_ACEOF
36221
36222 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36223 break
36224 elif $ac_last_try; then
36225 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36226echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36227 { (exit 1); exit 1; }; }
36228 else
36229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36230 fi
36231done
36232
36233ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36234if test -n "$ac_eof"; then
36235 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36236 ac_eof=`expr $ac_eof + 1`
36237fi
36238
36239cat >>$CONFIG_STATUS <<_ACEOF
36240cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36241/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36242_ACEOF
36243sed '
36244s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36245s/^/s,@/; s/!/@,|#_!!_#|/
36246:n
36247t n
36248s/'"$ac_delim"'$/,g/; t
36249s/$/\\/; p
36250N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36251' >>$CONFIG_STATUS <conf$$subs.sed
36252rm -f conf$$subs.sed
36253cat >>$CONFIG_STATUS <<_ACEOF
36254CEOF$ac_eof
36255_ACEOF
36256
36257
36258ac_delim='%!_!# '
36259for ac_last_try in false false false false false :; do
36260 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskined62bf32009-09-27 17:47:29 +000036261CXXFLAGS!$CXXFLAGS$ac_delim
Anton Korobeynikov1207b902009-08-18 00:40:51 +000036262ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen0af6bb22009-08-11 13:39:52 +000036263NM!$NM$ac_delim
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000036264ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkov9e045892009-07-04 14:23:08 +000036265LN_S!$LN_S$ac_delim
36266CMP!$CMP$ac_delim
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000036267CP!$CP$ac_delim
36268DATE!$DATE$ac_delim
David Greene19b1cbd2009-04-17 14:50:39 +000036269FIND!$FIND$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036270MKDIR!$MKDIR$ac_delim
36271MV!$MV$ac_delim
36272RANLIB!$RANLIB$ac_delim
36273RM!$RM$ac_delim
36274SED!$SED$ac_delim
36275TAR!$TAR$ac_delim
36276BINPWD!$BINPWD$ac_delim
36277GRAPHVIZ!$GRAPHVIZ$ac_delim
36278DOT!$DOT$ac_delim
David Greenedb740ef2009-07-09 17:16:26 +000036279FDP!$FDP$ac_delim
36280NEATO!$NEATO$ac_delim
36281TWOPI!$TWOPI$ac_delim
36282CIRCO!$CIRCO$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036283GV!$GV$ac_delim
36284DOTTY!$DOTTY$ac_delim
36285PERL!$PERL$ac_delim
36286HAVE_PERL!$HAVE_PERL$ac_delim
36287INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36288INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36289INSTALL_DATA!$INSTALL_DATA$ac_delim
36290BZIP2!$BZIP2$ac_delim
36291DOXYGEN!$DOXYGEN$ac_delim
36292GROFF!$GROFF$ac_delim
36293GZIP!$GZIP$ac_delim
36294POD2HTML!$POD2HTML$ac_delim
36295POD2MAN!$POD2MAN$ac_delim
36296RUNTEST!$RUNTEST$ac_delim
36297TCLSH!$TCLSH$ac_delim
36298ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000036299OCAMLC!$OCAMLC$ac_delim
36300OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000036301OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen8af51f62008-03-10 15:49:38 +000036302OCAMLDOC!$OCAMLDOC$ac_delim
Edwin Török20176752008-10-22 09:56:27 +000036303GAS!$GAS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036304INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36305INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36306CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36307CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36308LIBADD_DL!$LIBADD_DL$ac_delim
36309ECHO!$ECHO$ac_delim
36310AR!$AR$ac_delim
36311STRIP!$STRIP$ac_delim
36312CXXCPP!$CXXCPP$ac_delim
36313F77!$F77$ac_delim
36314FFLAGS!$FFLAGS$ac_delim
36315ac_ct_F77!$ac_ct_F77$ac_delim
36316LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000036317LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36318LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000036319LLVMGCC!$LLVMGCC$ac_delim
36320LLVMGXX!$LLVMGXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036321USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000036322USE_OPROFILE!$USE_OPROFILE$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036323HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36324HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36325ALLOCA!$ALLOCA$ac_delim
36326MMAP_FILE!$MMAP_FILE$ac_delim
36327LLVMCC1!$LLVMCC1$ac_delim
36328LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36329LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36330LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36331LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36332LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36333LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36334SHLIBEXT!$SHLIBEXT$ac_delim
36335LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36336LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36337LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36338LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36339LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36340LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36341LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36342LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36343LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36344LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000036345BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36346ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000036347OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000036348ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000036349RPATH!$RPATH$ac_delim
Nick Lewycky6eab6652009-03-05 08:20:44 +000036350RDYNAMIC!$RDYNAMIC$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036351LIBOBJS!$LIBOBJS$ac_delim
36352LTLIBOBJS!$LTLIBOBJS$ac_delim
36353_ACEOF
36354
Jeffrey Yasskined62bf32009-09-27 17:47:29 +000036355 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036356 break
36357 elif $ac_last_try; then
36358 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36359echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36360 { (exit 1); exit 1; }; }
36361 else
36362 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36363 fi
36364done
36365
36366ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36367if test -n "$ac_eof"; then
36368 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36369 ac_eof=`expr $ac_eof + 1`
36370fi
36371
36372cat >>$CONFIG_STATUS <<_ACEOF
36373cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36374/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36375_ACEOF
36376sed '
36377s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36378s/^/s,@/; s/!/@,|#_!!_#|/
36379:n
36380t n
36381s/'"$ac_delim"'$/,g/; t
36382s/$/\\/; p
36383N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36384' >>$CONFIG_STATUS <conf$$subs.sed
36385rm -f conf$$subs.sed
36386cat >>$CONFIG_STATUS <<_ACEOF
36387:end
36388s/|#_!!_#|//g
36389CEOF$ac_eof
36390_ACEOF
36391
36392
36393# VPATH may cause trouble with some makes, so we remove $(srcdir),
36394# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36395# trailing colons and then remove the whole line if VPATH becomes empty
36396# (actually we leave an empty line to preserve line numbers).
36397if test "x$srcdir" = x.; then
36398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36399s/:*\$(srcdir):*/:/
36400s/:*\${srcdir}:*/:/
36401s/:*@srcdir@:*/:/
36402s/^\([^=]*=[ ]*\):*/\1/
36403s/:*$//
36404s/^[^=]*=[ ]*$//
36405}'
36406fi
36407
36408cat >>$CONFIG_STATUS <<\_ACEOF
36409fi # test -n "$CONFIG_FILES"
36410
36411
36412for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36413do
36414 case $ac_tag in
36415 :[FHLC]) ac_mode=$ac_tag; continue;;
36416 esac
36417 case $ac_mode$ac_tag in
36418 :[FHL]*:*);;
36419 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36420echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36421 { (exit 1); exit 1; }; };;
36422 :[FH]-) ac_tag=-:-;;
36423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36424 esac
36425 ac_save_IFS=$IFS
36426 IFS=:
36427 set x $ac_tag
36428 IFS=$ac_save_IFS
36429 shift
36430 ac_file=$1
36431 shift
36432
36433 case $ac_mode in
36434 :L) ac_source=$1;;
36435 :[FH])
36436 ac_file_inputs=
36437 for ac_f
36438 do
36439 case $ac_f in
36440 -) ac_f="$tmp/stdin";;
36441 *) # Look for the file first in the build tree, then in the source tree
36442 # (if the path is not absolute). The absolute path cannot be DOS-style,
36443 # because $ac_f cannot contain `:'.
36444 test -f "$ac_f" ||
36445 case $ac_f in
36446 [\\/$]*) false;;
36447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36448 esac ||
36449 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36450echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36451 { (exit 1); exit 1; }; };;
36452 esac
36453 ac_file_inputs="$ac_file_inputs $ac_f"
36454 done
36455
36456 # Let's still pretend it is `configure' which instantiates (i.e., don't
36457 # use $as_me), people would be surprised to read:
36458 # /* config.h. Generated by config.status. */
36459 configure_input="Generated from "`IFS=:
36460 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36461 if test x"$ac_file" != x-; then
36462 configure_input="$ac_file. $configure_input"
36463 { echo "$as_me:$LINENO: creating $ac_file" >&5
36464echo "$as_me: creating $ac_file" >&6;}
36465 fi
36466
36467 case $ac_tag in
36468 *:-:* | *:-) cat >"$tmp/stdin";;
36469 esac
36470 ;;
36471 esac
36472
36473 ac_dir=`$as_dirname -- "$ac_file" ||
36474$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36475 X"$ac_file" : 'X\(//\)[^/]' \| \
36476 X"$ac_file" : 'X\(//\)$' \| \
36477 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36478echo X"$ac_file" |
36479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36480 s//\1/
36481 q
36482 }
36483 /^X\(\/\/\)[^/].*/{
36484 s//\1/
36485 q
36486 }
36487 /^X\(\/\/\)$/{
36488 s//\1/
36489 q
36490 }
36491 /^X\(\/\).*/{
36492 s//\1/
36493 q
36494 }
36495 s/.*/./; q'`
36496 { as_dir="$ac_dir"
36497 case $as_dir in #(
36498 -*) as_dir=./$as_dir;;
36499 esac
36500 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36501 as_dirs=
36502 while :; do
36503 case $as_dir in #(
36504 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36505 *) as_qdir=$as_dir;;
36506 esac
36507 as_dirs="'$as_qdir' $as_dirs"
36508 as_dir=`$as_dirname -- "$as_dir" ||
36509$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36510 X"$as_dir" : 'X\(//\)[^/]' \| \
36511 X"$as_dir" : 'X\(//\)$' \| \
36512 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36513echo X"$as_dir" |
36514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36515 s//\1/
36516 q
36517 }
36518 /^X\(\/\/\)[^/].*/{
36519 s//\1/
36520 q
36521 }
36522 /^X\(\/\/\)$/{
36523 s//\1/
36524 q
36525 }
36526 /^X\(\/\).*/{
36527 s//\1/
36528 q
36529 }
36530 s/.*/./; q'`
36531 test -d "$as_dir" && break
36532 done
36533 test -z "$as_dirs" || eval "mkdir $as_dirs"
36534 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36535echo "$as_me: error: cannot create directory $as_dir" >&2;}
36536 { (exit 1); exit 1; }; }; }
36537 ac_builddir=.
36538
36539case "$ac_dir" in
36540.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36541*)
36542 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36543 # A ".." for each directory in $ac_dir_suffix.
36544 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36545 case $ac_top_builddir_sub in
36546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36548 esac ;;
36549esac
36550ac_abs_top_builddir=$ac_pwd
36551ac_abs_builddir=$ac_pwd$ac_dir_suffix
36552# for backward compatibility:
36553ac_top_builddir=$ac_top_build_prefix
36554
36555case $srcdir in
36556 .) # We are building in place.
36557 ac_srcdir=.
36558 ac_top_srcdir=$ac_top_builddir_sub
36559 ac_abs_top_srcdir=$ac_pwd ;;
36560 [\\/]* | ?:[\\/]* ) # Absolute name.
36561 ac_srcdir=$srcdir$ac_dir_suffix;
36562 ac_top_srcdir=$srcdir
36563 ac_abs_top_srcdir=$srcdir ;;
36564 *) # Relative name.
36565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36566 ac_top_srcdir=$ac_top_build_prefix$srcdir
36567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36568esac
36569ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36570
36571
36572 case $ac_mode in
36573 :F)
36574 #
36575 # CONFIG_FILE
36576 #
36577
36578 case $INSTALL in
36579 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36580 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36581 esac
36582_ACEOF
36583
36584cat >>$CONFIG_STATUS <<\_ACEOF
36585# If the template does not know about datarootdir, expand it.
36586# FIXME: This hack should be removed a few years after 2.60.
36587ac_datarootdir_hack=; ac_datarootdir_seen=
36588
36589case `sed -n '/datarootdir/ {
36590 p
36591 q
36592}
36593/@datadir@/p
36594/@docdir@/p
36595/@infodir@/p
36596/@localedir@/p
36597/@mandir@/p
36598' $ac_file_inputs` in
36599*datarootdir*) ac_datarootdir_seen=yes;;
36600*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36601 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36602echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36603_ACEOF
36604cat >>$CONFIG_STATUS <<_ACEOF
36605 ac_datarootdir_hack='
36606 s&@datadir@&$datadir&g
36607 s&@docdir@&$docdir&g
36608 s&@infodir@&$infodir&g
36609 s&@localedir@&$localedir&g
36610 s&@mandir@&$mandir&g
36611 s&\\\${datarootdir}&$datarootdir&g' ;;
36612esac
36613_ACEOF
36614
36615# Neutralize VPATH when `$srcdir' = `.'.
36616# Shell code in configure.ac might set extrasub.
36617# FIXME: do we really want to maintain this feature?
36618cat >>$CONFIG_STATUS <<_ACEOF
36619 sed "$ac_vpsub
36620$extrasub
36621_ACEOF
36622cat >>$CONFIG_STATUS <<\_ACEOF
36623:t
36624/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36625s&@configure_input@&$configure_input&;t t
36626s&@top_builddir@&$ac_top_builddir_sub&;t t
36627s&@srcdir@&$ac_srcdir&;t t
36628s&@abs_srcdir@&$ac_abs_srcdir&;t t
36629s&@top_srcdir@&$ac_top_srcdir&;t t
36630s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36631s&@builddir@&$ac_builddir&;t t
36632s&@abs_builddir@&$ac_abs_builddir&;t t
36633s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36634s&@INSTALL@&$ac_INSTALL&;t t
36635$ac_datarootdir_hack
36636" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36637
36638test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36639 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36640 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36641 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36642which seems to be undefined. Please make sure it is defined." >&5
36643echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36644which seems to be undefined. Please make sure it is defined." >&2;}
36645
36646 rm -f "$tmp/stdin"
36647 case $ac_file in
36648 -) cat "$tmp/out"; rm -f "$tmp/out";;
36649 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36650 esac
36651 ;;
36652 :H)
36653 #
36654 # CONFIG_HEADER
36655 #
36656_ACEOF
36657
36658# Transform confdefs.h into a sed script `conftest.defines', that
36659# substitutes the proper values into config.h.in to produce config.h.
36660rm -f conftest.defines conftest.tail
36661# First, append a space to every undef/define line, to ease matching.
36662echo 's/$/ /' >conftest.defines
36663# Then, protect against being on the right side of a sed subst, or in
36664# an unquoted here document, in config.status. If some macros were
36665# called several times there might be several #defines for the same
36666# symbol, which is useless. But do not sort them, since the last
36667# AC_DEFINE must be honored.
36668ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36669# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36670# NAME is the cpp macro being defined, VALUE is the value it is being given.
36671# PARAMS is the parameter list in the macro definition--in most cases, it's
36672# just an empty string.
36673ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36674ac_dB='\\)[ (].*,\\1define\\2'
36675ac_dC=' '
36676ac_dD=' ,'
36677
36678uniq confdefs.h |
36679 sed -n '
36680 t rset
36681 :rset
36682 s/^[ ]*#[ ]*define[ ][ ]*//
36683 t ok
36684 d
36685 :ok
36686 s/[\\&,]/\\&/g
36687 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36688 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36689 ' >>conftest.defines
36690
36691# Remove the space that was appended to ease matching.
36692# Then replace #undef with comments. This is necessary, for
36693# example, in the case of _POSIX_SOURCE, which is predefined and required
36694# on some systems where configure will not decide to define it.
36695# (The regexp can be short, since the line contains either #define or #undef.)
36696echo 's/ $//
36697s,^[ #]*u.*,/* & */,' >>conftest.defines
36698
36699# Break up conftest.defines:
36700ac_max_sed_lines=50
36701
36702# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36703# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36704# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36705# et cetera.
36706ac_in='$ac_file_inputs'
36707ac_out='"$tmp/out1"'
36708ac_nxt='"$tmp/out2"'
36709
36710while :
36711do
36712 # Write a here document:
36713 cat >>$CONFIG_STATUS <<_ACEOF
36714 # First, check the format of the line:
36715 cat >"\$tmp/defines.sed" <<\\CEOF
36716/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36717/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36718b
36719:def
36720_ACEOF
36721 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36722 echo 'CEOF
36723 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36724 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36725 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36726 grep . conftest.tail >/dev/null || break
36727 rm -f conftest.defines
36728 mv conftest.tail conftest.defines
36729done
36730rm -f conftest.defines conftest.tail
36731
36732echo "ac_result=$ac_in" >>$CONFIG_STATUS
36733cat >>$CONFIG_STATUS <<\_ACEOF
36734 if test x"$ac_file" != x-; then
36735 echo "/* $configure_input */" >"$tmp/config.h"
36736 cat "$ac_result" >>"$tmp/config.h"
36737 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36738 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36739echo "$as_me: $ac_file is unchanged" >&6;}
36740 else
36741 rm -f $ac_file
36742 mv "$tmp/config.h" $ac_file
36743 fi
36744 else
36745 echo "/* $configure_input */"
36746 cat "$ac_result"
36747 fi
36748 rm -f "$tmp/out12"
36749 ;;
36750
36751 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36752echo "$as_me: executing $ac_file commands" >&6;}
36753 ;;
36754 esac
36755
36756
36757 case $ac_file$ac_mode in
36758 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036759 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036760 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Edwin Törökab4193b2009-08-28 16:12:48 +000036761 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036762 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036763 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036764 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036765 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036766 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036767 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036768 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036769 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036770 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Edwin Törökab4193b2009-08-28 16:12:48 +000036771 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000036772 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036773 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036774 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036775 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036776 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036777 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036778 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036779 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000036780 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Edwin Törökab4193b2009-08-28 16:12:48 +000036781 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000036782 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Edwin Törökab4193b2009-08-28 16:12:48 +000036783 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036784
36785 esac
36786done # for ac_tag
36787
36788
36789{ (exit 0); exit 0; }
36790_ACEOF
36791chmod +x $CONFIG_STATUS
36792ac_clean_files=$ac_clean_files_save
36793
36794
36795# configure is writing to config.log, and then calls config.status.
36796# config.status does its own redirection, appending to config.log.
36797# Unfortunately, on DOS this fails, as config.log is still kept open
36798# by configure, so config.status won't be able to write to it; its
36799# output is simply discarded. So we exec the FD to /dev/null,
36800# effectively closing config.log, so it can be properly (re)opened and
36801# appended to by config.status. When coming back to configure, we
36802# need to make the FD available again.
36803if test "$no_create" != yes; then
36804 ac_cs_success=:
36805 ac_config_status_args=
36806 test "$silent" = yes &&
36807 ac_config_status_args="$ac_config_status_args --quiet"
36808 exec 5>/dev/null
36809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36810 exec 5>>config.log
36811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36812 # would make configure fail if this is the last instruction.
36813 $ac_cs_success || { (exit 1); exit 1; }
36814fi
36815
36816#
36817# CONFIG_SUBDIRS section.
36818#
36819if test "$no_recursion" != yes; then
36820
36821 # Remove --cache-file and --srcdir arguments so they do not pile up.
36822 ac_sub_configure_args=
36823 ac_prev=
36824 eval "set x $ac_configure_args"
36825 shift
36826 for ac_arg
36827 do
36828 if test -n "$ac_prev"; then
36829 ac_prev=
36830 continue
36831 fi
36832 case $ac_arg in
36833 -cache-file | --cache-file | --cache-fil | --cache-fi \
36834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36835 ac_prev=cache_file ;;
36836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36838 | --c=*)
36839 ;;
36840 --config-cache | -C)
36841 ;;
36842 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36843 ac_prev=srcdir ;;
36844 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36845 ;;
36846 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36847 ac_prev=prefix ;;
36848 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36849 ;;
36850 *)
36851 case $ac_arg in
36852 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36853 esac
36854 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36855 esac
36856 done
36857
36858 # Always prepend --prefix to ensure using the same prefix
36859 # in subdir configurations.
36860 ac_arg="--prefix=$prefix"
36861 case $ac_arg in
36862 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36863 esac
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000036864 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036865
36866 ac_popdir=`pwd`
36867 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36868
36869 # Do not complain, so a configure script can configure whichever
36870 # parts of a large source tree are present.
36871 test -d "$srcdir/$ac_dir" || continue
36872
36873 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36874 echo "$as_me:$LINENO: $ac_msg" >&5
36875 echo "$ac_msg" >&6
36876 { as_dir="$ac_dir"
36877 case $as_dir in #(
36878 -*) as_dir=./$as_dir;;
36879 esac
36880 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36881 as_dirs=
36882 while :; do
36883 case $as_dir in #(
36884 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36885 *) as_qdir=$as_dir;;
36886 esac
36887 as_dirs="'$as_qdir' $as_dirs"
36888 as_dir=`$as_dirname -- "$as_dir" ||
36889$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36890 X"$as_dir" : 'X\(//\)[^/]' \| \
36891 X"$as_dir" : 'X\(//\)$' \| \
36892 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36893echo X"$as_dir" |
36894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36895 s//\1/
36896 q
36897 }
36898 /^X\(\/\/\)[^/].*/{
36899 s//\1/
36900 q
36901 }
36902 /^X\(\/\/\)$/{
36903 s//\1/
36904 q
36905 }
36906 /^X\(\/\).*/{
36907 s//\1/
36908 q
36909 }
36910 s/.*/./; q'`
36911 test -d "$as_dir" && break
36912 done
36913 test -z "$as_dirs" || eval "mkdir $as_dirs"
36914 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36915echo "$as_me: error: cannot create directory $as_dir" >&2;}
36916 { (exit 1); exit 1; }; }; }
36917 ac_builddir=.
36918
36919case "$ac_dir" in
36920.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36921*)
36922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36923 # A ".." for each directory in $ac_dir_suffix.
36924 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36925 case $ac_top_builddir_sub in
36926 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36927 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36928 esac ;;
36929esac
36930ac_abs_top_builddir=$ac_pwd
36931ac_abs_builddir=$ac_pwd$ac_dir_suffix
36932# for backward compatibility:
36933ac_top_builddir=$ac_top_build_prefix
36934
36935case $srcdir in
36936 .) # We are building in place.
36937 ac_srcdir=.
36938 ac_top_srcdir=$ac_top_builddir_sub
36939 ac_abs_top_srcdir=$ac_pwd ;;
36940 [\\/]* | ?:[\\/]* ) # Absolute name.
36941 ac_srcdir=$srcdir$ac_dir_suffix;
36942 ac_top_srcdir=$srcdir
36943 ac_abs_top_srcdir=$srcdir ;;
36944 *) # Relative name.
36945 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36946 ac_top_srcdir=$ac_top_build_prefix$srcdir
36947 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36948esac
36949ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36950
36951
36952 cd "$ac_dir"
36953
36954 # Check for guested configure; otherwise get Cygnus style configure.
36955 if test -f "$ac_srcdir/configure.gnu"; then
36956 ac_sub_configure=$ac_srcdir/configure.gnu
36957 elif test -f "$ac_srcdir/configure"; then
36958 ac_sub_configure=$ac_srcdir/configure
36959 elif test -f "$ac_srcdir/configure.in"; then
36960 # This should be Cygnus configure.
36961 ac_sub_configure=$ac_aux_dir/configure
36962 else
36963 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36964echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36965 ac_sub_configure=
36966 fi
36967
36968 # The recursion is here.
36969 if test -n "$ac_sub_configure"; then
36970 # Make the cache file name correct relative to the subdirectory.
36971 case $cache_file in
36972 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36973 *) # Relative name.
36974 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36975 esac
36976
36977 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36978echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36979 # The eval makes quoting arguments work.
36980 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36981 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36982 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36983echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36984 { (exit 1); exit 1; }; }
36985 fi
36986
36987 cd "$ac_popdir"
36988 done
36989fi
36990