blob: 64566fbb1b7f114ab1fe80a4001bd2cd28932981 [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
Bill Wendling025cce52009-03-12 04:10:09 +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
Shantonu Sen0af6bb22009-08-11 13:39:52 +0000837LLVM_COMPACT_SENTINELS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000838ENABLE_EXPENSIVE_CHECKS
839EXPENSIVE_CHECKS
840DEBUG_RUNTIME
841JIT
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)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001558 --enable-jit Enable Just In Time Compiling (default is YES)
1559 --enable-doxygen Build doxygen documentation (default is NO)
1560 --enable-threads Use threads if available (default is YES)
1561 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001562 is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001563 --enable-targets Build specific host targets:
1564 all,host-only,{target-name} (default=all)
1565 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1566 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001567 --enable-bindings Build specific language bindings:
1568 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00001569 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00001570 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1571 Win32)
1572 --enable-llvmc-dynamic-plugins
1573 Enable dynamic LLVMC plugins (default is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001574 --enable-ltdl-install install libltdl
1575 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001576 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001577 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001578 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001579 --enable-fast-install[=PKGS]
1580 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001581 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001582 --disable-libtool-lock avoid locking (might break parallel builds)
1583
1584Optional Packages:
1585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1587 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1588 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001589 --with-llvmgcc Specify location of llvm-gcc driver (default
1590 searches PATH)
1591 --with-llvmgxx Specify location of llvm-g++ driver (default
1592 searches PATH)
Duncan Sands9f1e2ee2009-05-13 13:13:18 +00001593 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001594 --with-ocaml-libdir Specify install location for ocaml bindings (default
1595 is stdlib)
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001596 --with-binutils-include Specify path to binutils/include/ containing
1597 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001598 --with-tclinclude directory where tcl headers are
1599 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1600 --with-pic try to use only PIC/non-PIC objects [default=use
1601 both]
1602 --with-tags[=TAGS] include additional configurations [automatic]
1603 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +00001604 --with-oprofile=<prefix>
1605 Tell OProfile >= 0.9.4 how to symbolize JIT output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001606
1607Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1613 you have headers in a nonstandard directory <include dir>
1614 CPP C preprocessor
1615 CXX C++ compiler command
1616 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001617 CXXCPP C++ preprocessor
1618 F77 Fortran 77 compiler command
1619 FFLAGS Fortran 77 compiler flags
1620
1621Use these variables to override the choices made by `configure' or to help
1622it to find libraries and programs with nonstandard names/locations.
1623
1624Report bugs to <llvmbugs@cs.uiuc.edu>.
1625_ACEOF
1626ac_status=$?
1627fi
1628
1629if test "$ac_init_help" = "recursive"; then
1630 # If there are subdirs, report their specific --help.
1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632 test -d "$ac_dir" || continue
1633 ac_builddir=.
1634
1635case "$ac_dir" in
1636.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637*)
1638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 esac ;;
1645esac
1646ac_abs_top_builddir=$ac_pwd
1647ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648# for backward compatibility:
1649ac_top_builddir=$ac_top_build_prefix
1650
1651case $srcdir in
1652 .) # We are building in place.
1653 ac_srcdir=.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1660 *) # Relative name.
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664esac
1665ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1675 else
1676 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 fi || ac_status=$?
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1679 done
1680fi
1681
1682test -n "$ac_init_help" && exit $ac_status
1683if $ac_init_version; then
1684 cat <<\_ACEOF
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001685llvm configure 2.7svn
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001686generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001687
1688Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16892002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1690This configure script is free software; the Free Software Foundation
1691gives unlimited permission to copy, distribute and modify it.
1692
Tanya Lattner916a91122009-08-22 21:01:26 +00001693Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001694_ACEOF
1695 exit
1696fi
1697cat >config.log <<_ACEOF
1698This file contains any messages produced by compilers while
1699running configure, to aid debugging if configure makes a mistake.
1700
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +00001701It was created by llvm $as_me 2.7svn, which was
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001702generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001703
1704 $ $0 $@
1705
1706_ACEOF
1707exec 5>>config.log
1708{
1709cat <<_ASUNAME
1710## --------- ##
1711## Platform. ##
1712## --------- ##
1713
1714hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1715uname -m = `(uname -m) 2>/dev/null || echo unknown`
1716uname -r = `(uname -r) 2>/dev/null || echo unknown`
1717uname -s = `(uname -s) 2>/dev/null || echo unknown`
1718uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719
1720/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1721/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1722
1723/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1724/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1725/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1726/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1727/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1728/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1729/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1730
1731_ASUNAME
1732
1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734for as_dir in $PATH
1735do
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 echo "PATH: $as_dir"
1739done
1740IFS=$as_save_IFS
1741
1742} >&5
1743
1744cat >&5 <<_ACEOF
1745
1746
1747## ----------- ##
1748## Core tests. ##
1749## ----------- ##
1750
1751_ACEOF
1752
1753
1754# Keep a trace of the command line.
1755# Strip out --no-create and --no-recursion so they do not pile up.
1756# Strip out --silent because we don't want to record it for future runs.
1757# Also quote any args containing shell meta-characters.
1758# Make two passes to allow for proper duplicate-argument suppression.
1759ac_configure_args=
1760ac_configure_args0=
1761ac_configure_args1=
1762ac_must_keep_next=false
1763for ac_pass in 1 2
1764do
1765 for ac_arg
1766 do
1767 case $ac_arg in
1768 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1770 | -silent | --silent | --silen | --sile | --sil)
1771 continue ;;
1772 *\'*)
1773 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 esac
1775 case $ac_pass in
1776 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1777 2)
1778 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1779 if test $ac_must_keep_next = true; then
1780 ac_must_keep_next=false # Got value, back to normal.
1781 else
1782 case $ac_arg in
1783 *=* | --config-cache | -C | -disable-* | --disable-* \
1784 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1785 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1786 | -with-* | --with-* | -without-* | --without-* | --x)
1787 case "$ac_configure_args0 " in
1788 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789 esac
1790 ;;
1791 -* ) ac_must_keep_next=true ;;
1792 esac
1793 fi
1794 ac_configure_args="$ac_configure_args '$ac_arg'"
1795 ;;
1796 esac
1797 done
1798done
1799$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1800$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1801
1802# When interrupted or exit'd, cleanup temporary files, and complete
1803# config.log. We remove comments because anyway the quotes in there
1804# would cause problems or look ugly.
1805# WARNING: Use '\'' to represent an apostrophe within the trap.
1806# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1807trap 'exit_status=$?
1808 # Save into config.log some information that might help in debugging.
1809 {
1810 echo
1811
1812 cat <<\_ASBOX
1813## ---------------- ##
1814## Cache variables. ##
1815## ---------------- ##
1816_ASBOX
1817 echo
1818 # The following way of writing the cache mishandles newlines in values,
1819(
1820 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1821 eval ac_val=\$$ac_var
1822 case $ac_val in #(
1823 *${as_nl}*)
1824 case $ac_var in #(
1825 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1826echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1827 esac
1828 case $ac_var in #(
1829 _ | IFS | as_nl) ;; #(
1830 *) $as_unset $ac_var ;;
1831 esac ;;
1832 esac
1833 done
1834 (set) 2>&1 |
1835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1836 *${as_nl}ac_space=\ *)
1837 sed -n \
1838 "s/'\''/'\''\\\\'\'''\''/g;
1839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1840 ;; #(
1841 *)
1842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1843 ;;
1844 esac |
1845 sort
1846)
1847 echo
1848
1849 cat <<\_ASBOX
1850## ----------------- ##
1851## Output variables. ##
1852## ----------------- ##
1853_ASBOX
1854 echo
1855 for ac_var in $ac_subst_vars
1856 do
1857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 echo "$ac_var='\''$ac_val'\''"
1862 done | sort
1863 echo
1864
1865 if test -n "$ac_subst_files"; then
1866 cat <<\_ASBOX
1867## ------------------- ##
1868## File substitutions. ##
1869## ------------------- ##
1870_ASBOX
1871 echo
1872 for ac_var in $ac_subst_files
1873 do
1874 eval ac_val=\$$ac_var
1875 case $ac_val in
1876 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 esac
1878 echo "$ac_var='\''$ac_val'\''"
1879 done | sort
1880 echo
1881 fi
1882
1883 if test -s confdefs.h; then
1884 cat <<\_ASBOX
1885## ----------- ##
1886## confdefs.h. ##
1887## ----------- ##
1888_ASBOX
1889 echo
1890 cat confdefs.h
1891 echo
1892 fi
1893 test "$ac_signal" != 0 &&
1894 echo "$as_me: caught signal $ac_signal"
1895 echo "$as_me: exit $exit_status"
1896 } >&5
1897 rm -f core *.core core.conftest.* &&
1898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899 exit $exit_status
1900' 0
1901for ac_signal in 1 2 13 15; do
1902 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1903done
1904ac_signal=0
1905
1906# confdefs.h avoids OS command line length limits that DEFS can exceed.
1907rm -f -r conftest* confdefs.h
1908
1909# Predefined preprocessor variables.
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE_NAME "$PACKAGE_NAME"
1913_ACEOF
1914
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_VERSION "$PACKAGE_VERSION"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_STRING "$PACKAGE_STRING"
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933_ACEOF
1934
1935
1936# Let the site file select an alternate cache file if it wants to.
1937# Prefer explicitly selected file to automatically selected ones.
1938if test -n "$CONFIG_SITE"; then
1939 set x "$CONFIG_SITE"
1940elif test "x$prefix" != xNONE; then
1941 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1942else
1943 set x "$ac_default_prefix/share/config.site" \
1944 "$ac_default_prefix/etc/config.site"
1945fi
1946shift
1947for ac_site_file
1948do
1949 if test -r "$ac_site_file"; then
1950 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1951echo "$as_me: loading site script $ac_site_file" >&6;}
1952 sed 's/^/| /' "$ac_site_file" >&5
1953 . "$ac_site_file"
1954 fi
1955done
1956
1957if test -r "$cache_file"; then
1958 # Some versions of bash will fail to source /dev/null (special
1959 # files actually), so we avoid doing that.
1960 if test -f "$cache_file"; then
1961 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1962echo "$as_me: loading cache $cache_file" >&6;}
1963 case $cache_file in
1964 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1965 *) . "./$cache_file";;
1966 esac
1967 fi
1968else
1969 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1970echo "$as_me: creating cache $cache_file" >&6;}
1971 >$cache_file
1972fi
1973
1974# Check that the precious variables saved in the cache have kept the same
1975# value.
1976ac_cache_corrupted=false
1977for ac_var in $ac_precious_vars; do
1978 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1979 eval ac_new_set=\$ac_env_${ac_var}_set
1980 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1981 eval ac_new_val=\$ac_env_${ac_var}_value
1982 case $ac_old_set,$ac_new_set in
1983 set,)
1984 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1985echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1986 ac_cache_corrupted=: ;;
1987 ,set)
1988 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1989echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1990 ac_cache_corrupted=: ;;
1991 ,);;
1992 *)
1993 if test "x$ac_old_val" != "x$ac_new_val"; then
1994 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1995echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1996 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1997echo "$as_me: former value: $ac_old_val" >&2;}
1998 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1999echo "$as_me: current value: $ac_new_val" >&2;}
2000 ac_cache_corrupted=:
2001 fi;;
2002 esac
2003 # Pass precious variables to config.status.
2004 if test "$ac_new_set" = set; then
2005 case $ac_new_val in
2006 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2007 *) ac_arg=$ac_var=$ac_new_val ;;
2008 esac
2009 case " $ac_configure_args " in
2010 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2011 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2012 esac
2013 fi
2014done
2015if $ac_cache_corrupted; then
2016 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2017echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2019echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2020 { (exit 1); exit 1; }; }
2021fi
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047ac_ext=c
2048ac_cpp='$CPP $CPPFLAGS'
2049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052
2053
2054
Tanya Lattner916a91122009-08-22 21:01:26 +00002055LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002056
2057
2058
2059
2060
2061
2062
2063ac_aux_dir=
2064for ac_dir in autoconf "$srcdir"/autoconf; do
2065 if test -f "$ac_dir/install-sh"; then
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install-sh -c"
2068 break
2069 elif test -f "$ac_dir/install.sh"; then
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/install.sh -c"
2072 break
2073 elif test -f "$ac_dir/shtool"; then
2074 ac_aux_dir=$ac_dir
2075 ac_install_sh="$ac_aux_dir/shtool install -c"
2076 break
2077 fi
2078done
2079if test -z "$ac_aux_dir"; then
2080 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2081echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2082 { (exit 1); exit 1; }; }
2083fi
2084
2085# These three variables are undocumented and unsupported,
2086# and are intended to be withdrawn in a future Autoconf release.
2087# They can cause serious problems if a builder's source tree is in a directory
2088# whose full name contains unusual characters.
2089ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2090ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2091ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2092
2093
2094
2095if test ${srcdir} != "." ; then
2096 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2097 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2098echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2099 { (exit 1); exit 1; }; }
2100 fi
2101fi
2102
2103for i in `ls ${srcdir}/projects`
2104do
2105 if test -d ${srcdir}/projects/${i} ; then
2106 case ${i} in
2107 CVS) ;;
2108 sample) subdirs="$subdirs projects/sample"
2109 ;;
2110 privbracket) subdirs="$subdirs projects/privbracket"
2111 ;;
2112 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2113 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00002114 # llvm-test is the old name of the test-suite, kept here for backwards
2115 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002116 llvm-test) subdirs="$subdirs projects/llvm-test"
2117 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00002118 test-suite) subdirs="$subdirs projects/test-suite"
2119 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002120 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2121;;
2122 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2123 ;;
2124 llvm-java) subdirs="$subdirs projects/llvm-java"
2125 ;;
2126 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2127 ;;
2128 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2129 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002130 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002131 ;;
2132 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2133 ;;
2134 *)
2135 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2136echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2137 ;;
2138 esac
2139 fi
2140done
2141
2142
2143# Make sure we can run config.sub.
2144$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147 { (exit 1); exit 1; }; }
2148
2149{ echo "$as_me:$LINENO: checking build system type" >&5
2150echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2151if test "${ac_cv_build+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
2154 ac_build_alias=$build_alias
2155test "x$ac_build_alias" = x &&
2156 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157test "x$ac_build_alias" = x &&
2158 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160 { (exit 1); exit 1; }; }
2161ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164 { (exit 1); exit 1; }; }
2165
2166fi
2167{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168echo "${ECHO_T}$ac_cv_build" >&6; }
2169case $ac_cv_build in
2170*-*-*) ;;
2171*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172echo "$as_me: error: invalid value of canonical build" >&2;}
2173 { (exit 1); exit 1; }; };;
2174esac
2175build=$ac_cv_build
2176ac_save_IFS=$IFS; IFS='-'
2177set x $ac_cv_build
2178shift
2179build_cpu=$1
2180build_vendor=$2
2181shift; shift
2182# Remember, the first character of IFS is used to create $*,
2183# except with old shells:
2184build_os=$*
2185IFS=$ac_save_IFS
2186case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187
2188
2189{ echo "$as_me:$LINENO: checking host system type" >&5
2190echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2191if test "${ac_cv_host+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
2194 if test "x$host_alias" = x; then
2195 ac_cv_host=$ac_cv_build
2196else
2197 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200 { (exit 1); exit 1; }; }
2201fi
2202
2203fi
2204{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205echo "${ECHO_T}$ac_cv_host" >&6; }
2206case $ac_cv_host in
2207*-*-*) ;;
2208*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209echo "$as_me: error: invalid value of canonical host" >&2;}
2210 { (exit 1); exit 1; }; };;
2211esac
2212host=$ac_cv_host
2213ac_save_IFS=$IFS; IFS='-'
2214set x $ac_cv_host
2215shift
2216host_cpu=$1
2217host_vendor=$2
2218shift; shift
2219# Remember, the first character of IFS is used to create $*,
2220# except with old shells:
2221host_os=$*
2222IFS=$ac_save_IFS
2223case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2224
2225
2226{ echo "$as_me:$LINENO: checking target system type" >&5
2227echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2228if test "${ac_cv_target+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230else
2231 if test "x$target_alias" = x; then
2232 ac_cv_target=$ac_cv_host
2233else
2234 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237 { (exit 1); exit 1; }; }
2238fi
2239
2240fi
2241{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242echo "${ECHO_T}$ac_cv_target" >&6; }
2243case $ac_cv_target in
2244*-*-*) ;;
2245*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246echo "$as_me: error: invalid value of canonical target" >&2;}
2247 { (exit 1); exit 1; }; };;
2248esac
2249target=$ac_cv_target
2250ac_save_IFS=$IFS; IFS='-'
2251set x $ac_cv_target
2252shift
2253target_cpu=$1
2254target_vendor=$2
2255shift; shift
2256# Remember, the first character of IFS is used to create $*,
2257# except with old shells:
2258target_os=$*
2259IFS=$ac_save_IFS
2260case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2261
2262
2263# The aliases save the names the user supplied, while $host etc.
2264# will get canonicalized.
2265test -n "$target_alias" &&
2266 test "$program_prefix$program_suffix$program_transform_name" = \
2267 NONENONEs,x,x, &&
2268 program_prefix=${target_alias}-
2269
2270{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2271echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2272if test "${llvm_cv_os_type+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274else
2275 case $host in
2276 *-*-aix*)
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="AIX"
2280 llvm_cv_platform_type="Unix" ;;
2281 *-*-irix*)
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="IRIX"
2285 llvm_cv_platform_type="Unix" ;;
2286 *-*-cygwin*)
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="Cygwin"
2290 llvm_cv_platform_type="Unix" ;;
2291 *-*-darwin*)
2292 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002293 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002294 llvm_cv_os_type="Darwin"
2295 llvm_cv_platform_type="Unix" ;;
2296 *-*-freebsd*)
2297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299 llvm_cv_os_type="FreeBSD"
2300 llvm_cv_platform_type="Unix" ;;
2301 *-*-openbsd*)
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="OpenBSD"
2305 llvm_cv_platform_type="Unix" ;;
2306 *-*-netbsd*)
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="NetBSD"
2310 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002311 *-*-dragonfly*)
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="DragonFly"
2315 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002316 *-*-hpux*)
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="HP-UX"
2320 llvm_cv_platform_type="Unix" ;;
2321 *-*-interix*)
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="Interix"
2325 llvm_cv_platform_type="Unix" ;;
2326 *-*-linux*)
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="Linux"
2330 llvm_cv_platform_type="Unix" ;;
2331 *-*-solaris*)
2332 llvm_cv_link_all_option="-Wl,-z,allextract"
2333 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2334 llvm_cv_os_type="SunOS"
2335 llvm_cv_platform_type="Unix" ;;
2336 *-*-win32*)
2337 llvm_cv_link_all_option="-Wl,--whole-archive"
2338 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2339 llvm_cv_os_type="Win32"
2340 llvm_cv_platform_type="Win32" ;;
2341 *-*-mingw*)
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="MingW"
2345 llvm_cv_platform_type="Win32" ;;
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002346 *-unknown-eabi*)
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="Freestanding"
2350 llvm_cv_platform_type="Unix" ;;
2351 *-unknown-elf*)
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" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002356 *)
2357 llvm_cv_link_all_option=""
2358 llvm_cv_no_link_all_option=""
2359 llvm_cv_os_type="Unknown"
2360 llvm_cv_platform_type="Unknown" ;;
2361esac
2362fi
2363{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2364echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2365
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002366{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2367echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2368if test "${llvm_cv_target_os_type+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370else
2371 case $target in
2372 *-*-aix*)
2373 llvm_cv_target_os_type="AIX" ;;
2374 *-*-irix*)
2375 llvm_cv_target_os_type="IRIX" ;;
2376 *-*-cygwin*)
2377 llvm_cv_target_os_type="Cygwin" ;;
2378 *-*-darwin*)
2379 llvm_cv_target_os_type="Darwin" ;;
2380 *-*-freebsd*)
2381 llvm_cv_target_os_type="FreeBSD" ;;
2382 *-*-openbsd*)
2383 llvm_cv_target_os_type="OpenBSD" ;;
2384 *-*-netbsd*)
2385 llvm_cv_target_os_type="NetBSD" ;;
2386 *-*-dragonfly*)
2387 llvm_cv_target_os_type="DragonFly" ;;
2388 *-*-hpux*)
2389 llvm_cv_target_os_type="HP-UX" ;;
2390 *-*-interix*)
2391 llvm_cv_target_os_type="Interix" ;;
2392 *-*-linux*)
2393 llvm_cv_target_os_type="Linux" ;;
2394 *-*-solaris*)
2395 llvm_cv_target_os_type="SunOS" ;;
2396 *-*-win32*)
2397 llvm_cv_target_os_type="Win32" ;;
2398 *-*-mingw*)
2399 llvm_cv_target_os_type="MingW" ;;
2400 *-unknown-eabi*)
2401 llvm_cv_target_os_type="Freestanding" ;;
2402 *)
2403 llvm_cv_target_os_type="Unknown" ;;
2404esac
2405fi
2406{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2407echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2408
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002409if test "$llvm_cv_os_type" = "Unknown" ; then
2410 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2411echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2412 { (exit 1); exit 1; }; }
2413fi
2414
2415OS=$llvm_cv_os_type
2416
Anton Korobeynikov1207b902009-08-18 00:40:51 +00002417HOST_OS=$llvm_cv_os_type
2418
2419TARGET_OS=$llvm_cv_target_os_type
2420
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002421
2422LINKALL=$llvm_cv_link_all_option
2423
2424NOLINKALL=$llvm_cv_no_link_all_option
2425
2426
2427case $llvm_cv_platform_type in
2428 Unix)
2429
2430cat >>confdefs.h <<\_ACEOF
2431#define LLVM_ON_UNIX 1
2432_ACEOF
2433
2434 LLVM_ON_UNIX=1
2435
2436 LLVM_ON_WIN32=0
2437
2438 ;;
2439 Win32)
2440
2441cat >>confdefs.h <<\_ACEOF
2442#define LLVM_ON_WIN32 1
2443_ACEOF
2444
2445 LLVM_ON_UNIX=0
2446
2447 LLVM_ON_WIN32=1
2448
2449 ;;
2450esac
2451
2452{ echo "$as_me:$LINENO: checking target architecture" >&5
2453echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2454if test "${llvm_cv_target_arch+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457 case $target in
2458 i?86-*) llvm_cv_target_arch="x86" ;;
2459 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2460 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2461 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2462 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyd4c842f2009-04-18 18:11:26 +00002463 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002464 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002465 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002466 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00002467 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00002468 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00002469 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002470 *) llvm_cv_target_arch="Unknown" ;;
2471esac
2472fi
2473{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2474echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2475
2476if test "$llvm_cv_target_arch" = "Unknown" ; then
2477 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2478echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2479fi
2480
Douglas Gregor13e13882009-06-17 00:43:20 +00002481# Determine the LLVM native architecture for the target
2482case "$llvm_cv_target_arch" in
2483 x86) LLVM_NATIVE_ARCH="X86" ;;
2484 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2485 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2486esac
2487
Bill Wendling025cce52009-03-12 04:10:09 +00002488ARCH=$llvm_cv_target_arch
2489
2490
2491ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002492ac_cpp='$CPP $CPPFLAGS'
2493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496if test -n "$ac_tool_prefix"; then
2497 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2498set dummy ${ac_tool_prefix}gcc; ac_word=$2
2499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501if test "${ac_cv_prog_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503else
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002513 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 +00002514 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518done
2519done
2520IFS=$as_save_IFS
2521
2522fi
2523fi
2524CC=$ac_cv_prog_CC
2525if test -n "$CC"; then
2526 { echo "$as_me:$LINENO: result: $CC" >&5
2527echo "${ECHO_T}$CC" >&6; }
2528else
2529 { echo "$as_me:$LINENO: result: no" >&5
2530echo "${ECHO_T}no" >&6; }
2531fi
2532
2533
2534fi
2535if test -z "$ac_cv_prog_CC"; then
2536 ac_ct_CC=$CC
2537 # Extract the first word of "gcc", so it can be a program name with args.
2538set dummy gcc; ac_word=$2
2539{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543else
2544 if test -n "$ac_ct_CC"; then
2545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2546else
2547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH
2549do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002553 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 +00002554 ac_cv_prog_ac_ct_CC="gcc"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2557 fi
2558done
2559done
2560IFS=$as_save_IFS
2561
2562fi
2563fi
2564ac_ct_CC=$ac_cv_prog_ac_ct_CC
2565if test -n "$ac_ct_CC"; then
2566 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2567echo "${ECHO_T}$ac_ct_CC" >&6; }
2568else
2569 { echo "$as_me:$LINENO: result: no" >&5
2570echo "${ECHO_T}no" >&6; }
2571fi
2572
2573 if test "x$ac_ct_CC" = x; then
2574 CC=""
2575 else
2576 case $cross_compiling:$ac_tool_warned in
2577yes:)
2578{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2579whose name does not start with the host triplet. If you think this
2580configuration is useful to you, please write to autoconf@gnu.org." >&5
2581echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2582whose name does not start with the host triplet. If you think this
2583configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2584ac_tool_warned=yes ;;
2585esac
2586 CC=$ac_ct_CC
2587 fi
2588else
2589 CC="$ac_cv_prog_CC"
2590fi
2591
2592if test -z "$CC"; then
2593 if test -n "$ac_tool_prefix"; then
2594 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2595set dummy ${ac_tool_prefix}cc; ac_word=$2
2596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002610 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 +00002611 ac_cv_prog_CC="${ac_tool_prefix}cc"
2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615done
2616done
2617IFS=$as_save_IFS
2618
2619fi
2620fi
2621CC=$ac_cv_prog_CC
2622if test -n "$CC"; then
2623 { echo "$as_me:$LINENO: result: $CC" >&5
2624echo "${ECHO_T}$CC" >&6; }
2625else
2626 { echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6; }
2628fi
2629
2630
2631 fi
2632fi
2633if test -z "$CC"; then
2634 # Extract the first word of "cc", so it can be a program name with args.
2635set dummy cc; ac_word=$2
2636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2638if test "${ac_cv_prog_CC+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640else
2641 if test -n "$CC"; then
2642 ac_cv_prog_CC="$CC" # Let the user override the test.
2643else
2644 ac_prog_rejected=no
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002651 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 +00002652 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2653 ac_prog_rejected=yes
2654 continue
2655 fi
2656 ac_cv_prog_CC="cc"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
2659 fi
2660done
2661done
2662IFS=$as_save_IFS
2663
2664if test $ac_prog_rejected = yes; then
2665 # We found a bogon in the path, so make sure we never use it.
2666 set dummy $ac_cv_prog_CC
2667 shift
2668 if test $# != 0; then
2669 # We chose a different compiler from the bogus one.
2670 # However, it has the same basename, so the bogon will be chosen
2671 # first if we set CC to just the basename; use the full file name.
2672 shift
2673 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2674 fi
2675fi
2676fi
2677fi
2678CC=$ac_cv_prog_CC
2679if test -n "$CC"; then
2680 { echo "$as_me:$LINENO: result: $CC" >&5
2681echo "${ECHO_T}$CC" >&6; }
2682else
2683 { echo "$as_me:$LINENO: result: no" >&5
2684echo "${ECHO_T}no" >&6; }
2685fi
2686
2687
2688fi
2689if test -z "$CC"; then
2690 if test -n "$ac_tool_prefix"; then
2691 for ac_prog in cl.exe
2692 do
2693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2694set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2697if test "${ac_cv_prog_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2699else
2700 if test -n "$CC"; then
2701 ac_cv_prog_CC="$CC" # Let the user override the test.
2702else
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002709 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 +00002710 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714done
2715done
2716IFS=$as_save_IFS
2717
2718fi
2719fi
2720CC=$ac_cv_prog_CC
2721if test -n "$CC"; then
2722 { echo "$as_me:$LINENO: result: $CC" >&5
2723echo "${ECHO_T}$CC" >&6; }
2724else
2725 { echo "$as_me:$LINENO: result: no" >&5
2726echo "${ECHO_T}no" >&6; }
2727fi
2728
2729
2730 test -n "$CC" && break
2731 done
2732fi
2733if test -z "$CC"; then
2734 ac_ct_CC=$CC
2735 for ac_prog in cl.exe
2736do
2737 # Extract the first word of "$ac_prog", so it can be a program name with args.
2738set dummy $ac_prog; ac_word=$2
2739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2741if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743else
2744 if test -n "$ac_ct_CC"; then
2745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2746else
2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH
2749do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002753 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 +00002754 ac_cv_prog_ac_ct_CC="$ac_prog"
2755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2757 fi
2758done
2759done
2760IFS=$as_save_IFS
2761
2762fi
2763fi
2764ac_ct_CC=$ac_cv_prog_ac_ct_CC
2765if test -n "$ac_ct_CC"; then
2766 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2767echo "${ECHO_T}$ac_ct_CC" >&6; }
2768else
2769 { echo "$as_me:$LINENO: result: no" >&5
2770echo "${ECHO_T}no" >&6; }
2771fi
2772
2773
2774 test -n "$ac_ct_CC" && break
2775done
2776
2777 if test "x$ac_ct_CC" = x; then
2778 CC=""
2779 else
2780 case $cross_compiling:$ac_tool_warned in
2781yes:)
2782{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2783whose name does not start with the host triplet. If you think this
2784configuration is useful to you, please write to autoconf@gnu.org." >&5
2785echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2786whose name does not start with the host triplet. If you think this
2787configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2788ac_tool_warned=yes ;;
2789esac
2790 CC=$ac_ct_CC
2791 fi
2792fi
2793
2794fi
2795
2796
2797test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2798See \`config.log' for more details." >&5
2799echo "$as_me: error: no acceptable C compiler found in \$PATH
2800See \`config.log' for more details." >&2;}
2801 { (exit 1); exit 1; }; }
2802
2803# Provide some information about the compiler.
2804echo "$as_me:$LINENO: checking for C compiler version" >&5
2805ac_compiler=`set X $ac_compile; echo $2`
2806{ (ac_try="$ac_compiler --version >&5"
2807case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810esac
2811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compiler --version >&5") 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }
2816{ (ac_try="$ac_compiler -v >&5"
2817case "(($ac_try" in
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2820esac
2821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822 (eval "$ac_compiler -v >&5") 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }
2826{ (ac_try="$ac_compiler -V >&5"
2827case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830esac
2831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compiler -V >&5") 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }
2836
2837cat >conftest.$ac_ext <<_ACEOF
2838/* confdefs.h. */
2839_ACEOF
2840cat confdefs.h >>conftest.$ac_ext
2841cat >>conftest.$ac_ext <<_ACEOF
2842/* end confdefs.h. */
2843
2844int
2845main ()
2846{
2847
2848 ;
2849 return 0;
2850}
2851_ACEOF
2852ac_clean_files_save=$ac_clean_files
2853ac_clean_files="$ac_clean_files a.out a.exe b.out"
2854# Try to create an executable without -o first, disregard a.out.
2855# It will help us diagnose broken compilers, and finding out an intuition
2856# of exeext.
2857{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2858echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2859ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2860#
2861# List of possible output files, starting from the most likely.
2862# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2863# only as a last resort. b.out is created by i960 compilers.
2864ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2865#
2866# The IRIX 6 linker writes into existing files which may not be
2867# executable, retaining their permissions. Remove them first so a
2868# subsequent execution test works.
2869ac_rmfiles=
2870for ac_file in $ac_files
2871do
2872 case $ac_file in
2873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2874 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2875 esac
2876done
2877rm -f $ac_rmfiles
2878
2879if { (ac_try="$ac_link_default"
2880case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883esac
2884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_link_default") 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; then
2889 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2890# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2891# in a Makefile. We should not override ac_cv_exeext if it was cached,
2892# so that the user can short-circuit this test for compilers unknown to
2893# Autoconf.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002894for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002895do
2896 test -f "$ac_file" || continue
2897 case $ac_file in
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2899 ;;
2900 [ab].out )
2901 # We found the default executable, but exeext='' is most
2902 # certainly right.
2903 break;;
2904 *.* )
2905 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2906 then :; else
2907 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2908 fi
2909 # We set ac_cv_exeext here because the later test for it is not
2910 # safe: cross compilers may not add the suffix if given an `-o'
2911 # argument, so we may need to know it at that point already.
2912 # Even if this section looks crufty: it has the advantage of
2913 # actually working.
2914 break;;
2915 * )
2916 break;;
2917 esac
2918done
2919test "$ac_cv_exeext" = no && ac_cv_exeext=
2920
2921else
2922 echo "$as_me: failed program was:" >&5
2923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2926See \`config.log' for more details." >&5
2927echo "$as_me: error: C compiler cannot create executables
2928See \`config.log' for more details." >&2;}
2929 { (exit 77); exit 77; }; }
2930fi
2931
2932ac_exeext=$ac_cv_exeext
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002933{ echo "$as_me:$LINENO: result: $ac_file" >&5
2934echo "${ECHO_T}$ac_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002935
2936# Check that the compiler produces executables we can run. If not, either
2937# the compiler is broken, or we cross compile.
2938{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2939echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2940# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2941# If not cross compiling, check that we can run a simple program.
2942if test "$cross_compiling" != yes; then
2943 if { ac_try='./$ac_file'
2944 { (case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2947esac
2948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_try") 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 cross_compiling=no
2954 else
2955 if test "$cross_compiling" = maybe; then
2956 cross_compiling=yes
2957 else
2958 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2959If you meant to cross compile, use \`--host'.
2960See \`config.log' for more details." >&5
2961echo "$as_me: error: cannot run C compiled programs.
2962If you meant to cross compile, use \`--host'.
2963See \`config.log' for more details." >&2;}
2964 { (exit 1); exit 1; }; }
2965 fi
2966 fi
2967fi
2968{ echo "$as_me:$LINENO: result: yes" >&5
2969echo "${ECHO_T}yes" >&6; }
2970
2971rm -f a.out a.exe conftest$ac_cv_exeext b.out
2972ac_clean_files=$ac_clean_files_save
2973# Check that the compiler produces executables we can run. If not, either
2974# the compiler is broken, or we cross compile.
2975{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2976echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2977{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2978echo "${ECHO_T}$cross_compiling" >&6; }
2979
2980{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2981echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2982if { (ac_try="$ac_link"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_link") 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; then
2992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2993# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2994# work properly (i.e., refer to `conftest.exe'), while it won't with
2995# `rm'.
2996for ac_file in conftest.exe conftest conftest.*; do
2997 test -f "$ac_file" || continue
2998 case $ac_file in
2999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001 break;;
3002 * ) break;;
3003 esac
3004done
3005else
3006 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3007See \`config.log' for more details." >&5
3008echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3009See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3011fi
3012
3013rm -f conftest$ac_cv_exeext
3014{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3015echo "${ECHO_T}$ac_cv_exeext" >&6; }
3016
3017rm -f conftest.$ac_ext
3018EXEEXT=$ac_cv_exeext
3019ac_exeext=$EXEEXT
3020{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3021echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3022if test "${ac_cv_objext+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
3025 cat >conftest.$ac_ext <<_ACEOF
3026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
3031
3032int
3033main ()
3034{
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040rm -f conftest.o conftest.obj
3041if { (ac_try="$ac_compile"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; then
3051 for ac_file in conftest.o conftest.obj conftest.*; do
3052 test -f "$ac_file" || continue;
3053 case $ac_file in
3054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3056 break;;
3057 esac
3058done
3059else
3060 echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3064See \`config.log' for more details." >&5
3065echo "$as_me: error: cannot compute suffix of object files: cannot compile
3066See \`config.log' for more details." >&2;}
3067 { (exit 1); exit 1; }; }
3068fi
3069
3070rm -f conftest.$ac_cv_objext conftest.$ac_ext
3071fi
3072{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3073echo "${ECHO_T}$ac_cv_objext" >&6; }
3074OBJEXT=$ac_cv_objext
3075ac_objext=$OBJEXT
3076{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3077echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3078if test "${ac_cv_c_compiler_gnu+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081 cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h. */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h. */
3087
3088int
3089main ()
3090{
3091#ifndef __GNUC__
3092 choke me
3093#endif
3094
3095 ;
3096 return 0;
3097}
3098_ACEOF
3099rm -f conftest.$ac_objext
3100if { (ac_try="$ac_compile"
3101case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003133 ac_compiler_gnu=yes
3134else
3135 echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 ac_compiler_gnu=no
3139fi
3140
3141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142ac_cv_c_compiler_gnu=$ac_compiler_gnu
3143
3144fi
3145{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3146echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3147GCC=`test $ac_compiler_gnu = yes && echo yes`
3148ac_test_CFLAGS=${CFLAGS+set}
3149ac_save_CFLAGS=$CFLAGS
3150{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3151echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3152if test "${ac_cv_prog_cc_g+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3154else
3155 ac_save_c_werror_flag=$ac_c_werror_flag
3156 ac_c_werror_flag=yes
3157 ac_cv_prog_cc_g=no
3158 CFLAGS="-g"
3159 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h. */
3165
3166int
3167main ()
3168{
3169
3170 ;
3171 return 0;
3172}
3173_ACEOF
3174rm -f conftest.$ac_objext
3175if { (ac_try="$ac_compile"
3176case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3182 ac_status=$?
3183 grep -v '^ *+' conftest.er1 >conftest.err
3184 rm -f conftest.er1
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003208 ac_cv_prog_cc_g=yes
3209else
3210 echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 CFLAGS=""
3214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220
3221int
3222main ()
3223{
3224
3225 ;
3226 return 0;
3227}
3228_ACEOF
3229rm -f conftest.$ac_objext
3230if { (ac_try="$ac_compile"
3231case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234esac
3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3244 { (case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247esac
3248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_try") 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257esac
3258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_try") 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003263 :
3264else
3265 echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268 ac_c_werror_flag=$ac_save_c_werror_flag
3269 CFLAGS="-g"
3270 cat >conftest.$ac_ext <<_ACEOF
3271/* confdefs.h. */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h. */
3276
3277int
3278main ()
3279{
3280
3281 ;
3282 return 0;
3283}
3284_ACEOF
3285rm -f conftest.$ac_objext
3286if { (ac_try="$ac_compile"
3287case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290esac
3291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300 { (case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
3304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_try") 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313esac
3314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315 (eval "$ac_try") 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003319 ac_cv_prog_cc_g=yes
3320else
3321 echo "$as_me: failed program was:" >&5
3322sed 's/^/| /' conftest.$ac_ext >&5
3323
3324
3325fi
3326
3327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328fi
3329
3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331fi
3332
3333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 ac_c_werror_flag=$ac_save_c_werror_flag
3335fi
3336{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3337echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3338if test "$ac_test_CFLAGS" = set; then
3339 CFLAGS=$ac_save_CFLAGS
3340elif test $ac_cv_prog_cc_g = yes; then
3341 if test "$GCC" = yes; then
3342 CFLAGS="-g -O2"
3343 else
3344 CFLAGS="-g"
3345 fi
3346else
3347 if test "$GCC" = yes; then
3348 CFLAGS="-O2"
3349 else
3350 CFLAGS=
3351 fi
3352fi
3353{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3354echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3355if test "${ac_cv_prog_cc_c89+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358 ac_cv_prog_cc_c89=no
3359ac_save_CC=$CC
3360cat >conftest.$ac_ext <<_ACEOF
3361/* confdefs.h. */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h. */
3366#include <stdarg.h>
3367#include <stdio.h>
3368#include <sys/types.h>
3369#include <sys/stat.h>
3370/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3371struct buf { int x; };
3372FILE * (*rcsopen) (struct buf *, struct stat *, int);
3373static char *e (p, i)
3374 char **p;
3375 int i;
3376{
3377 return p[i];
3378}
3379static char *f (char * (*g) (char **, int), char **p, ...)
3380{
3381 char *s;
3382 va_list v;
3383 va_start (v,p);
3384 s = g (p, va_arg (v,int));
3385 va_end (v);
3386 return s;
3387}
3388
3389/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3390 function prototypes and stuff, but not '\xHH' hex character constants.
3391 These don't provoke an error unfortunately, instead are silently treated
3392 as 'x'. The following induces an error, until -std is added to get
3393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3394 array size at least. It's necessary to write '\x00'==0 to get something
3395 that's true only with -std. */
3396int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3397
3398/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3399 inside strings and character constants. */
3400#define FOO(x) 'x'
3401int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3402
3403int test (int i, double x);
3404struct s1 {int (*f) (int a);};
3405struct s2 {int (*f) (double a);};
3406int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3407int argc;
3408char **argv;
3409int
3410main ()
3411{
3412return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3413 ;
3414 return 0;
3415}
3416_ACEOF
3417for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419do
3420 CC="$ac_save_CC $ac_arg"
3421 rm -f conftest.$ac_objext
3422if { (ac_try="$ac_compile"
3423case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426esac
3427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3436 { (case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439esac
3440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_try") 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449esac
3450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_try") 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003455 ac_cv_prog_cc_c89=$ac_arg
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460
3461fi
3462
3463rm -f core conftest.err conftest.$ac_objext
3464 test "x$ac_cv_prog_cc_c89" != "xno" && break
3465done
3466rm -f conftest.$ac_ext
3467CC=$ac_save_CC
3468
3469fi
3470# AC_CACHE_VAL
3471case "x$ac_cv_prog_cc_c89" in
3472 x)
3473 { echo "$as_me:$LINENO: result: none needed" >&5
3474echo "${ECHO_T}none needed" >&6; } ;;
3475 xno)
3476 { echo "$as_me:$LINENO: result: unsupported" >&5
3477echo "${ECHO_T}unsupported" >&6; } ;;
3478 *)
3479 CC="$CC $ac_cv_prog_cc_c89"
3480 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3481echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3482esac
3483
3484
3485ac_ext=c
3486ac_cpp='$CPP $CPPFLAGS'
3487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490
3491
3492ac_ext=c
3493ac_cpp='$CPP $CPPFLAGS'
3494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3498echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3499# On Suns, sometimes $CPP names a directory.
3500if test -n "$CPP" && test -d "$CPP"; then
3501 CPP=
3502fi
3503if test -z "$CPP"; then
3504 if test "${ac_cv_prog_CPP+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506else
3507 # Double quotes because CPP needs to be expanded
3508 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3509 do
3510 ac_preproc_ok=false
3511for ac_c_preproc_warn_flag in '' yes
3512do
3513 # Use a header file that comes with gcc, so configuring glibc
3514 # with a fresh cross-compiler works.
3515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3516 # <limits.h> exists even on freestanding compilers.
3517 # On the NeXT, cc -E runs the code through the compiler's parser,
3518 # not just through cpp. "Syntax error" is here to catch this case.
3519 cat >conftest.$ac_ext <<_ACEOF
3520/* confdefs.h. */
3521_ACEOF
3522cat confdefs.h >>conftest.$ac_ext
3523cat >>conftest.$ac_ext <<_ACEOF
3524/* end confdefs.h. */
3525#ifdef __STDC__
3526# include <limits.h>
3527#else
3528# include <assert.h>
3529#endif
3530 Syntax error
3531_ACEOF
3532if { (ac_try="$ac_cpp conftest.$ac_ext"
3533case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536esac
3537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003544 (exit $ac_status); } >/dev/null; then
3545 if test -s conftest.err; then
3546 ac_cpp_err=$ac_c_preproc_warn_flag
3547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3548 else
3549 ac_cpp_err=
3550 fi
3551else
3552 ac_cpp_err=yes
3553fi
3554if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003555 :
3556else
3557 echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
3559
3560 # Broken: fails on valid input.
3561continue
3562fi
3563
3564rm -f conftest.err conftest.$ac_ext
3565
3566 # OK, works on sane cases. Now check whether nonexistent headers
3567 # can be detected and how.
3568 cat >conftest.$ac_ext <<_ACEOF
3569/* confdefs.h. */
3570_ACEOF
3571cat confdefs.h >>conftest.$ac_ext
3572cat >>conftest.$ac_ext <<_ACEOF
3573/* end confdefs.h. */
3574#include <ac_nonexistent.h>
3575_ACEOF
3576if { (ac_try="$ac_cpp conftest.$ac_ext"
3577case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580esac
3581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3583 ac_status=$?
3584 grep -v '^ *+' conftest.er1 >conftest.err
3585 rm -f conftest.er1
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003588 (exit $ac_status); } >/dev/null; then
3589 if test -s conftest.err; then
3590 ac_cpp_err=$ac_c_preproc_warn_flag
3591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3592 else
3593 ac_cpp_err=
3594 fi
3595else
3596 ac_cpp_err=yes
3597fi
3598if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003599 # Broken: success on invalid input.
3600continue
3601else
3602 echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 # Passes both tests.
3606ac_preproc_ok=:
3607break
3608fi
3609
3610rm -f conftest.err conftest.$ac_ext
3611
3612done
3613# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3614rm -f conftest.err conftest.$ac_ext
3615if $ac_preproc_ok; then
3616 break
3617fi
3618
3619 done
3620 ac_cv_prog_CPP=$CPP
3621
3622fi
3623 CPP=$ac_cv_prog_CPP
3624else
3625 ac_cv_prog_CPP=$CPP
3626fi
3627{ echo "$as_me:$LINENO: result: $CPP" >&5
3628echo "${ECHO_T}$CPP" >&6; }
3629ac_preproc_ok=false
3630for ac_c_preproc_warn_flag in '' yes
3631do
3632 # Use a header file that comes with gcc, so configuring glibc
3633 # with a fresh cross-compiler works.
3634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3635 # <limits.h> exists even on freestanding compilers.
3636 # On the NeXT, cc -E runs the code through the compiler's parser,
3637 # not just through cpp. "Syntax error" is here to catch this case.
3638 cat >conftest.$ac_ext <<_ACEOF
3639/* confdefs.h. */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h. */
3644#ifdef __STDC__
3645# include <limits.h>
3646#else
3647# include <assert.h>
3648#endif
3649 Syntax error
3650_ACEOF
3651if { (ac_try="$ac_cpp conftest.$ac_ext"
3652case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655esac
3656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003663 (exit $ac_status); } >/dev/null; then
3664 if test -s conftest.err; then
3665 ac_cpp_err=$ac_c_preproc_warn_flag
3666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3667 else
3668 ac_cpp_err=
3669 fi
3670else
3671 ac_cpp_err=yes
3672fi
3673if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003674 :
3675else
3676 echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 # Broken: fails on valid input.
3680continue
3681fi
3682
3683rm -f conftest.err conftest.$ac_ext
3684
3685 # OK, works on sane cases. Now check whether nonexistent headers
3686 # can be detected and how.
3687 cat >conftest.$ac_ext <<_ACEOF
3688/* confdefs.h. */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h. */
3693#include <ac_nonexistent.h>
3694_ACEOF
3695if { (ac_try="$ac_cpp conftest.$ac_ext"
3696case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699esac
3700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003707 (exit $ac_status); } >/dev/null; then
3708 if test -s conftest.err; then
3709 ac_cpp_err=$ac_c_preproc_warn_flag
3710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3711 else
3712 ac_cpp_err=
3713 fi
3714else
3715 ac_cpp_err=yes
3716fi
3717if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003718 # Broken: success on invalid input.
3719continue
3720else
3721 echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 # Passes both tests.
3725ac_preproc_ok=:
3726break
3727fi
3728
3729rm -f conftest.err conftest.$ac_ext
3730
3731done
3732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3733rm -f conftest.err conftest.$ac_ext
3734if $ac_preproc_ok; then
3735 :
3736else
3737 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3738See \`config.log' for more details." >&5
3739echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3740See \`config.log' for more details." >&2;}
3741 { (exit 1); exit 1; }; }
3742fi
3743
3744ac_ext=c
3745ac_cpp='$CPP $CPPFLAGS'
3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749
3750
3751{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3752echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3753if test "${ac_cv_path_GREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756 # Extract the first word of "grep ggrep" to use in msg output
3757if test -z "$GREP"; then
3758set dummy grep ggrep; ac_prog_name=$2
3759if test "${ac_cv_path_GREP+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762 ac_path_GREP_found=false
3763# Loop through the user's path and test for each of PROGNAME-LIST
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_prog in grep ggrep; do
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003772 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003773 # Check for GNU ac_path_GREP and select it if it is found.
3774 # Check for GNU $ac_path_GREP
3775case `"$ac_path_GREP" --version 2>&1` in
3776*GNU*)
3777 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3778*)
3779 ac_count=0
3780 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3781 while :
3782 do
3783 cat "conftest.in" "conftest.in" >"conftest.tmp"
3784 mv "conftest.tmp" "conftest.in"
3785 cp "conftest.in" "conftest.nl"
3786 echo 'GREP' >> "conftest.nl"
3787 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3789 ac_count=`expr $ac_count + 1`
3790 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3791 # Best one so far, save it but keep looking for a better one
3792 ac_cv_path_GREP="$ac_path_GREP"
3793 ac_path_GREP_max=$ac_count
3794 fi
3795 # 10*(2^10) chars as input seems more than enough
3796 test $ac_count -gt 10 && break
3797 done
3798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3799esac
3800
3801
3802 $ac_path_GREP_found && break 3
3803 done
3804done
3805
3806done
3807IFS=$as_save_IFS
3808
3809
3810fi
3811
3812GREP="$ac_cv_path_GREP"
3813if test -z "$GREP"; then
3814 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3815echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3816 { (exit 1); exit 1; }; }
3817fi
3818
3819else
3820 ac_cv_path_GREP=$GREP
3821fi
3822
3823
3824fi
3825{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3826echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3827 GREP="$ac_cv_path_GREP"
3828
3829
3830{ echo "$as_me:$LINENO: checking for egrep" >&5
3831echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3832if test "${ac_cv_path_EGREP+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834else
3835 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3836 then ac_cv_path_EGREP="$GREP -E"
3837 else
3838 # Extract the first word of "egrep" to use in msg output
3839if test -z "$EGREP"; then
3840set dummy egrep; ac_prog_name=$2
3841if test "${ac_cv_path_EGREP+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843else
3844 ac_path_EGREP_found=false
3845# Loop through the user's path and test for each of PROGNAME-LIST
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_prog in egrep; do
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003854 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003855 # Check for GNU ac_path_EGREP and select it if it is found.
3856 # Check for GNU $ac_path_EGREP
3857case `"$ac_path_EGREP" --version 2>&1` in
3858*GNU*)
3859 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3860*)
3861 ac_count=0
3862 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3863 while :
3864 do
3865 cat "conftest.in" "conftest.in" >"conftest.tmp"
3866 mv "conftest.tmp" "conftest.in"
3867 cp "conftest.in" "conftest.nl"
3868 echo 'EGREP' >> "conftest.nl"
3869 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3871 ac_count=`expr $ac_count + 1`
3872 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3873 # Best one so far, save it but keep looking for a better one
3874 ac_cv_path_EGREP="$ac_path_EGREP"
3875 ac_path_EGREP_max=$ac_count
3876 fi
3877 # 10*(2^10) chars as input seems more than enough
3878 test $ac_count -gt 10 && break
3879 done
3880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3881esac
3882
3883
3884 $ac_path_EGREP_found && break 3
3885 done
3886done
3887
3888done
3889IFS=$as_save_IFS
3890
3891
3892fi
3893
3894EGREP="$ac_cv_path_EGREP"
3895if test -z "$EGREP"; then
3896 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3897echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3898 { (exit 1); exit 1; }; }
3899fi
3900
3901else
3902 ac_cv_path_EGREP=$EGREP
3903fi
3904
3905
3906 fi
3907fi
3908{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3909echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3910 EGREP="$ac_cv_path_EGREP"
3911
3912
3913{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3914echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3915if test "${ac_cv_header_stdc+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917else
3918 cat >conftest.$ac_ext <<_ACEOF
3919/* confdefs.h. */
3920_ACEOF
3921cat confdefs.h >>conftest.$ac_ext
3922cat >>conftest.$ac_ext <<_ACEOF
3923/* end confdefs.h. */
3924#include <stdlib.h>
3925#include <stdarg.h>
3926#include <string.h>
3927#include <float.h>
3928
3929int
3930main ()
3931{
3932
3933 ;
3934 return 0;
3935}
3936_ACEOF
3937rm -f conftest.$ac_objext
3938if { (ac_try="$ac_compile"
3939case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942esac
3943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3945 ac_status=$?
3946 grep -v '^ *+' conftest.er1 >conftest.err
3947 rm -f conftest.er1
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003950 (exit $ac_status); } &&
3951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3952 { (case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955esac
3956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_try") 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965esac
3966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_try") 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003971 ac_cv_header_stdc=yes
3972else
3973 echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
3975
3976 ac_cv_header_stdc=no
3977fi
3978
3979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980
3981if test $ac_cv_header_stdc = yes; then
3982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3983 cat >conftest.$ac_ext <<_ACEOF
3984/* confdefs.h. */
3985_ACEOF
3986cat confdefs.h >>conftest.$ac_ext
3987cat >>conftest.$ac_ext <<_ACEOF
3988/* end confdefs.h. */
3989#include <string.h>
3990
3991_ACEOF
3992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993 $EGREP "memchr" >/dev/null 2>&1; then
3994 :
3995else
3996 ac_cv_header_stdc=no
3997fi
3998rm -f conftest*
3999
4000fi
4001
4002if test $ac_cv_header_stdc = yes; then
4003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004 cat >conftest.$ac_ext <<_ACEOF
4005/* confdefs.h. */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h. */
4010#include <stdlib.h>
4011
4012_ACEOF
4013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014 $EGREP "free" >/dev/null 2>&1; then
4015 :
4016else
4017 ac_cv_header_stdc=no
4018fi
4019rm -f conftest*
4020
4021fi
4022
4023if test $ac_cv_header_stdc = yes; then
4024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4025 if test "$cross_compiling" = yes; then
4026 :
4027else
4028 cat >conftest.$ac_ext <<_ACEOF
4029/* confdefs.h. */
4030_ACEOF
4031cat confdefs.h >>conftest.$ac_ext
4032cat >>conftest.$ac_ext <<_ACEOF
4033/* end confdefs.h. */
4034#include <ctype.h>
4035#include <stdlib.h>
4036#if ((' ' & 0x0FF) == 0x020)
4037# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4038# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4039#else
4040# define ISLOWER(c) \
4041 (('a' <= (c) && (c) <= 'i') \
4042 || ('j' <= (c) && (c) <= 'r') \
4043 || ('s' <= (c) && (c) <= 'z'))
4044# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4045#endif
4046
4047#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4048int
4049main ()
4050{
4051 int i;
4052 for (i = 0; i < 256; i++)
4053 if (XOR (islower (i), ISLOWER (i))
4054 || toupper (i) != TOUPPER (i))
4055 return 2;
4056 return 0;
4057}
4058_ACEOF
4059rm -f conftest$ac_exeext
4060if { (ac_try="$ac_link"
4061case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064esac
4065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_link") 2>&5
4067 ac_status=$?
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4070 { (case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073esac
4074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_try") 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 :
4080else
4081 echo "$as_me: program exited with status $ac_status" >&5
4082echo "$as_me: failed program was:" >&5
4083sed 's/^/| /' conftest.$ac_ext >&5
4084
4085( exit $ac_status )
4086ac_cv_header_stdc=no
4087fi
4088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4089fi
4090
4091
4092fi
4093fi
4094{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4095echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4096if test $ac_cv_header_stdc = yes; then
4097
4098cat >>confdefs.h <<\_ACEOF
4099#define STDC_HEADERS 1
4100_ACEOF
4101
4102fi
4103
4104# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4115 inttypes.h stdint.h unistd.h
4116do
4117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4118{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123 cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h. */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h. */
4129$ac_includes_default
4130
4131#include <$ac_header>
4132_ACEOF
4133rm -f conftest.$ac_objext
4134if { (ac_try="$ac_compile"
4135case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138esac
4139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4141 ac_status=$?
4142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004146 (exit $ac_status); } &&
4147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; } &&
4157 { ac_try='test -s conftest.$ac_objext'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161esac
4162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004167 eval "$as_ac_Header=yes"
4168else
4169 echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 eval "$as_ac_Header=no"
4173fi
4174
4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176fi
4177ac_res=`eval echo '${'$as_ac_Header'}'`
4178 { echo "$as_me:$LINENO: result: $ac_res" >&5
4179echo "${ECHO_T}$ac_res" >&6; }
4180if test `eval echo '${'$as_ac_Header'}'` = yes; then
4181 cat >>confdefs.h <<_ACEOF
4182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4183_ACEOF
4184
4185fi
4186
4187done
4188
4189
4190{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4191echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4192if test "${ac_cv_c_bigendian+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195 # See if sys/param.h defines the BYTE_ORDER macro.
4196cat >conftest.$ac_ext <<_ACEOF
4197/* confdefs.h. */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h. */
4202#include <sys/types.h>
4203#include <sys/param.h>
4204
4205int
4206main ()
4207{
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004208#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004209 bogus endian macros
4210#endif
4211
4212 ;
4213 return 0;
4214}
4215_ACEOF
4216rm -f conftest.$ac_objext
4217if { (ac_try="$ac_compile"
4218case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_compile") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004229 (exit $ac_status); } &&
4230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234esac
4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; } &&
4240 { ac_try='test -s conftest.$ac_objext'
4241 { (case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244esac
4245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_try") 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004250 # It does; now see whether it defined to BIG_ENDIAN or not.
4251cat >conftest.$ac_ext <<_ACEOF
4252/* confdefs.h. */
4253_ACEOF
4254cat confdefs.h >>conftest.$ac_ext
4255cat >>conftest.$ac_ext <<_ACEOF
4256/* end confdefs.h. */
4257#include <sys/types.h>
4258#include <sys/param.h>
4259
4260int
4261main ()
4262{
4263#if BYTE_ORDER != BIG_ENDIAN
4264 not big endian
4265#endif
4266
4267 ;
4268 return 0;
4269}
4270_ACEOF
4271rm -f conftest.$ac_objext
4272if { (ac_try="$ac_compile"
4273case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_compile") 2>conftest.er1
4279 ac_status=$?
4280 grep -v '^ *+' conftest.er1 >conftest.err
4281 rm -f conftest.er1
4282 cat conftest.err >&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004284 (exit $ac_status); } &&
4285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289esac
4290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; } &&
4295 { ac_try='test -s conftest.$ac_objext'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004305 ac_cv_c_bigendian=yes
4306else
4307 echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 ac_cv_c_bigendian=no
4311fi
4312
4313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314else
4315 echo "$as_me: failed program was:" >&5
4316sed 's/^/| /' conftest.$ac_ext >&5
4317
4318 # It does not; compile a test program.
4319if test "$cross_compiling" = yes; then
4320 # try to guess the endianness by grepping values into an object file
4321 ac_cv_c_bigendian=unknown
4322 cat >conftest.$ac_ext <<_ACEOF
4323/* confdefs.h. */
4324_ACEOF
4325cat confdefs.h >>conftest.$ac_ext
4326cat >>conftest.$ac_ext <<_ACEOF
4327/* end confdefs.h. */
4328short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4329short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4330void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4331short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4332short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4333void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4334int
4335main ()
4336{
4337 _ascii (); _ebcdic ();
4338 ;
4339 return 0;
4340}
4341_ACEOF
4342rm -f conftest.$ac_objext
4343if { (ac_try="$ac_compile"
4344case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347esac
4348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4349 (eval "$ac_compile") 2>conftest.er1
4350 ac_status=$?
4351 grep -v '^ *+' conftest.er1 >conftest.err
4352 rm -f conftest.er1
4353 cat conftest.err >&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004355 (exit $ac_status); } &&
4356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4357 { (case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360esac
4361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_try") 2>&5
4363 ac_status=$?
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try='test -s conftest.$ac_objext'
4367 { (case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370esac
4371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372 (eval "$ac_try") 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004376 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4377 ac_cv_c_bigendian=yes
4378fi
4379if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4380 if test "$ac_cv_c_bigendian" = unknown; then
4381 ac_cv_c_bigendian=no
4382 else
4383 # finding both strings is unlikely to happen, but who knows?
4384 ac_cv_c_bigendian=unknown
4385 fi
4386fi
4387else
4388 echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391
4392fi
4393
4394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395else
4396 cat >conftest.$ac_ext <<_ACEOF
4397/* confdefs.h. */
4398_ACEOF
4399cat confdefs.h >>conftest.$ac_ext
4400cat >>conftest.$ac_ext <<_ACEOF
4401/* end confdefs.h. */
4402$ac_includes_default
4403int
4404main ()
4405{
4406
4407 /* Are we little or big endian? From Harbison&Steele. */
4408 union
4409 {
4410 long int l;
4411 char c[sizeof (long int)];
4412 } u;
4413 u.l = 1;
4414 return u.c[sizeof (long int) - 1] == 1;
4415
4416 ;
4417 return 0;
4418}
4419_ACEOF
4420rm -f conftest$ac_exeext
4421if { (ac_try="$ac_link"
4422case "(($ac_try" in
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4425esac
4426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427 (eval "$ac_link") 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4431 { (case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434esac
4435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436 (eval "$ac_try") 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 ac_cv_c_bigendian=no
4441else
4442 echo "$as_me: program exited with status $ac_status" >&5
4443echo "$as_me: failed program was:" >&5
4444sed 's/^/| /' conftest.$ac_ext >&5
4445
4446( exit $ac_status )
4447ac_cv_c_bigendian=yes
4448fi
4449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4450fi
4451
4452
4453fi
4454
4455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456fi
4457{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4458echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4459case $ac_cv_c_bigendian in
4460 yes)
4461 ENDIAN=big
4462 ;;
4463 no)
4464 ENDIAN=little
4465 ;;
4466 *)
4467 { { echo "$as_me:$LINENO: error: unknown endianness
4468presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4469echo "$as_me: error: unknown endianness
4470presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4471 { (exit 1); exit 1; }; } ;;
4472esac
4473
4474
4475if test "$cross_compiling" = yes; then
4476 LLVM_CROSS_COMPILING=1
4477
4478
4479{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4480echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4481if test "${ac_cv_build_exeext+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4485 ac_cv_build_exeext=.exe
4486else
4487 ac_build_prefix=${build_alias}-
4488
4489 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4490set dummy ${ac_build_prefix}gcc; ac_word=$2
4491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4493if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496 if test -n "$BUILD_CC"; then
4497 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4498else
4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004505 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 +00004506 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510done
4511done
4512IFS=$as_save_IFS
4513
4514fi
4515fi
4516BUILD_CC=$ac_cv_prog_BUILD_CC
4517if test -n "$BUILD_CC"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4519echo "${ECHO_T}$BUILD_CC" >&6; }
4520else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6; }
4523fi
4524
4525
4526 if test -z "$BUILD_CC"; then
4527 # Extract the first word of "gcc", so it can be a program name with args.
4528set dummy gcc; ac_word=$2
4529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4531if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534 if test -n "$BUILD_CC"; then
4535 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4536else
4537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004543 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 +00004544 ac_cv_prog_BUILD_CC="gcc"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548done
4549done
4550IFS=$as_save_IFS
4551
4552fi
4553fi
4554BUILD_CC=$ac_cv_prog_BUILD_CC
4555if test -n "$BUILD_CC"; then
4556 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4557echo "${ECHO_T}$BUILD_CC" >&6; }
4558else
4559 { echo "$as_me:$LINENO: result: no" >&5
4560echo "${ECHO_T}no" >&6; }
4561fi
4562
4563
4564 if test -z "$BUILD_CC"; then
4565 # Extract the first word of "cc", so it can be a program name with args.
4566set dummy cc; ac_word=$2
4567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572 if test -n "$BUILD_CC"; then
4573 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4574else
4575 ac_prog_rejected=no
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004582 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 +00004583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4584 ac_prog_rejected=yes
4585 continue
4586 fi
4587 ac_cv_prog_BUILD_CC="cc"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592done
4593IFS=$as_save_IFS
4594
4595if test $ac_prog_rejected = yes; then
4596 # We found a bogon in the path, so make sure we never use it.
4597 set dummy $ac_cv_prog_BUILD_CC
4598 shift
4599 if test $# != 0; then
4600 # We chose a different compiler from the bogus one.
4601 # However, it has the same basename, so the bogon will be chosen
4602 # first if we set BUILD_CC to just the basename; use the full file name.
4603 shift
4604 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4605 fi
4606fi
4607fi
4608fi
4609BUILD_CC=$ac_cv_prog_BUILD_CC
4610if test -n "$BUILD_CC"; then
4611 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4612echo "${ECHO_T}$BUILD_CC" >&6; }
4613else
4614 { echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6; }
4616fi
4617
4618
4619 fi
4620 fi
4621 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4622echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4623 { (exit 1); exit 1; }; }
4624 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4625 rm -f conftest*
4626 echo 'int main () { return 0; }' > conftest.$ac_ext
4627 ac_cv_build_exeext=
4628 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4629 (eval $ac_build_link) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; then
4633 for file in conftest.*; do
4634 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004635 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004636 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4637 esac
4638 done
4639 else
4640 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4641echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4642 { (exit 1); exit 1; }; }
4643 fi
4644 rm -f conftest*
4645 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4646fi
4647fi
4648
4649BUILD_EXEEXT=""
4650test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4651{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4652echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4653ac_build_exeext=$BUILD_EXEEXT
4654
Jim Grosbache4c032e2008-10-02 22:56:44 +00004655 ac_build_prefix=${build_alias}-
4656 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4657set dummy ${ac_build_prefix}g++; ac_word=$2
4658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4662else
4663 if test -n "$BUILD_CXX"; then
4664 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4665else
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004672 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 +00004673 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677done
4678done
4679IFS=$as_save_IFS
4680
4681fi
4682fi
4683BUILD_CXX=$ac_cv_prog_BUILD_CXX
4684if test -n "$BUILD_CXX"; then
4685 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4686echo "${ECHO_T}$BUILD_CXX" >&6; }
4687else
4688 { echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6; }
4690fi
4691
4692
4693 if test -z "$BUILD_CXX"; then
4694 # Extract the first word of "g++", so it can be a program name with args.
4695set dummy g++; ac_word=$2
4696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701 if test -n "$BUILD_CXX"; then
4702 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4703else
4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705for as_dir in $PATH
4706do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004710 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 +00004711 ac_cv_prog_BUILD_CXX="g++"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4714 fi
4715done
4716done
4717IFS=$as_save_IFS
4718
4719fi
4720fi
4721BUILD_CXX=$ac_cv_prog_BUILD_CXX
4722if test -n "$BUILD_CXX"; then
4723 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4724echo "${ECHO_T}$BUILD_CXX" >&6; }
4725else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6; }
4728fi
4729
4730
4731 if test -z "$BUILD_CXX"; then
4732 # Extract the first word of "c++", so it can be a program name with args.
4733set dummy c++; ac_word=$2
4734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4738else
4739 if test -n "$BUILD_CXX"; then
4740 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4741else
4742 ac_prog_rejected=no
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004749 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 +00004750 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4751 ac_prog_rejected=yes
4752 continue
4753 fi
4754 ac_cv_prog_BUILD_CXX="c++"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4757 fi
4758done
4759done
4760IFS=$as_save_IFS
4761
4762if test $ac_prog_rejected = yes; then
4763 # We found a bogon in the path, so make sure we never use it.
4764 set dummy $ac_cv_prog_BUILD_CXX
4765 shift
4766 if test $# != 0; then
4767 # We chose a different compiler from the bogus one.
4768 # However, it has the same basename, so the bogon will be chosen
4769 # first if we set BUILD_CXX to just the basename; use the full file name.
4770 shift
4771 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4772 fi
4773fi
4774fi
4775fi
4776BUILD_CXX=$ac_cv_prog_BUILD_CXX
4777if test -n "$BUILD_CXX"; then
4778 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4779echo "${ECHO_T}$BUILD_CXX" >&6; }
4780else
4781 { echo "$as_me:$LINENO: result: no" >&5
4782echo "${ECHO_T}no" >&6; }
4783fi
4784
4785
4786 fi
4787 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004788else
4789 LLVM_CROSS_COMPILING=0
4790
4791fi
4792
Nick Lewycky45f0f822009-04-10 05:18:27 +00004793if 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 +00004794 cvsbuild="yes"
4795 optimize="no"
4796 CVSBUILD=CVSBUILD=1
4797
4798else
4799 cvsbuild="no"
4800 optimize="yes"
4801fi
4802
4803
4804# Check whether --enable-optimized was given.
4805if test "${enable_optimized+set}" = set; then
4806 enableval=$enable_optimized;
4807else
4808 enableval=$optimize
4809fi
4810
4811if test ${enableval} = "no" ; then
4812 ENABLE_OPTIMIZED=
4813
4814else
4815 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4816
4817fi
4818
David Greene19b1cbd2009-04-17 14:50:39 +00004819# Check whether --enable-profiling was given.
4820if test "${enable_profiling+set}" = set; then
4821 enableval=$enable_profiling;
4822else
4823 enableval="no"
4824fi
4825
4826if test ${enableval} = "no" ; then
4827 ENABLE_PROFILING=
4828
4829else
4830 ENABLE_PROFILING=ENABLE_PROFILING=1
4831
4832fi
4833
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004834# Check whether --enable-assertions was given.
4835if test "${enable_assertions+set}" = set; then
4836 enableval=$enable_assertions;
4837else
4838 enableval="yes"
4839fi
4840
4841if test ${enableval} = "yes" ; then
4842 DISABLE_ASSERTIONS=
4843
4844else
4845 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4846
4847fi
4848
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004849if test ${ENABLE_OPTIMIZED},${DISABLE_ASSERTIONS} = "ENABLE_OPTIMIZED=1,DISABLE_ASSERTIONS=1" ; then
4850 LLVM_COMPACT_SENTINELS=1
4851
4852else
4853 LLVM_COMPACT_SENTINELS=0
4854
4855fi
4856
4857
4858cat >>confdefs.h <<_ACEOF
4859#define LLVM_COMPACT_SENTINELS $LLVM_COMPACT_SENTINELS
4860_ACEOF
4861
4862
4863
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004864# Check whether --enable-expensive-checks was given.
4865if test "${enable_expensive_checks+set}" = set; then
4866 enableval=$enable_expensive_checks;
4867else
4868 enableval="no"
4869fi
4870
4871if test ${enableval} = "yes" ; then
4872 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4873
4874 EXPENSIVE_CHECKS=yes
4875
4876else
4877 ENABLE_EXPENSIVE_CHECKS=
4878
4879 EXPENSIVE_CHECKS=no
4880
4881fi
4882
4883# Check whether --enable-debug-runtime was given.
4884if test "${enable_debug_runtime+set}" = set; then
4885 enableval=$enable_debug_runtime;
4886else
4887 enableval=no
4888fi
4889
4890if test ${enableval} = "no" ; then
4891 DEBUG_RUNTIME=
4892
4893else
4894 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4895
4896fi
4897
4898# Check whether --enable-jit was given.
4899if test "${enable_jit+set}" = set; then
4900 enableval=$enable_jit;
4901else
4902 enableval=default
4903fi
4904
4905if test ${enableval} = "no"
4906then
4907 JIT=
4908
4909else
4910 case "$llvm_cv_target_arch" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004911 x86) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004912 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004913 Sparc) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004914 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004915 PowerPC) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004916 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004917 x86_64) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004918 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004919 Alpha) TARGET_HAS_JIT=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004920 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004921 ARM) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004922 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004923 Mips) TARGET_HAS_JIT=0
Tanya Lattner81915b12007-08-29 16:38:16 +00004924 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004925 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004926 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004927 XCore) TARGET_HAS_JIT=0
Richard Osborneab8167a2008-11-07 10:59:00 +00004928 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004929 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004930 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004931 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00004932 ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00004933 Blackfin) TARGET_HAS_JIT=0
4934 ;;
4935 *) TARGET_HAS_JIT=0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004936 ;;
4937 esac
4938fi
4939
4940# Check whether --enable-doxygen was given.
4941if test "${enable_doxygen+set}" = set; then
4942 enableval=$enable_doxygen;
4943else
4944 enableval=default
4945fi
4946
4947case "$enableval" in
4948 yes) ENABLE_DOXYGEN=1
4949 ;;
4950 no) ENABLE_DOXYGEN=0
4951 ;;
4952 default) ENABLE_DOXYGEN=0
4953 ;;
4954 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4955echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4956 { (exit 1); exit 1; }; } ;;
4957esac
4958
4959# Check whether --enable-threads was given.
4960if test "${enable_threads+set}" = set; then
4961 enableval=$enable_threads;
4962else
4963 enableval=default
4964fi
4965
4966case "$enableval" in
4967 yes) ENABLE_THREADS=1
4968 ;;
4969 no) ENABLE_THREADS=0
4970 ;;
4971 default) ENABLE_THREADS=1
4972 ;;
4973 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4974echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4975 { (exit 1); exit 1; }; } ;;
4976esac
4977
Owen Anderson96237ec2009-05-19 22:18:56 +00004978cat >>confdefs.h <<_ACEOF
4979#define ENABLE_THREADS $ENABLE_THREADS
4980_ACEOF
4981
4982
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004983# Check whether --enable-pic was given.
4984if test "${enable_pic+set}" = set; then
4985 enableval=$enable_pic;
4986else
4987 enableval=default
4988fi
4989
4990case "$enableval" in
4991 yes) ENABLE_PIC=1
4992 ;;
4993 no) ENABLE_PIC=0
4994 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004995 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004996 ;;
4997 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4998echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5000esac
5001
5002cat >>confdefs.h <<_ACEOF
5003#define ENABLE_PIC $ENABLE_PIC
5004_ACEOF
5005
5006
5007TARGETS_TO_BUILD=""
5008# Check whether --enable-targets was given.
5009if test "${enable_targets+set}" = set; then
5010 enableval=$enable_targets;
5011else
5012 enableval=all
5013fi
5014
5015case "$enableval" in
Jakob Stoklund Olesenb62e9aa2009-08-02 17:32:37 +00005016 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 +00005017 host-only)
5018 case "$llvm_cv_target_arch" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005019 x86) TARGETS_TO_BUILD="X86" ;;
5020 x86_64) TARGETS_TO_BUILD="X86" ;;
5021 Sparc) TARGETS_TO_BUILD="Sparc" ;;
5022 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
5023 Alpha) TARGETS_TO_BUILD="Alpha" ;;
5024 ARM) TARGETS_TO_BUILD="ARM" ;;
5025 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00005026 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005027 PIC16) TARGETS_TO_BUILD="PIC16" ;;
5028 XCore) TARGETS_TO_BUILD="XCore" ;;
5029 MSP430) TARGETS_TO_BUILD="MSP430" ;;
5030 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
5031 Blackfin) TARGETS_TO_BUILD="Blackfin" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005032 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5033echo "$as_me: error: Can not set target to build" >&2;}
5034 { (exit 1); exit 1; }; } ;;
5035 esac
5036 ;;
5037 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5038 case "$a_target" in
Shantonu Sen0af6bb22009-08-11 13:39:52 +00005039 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5040 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5041 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5042 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5043 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5044 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5045 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5046 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5047 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
5048 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5049 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5050 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5051 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5052 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5053 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
5054 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005055 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5056echo "$as_me: error: Unrecognized target $a_target" >&2;}
5057 { (exit 1); exit 1; }; } ;;
5058 esac
5059 done
5060 ;;
5061esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005062TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5063
5064
Douglas Gregor13e13882009-06-17 00:43:20 +00005065# Determine whether we are building LLVM support for the native architecture.
5066# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5067for a_target in $TARGETS_TO_BUILD; do
5068 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregor192d50e2009-06-23 17:22:05 +00005069 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor13e13882009-06-17 00:43:20 +00005070
5071cat >>confdefs.h <<_ACEOF
Douglas Gregor192d50e2009-06-23 17:22:05 +00005072#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor13e13882009-06-17 00:43:20 +00005073_ACEOF
5074
5075 fi
5076done
5077
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005078# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005079# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005080LLVM_ENUM_TARGETS=""
5081LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005082LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005083for target_to_build in $TARGETS_TO_BUILD; do
5084 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5085 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5086 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5087 fi
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005088 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5089 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5090 fi
Douglas Gregor1dc5ff42009-06-16 20:12:29 +00005091done
5092
5093
5094
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +00005095
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005096# Check whether --enable-cbe-printf-a was given.
5097if test "${enable_cbe_printf_a+set}" = set; then
5098 enableval=$enable_cbe_printf_a;
5099else
5100 enableval=default
5101fi
5102
5103case "$enableval" in
5104 yes) ENABLE_CBE_PRINTF_A=1
5105 ;;
5106 no) ENABLE_CBE_PRINTF_A=0
5107 ;;
5108 default) ENABLE_CBE_PRINTF_A=1
5109 ;;
5110 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5111echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5112 { (exit 1); exit 1; }; } ;;
5113esac
5114
5115cat >>confdefs.h <<_ACEOF
5116#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5117_ACEOF
5118
5119
5120
5121# Check whether --with-llvmgccdir was given.
5122if test "${with_llvmgccdir+set}" = set; then
5123 withval=$with_llvmgccdir;
5124else
5125 withval=default
5126fi
5127
5128case "$withval" in
5129 default) WITH_LLVMGCCDIR=default ;;
5130 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5131 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5132echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5133 { (exit 1); exit 1; }; } ;;
5134esac
5135
5136
Devang Pateld84ba7b2007-12-04 22:54:47 +00005137# Check whether --with-llvmgcc was given.
5138if test "${with_llvmgcc+set}" = set; then
5139 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5140 WITH_LLVMGCCDIR=""
5141fi
5142
5143
5144
5145# Check whether --with-llvmgxx was given.
5146if test "${with_llvmgxx+set}" = set; then
5147 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5148 WITH_LLVMGCCDIR=""
5149fi
5150
Douglas Gregord1e1dbc2009-05-11 18:05:52 +00005151
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +00005152if test -n "$LLVMGCC"; then
5153 LLVMGCCCOMMAND="$LLVMGCC"
5154fi
5155
5156if test -n "$LLVMGXX"; then
5157 LLVMGXXCOMMAND="$LLVMGXX"
5158fi
Devang Pateld84ba7b2007-12-04 22:54:47 +00005159
5160if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5161 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5162echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5163 { (exit 1); exit 1; }; };
5164fi
5165
5166if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5167 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5168echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5169 { (exit 1); exit 1; }; };
5170fi
5171
5172
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005173# Check whether --with-extra-options was given.
5174if test "${with_extra_options+set}" = set; then
5175 withval=$with_extra_options;
5176else
5177 withval=default
5178fi
5179
5180case "$withval" in
5181 default) EXTRA_OPTIONS= ;;
5182 *) EXTRA_OPTIONS=$withval ;;
5183esac
5184EXTRA_OPTIONS=$EXTRA_OPTIONS
5185
5186
Gordon Henriksen016ec472007-10-02 09:50:32 +00005187# Check whether --enable-bindings was given.
5188if test "${enable_bindings+set}" = set; then
5189 enableval=$enable_bindings;
5190else
5191 enableval=default
5192fi
5193
5194BINDINGS_TO_BUILD=""
5195case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005196 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005197 all ) BINDINGS_TO_BUILD="ocaml" ;;
5198 none | no) BINDINGS_TO_BUILD="" ;;
5199 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5200 case "$a_binding" in
5201 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5202 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5203echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5204 { (exit 1); exit 1; }; } ;;
5205 esac
5206 done
5207 ;;
5208esac
5209
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005210
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005211# Check whether --with-ocaml-libdir was given.
5212if test "${with_ocaml_libdir+set}" = set; then
5213 withval=$with_ocaml_libdir;
5214else
5215 withval=auto
5216fi
5217
5218case "$withval" in
5219 auto) with_ocaml_libdir="$withval" ;;
5220 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5221 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5222echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5223 { (exit 1); exit 1; }; } ;;
5224esac
5225
5226
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005227# Check whether --with-binutils-include was given.
5228if test "${with_binutils_include+set}" = set; then
5229 withval=$with_binutils_include;
5230else
5231 withval=default
5232fi
5233
5234case "$withval" in
5235 default) WITH_BINUTILS_INCDIR=default ;;
5236 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5237 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5238echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5239 { (exit 1); exit 1; }; } ;;
5240esac
5241if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5242 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5243
5244 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5245 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5246 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5247echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5248 { (exit 1); exit 1; }; };
5249 fi
5250fi
5251
Nick Lewyckyfec9bd32009-06-06 06:25:09 +00005252# Check whether --enable-libffi was given.
5253if test "${enable_libffi+set}" = set; then
5254 enableval=$enable_libffi;
5255else
5256 enableval=yes
5257fi
5258
5259case "$enableval" in
5260 yes) llvm_cv_enable_libffi="yes" ;;
5261 no) llvm_cv_enable_libffi="no" ;;
5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5263echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5264 { (exit 1); exit 1; }; } ;;
5265esac
5266
Mikhail Glushenkov9e045892009-07-04 14:23:08 +00005267if test "$llvm_cv_os_type" = "Win32" ; then
5268 llvmc_dynamic="yes"
5269else
5270 llvmc_dynamic="no"
5271fi
5272
5273# Check whether --enable-llvmc-dynamic was given.
5274if test "${enable_llvmc_dynamic+set}" = set; then
5275 enableval=$enable_llvmc_dynamic;
5276else
5277 enableval=$llvmc_dynamic
5278fi
5279
5280if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5281 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5282
5283else
5284 ENABLE_LLVMC_DYNAMIC=
5285
5286fi
5287
5288# Check whether --enable-llvmc-dynamic-plugins was given.
5289if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5290 enableval=$enable_llvmc_dynamic_plugins;
5291else
5292 enableval=yes
5293fi
5294
5295if test ${enableval} = "yes" ; then
5296 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5297
5298else
5299 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5300
5301fi
5302
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005303
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005304ac_ext=c
5305ac_cpp='$CPP $CPPFLAGS'
5306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5310echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5311# On Suns, sometimes $CPP names a directory.
5312if test -n "$CPP" && test -d "$CPP"; then
5313 CPP=
5314fi
5315if test -z "$CPP"; then
5316 if test "${ac_cv_prog_CPP+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
5319 # Double quotes because CPP needs to be expanded
5320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5321 do
5322 ac_preproc_ok=false
5323for ac_c_preproc_warn_flag in '' yes
5324do
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337#ifdef __STDC__
5338# include <limits.h>
5339#else
5340# include <assert.h>
5341#endif
5342 Syntax error
5343_ACEOF
5344if { (ac_try="$ac_cpp conftest.$ac_ext"
5345case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348esac
5349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005356 (exit $ac_status); } >/dev/null; then
5357 if test -s conftest.err; then
5358 ac_cpp_err=$ac_c_preproc_warn_flag
5359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5360 else
5361 ac_cpp_err=
5362 fi
5363else
5364 ac_cpp_err=yes
5365fi
5366if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005367 :
5368else
5369 echo "$as_me: failed program was:" >&5
5370sed 's/^/| /' conftest.$ac_ext >&5
5371
5372 # Broken: fails on valid input.
5373continue
5374fi
5375
5376rm -f conftest.err conftest.$ac_ext
5377
5378 # OK, works on sane cases. Now check whether nonexistent headers
5379 # can be detected and how.
5380 cat >conftest.$ac_ext <<_ACEOF
5381/* confdefs.h. */
5382_ACEOF
5383cat confdefs.h >>conftest.$ac_ext
5384cat >>conftest.$ac_ext <<_ACEOF
5385/* end confdefs.h. */
5386#include <ac_nonexistent.h>
5387_ACEOF
5388if { (ac_try="$ac_cpp conftest.$ac_ext"
5389case "(($ac_try" in
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5392esac
5393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5395 ac_status=$?
5396 grep -v '^ *+' conftest.er1 >conftest.err
5397 rm -f conftest.er1
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005400 (exit $ac_status); } >/dev/null; then
5401 if test -s conftest.err; then
5402 ac_cpp_err=$ac_c_preproc_warn_flag
5403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5404 else
5405 ac_cpp_err=
5406 fi
5407else
5408 ac_cpp_err=yes
5409fi
5410if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005411 # Broken: success on invalid input.
5412continue
5413else
5414 echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 # Passes both tests.
5418ac_preproc_ok=:
5419break
5420fi
5421
5422rm -f conftest.err conftest.$ac_ext
5423
5424done
5425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5426rm -f conftest.err conftest.$ac_ext
5427if $ac_preproc_ok; then
5428 break
5429fi
5430
5431 done
5432 ac_cv_prog_CPP=$CPP
5433
5434fi
5435 CPP=$ac_cv_prog_CPP
5436else
5437 ac_cv_prog_CPP=$CPP
5438fi
5439{ echo "$as_me:$LINENO: result: $CPP" >&5
5440echo "${ECHO_T}$CPP" >&6; }
5441ac_preproc_ok=false
5442for ac_c_preproc_warn_flag in '' yes
5443do
5444 # Use a header file that comes with gcc, so configuring glibc
5445 # with a fresh cross-compiler works.
5446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447 # <limits.h> exists even on freestanding compilers.
5448 # On the NeXT, cc -E runs the code through the compiler's parser,
5449 # not just through cpp. "Syntax error" is here to catch this case.
5450 cat >conftest.$ac_ext <<_ACEOF
5451/* confdefs.h. */
5452_ACEOF
5453cat confdefs.h >>conftest.$ac_ext
5454cat >>conftest.$ac_ext <<_ACEOF
5455/* end confdefs.h. */
5456#ifdef __STDC__
5457# include <limits.h>
5458#else
5459# include <assert.h>
5460#endif
5461 Syntax error
5462_ACEOF
5463if { (ac_try="$ac_cpp conftest.$ac_ext"
5464case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467esac
5468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005475 (exit $ac_status); } >/dev/null; then
5476 if test -s conftest.err; then
5477 ac_cpp_err=$ac_c_preproc_warn_flag
5478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5479 else
5480 ac_cpp_err=
5481 fi
5482else
5483 ac_cpp_err=yes
5484fi
5485if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005486 :
5487else
5488 echo "$as_me: failed program was:" >&5
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
5491 # Broken: fails on valid input.
5492continue
5493fi
5494
5495rm -f conftest.err conftest.$ac_ext
5496
5497 # OK, works on sane cases. Now check whether nonexistent headers
5498 # can be detected and how.
5499 cat >conftest.$ac_ext <<_ACEOF
5500/* confdefs.h. */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
5504/* end confdefs.h. */
5505#include <ac_nonexistent.h>
5506_ACEOF
5507if { (ac_try="$ac_cpp conftest.$ac_ext"
5508case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511esac
5512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005519 (exit $ac_status); } >/dev/null; then
5520 if test -s conftest.err; then
5521 ac_cpp_err=$ac_c_preproc_warn_flag
5522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5523 else
5524 ac_cpp_err=
5525 fi
5526else
5527 ac_cpp_err=yes
5528fi
5529if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005530 # Broken: success on invalid input.
5531continue
5532else
5533 echo "$as_me: failed program was:" >&5
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
5536 # Passes both tests.
5537ac_preproc_ok=:
5538break
5539fi
5540
5541rm -f conftest.err conftest.$ac_ext
5542
5543done
5544# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5545rm -f conftest.err conftest.$ac_ext
5546if $ac_preproc_ok; then
5547 :
5548else
5549 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5550See \`config.log' for more details." >&5
5551echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5552See \`config.log' for more details." >&2;}
5553 { (exit 1); exit 1; }; }
5554fi
5555
5556ac_ext=c
5557ac_cpp='$CPP $CPPFLAGS'
5558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
5567if test -n "$ac_tool_prefix"; then
5568 for ac_prog in gcc
5569 do
5570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5571set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5574if test "${ac_cv_prog_CC+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577 if test -n "$CC"; then
5578 ac_cv_prog_CC="$CC" # Let the user override the test.
5579else
5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005586 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 +00005587 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591done
5592done
5593IFS=$as_save_IFS
5594
5595fi
5596fi
5597CC=$ac_cv_prog_CC
5598if test -n "$CC"; then
5599 { echo "$as_me:$LINENO: result: $CC" >&5
5600echo "${ECHO_T}$CC" >&6; }
5601else
5602 { echo "$as_me:$LINENO: result: no" >&5
5603echo "${ECHO_T}no" >&6; }
5604fi
5605
5606
5607 test -n "$CC" && break
5608 done
5609fi
5610if test -z "$CC"; then
5611 ac_ct_CC=$CC
5612 for ac_prog in gcc
5613do
5614 # Extract the first word of "$ac_prog", so it can be a program name with args.
5615set dummy $ac_prog; ac_word=$2
5616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5618if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621 if test -n "$ac_ct_CC"; then
5622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5623else
5624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625for as_dir in $PATH
5626do
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005630 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 +00005631 ac_cv_prog_ac_ct_CC="$ac_prog"
5632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5634 fi
5635done
5636done
5637IFS=$as_save_IFS
5638
5639fi
5640fi
5641ac_ct_CC=$ac_cv_prog_ac_ct_CC
5642if test -n "$ac_ct_CC"; then
5643 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5644echo "${ECHO_T}$ac_ct_CC" >&6; }
5645else
5646 { echo "$as_me:$LINENO: result: no" >&5
5647echo "${ECHO_T}no" >&6; }
5648fi
5649
5650
5651 test -n "$ac_ct_CC" && break
5652done
5653
5654 if test "x$ac_ct_CC" = x; then
5655 CC=""
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658yes:)
5659{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5660whose name does not start with the host triplet. If you think this
5661configuration is useful to you, please write to autoconf@gnu.org." >&5
5662echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5663whose name does not start with the host triplet. If you think this
5664configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5665ac_tool_warned=yes ;;
5666esac
5667 CC=$ac_ct_CC
5668 fi
5669fi
5670
5671
5672test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5673See \`config.log' for more details." >&5
5674echo "$as_me: error: no acceptable C compiler found in \$PATH
5675See \`config.log' for more details." >&2;}
5676 { (exit 1); exit 1; }; }
5677
5678# Provide some information about the compiler.
5679echo "$as_me:$LINENO: checking for C compiler version" >&5
5680ac_compiler=`set X $ac_compile; echo $2`
5681{ (ac_try="$ac_compiler --version >&5"
5682case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685esac
5686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compiler --version >&5") 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }
5691{ (ac_try="$ac_compiler -v >&5"
5692case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695esac
5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_compiler -v >&5") 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }
5701{ (ac_try="$ac_compiler -V >&5"
5702case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705esac
5706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_compiler -V >&5") 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }
5711
5712{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5713echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5714if test "${ac_cv_c_compiler_gnu+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723
5724int
5725main ()
5726{
5727#ifndef __GNUC__
5728 choke me
5729#endif
5730
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735rm -f conftest.$ac_objext
5736if { (ac_try="$ac_compile"
5737case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740esac
5741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005748 (exit $ac_status); } &&
5749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5750 { (case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_try") 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest.$ac_objext'
5760 { (case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5763esac
5764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_try") 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005769 ac_compiler_gnu=yes
5770else
5771 echo "$as_me: failed program was:" >&5
5772sed 's/^/| /' conftest.$ac_ext >&5
5773
5774 ac_compiler_gnu=no
5775fi
5776
5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778ac_cv_c_compiler_gnu=$ac_compiler_gnu
5779
5780fi
5781{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5782echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5783GCC=`test $ac_compiler_gnu = yes && echo yes`
5784ac_test_CFLAGS=${CFLAGS+set}
5785ac_save_CFLAGS=$CFLAGS
5786{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5787echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5788if test "${ac_cv_prog_cc_g+set}" = set; then
5789 echo $ECHO_N "(cached) $ECHO_C" >&6
5790else
5791 ac_save_c_werror_flag=$ac_c_werror_flag
5792 ac_c_werror_flag=yes
5793 ac_cv_prog_cc_g=no
5794 CFLAGS="-g"
5795 cat >conftest.$ac_ext <<_ACEOF
5796/* confdefs.h. */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h. */
5801
5802int
5803main ()
5804{
5805
5806 ;
5807 return 0;
5808}
5809_ACEOF
5810rm -f conftest.$ac_objext
5811if { (ac_try="$ac_compile"
5812case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815esac
5816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_compile") 2>conftest.er1
5818 ac_status=$?
5819 grep -v '^ *+' conftest.er1 >conftest.err
5820 rm -f conftest.er1
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5825 { (case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_try") 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try='test -s conftest.$ac_objext'
5835 { (case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838esac
5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_try") 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005844 ac_cv_prog_cc_g=yes
5845else
5846 echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 CFLAGS=""
5850 cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
5856
5857int
5858main ()
5859{
5860
5861 ;
5862 return 0;
5863}
5864_ACEOF
5865rm -f conftest.$ac_objext
5866if { (ac_try="$ac_compile"
5867case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870esac
5871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005878 (exit $ac_status); } &&
5879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5880 { (case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883esac
5884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_try") 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; } &&
5889 { ac_try='test -s conftest.$ac_objext'
5890 { (case "(($ac_try" in
5891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5893esac
5894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_try") 2>&5
5896 ac_status=$?
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005899 :
5900else
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 ac_c_werror_flag=$ac_save_c_werror_flag
5905 CFLAGS="-g"
5906 cat >conftest.$ac_ext <<_ACEOF
5907/* confdefs.h. */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
5912
5913int
5914main ()
5915{
5916
5917 ;
5918 return 0;
5919}
5920_ACEOF
5921rm -f conftest.$ac_objext
5922if { (ac_try="$ac_compile"
5923case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926esac
5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_compile") 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936 { (case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_try") 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949esac
5950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_try") 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005955 ac_cv_prog_cc_g=yes
5956else
5957 echo "$as_me: failed program was:" >&5
5958sed 's/^/| /' conftest.$ac_ext >&5
5959
5960
5961fi
5962
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964fi
5965
5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967fi
5968
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 ac_c_werror_flag=$ac_save_c_werror_flag
5971fi
5972{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5973echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5974if test "$ac_test_CFLAGS" = set; then
5975 CFLAGS=$ac_save_CFLAGS
5976elif test $ac_cv_prog_cc_g = yes; then
5977 if test "$GCC" = yes; then
5978 CFLAGS="-g -O2"
5979 else
5980 CFLAGS="-g"
5981 fi
5982else
5983 if test "$GCC" = yes; then
5984 CFLAGS="-O2"
5985 else
5986 CFLAGS=
5987 fi
5988fi
5989{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5990echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5991if test "${ac_cv_prog_cc_c89+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 ac_cv_prog_cc_c89=no
5995ac_save_CC=$CC
5996cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
6002#include <stdarg.h>
6003#include <stdio.h>
6004#include <sys/types.h>
6005#include <sys/stat.h>
6006/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6007struct buf { int x; };
6008FILE * (*rcsopen) (struct buf *, struct stat *, int);
6009static char *e (p, i)
6010 char **p;
6011 int i;
6012{
6013 return p[i];
6014}
6015static char *f (char * (*g) (char **, int), char **p, ...)
6016{
6017 char *s;
6018 va_list v;
6019 va_start (v,p);
6020 s = g (p, va_arg (v,int));
6021 va_end (v);
6022 return s;
6023}
6024
6025/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6026 function prototypes and stuff, but not '\xHH' hex character constants.
6027 These don't provoke an error unfortunately, instead are silently treated
6028 as 'x'. The following induces an error, until -std is added to get
6029 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6030 array size at least. It's necessary to write '\x00'==0 to get something
6031 that's true only with -std. */
6032int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6033
6034/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6035 inside strings and character constants. */
6036#define FOO(x) 'x'
6037int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6038
6039int test (int i, double x);
6040struct s1 {int (*f) (int a);};
6041struct s2 {int (*f) (double a);};
6042int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6043int argc;
6044char **argv;
6045int
6046main ()
6047{
6048return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6049 ;
6050 return 0;
6051}
6052_ACEOF
6053for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6054 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6055do
6056 CC="$ac_save_CC $ac_arg"
6057 rm -f conftest.$ac_objext
6058if { (ac_try="$ac_compile"
6059case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_compile") 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6072 { (case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075esac
6076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_try") 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085esac
6086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_try") 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006091 ac_cv_prog_cc_c89=$ac_arg
6092else
6093 echo "$as_me: failed program was:" >&5
6094sed 's/^/| /' conftest.$ac_ext >&5
6095
6096
6097fi
6098
6099rm -f core conftest.err conftest.$ac_objext
6100 test "x$ac_cv_prog_cc_c89" != "xno" && break
6101done
6102rm -f conftest.$ac_ext
6103CC=$ac_save_CC
6104
6105fi
6106# AC_CACHE_VAL
6107case "x$ac_cv_prog_cc_c89" in
6108 x)
6109 { echo "$as_me:$LINENO: result: none needed" >&5
6110echo "${ECHO_T}none needed" >&6; } ;;
6111 xno)
6112 { echo "$as_me:$LINENO: result: unsupported" >&5
6113echo "${ECHO_T}unsupported" >&6; } ;;
6114 *)
6115 CC="$CC $ac_cv_prog_cc_c89"
6116 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6117echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6118esac
6119
6120
6121ac_ext=c
6122ac_cpp='$CPP $CPPFLAGS'
6123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125ac_compiler_gnu=$ac_cv_c_compiler_gnu
6126
6127ac_ext=cpp
6128ac_cpp='$CXXCPP $CPPFLAGS'
6129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6132if test -z "$CXX"; then
6133 if test -n "$CCC"; then
6134 CXX=$CCC
6135 else
6136 if test -n "$ac_tool_prefix"; then
6137 for ac_prog in g++
6138 do
6139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6143if test "${ac_cv_prog_CXX+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145else
6146 if test -n "$CXX"; then
6147 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6148else
6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150for as_dir in $PATH
6151do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006155 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 +00006156 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160done
6161done
6162IFS=$as_save_IFS
6163
6164fi
6165fi
6166CXX=$ac_cv_prog_CXX
6167if test -n "$CXX"; then
6168 { echo "$as_me:$LINENO: result: $CXX" >&5
6169echo "${ECHO_T}$CXX" >&6; }
6170else
6171 { echo "$as_me:$LINENO: result: no" >&5
6172echo "${ECHO_T}no" >&6; }
6173fi
6174
6175
6176 test -n "$CXX" && break
6177 done
6178fi
6179if test -z "$CXX"; then
6180 ac_ct_CXX=$CXX
6181 for ac_prog in g++
6182do
6183 # Extract the first word of "$ac_prog", so it can be a program name with args.
6184set dummy $ac_prog; ac_word=$2
6185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6189else
6190 if test -n "$ac_ct_CXX"; then
6191 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196 IFS=$as_save_IFS
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006199 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 +00006200 ac_cv_prog_ac_ct_CXX="$ac_prog"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202 break 2
6203 fi
6204done
6205done
6206IFS=$as_save_IFS
6207
6208fi
6209fi
6210ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6211if test -n "$ac_ct_CXX"; then
6212 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6213echo "${ECHO_T}$ac_ct_CXX" >&6; }
6214else
6215 { echo "$as_me:$LINENO: result: no" >&5
6216echo "${ECHO_T}no" >&6; }
6217fi
6218
6219
6220 test -n "$ac_ct_CXX" && break
6221done
6222
6223 if test "x$ac_ct_CXX" = x; then
6224 CXX="g++"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227yes:)
6228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229whose name does not start with the host triplet. If you think this
6230configuration is useful to you, please write to autoconf@gnu.org." >&5
6231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232whose name does not start with the host triplet. If you think this
6233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234ac_tool_warned=yes ;;
6235esac
6236 CXX=$ac_ct_CXX
6237 fi
6238fi
6239
6240 fi
6241fi
6242# Provide some information about the compiler.
6243echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6244ac_compiler=`set X $ac_compile; echo $2`
6245{ (ac_try="$ac_compiler --version >&5"
6246case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249esac
6250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compiler --version >&5") 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }
6255{ (ac_try="$ac_compiler -v >&5"
6256case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259esac
6260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_compiler -v >&5") 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }
6265{ (ac_try="$ac_compiler -V >&5"
6266case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compiler -V >&5") 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }
6275
6276{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6277echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6278if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280else
6281 cat >conftest.$ac_ext <<_ACEOF
6282/* confdefs.h. */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h. */
6287
6288int
6289main ()
6290{
6291#ifndef __GNUC__
6292 choke me
6293#endif
6294
6295 ;
6296 return 0;
6297}
6298_ACEOF
6299rm -f conftest.$ac_objext
6300if { (ac_try="$ac_compile"
6301case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304esac
6305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006312 (exit $ac_status); } &&
6313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6314 { (case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317esac
6318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_try") 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327esac
6328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_try") 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006333 ac_compiler_gnu=yes
6334else
6335 echo "$as_me: failed program was:" >&5
6336sed 's/^/| /' conftest.$ac_ext >&5
6337
6338 ac_compiler_gnu=no
6339fi
6340
6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6343
6344fi
6345{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6346echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6347GXX=`test $ac_compiler_gnu = yes && echo yes`
6348ac_test_CXXFLAGS=${CXXFLAGS+set}
6349ac_save_CXXFLAGS=$CXXFLAGS
6350{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6351echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6352if test "${ac_cv_prog_cxx_g+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6356 ac_cxx_werror_flag=yes
6357 ac_cv_prog_cxx_g=no
6358 CXXFLAGS="-g"
6359 cat >conftest.$ac_ext <<_ACEOF
6360/* confdefs.h. */
6361_ACEOF
6362cat confdefs.h >>conftest.$ac_ext
6363cat >>conftest.$ac_ext <<_ACEOF
6364/* end confdefs.h. */
6365
6366int
6367main ()
6368{
6369
6370 ;
6371 return 0;
6372}
6373_ACEOF
6374rm -f conftest.$ac_objext
6375if { (ac_try="$ac_compile"
6376case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379esac
6380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compile") 2>conftest.er1
6382 ac_status=$?
6383 grep -v '^ *+' conftest.er1 >conftest.err
6384 rm -f conftest.er1
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006387 (exit $ac_status); } &&
6388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6389 { (case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392esac
6393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_try") 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest.$ac_objext'
6399 { (case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402esac
6403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_try") 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006408 ac_cv_prog_cxx_g=yes
6409else
6410 echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 CXXFLAGS=""
6414 cat >conftest.$ac_ext <<_ACEOF
6415/* confdefs.h. */
6416_ACEOF
6417cat confdefs.h >>conftest.$ac_ext
6418cat >>conftest.$ac_ext <<_ACEOF
6419/* end confdefs.h. */
6420
6421int
6422main ()
6423{
6424
6425 ;
6426 return 0;
6427}
6428_ACEOF
6429rm -f conftest.$ac_objext
6430if { (ac_try="$ac_compile"
6431case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434esac
6435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_compile") 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006442 (exit $ac_status); } &&
6443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6444 { (case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447esac
6448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_try") 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; } &&
6453 { ac_try='test -s conftest.$ac_objext'
6454 { (case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457esac
6458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_try") 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006463 :
6464else
6465 echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6469 CXXFLAGS="-g"
6470 cat >conftest.$ac_ext <<_ACEOF
6471/* confdefs.h. */
6472_ACEOF
6473cat confdefs.h >>conftest.$ac_ext
6474cat >>conftest.$ac_ext <<_ACEOF
6475/* end confdefs.h. */
6476
6477int
6478main ()
6479{
6480
6481 ;
6482 return 0;
6483}
6484_ACEOF
6485rm -f conftest.$ac_objext
6486if { (ac_try="$ac_compile"
6487case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490esac
6491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006498 (exit $ac_status); } &&
6499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6500 { (case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503esac
6504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_try") 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try='test -s conftest.$ac_objext'
6510 { (case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513esac
6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_try") 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006519 ac_cv_prog_cxx_g=yes
6520else
6521 echo "$as_me: failed program was:" >&5
6522sed 's/^/| /' conftest.$ac_ext >&5
6523
6524
6525fi
6526
6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528fi
6529
6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531fi
6532
6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6535fi
6536{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6537echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6538if test "$ac_test_CXXFLAGS" = set; then
6539 CXXFLAGS=$ac_save_CXXFLAGS
6540elif test $ac_cv_prog_cxx_g = yes; then
6541 if test "$GXX" = yes; then
6542 CXXFLAGS="-g -O2"
6543 else
6544 CXXFLAGS="-g"
6545 fi
6546else
6547 if test "$GXX" = yes; then
6548 CXXFLAGS="-O2"
6549 else
6550 CXXFLAGS=
6551 fi
6552fi
6553ac_ext=c
6554ac_cpp='$CPP $CPPFLAGS'
6555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6557ac_compiler_gnu=$ac_cv_c_compiler_gnu
6558
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006559
6560{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6561echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6562if test "${lt_cv_path_NM+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565 if test -n "$NM"; then
6566 # Let the user override the test.
6567 lt_cv_path_NM="$NM"
6568else
6569 lt_nm_to_check="${ac_tool_prefix}nm"
6570 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6571 lt_nm_to_check="$lt_nm_to_check nm"
6572 fi
6573 for lt_tmp_nm in $lt_nm_to_check; do
6574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6575 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6576 IFS="$lt_save_ifs"
6577 test -z "$ac_dir" && ac_dir=.
6578 tmp_nm="$ac_dir/$lt_tmp_nm"
6579 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6580 # Check to see if the nm accepts a BSD-compat flag.
6581 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6582 # nm: unknown option "B" ignored
6583 # Tru64's nm complains that /dev/null is an invalid object file
6584 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6585 */dev/null* | *'Invalid file or object type'*)
6586 lt_cv_path_NM="$tmp_nm -B"
6587 break
6588 ;;
6589 *)
6590 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6591 */dev/null*)
6592 lt_cv_path_NM="$tmp_nm -p"
6593 break
6594 ;;
6595 *)
6596 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6597 continue # so that we can try to find one that supports BSD flags
6598 ;;
6599 esac
6600 ;;
6601 esac
6602 fi
6603 done
6604 IFS="$lt_save_ifs"
6605 done
6606 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6607fi
6608fi
6609{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6610echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6611NM="$lt_cv_path_NM"
6612
6613
6614
6615{ echo "$as_me:$LINENO: checking for GNU make" >&5
6616echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6617if test "${llvm_cv_gnu_make_command+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6619else
6620 llvm_cv_gnu_make_command=''
6621 for a in "$MAKE" make gmake gnumake ; do
6622 if test -z "$a" ; then continue ; fi ;
6623 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6624 then
6625 llvm_cv_gnu_make_command=$a ;
6626 break;
6627 fi
6628 done
6629fi
6630{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6631echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6632 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6633 ifGNUmake='' ;
6634 else
6635 ifGNUmake='#' ;
6636 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6637echo "${ECHO_T}\"Not found\"" >&6; };
6638 fi
6639
6640
6641{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6642echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6643LN_S=$as_ln_s
6644if test "$LN_S" = "ln -s"; then
6645 { echo "$as_me:$LINENO: result: yes" >&5
6646echo "${ECHO_T}yes" >&6; }
6647else
6648 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6649echo "${ECHO_T}no, using $LN_S" >&6; }
6650fi
6651
6652# Extract the first word of "cmp", so it can be a program name with args.
6653set dummy cmp; ac_word=$2
6654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656if test "${ac_cv_path_CMP+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658else
6659 case $CMP in
6660 [\\/]* | ?:[\\/]*)
6661 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6662 ;;
6663 *)
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006670 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 +00006671 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6674 fi
6675done
6676done
6677IFS=$as_save_IFS
6678
6679 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6680 ;;
6681esac
6682fi
6683CMP=$ac_cv_path_CMP
6684if test -n "$CMP"; then
6685 { echo "$as_me:$LINENO: result: $CMP" >&5
6686echo "${ECHO_T}$CMP" >&6; }
6687else
6688 { echo "$as_me:$LINENO: result: no" >&5
6689echo "${ECHO_T}no" >&6; }
6690fi
6691
6692
6693# Extract the first word of "cp", so it can be a program name with args.
6694set dummy cp; ac_word=$2
6695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6697if test "${ac_cv_path_CP+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700 case $CP in
6701 [\\/]* | ?:[\\/]*)
6702 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6703 ;;
6704 *)
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006711 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 +00006712 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717done
6718IFS=$as_save_IFS
6719
6720 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6721 ;;
6722esac
6723fi
6724CP=$ac_cv_path_CP
6725if test -n "$CP"; then
6726 { echo "$as_me:$LINENO: result: $CP" >&5
6727echo "${ECHO_T}$CP" >&6; }
6728else
6729 { echo "$as_me:$LINENO: result: no" >&5
6730echo "${ECHO_T}no" >&6; }
6731fi
6732
6733
6734# Extract the first word of "date", so it can be a program name with args.
6735set dummy date; ac_word=$2
6736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738if test "${ac_cv_path_DATE+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741 case $DATE in
6742 [\\/]* | ?:[\\/]*)
6743 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6744 ;;
6745 *)
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747for as_dir in $PATH
6748do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006752 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 +00006753 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757done
6758done
6759IFS=$as_save_IFS
6760
6761 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6762 ;;
6763esac
6764fi
6765DATE=$ac_cv_path_DATE
6766if test -n "$DATE"; then
6767 { echo "$as_me:$LINENO: result: $DATE" >&5
6768echo "${ECHO_T}$DATE" >&6; }
6769else
6770 { echo "$as_me:$LINENO: result: no" >&5
6771echo "${ECHO_T}no" >&6; }
6772fi
6773
6774
6775# Extract the first word of "find", so it can be a program name with args.
6776set dummy find; ac_word=$2
6777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779if test "${ac_cv_path_FIND+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781else
6782 case $FIND in
6783 [\\/]* | ?:[\\/]*)
6784 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6785 ;;
6786 *)
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006793 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 +00006794 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798done
6799done
6800IFS=$as_save_IFS
6801
6802 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6803 ;;
6804esac
6805fi
6806FIND=$ac_cv_path_FIND
6807if test -n "$FIND"; then
6808 { echo "$as_me:$LINENO: result: $FIND" >&5
6809echo "${ECHO_T}$FIND" >&6; }
6810else
6811 { echo "$as_me:$LINENO: result: no" >&5
6812echo "${ECHO_T}no" >&6; }
6813fi
6814
6815
6816# Extract the first word of "grep", so it can be a program name with args.
6817set dummy grep; ac_word=$2
6818{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820if test "${ac_cv_path_GREP+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822else
6823 case $GREP in
6824 [\\/]* | ?:[\\/]*)
6825 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6826 ;;
6827 *)
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006834 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 +00006835 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839done
6840done
6841IFS=$as_save_IFS
6842
6843 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6844 ;;
6845esac
6846fi
6847GREP=$ac_cv_path_GREP
6848if test -n "$GREP"; then
6849 { echo "$as_me:$LINENO: result: $GREP" >&5
6850echo "${ECHO_T}$GREP" >&6; }
6851else
6852 { echo "$as_me:$LINENO: result: no" >&5
6853echo "${ECHO_T}no" >&6; }
6854fi
6855
6856
6857# Extract the first word of "mkdir", so it can be a program name with args.
6858set dummy mkdir; ac_word=$2
6859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861if test "${ac_cv_path_MKDIR+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863else
6864 case $MKDIR in
6865 [\\/]* | ?:[\\/]*)
6866 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6867 ;;
6868 *)
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870for as_dir in $PATH
6871do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006875 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 +00006876 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880done
6881done
6882IFS=$as_save_IFS
6883
6884 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6885 ;;
6886esac
6887fi
6888MKDIR=$ac_cv_path_MKDIR
6889if test -n "$MKDIR"; then
6890 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6891echo "${ECHO_T}$MKDIR" >&6; }
6892else
6893 { echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6; }
6895fi
6896
6897
6898# Extract the first word of "mv", so it can be a program name with args.
6899set dummy mv; ac_word=$2
6900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902if test "${ac_cv_path_MV+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904else
6905 case $MV in
6906 [\\/]* | ?:[\\/]*)
6907 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6908 ;;
6909 *)
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913 IFS=$as_save_IFS
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006916 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 +00006917 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 break 2
6920 fi
6921done
6922done
6923IFS=$as_save_IFS
6924
6925 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6926 ;;
6927esac
6928fi
6929MV=$ac_cv_path_MV
6930if test -n "$MV"; then
6931 { echo "$as_me:$LINENO: result: $MV" >&5
6932echo "${ECHO_T}$MV" >&6; }
6933else
6934 { echo "$as_me:$LINENO: result: no" >&5
6935echo "${ECHO_T}no" >&6; }
6936fi
6937
6938
6939if test -n "$ac_tool_prefix"; then
6940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6941set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944if test "${ac_cv_prog_RANLIB+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946else
6947 if test -n "$RANLIB"; then
6948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006956 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 +00006957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961done
6962done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
6967RANLIB=$ac_cv_prog_RANLIB
6968if test -n "$RANLIB"; then
6969 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6970echo "${ECHO_T}$RANLIB" >&6; }
6971else
6972 { echo "$as_me:$LINENO: result: no" >&5
6973echo "${ECHO_T}no" >&6; }
6974fi
6975
6976
6977fi
6978if test -z "$ac_cv_prog_RANLIB"; then
6979 ac_ct_RANLIB=$RANLIB
6980 # Extract the first word of "ranlib", so it can be a program name with args.
6981set dummy ranlib; ac_word=$2
6982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986else
6987 if test -n "$ac_ct_RANLIB"; then
6988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006996 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 +00006997 ac_cv_prog_ac_ct_RANLIB="ranlib"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001done
7002done
7003IFS=$as_save_IFS
7004
7005fi
7006fi
7007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7008if test -n "$ac_ct_RANLIB"; then
7009 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7010echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7011else
7012 { echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6; }
7014fi
7015
7016 if test "x$ac_ct_RANLIB" = x; then
7017 RANLIB=":"
7018 else
7019 case $cross_compiling:$ac_tool_warned in
7020yes:)
7021{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7022whose name does not start with the host triplet. If you think this
7023configuration is useful to you, please write to autoconf@gnu.org." >&5
7024echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7025whose name does not start with the host triplet. If you think this
7026configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7027ac_tool_warned=yes ;;
7028esac
7029 RANLIB=$ac_ct_RANLIB
7030 fi
7031else
7032 RANLIB="$ac_cv_prog_RANLIB"
7033fi
7034
7035# Extract the first word of "rm", so it can be a program name with args.
7036set dummy rm; ac_word=$2
7037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039if test "${ac_cv_path_RM+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042 case $RM in
7043 [\\/]* | ?:[\\/]*)
7044 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7045 ;;
7046 *)
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007054 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058done
7059done
7060IFS=$as_save_IFS
7061
7062 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7063 ;;
7064esac
7065fi
7066RM=$ac_cv_path_RM
7067if test -n "$RM"; then
7068 { echo "$as_me:$LINENO: result: $RM" >&5
7069echo "${ECHO_T}$RM" >&6; }
7070else
7071 { echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6; }
7073fi
7074
7075
7076# Extract the first word of "sed", so it can be a program name with args.
7077set dummy sed; ac_word=$2
7078{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7080if test "${ac_cv_path_SED+set}" = set; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7082else
7083 case $SED in
7084 [\\/]* | ?:[\\/]*)
7085 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7086 ;;
7087 *)
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007094 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 +00007095 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7098 fi
7099done
7100done
7101IFS=$as_save_IFS
7102
7103 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7104 ;;
7105esac
7106fi
7107SED=$ac_cv_path_SED
7108if test -n "$SED"; then
7109 { echo "$as_me:$LINENO: result: $SED" >&5
7110echo "${ECHO_T}$SED" >&6; }
7111else
7112 { echo "$as_me:$LINENO: result: no" >&5
7113echo "${ECHO_T}no" >&6; }
7114fi
7115
7116
7117# Extract the first word of "tar", so it can be a program name with args.
7118set dummy tar; ac_word=$2
7119{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121if test "${ac_cv_path_TAR+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124 case $TAR in
7125 [\\/]* | ?:[\\/]*)
7126 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7127 ;;
7128 *)
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007135 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 +00007136 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7139 fi
7140done
7141done
7142IFS=$as_save_IFS
7143
7144 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7145 ;;
7146esac
7147fi
7148TAR=$ac_cv_path_TAR
7149if test -n "$TAR"; then
7150 { echo "$as_me:$LINENO: result: $TAR" >&5
7151echo "${ECHO_T}$TAR" >&6; }
7152else
7153 { echo "$as_me:$LINENO: result: no" >&5
7154echo "${ECHO_T}no" >&6; }
7155fi
7156
7157
7158# Extract the first word of "pwd", so it can be a program name with args.
7159set dummy pwd; ac_word=$2
7160{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162if test "${ac_cv_path_BINPWD+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164else
7165 case $BINPWD in
7166 [\\/]* | ?:[\\/]*)
7167 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7168 ;;
7169 *)
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007176 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 +00007177 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181done
7182done
7183IFS=$as_save_IFS
7184
7185 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7186 ;;
7187esac
7188fi
7189BINPWD=$ac_cv_path_BINPWD
7190if test -n "$BINPWD"; then
7191 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7192echo "${ECHO_T}$BINPWD" >&6; }
7193else
7194 { echo "$as_me:$LINENO: result: no" >&5
7195echo "${ECHO_T}no" >&6; }
7196fi
7197
7198
7199
7200# Extract the first word of "Graphviz", so it can be a program name with args.
7201set dummy Graphviz; ac_word=$2
7202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207 case $GRAPHVIZ in
7208 [\\/]* | ?:[\\/]*)
7209 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7210 ;;
7211 *)
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007218 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 +00007219 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223done
7224done
7225IFS=$as_save_IFS
7226
7227 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7228 ;;
7229esac
7230fi
7231GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7232if test -n "$GRAPHVIZ"; then
7233 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7234echo "${ECHO_T}$GRAPHVIZ" >&6; }
7235else
7236 { echo "$as_me:$LINENO: result: no" >&5
7237echo "${ECHO_T}no" >&6; }
7238fi
7239
7240
7241if test "$GRAPHVIZ" != "echo Graphviz" ; then
7242
7243cat >>confdefs.h <<\_ACEOF
7244#define HAVE_GRAPHVIZ 1
7245_ACEOF
7246
7247 if test "$llvm_cv_os_type" = "MingW" ; then
7248 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7249 fi
7250
7251cat >>confdefs.h <<_ACEOF
7252#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7253_ACEOF
7254
7255fi
7256# Extract the first word of "dot", so it can be a program name with args.
7257set dummy dot; ac_word=$2
7258{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260if test "${ac_cv_path_DOT+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7262else
7263 case $DOT in
7264 [\\/]* | ?:[\\/]*)
7265 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7266 ;;
7267 *)
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269for as_dir in $PATH
7270do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007274 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 +00007275 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279done
7280done
7281IFS=$as_save_IFS
7282
7283 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7284 ;;
7285esac
7286fi
7287DOT=$ac_cv_path_DOT
7288if test -n "$DOT"; then
7289 { echo "$as_me:$LINENO: result: $DOT" >&5
7290echo "${ECHO_T}$DOT" >&6; }
7291else
7292 { echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6; }
7294fi
7295
7296
7297if test "$DOT" != "echo dot" ; then
7298
7299cat >>confdefs.h <<\_ACEOF
7300#define HAVE_DOT 1
7301_ACEOF
7302
7303 if test "$llvm_cv_os_type" = "MingW" ; then
7304 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7305 fi
7306
7307cat >>confdefs.h <<_ACEOF
7308#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7309_ACEOF
7310
7311fi
David Greenedb740ef2009-07-09 17:16:26 +00007312# Extract the first word of "fdp", so it can be a program name with args.
7313set dummy fdp; ac_word=$2
7314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316if test "${ac_cv_path_FDP+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319 case $FDP in
7320 [\\/]* | ?:[\\/]*)
7321 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7322 ;;
7323 *)
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325for as_dir in $PATH
7326do
7327 IFS=$as_save_IFS
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7331 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 break 2
7334 fi
7335done
7336done
7337IFS=$as_save_IFS
7338
7339 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7340 ;;
7341esac
7342fi
7343FDP=$ac_cv_path_FDP
7344if test -n "$FDP"; then
7345 { echo "$as_me:$LINENO: result: $FDP" >&5
7346echo "${ECHO_T}$FDP" >&6; }
7347else
7348 { echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6; }
7350fi
7351
7352
7353if test "$FDP" != "echo fdp" ; then
7354
7355cat >>confdefs.h <<\_ACEOF
7356#define HAVE_FDP 1
7357_ACEOF
7358
7359 if test "$llvm_cv_os_type" = "MingW" ; then
7360 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7361 fi
7362
7363cat >>confdefs.h <<_ACEOF
7364#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7365_ACEOF
7366
7367fi
7368# Extract the first word of "neato", so it can be a program name with args.
7369set dummy neato; ac_word=$2
7370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372if test "${ac_cv_path_NEATO+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374else
7375 case $NEATO in
7376 [\\/]* | ?:[\\/]*)
7377 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7378 ;;
7379 *)
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7390 fi
7391done
7392done
7393IFS=$as_save_IFS
7394
7395 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7396 ;;
7397esac
7398fi
7399NEATO=$ac_cv_path_NEATO
7400if test -n "$NEATO"; then
7401 { echo "$as_me:$LINENO: result: $NEATO" >&5
7402echo "${ECHO_T}$NEATO" >&6; }
7403else
7404 { echo "$as_me:$LINENO: result: no" >&5
7405echo "${ECHO_T}no" >&6; }
7406fi
7407
7408
7409if test "$NEATO" != "echo neato" ; then
7410
7411cat >>confdefs.h <<\_ACEOF
7412#define HAVE_NEATO 1
7413_ACEOF
7414
7415 if test "$llvm_cv_os_type" = "MingW" ; then
7416 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7417 fi
7418
7419cat >>confdefs.h <<_ACEOF
7420#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7421_ACEOF
7422
7423fi
7424# Extract the first word of "twopi", so it can be a program name with args.
7425set dummy twopi; ac_word=$2
7426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428if test "${ac_cv_path_TWOPI+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430else
7431 case $TWOPI in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7434 ;;
7435 *)
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447done
7448done
7449IFS=$as_save_IFS
7450
7451 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7452 ;;
7453esac
7454fi
7455TWOPI=$ac_cv_path_TWOPI
7456if test -n "$TWOPI"; then
7457 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7458echo "${ECHO_T}$TWOPI" >&6; }
7459else
7460 { echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6; }
7462fi
7463
7464
7465if test "$TWOPI" != "echo twopi" ; then
7466
7467cat >>confdefs.h <<\_ACEOF
7468#define HAVE_TWOPI 1
7469_ACEOF
7470
7471 if test "$llvm_cv_os_type" = "MingW" ; then
7472 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7473 fi
7474
7475cat >>confdefs.h <<_ACEOF
7476#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7477_ACEOF
7478
7479fi
7480# Extract the first word of "circo", so it can be a program name with args.
7481set dummy circo; ac_word=$2
7482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484if test "${ac_cv_path_CIRCO+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486else
7487 case $CIRCO in
7488 [\\/]* | ?:[\\/]*)
7489 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7490 ;;
7491 *)
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7502 fi
7503done
7504done
7505IFS=$as_save_IFS
7506
7507 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7508 ;;
7509esac
7510fi
7511CIRCO=$ac_cv_path_CIRCO
7512if test -n "$CIRCO"; then
7513 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7514echo "${ECHO_T}$CIRCO" >&6; }
7515else
7516 { echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6; }
7518fi
7519
7520
7521if test "$CIRCO" != "echo circo" ; then
7522
7523cat >>confdefs.h <<\_ACEOF
7524#define HAVE_CIRCO 1
7525_ACEOF
7526
7527 if test "$llvm_cv_os_type" = "MingW" ; then
7528 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7529 fi
7530
7531cat >>confdefs.h <<_ACEOF
7532#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7533_ACEOF
7534
7535fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007536for ac_prog in gv gsview32
7537do
7538 # Extract the first word of "$ac_prog", so it can be a program name with args.
7539set dummy $ac_prog; ac_word=$2
7540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542if test "${ac_cv_path_GV+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7544else
7545 case $GV in
7546 [\\/]* | ?:[\\/]*)
7547 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7548 ;;
7549 *)
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551for as_dir in $PATH
7552do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007556 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 +00007557 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7560 fi
7561done
7562done
7563IFS=$as_save_IFS
7564
7565 ;;
7566esac
7567fi
7568GV=$ac_cv_path_GV
7569if test -n "$GV"; then
7570 { echo "$as_me:$LINENO: result: $GV" >&5
7571echo "${ECHO_T}$GV" >&6; }
7572else
7573 { echo "$as_me:$LINENO: result: no" >&5
7574echo "${ECHO_T}no" >&6; }
7575fi
7576
7577
7578 test -n "$GV" && break
7579done
7580test -n "$GV" || GV="echo gv"
7581
7582if test "$GV" != "echo gv" ; then
7583
7584cat >>confdefs.h <<\_ACEOF
7585#define HAVE_GV 1
7586_ACEOF
7587
7588 if test "$llvm_cv_os_type" = "MingW" ; then
7589 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7590 fi
7591
7592cat >>confdefs.h <<_ACEOF
7593#define LLVM_PATH_GV "$GV${EXEEXT}"
7594_ACEOF
7595
7596fi
7597# Extract the first word of "dotty", so it can be a program name with args.
7598set dummy dotty; ac_word=$2
7599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601if test "${ac_cv_path_DOTTY+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
7604 case $DOTTY in
7605 [\\/]* | ?:[\\/]*)
7606 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7607 ;;
7608 *)
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007616 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620done
7621done
7622IFS=$as_save_IFS
7623
7624 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7625 ;;
7626esac
7627fi
7628DOTTY=$ac_cv_path_DOTTY
7629if test -n "$DOTTY"; then
7630 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7631echo "${ECHO_T}$DOTTY" >&6; }
7632else
7633 { echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6; }
7635fi
7636
7637
7638if test "$DOTTY" != "echo dotty" ; then
7639
7640cat >>confdefs.h <<\_ACEOF
7641#define HAVE_DOTTY 1
7642_ACEOF
7643
7644 if test "$llvm_cv_os_type" = "MingW" ; then
7645 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7646 fi
7647
7648cat >>confdefs.h <<_ACEOF
7649#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7650_ACEOF
7651
7652fi
7653
7654
7655# Extract the first word of "perl", so it can be a program name with args.
7656set dummy perl; ac_word=$2
7657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659if test "${ac_cv_path_PERL+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7661else
7662 case $PERL in
7663 [\\/]* | ?:[\\/]*)
7664 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7665 ;;
7666 *)
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007673 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 +00007674 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678done
7679done
7680IFS=$as_save_IFS
7681
7682 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7683 ;;
7684esac
7685fi
7686PERL=$ac_cv_path_PERL
7687if test -n "$PERL"; then
7688 { echo "$as_me:$LINENO: result: $PERL" >&5
7689echo "${ECHO_T}$PERL" >&6; }
7690else
7691 { echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6; }
7693fi
7694
7695
7696if test "$PERL" != "none"; then
7697 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7698echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7699 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7700 { echo "$as_me:$LINENO: result: yes" >&5
7701echo "${ECHO_T}yes" >&6; }
7702 else
7703 PERL=none
7704 { echo "$as_me:$LINENO: result: not found" >&5
7705echo "${ECHO_T}not found" >&6; }
7706 fi
7707fi
7708
7709
7710if test x"$PERL" = xnone; then
7711 HAVE_PERL=0
7712
7713 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7714echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7715 { (exit 1); exit 1; }; }
7716else
7717 HAVE_PERL=1
7718
7719fi
7720
7721# Find a good install program. We prefer a C program (faster),
7722# so one script is as good as another. But avoid the broken or
7723# incompatible versions:
7724# SysV /etc/install, /usr/sbin/install
7725# SunOS /usr/etc/install
7726# IRIX /sbin/install
7727# AIX /bin/install
7728# AmigaOS /C/install, which installs bootblocks on floppy discs
7729# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7730# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7731# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7732# OS/2's system install, which has a completely different semantic
7733# ./install, which can be erroneously created by make from ./install.sh.
7734{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7735echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7736if test -z "$INSTALL"; then
7737if test "${ac_cv_path_install+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 # Account for people who put trailing slashes in PATH elements.
7746case $as_dir/ in
7747 ./ | .// | /cC/* | \
7748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7749 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7750 /usr/ucb/* ) ;;
7751 *)
7752 # OSF1 and SCO ODT 3.0 have their own names for install.
7753 # Don't use installbsd from OSF since it installs stuff as root
7754 # by default.
7755 for ac_prog in ginstall scoinst install; do
7756 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007757 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 +00007758 if test $ac_prog = install &&
7759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7760 # AIX install. It has an incompatible calling convention.
7761 :
7762 elif test $ac_prog = install &&
7763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7764 # program-specific install script used by HP pwplus--don't use.
7765 :
7766 else
7767 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7768 break 3
7769 fi
7770 fi
7771 done
7772 done
7773 ;;
7774esac
7775done
7776IFS=$as_save_IFS
7777
7778
7779fi
7780 if test "${ac_cv_path_install+set}" = set; then
7781 INSTALL=$ac_cv_path_install
7782 else
7783 # As a last resort, use the slow shell script. Don't cache a
7784 # value for INSTALL within a source directory, because that will
7785 # break other packages using the cache if that directory is
7786 # removed, or if the value is a relative name.
7787 INSTALL=$ac_install_sh
7788 fi
7789fi
7790{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7791echo "${ECHO_T}$INSTALL" >&6; }
7792
7793# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7794# It thinks the first close brace ends the variable substitution.
7795test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7796
7797test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7798
7799test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7800
7801
7802# Extract the first word of "bzip2", so it can be a program name with args.
7803set dummy bzip2; ac_word=$2
7804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806if test "${ac_cv_path_BZIP2+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808else
7809 case $BZIP2 in
7810 [\\/]* | ?:[\\/]*)
7811 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7812 ;;
7813 *)
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007820 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 +00007821 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825done
7826done
7827IFS=$as_save_IFS
7828
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007829 ;;
7830esac
7831fi
7832BZIP2=$ac_cv_path_BZIP2
7833if test -n "$BZIP2"; then
7834 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7835echo "${ECHO_T}$BZIP2" >&6; }
7836else
7837 { echo "$as_me:$LINENO: result: no" >&5
7838echo "${ECHO_T}no" >&6; }
7839fi
7840
7841
7842# Extract the first word of "doxygen", so it can be a program name with args.
7843set dummy doxygen; ac_word=$2
7844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7846if test "${ac_cv_path_DOXYGEN+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7848else
7849 case $DOXYGEN in
7850 [\\/]* | ?:[\\/]*)
7851 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7852 ;;
7853 *)
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855for as_dir in $PATH
7856do
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007860 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 +00007861 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7864 fi
7865done
7866done
7867IFS=$as_save_IFS
7868
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007869 ;;
7870esac
7871fi
7872DOXYGEN=$ac_cv_path_DOXYGEN
7873if test -n "$DOXYGEN"; then
7874 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7875echo "${ECHO_T}$DOXYGEN" >&6; }
7876else
7877 { echo "$as_me:$LINENO: result: no" >&5
7878echo "${ECHO_T}no" >&6; }
7879fi
7880
7881
7882# Extract the first word of "groff", so it can be a program name with args.
7883set dummy groff; ac_word=$2
7884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7886if test "${ac_cv_path_GROFF+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888else
7889 case $GROFF in
7890 [\\/]* | ?:[\\/]*)
7891 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7892 ;;
7893 *)
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895for as_dir in $PATH
7896do
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007900 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 +00007901 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 break 2
7904 fi
7905done
7906done
7907IFS=$as_save_IFS
7908
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007909 ;;
7910esac
7911fi
7912GROFF=$ac_cv_path_GROFF
7913if test -n "$GROFF"; then
7914 { echo "$as_me:$LINENO: result: $GROFF" >&5
7915echo "${ECHO_T}$GROFF" >&6; }
7916else
7917 { echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6; }
7919fi
7920
7921
7922# Extract the first word of "gzip", so it can be a program name with args.
7923set dummy gzip; ac_word=$2
7924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926if test "${ac_cv_path_GZIP+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7928else
7929 case $GZIP in
7930 [\\/]* | ?:[\\/]*)
7931 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7932 ;;
7933 *)
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007940 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 +00007941 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945done
7946done
7947IFS=$as_save_IFS
7948
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007949 ;;
7950esac
7951fi
7952GZIP=$ac_cv_path_GZIP
7953if test -n "$GZIP"; then
7954 { echo "$as_me:$LINENO: result: $GZIP" >&5
7955echo "${ECHO_T}$GZIP" >&6; }
7956else
7957 { echo "$as_me:$LINENO: result: no" >&5
7958echo "${ECHO_T}no" >&6; }
7959fi
7960
7961
7962# Extract the first word of "pod2html", so it can be a program name with args.
7963set dummy pod2html; ac_word=$2
7964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7966if test "${ac_cv_path_POD2HTML+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969 case $POD2HTML in
7970 [\\/]* | ?:[\\/]*)
7971 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7972 ;;
7973 *)
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975for as_dir in $PATH
7976do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007980 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 +00007981 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7984 fi
7985done
7986done
7987IFS=$as_save_IFS
7988
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007989 ;;
7990esac
7991fi
7992POD2HTML=$ac_cv_path_POD2HTML
7993if test -n "$POD2HTML"; then
7994 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7995echo "${ECHO_T}$POD2HTML" >&6; }
7996else
7997 { echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6; }
7999fi
8000
8001
8002# Extract the first word of "pod2man", so it can be a program name with args.
8003set dummy pod2man; ac_word=$2
8004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8006if test "${ac_cv_path_POD2MAN+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009 case $POD2MAN in
8010 [\\/]* | ?:[\\/]*)
8011 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8012 ;;
8013 *)
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015for as_dir in $PATH
8016do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008020 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 +00008021 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025done
8026done
8027IFS=$as_save_IFS
8028
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008029 ;;
8030esac
8031fi
8032POD2MAN=$ac_cv_path_POD2MAN
8033if test -n "$POD2MAN"; then
8034 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8035echo "${ECHO_T}$POD2MAN" >&6; }
8036else
8037 { echo "$as_me:$LINENO: result: no" >&5
8038echo "${ECHO_T}no" >&6; }
8039fi
8040
8041
8042# Extract the first word of "runtest", so it can be a program name with args.
8043set dummy runtest; ac_word=$2
8044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8046if test "${ac_cv_path_RUNTEST+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048else
8049 case $RUNTEST in
8050 [\\/]* | ?:[\\/]*)
8051 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8052 ;;
8053 *)
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055for as_dir in $PATH
8056do
8057 IFS=$as_save_IFS
8058 test -z "$as_dir" && as_dir=.
8059 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008060 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 +00008061 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 break 2
8064 fi
8065done
8066done
8067IFS=$as_save_IFS
8068
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008069 ;;
8070esac
8071fi
8072RUNTEST=$ac_cv_path_RUNTEST
8073if test -n "$RUNTEST"; then
8074 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8075echo "${ECHO_T}$RUNTEST" >&6; }
8076else
8077 { echo "$as_me:$LINENO: result: no" >&5
8078echo "${ECHO_T}no" >&6; }
8079fi
8080
8081
8082
8083no_itcl=true
8084{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8085echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8086
8087# Check whether --with-tclinclude was given.
8088if test "${with_tclinclude+set}" = set; then
8089 withval=$with_tclinclude; with_tclinclude=${withval}
8090else
8091 with_tclinclude=''
8092fi
8093
8094if test "${ac_cv_path_tclsh+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097
8098if test x"${with_tclinclude}" != x ; then
8099 if test -f ${with_tclinclude}/tclsh ; then
8100 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8101 elif test -f ${with_tclinclude}/src/tclsh ; then
8102 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8103 else
8104 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8105echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8106 { (exit 1); exit 1; }; }
8107 fi
8108fi
8109
8110if test x"${ac_cv_path_tclsh}" = x ; then
8111 { echo "$as_me:$LINENO: result: none" >&5
8112echo "${ECHO_T}none" >&6; }
8113 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
8114do
8115 # Extract the first word of "$ac_prog", so it can be a program name with args.
8116set dummy $ac_prog; ac_word=$2
8117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8119if test "${ac_cv_path_TCLSH+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121else
8122 case $TCLSH in
8123 [\\/]* | ?:[\\/]*)
8124 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8125 ;;
8126 *)
8127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128for as_dir in $PATH
8129do
8130 IFS=$as_save_IFS
8131 test -z "$as_dir" && as_dir=.
8132 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008133 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 +00008134 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138done
8139done
8140IFS=$as_save_IFS
8141
8142 ;;
8143esac
8144fi
8145TCLSH=$ac_cv_path_TCLSH
8146if test -n "$TCLSH"; then
8147 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8148echo "${ECHO_T}$TCLSH" >&6; }
8149else
8150 { echo "$as_me:$LINENO: result: no" >&5
8151echo "${ECHO_T}no" >&6; }
8152fi
8153
8154
8155 test -n "$TCLSH" && break
8156done
8157
8158 if test x"${TCLSH}" = x ; then
8159 ac_cv_path_tclsh='';
8160 else
8161 ac_cv_path_tclsh="${TCLSH}";
8162 fi
8163else
8164 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8165echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8166 TCLSH="${ac_cv_path_tclsh}"
8167
8168fi
8169
8170fi
8171
8172# Extract the first word of "zip", so it can be a program name with args.
8173set dummy zip; ac_word=$2
8174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8176if test "${ac_cv_path_ZIP+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8178else
8179 case $ZIP in
8180 [\\/]* | ?:[\\/]*)
8181 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8182 ;;
8183 *)
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185for as_dir in $PATH
8186do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008190 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 +00008191 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 break 2
8194 fi
8195done
8196done
8197IFS=$as_save_IFS
8198
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008199 ;;
8200esac
8201fi
8202ZIP=$ac_cv_path_ZIP
8203if test -n "$ZIP"; then
8204 { echo "$as_me:$LINENO: result: $ZIP" >&5
8205echo "${ECHO_T}$ZIP" >&6; }
8206else
8207 { echo "$as_me:$LINENO: result: no" >&5
8208echo "${ECHO_T}no" >&6; }
8209fi
8210
8211
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008212for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008213do
8214 # Extract the first word of "$ac_prog", so it can be a program name with args.
8215set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218if test "${ac_cv_path_OCAMLC+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220else
8221 case $OCAMLC in
8222 [\\/]* | ?:[\\/]*)
8223 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8224 ;;
8225 *)
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008232 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 +00008233 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8236 fi
8237done
8238done
8239IFS=$as_save_IFS
8240
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008241 ;;
8242esac
8243fi
8244OCAMLC=$ac_cv_path_OCAMLC
8245if test -n "$OCAMLC"; then
8246 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8247echo "${ECHO_T}$OCAMLC" >&6; }
8248else
8249 { echo "$as_me:$LINENO: result: no" >&5
8250echo "${ECHO_T}no" >&6; }
8251fi
8252
8253
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008254 test -n "$OCAMLC" && break
8255done
8256
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008257for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008258do
8259 # Extract the first word of "$ac_prog", so it can be a program name with args.
8260set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8263if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266 case $OCAMLOPT in
8267 [\\/]* | ?:[\\/]*)
8268 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8269 ;;
8270 *)
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH
8273do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008277 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 +00008278 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8281 fi
8282done
8283done
8284IFS=$as_save_IFS
8285
Gordon Henriksen4ac92092007-09-18 12:27:13 +00008286 ;;
8287esac
8288fi
8289OCAMLOPT=$ac_cv_path_OCAMLOPT
8290if test -n "$OCAMLOPT"; then
8291 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8292echo "${ECHO_T}$OCAMLOPT" >&6; }
8293else
8294 { echo "$as_me:$LINENO: result: no" >&5
8295echo "${ECHO_T}no" >&6; }
8296fi
8297
8298
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008299 test -n "$OCAMLOPT" && break
8300done
8301
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008302for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008303do
8304 # Extract the first word of "$ac_prog", so it can be a program name with args.
8305set dummy $ac_prog; ac_word=$2
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8308if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8310else
8311 case $OCAMLDEP in
8312 [\\/]* | ?:[\\/]*)
8313 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8314 ;;
8315 *)
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317for as_dir in $PATH
8318do
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008322 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 +00008323 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8326 fi
8327done
8328done
8329IFS=$as_save_IFS
8330
Gordon Henriksen38eefac2007-09-20 16:48:18 +00008331 ;;
8332esac
8333fi
8334OCAMLDEP=$ac_cv_path_OCAMLDEP
8335if test -n "$OCAMLDEP"; then
8336 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8337echo "${ECHO_T}$OCAMLDEP" >&6; }
8338else
8339 { echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6; }
8341fi
8342
8343
Gordon Henriksencd8389e2008-03-07 18:20:01 +00008344 test -n "$OCAMLDEP" && break
8345done
8346
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00008347for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00008348do
8349 # Extract the first word of "$ac_prog", so it can be a program name with args.
8350set dummy $ac_prog; ac_word=$2
8351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8353if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355else
8356 case $OCAMLDOC in
8357 [\\/]* | ?:[\\/]*)
8358 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8359 ;;
8360 *)
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008367 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 +00008368 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8371 fi
8372done
8373done
8374IFS=$as_save_IFS
8375
8376 ;;
8377esac
8378fi
8379OCAMLDOC=$ac_cv_path_OCAMLDOC
8380if test -n "$OCAMLDOC"; then
8381 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8382echo "${ECHO_T}$OCAMLDOC" >&6; }
8383else
8384 { echo "$as_me:$LINENO: result: no" >&5
8385echo "${ECHO_T}no" >&6; }
8386fi
8387
8388
8389 test -n "$OCAMLDOC" && break
8390done
8391
Edwin Török20176752008-10-22 09:56:27 +00008392for ac_prog in gas as
8393do
8394 # Extract the first word of "$ac_prog", so it can be a program name with args.
8395set dummy $ac_prog; ac_word=$2
8396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8398if test "${ac_cv_path_GAS+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400else
8401 case $GAS in
8402 [\\/]* | ?:[\\/]*)
8403 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8404 ;;
8405 *)
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407for as_dir in $PATH
8408do
8409 IFS=$as_save_IFS
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008412 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 +00008413 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 break 2
8416 fi
8417done
8418done
8419IFS=$as_save_IFS
8420
8421 ;;
8422esac
8423fi
8424GAS=$ac_cv_path_GAS
8425if test -n "$GAS"; then
8426 { echo "$as_me:$LINENO: result: $GAS" >&5
8427echo "${ECHO_T}$GAS" >&6; }
8428else
8429 { echo "$as_me:$LINENO: result: no" >&5
8430echo "${ECHO_T}no" >&6; }
8431fi
8432
8433
8434 test -n "$GAS" && break
8435done
8436
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008437
8438{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8439echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8440if test "${llvm_cv_link_use_r+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
8442else
8443 ac_ext=c
8444ac_cpp='$CPP $CPPFLAGS'
8445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8447ac_compiler_gnu=$ac_cv_c_compiler_gnu
8448
8449 oldcflags="$CFLAGS"
8450 CFLAGS="$CFLAGS -Wl,-R."
8451 cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h. */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h. */
8457
8458int
8459main ()
8460{
8461int main() { return 0; }
8462 ;
8463 return 0;
8464}
8465_ACEOF
8466rm -f conftest.$ac_objext conftest$ac_exeext
8467if { (ac_try="$ac_link"
8468case "(($ac_try" in
8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8470 *) ac_try_echo=$ac_try;;
8471esac
8472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_link") 2>conftest.er1
8474 ac_status=$?
8475 grep -v '^ *+' conftest.er1 >conftest.err
8476 rm -f conftest.er1
8477 cat conftest.err >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008479 (exit $ac_status); } &&
8480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8481 { (case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8484esac
8485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_try") 2>&5
8487 ac_status=$?
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); }; } &&
8490 { ac_try='test -s conftest$ac_exeext'
8491 { (case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8494esac
8495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_try") 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008500 llvm_cv_link_use_r=yes
8501else
8502 echo "$as_me: failed program was:" >&5
8503sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 llvm_cv_link_use_r=no
8506fi
8507
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008508rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008509 conftest$ac_exeext conftest.$ac_ext
8510 CFLAGS="$oldcflags"
8511 ac_ext=c
8512ac_cpp='$CPP $CPPFLAGS'
8513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8515ac_compiler_gnu=$ac_cv_c_compiler_gnu
8516
8517
8518fi
8519{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8520echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8521if test "$llvm_cv_link_use_r" = yes ; then
8522
8523cat >>confdefs.h <<\_ACEOF
8524#define HAVE_LINK_R 1
8525_ACEOF
8526
8527 fi
8528
8529
Nick Lewycky6eab6652009-03-05 08:20:44 +00008530{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8531echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8532if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8534else
8535 ac_ext=c
8536ac_cpp='$CPP $CPPFLAGS'
8537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8539ac_compiler_gnu=$ac_cv_c_compiler_gnu
8540
8541 oldcflags="$CFLAGS"
8542 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8543 cat >conftest.$ac_ext <<_ACEOF
8544/* confdefs.h. */
8545_ACEOF
8546cat confdefs.h >>conftest.$ac_ext
8547cat >>conftest.$ac_ext <<_ACEOF
8548/* end confdefs.h. */
8549
8550int
8551main ()
8552{
8553int main() { return 0; }
8554 ;
8555 return 0;
8556}
8557_ACEOF
8558rm -f conftest.$ac_objext conftest$ac_exeext
8559if { (ac_try="$ac_link"
8560case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563esac
8564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_link") 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008571 (exit $ac_status); } &&
8572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576esac
8577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_try") 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest$ac_exeext'
8583 { (case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8586esac
8587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_try") 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00008592 llvm_cv_link_use_export_dynamic=yes
8593else
8594 echo "$as_me: failed program was:" >&5
8595sed 's/^/| /' conftest.$ac_ext >&5
8596
8597 llvm_cv_link_use_export_dynamic=no
8598fi
8599
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008600rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky6eab6652009-03-05 08:20:44 +00008601 conftest$ac_exeext conftest.$ac_ext
8602 CFLAGS="$oldcflags"
8603 ac_ext=c
8604ac_cpp='$CPP $CPPFLAGS'
8605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8607ac_compiler_gnu=$ac_cv_c_compiler_gnu
8608
8609
8610fi
8611{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8612echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8613if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8614
8615cat >>confdefs.h <<\_ACEOF
8616#define HAVE_LINK_EXPORT_DYNAMIC 1
8617_ACEOF
8618
8619 fi
8620
8621
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008622
8623
8624{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8625echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8626if test "${ac_cv_c_const+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628else
8629 cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
8635
8636int
8637main ()
8638{
8639/* FIXME: Include the comments suggested by Paul. */
8640#ifndef __cplusplus
8641 /* Ultrix mips cc rejects this. */
8642 typedef int charset[2];
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008643 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008644 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008645 char const *const *ccp;
8646 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008647 /* NEC SVR4.0.2 mips cc rejects this. */
8648 struct point {int x, y;};
8649 static struct point const zero = {0,0};
8650 /* AIX XL C 1.02.0.0 rejects this.
8651 It does not let you subtract one const X* pointer from another in
8652 an arm of an if-expression whose if-part is not a constant
8653 expression */
8654 const char *g = "string";
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008655 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008656 /* HPUX 7.0 cc rejects these. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008657 ++ccp;
8658 p = (char**) ccp;
8659 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008660 { /* SCO 3.2v4 cc rejects this. */
8661 char *t;
8662 char const *s = 0 ? (char *) 0 : (char const *) 0;
8663
8664 *t++ = 0;
8665 if (s) return 0;
8666 }
8667 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8668 int x[] = {25, 17};
8669 const int *foo = &x[0];
8670 ++foo;
8671 }
8672 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8673 typedef const int *iptr;
8674 iptr p = 0;
8675 ++p;
8676 }
8677 { /* AIX XL C 1.02.0.0 rejects this saying
8678 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8679 struct s { int j; const int *ap[3]; };
8680 struct s *b; b->j = 5;
8681 }
8682 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8683 const int foo = 10;
8684 if (!foo) return 0;
8685 }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008686 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008687#endif
8688
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext
8694if { (ac_try="$ac_compile"
8695case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698esac
8699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008706 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8708 { (case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_try") 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest.$ac_objext'
8718 { (case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8721esac
8722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_try") 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008727 ac_cv_c_const=yes
8728else
8729 echo "$as_me: failed program was:" >&5
8730sed 's/^/| /' conftest.$ac_ext >&5
8731
8732 ac_cv_c_const=no
8733fi
8734
8735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736fi
8737{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8738echo "${ECHO_T}$ac_cv_c_const" >&6; }
8739if test $ac_cv_c_const = no; then
8740
8741cat >>confdefs.h <<\_ACEOF
8742#define const
8743_ACEOF
8744
8745fi
8746
8747
8748
8749
8750
8751
8752ac_header_dirent=no
8753for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8754 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8755{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8756echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759else
8760 cat >conftest.$ac_ext <<_ACEOF
8761/* confdefs.h. */
8762_ACEOF
8763cat confdefs.h >>conftest.$ac_ext
8764cat >>conftest.$ac_ext <<_ACEOF
8765/* end confdefs.h. */
8766#include <sys/types.h>
8767#include <$ac_hdr>
8768
8769int
8770main ()
8771{
8772if ((DIR *) 0)
8773return 0;
8774 ;
8775 return 0;
8776}
8777_ACEOF
8778rm -f conftest.$ac_objext
8779if { (ac_try="$ac_compile"
8780case "(($ac_try" in
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8783esac
8784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_compile") 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8793 { (case "(($ac_try" in
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8796esac
8797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8798 (eval "$ac_try") 2>&5
8799 ac_status=$?
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); }; } &&
8802 { ac_try='test -s conftest.$ac_objext'
8803 { (case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806esac
8807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_try") 2>&5
8809 ac_status=$?
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008812 eval "$as_ac_Header=yes"
8813else
8814 echo "$as_me: failed program was:" >&5
8815sed 's/^/| /' conftest.$ac_ext >&5
8816
8817 eval "$as_ac_Header=no"
8818fi
8819
8820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821fi
8822ac_res=`eval echo '${'$as_ac_Header'}'`
8823 { echo "$as_me:$LINENO: result: $ac_res" >&5
8824echo "${ECHO_T}$ac_res" >&6; }
8825if test `eval echo '${'$as_ac_Header'}'` = yes; then
8826 cat >>confdefs.h <<_ACEOF
8827#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8828_ACEOF
8829
8830ac_header_dirent=$ac_hdr; break
8831fi
8832
8833done
8834# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8835if test $ac_header_dirent = dirent.h; then
8836 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8837echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8838if test "${ac_cv_search_opendir+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8840else
8841 ac_func_search_save_LIBS=$LIBS
8842cat >conftest.$ac_ext <<_ACEOF
8843/* confdefs.h. */
8844_ACEOF
8845cat confdefs.h >>conftest.$ac_ext
8846cat >>conftest.$ac_ext <<_ACEOF
8847/* end confdefs.h. */
8848
8849/* Override any GCC internal prototype to avoid an error.
8850 Use char because int might match the return type of a GCC
8851 builtin and then its argument prototype would still apply. */
8852#ifdef __cplusplus
8853extern "C"
8854#endif
8855char opendir ();
8856int
8857main ()
8858{
8859return opendir ();
8860 ;
8861 return 0;
8862}
8863_ACEOF
8864for ac_lib in '' dir; do
8865 if test -z "$ac_lib"; then
8866 ac_res="none required"
8867 else
8868 ac_res=-l$ac_lib
8869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8870 fi
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872if { (ac_try="$ac_link"
8873case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876esac
8877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_link") 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8886 { (case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889esac
8890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_try") 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; } &&
8895 { ac_try='test -s conftest$ac_exeext'
8896 { (case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8899esac
8900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8901 (eval "$ac_try") 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008905 ac_cv_search_opendir=$ac_res
8906else
8907 echo "$as_me: failed program was:" >&5
8908sed 's/^/| /' conftest.$ac_ext >&5
8909
8910
8911fi
8912
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008913rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008914 conftest$ac_exeext
8915 if test "${ac_cv_search_opendir+set}" = set; then
8916 break
8917fi
8918done
8919if test "${ac_cv_search_opendir+set}" = set; then
8920 :
8921else
8922 ac_cv_search_opendir=no
8923fi
8924rm conftest.$ac_ext
8925LIBS=$ac_func_search_save_LIBS
8926fi
8927{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8928echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8929ac_res=$ac_cv_search_opendir
8930if test "$ac_res" != no; then
8931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8932
8933fi
8934
8935else
8936 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8937echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8938if test "${ac_cv_search_opendir+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940else
8941 ac_func_search_save_LIBS=$LIBS
8942cat >conftest.$ac_ext <<_ACEOF
8943/* confdefs.h. */
8944_ACEOF
8945cat confdefs.h >>conftest.$ac_ext
8946cat >>conftest.$ac_ext <<_ACEOF
8947/* end confdefs.h. */
8948
8949/* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
8952#ifdef __cplusplus
8953extern "C"
8954#endif
8955char opendir ();
8956int
8957main ()
8958{
8959return opendir ();
8960 ;
8961 return 0;
8962}
8963_ACEOF
8964for ac_lib in '' x; do
8965 if test -z "$ac_lib"; then
8966 ac_res="none required"
8967 else
8968 ac_res=-l$ac_lib
8969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8970 fi
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972if { (ac_try="$ac_link"
8973case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976esac
8977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_link") 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008984 (exit $ac_status); } &&
8985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8986 { (case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989esac
8990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_try") 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; } &&
8995 { ac_try='test -s conftest$ac_exeext'
8996 { (case "(($ac_try" in
8997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998 *) ac_try_echo=$ac_try;;
8999esac
9000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_try") 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009005 ac_cv_search_opendir=$ac_res
9006else
9007 echo "$as_me: failed program was:" >&5
9008sed 's/^/| /' conftest.$ac_ext >&5
9009
9010
9011fi
9012
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009013rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009014 conftest$ac_exeext
9015 if test "${ac_cv_search_opendir+set}" = set; then
9016 break
9017fi
9018done
9019if test "${ac_cv_search_opendir+set}" = set; then
9020 :
9021else
9022 ac_cv_search_opendir=no
9023fi
9024rm conftest.$ac_ext
9025LIBS=$ac_func_search_save_LIBS
9026fi
9027{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9028echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9029ac_res=$ac_cv_search_opendir
9030if test "$ac_res" != no; then
9031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9032
9033fi
9034
9035fi
9036
9037
9038for ac_header in dlfcn.h
9039do
9040as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9046fi
9047ac_res=`eval echo '${'$as_ac_Header'}'`
9048 { echo "$as_me:$LINENO: result: $ac_res" >&5
9049echo "${ECHO_T}$ac_res" >&6; }
9050else
9051 # Is the header compilable?
9052{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9053echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9054cat >conftest.$ac_ext <<_ACEOF
9055/* confdefs.h. */
9056_ACEOF
9057cat confdefs.h >>conftest.$ac_ext
9058cat >>conftest.$ac_ext <<_ACEOF
9059/* end confdefs.h. */
9060$ac_includes_default
9061#include <$ac_header>
9062_ACEOF
9063rm -f conftest.$ac_objext
9064if { (ac_try="$ac_compile"
9065case "(($ac_try" in
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9068esac
9069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_compile") 2>conftest.er1
9071 ac_status=$?
9072 grep -v '^ *+' conftest.er1 >conftest.err
9073 rm -f conftest.er1
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009076 (exit $ac_status); } &&
9077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9078 { (case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9081esac
9082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_try") 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest.$ac_objext'
9088 { (case "(($ac_try" in
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9091esac
9092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_try") 2>&5
9094 ac_status=$?
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009097 ac_header_compiler=yes
9098else
9099 echo "$as_me: failed program was:" >&5
9100sed 's/^/| /' conftest.$ac_ext >&5
9101
9102 ac_header_compiler=no
9103fi
9104
9105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9107echo "${ECHO_T}$ac_header_compiler" >&6; }
9108
9109# Is the header present?
9110{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9112cat >conftest.$ac_ext <<_ACEOF
9113/* confdefs.h. */
9114_ACEOF
9115cat confdefs.h >>conftest.$ac_ext
9116cat >>conftest.$ac_ext <<_ACEOF
9117/* end confdefs.h. */
9118#include <$ac_header>
9119_ACEOF
9120if { (ac_try="$ac_cpp conftest.$ac_ext"
9121case "(($ac_try" in
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9124esac
9125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9127 ac_status=$?
9128 grep -v '^ *+' conftest.er1 >conftest.err
9129 rm -f conftest.er1
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009132 (exit $ac_status); } >/dev/null; then
9133 if test -s conftest.err; then
9134 ac_cpp_err=$ac_c_preproc_warn_flag
9135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9136 else
9137 ac_cpp_err=
9138 fi
9139else
9140 ac_cpp_err=yes
9141fi
9142if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009143 ac_header_preproc=yes
9144else
9145 echo "$as_me: failed program was:" >&5
9146sed 's/^/| /' conftest.$ac_ext >&5
9147
9148 ac_header_preproc=no
9149fi
9150
9151rm -f conftest.err conftest.$ac_ext
9152{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9153echo "${ECHO_T}$ac_header_preproc" >&6; }
9154
9155# So? What about this header?
9156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9157 yes:no: )
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9162 ac_header_preproc=yes
9163 ;;
9164 no:yes:* )
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9168echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9172echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9177 ( cat <<\_ASBOX
9178## ----------------------------------- ##
9179## Report this to llvmbugs@cs.uiuc.edu ##
9180## ----------------------------------- ##
9181_ASBOX
9182 ) | sed "s/^/$as_me: WARNING: /" >&2
9183 ;;
9184esac
9185{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189else
9190 eval "$as_ac_Header=\$ac_header_preproc"
9191fi
9192ac_res=`eval echo '${'$as_ac_Header'}'`
9193 { echo "$as_me:$LINENO: result: $ac_res" >&5
9194echo "${ECHO_T}$ac_res" >&6; }
9195
9196fi
9197if test `eval echo '${'$as_ac_Header'}'` = yes; then
9198 cat >>confdefs.h <<_ACEOF
9199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9200_ACEOF
9201
9202fi
9203
9204done
9205
9206# Check whether --enable-ltdl-install was given.
9207if test "${enable_ltdl_install+set}" = set; then
9208 enableval=$enable_ltdl_install;
9209fi
9210
9211
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009212
9213
9214if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009215 INSTALL_LTDL_TRUE=
9216 INSTALL_LTDL_FALSE='#'
9217else
9218 INSTALL_LTDL_TRUE='#'
9219 INSTALL_LTDL_FALSE=
9220fi
9221
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009222
9223
9224if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009225 CONVENIENCE_LTDL_TRUE=
9226 CONVENIENCE_LTDL_FALSE='#'
9227else
9228 CONVENIENCE_LTDL_TRUE='#'
9229 CONVENIENCE_LTDL_FALSE=
9230fi
9231
9232
9233{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9234echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9235library_names_spec=
9236libname_spec='lib$name'
9237soname_spec=
9238shrext_cmds=".so"
9239postinstall_cmds=
9240postuninstall_cmds=
9241finish_cmds=
9242finish_eval=
9243shlibpath_var=
9244shlibpath_overrides_runpath=unknown
9245version_type=none
9246dynamic_linker="$host_os ld.so"
9247sys_lib_dlsearch_path_spec="/lib /usr/lib"
9248if test "$GCC" = yes; then
9249 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9250 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9251 # if the path contains ";" then we assume it to be the separator
9252 # otherwise default to the standard path separator (i.e. ":") - it is
9253 # assumed that no part of a normal pathname contains ";" but that should
9254 # okay in the real world where ";" in dirpaths is itself problematic.
9255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9256 else
9257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9258 fi
9259else
9260 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9261fi
9262need_lib_prefix=unknown
9263hardcode_into_libs=no
9264
9265# when you set need_version to no, make sure it does not cause -set_version
9266# flags to be left without arguments
9267need_version=unknown
9268
9269case $host_os in
9270aix3*)
9271 version_type=linux
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9273 shlibpath_var=LIBPATH
9274
9275 # AIX 3 has no versioning support, so we append a major version to the name.
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 ;;
9278
9279aix4* | aix5*)
9280 version_type=linux
9281 need_lib_prefix=no
9282 need_version=no
9283 hardcode_into_libs=yes
9284 if test "$host_cpu" = ia64; then
9285 # AIX 5 supports IA64
9286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 else
9289 # With GCC up to 2.95.x, collect2 would create an import file
9290 # for dependence libraries. The import file would start with
9291 # the line `#! .'. This would cause the generated library to
9292 # depend on `.', always an invalid library. This was fixed in
9293 # development snapshots of GCC prior to 3.0.
9294 case $host_os in
9295 aix4 | aix4.[01] | aix4.[01].*)
9296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9297 echo ' yes '
9298 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9299 :
9300 else
9301 can_build_shared=no
9302 fi
9303 ;;
9304 esac
9305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9306 # soname into executable. Probably we can add versioning support to
9307 # collect2, so additional links can be useful in future.
9308 if test "$aix_use_runtimelinking" = yes; then
9309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9310 # instead of lib<name>.a to let people know that these are not
9311 # typical AIX shared libraries.
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 else
9314 # We preserve .a as extension for shared libraries through AIX4.2
9315 # and later when we are not doing run time linking.
9316 library_names_spec='${libname}${release}.a $libname.a'
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 fi
9319 shlibpath_var=LIBPATH
9320 fi
9321 ;;
9322
9323amigaos*)
9324 library_names_spec='$libname.ixlibrary $libname.a'
9325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9326 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'
9327 ;;
9328
9329beos*)
9330 library_names_spec='${libname}${shared_ext}'
9331 dynamic_linker="$host_os ld.so"
9332 shlibpath_var=LIBRARY_PATH
9333 ;;
9334
9335bsdi[45]*)
9336 version_type=linux
9337 need_version=no
9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339 soname_spec='${libname}${release}${shared_ext}$major'
9340 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9341 shlibpath_var=LD_LIBRARY_PATH
9342 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9343 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9344 # the default ld.so.conf also contains /usr/contrib/lib and
9345 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9346 # libtool to hard-code these into programs
9347 ;;
9348
9349cygwin* | mingw* | pw32*)
9350 version_type=windows
9351 shrext_cmds=".dll"
9352 need_version=no
9353 need_lib_prefix=no
9354
9355 case $GCC,$host_os in
9356 yes,cygwin* | yes,mingw* | yes,pw32*)
9357 library_names_spec='$libname.dll.a'
9358 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9359 postinstall_cmds='base_file=`basename \${file}`~
9360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9361 dldir=$destdir/`dirname \$dlpath`~
9362 test -d \$dldir || mkdir -p \$dldir~
9363 $install_prog $dir/$dlname \$dldir/$dlname~
9364 chmod a+x \$dldir/$dlname'
9365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9366 dlpath=$dir/\$dldll~
9367 $rm \$dlpath'
9368 shlibpath_overrides_runpath=yes
9369
9370 case $host_os in
9371 cygwin*)
9372 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9373 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9374 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9375 ;;
9376 mingw*)
9377 # MinGW DLLs use traditional 'lib' prefix
9378 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9380 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9381 # It is most probably a Windows format PATH printed by
9382 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9383 # path with ; separators, and with drive letters. We can handle the
9384 # drive letters (cygwin fileutils understands them), so leave them,
9385 # especially as we might pass files found there to a mingw objdump,
9386 # which wouldn't understand a cygwinified path. Ahh.
9387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9388 else
9389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9390 fi
9391 ;;
9392 pw32*)
9393 # pw32 DLLs use 'pw' prefix rather than 'lib'
9394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9395 ;;
9396 esac
9397 ;;
9398
9399 *)
9400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9401 ;;
9402 esac
9403 dynamic_linker='Win32 ld.exe'
9404 # FIXME: first we should search . and the directory the executable is in
9405 shlibpath_var=PATH
9406 ;;
9407
9408darwin* | rhapsody*)
9409 dynamic_linker="$host_os dyld"
9410 version_type=darwin
9411 need_lib_prefix=no
9412 need_version=no
9413 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9414 soname_spec='${libname}${release}${major}$shared_ext'
9415 shlibpath_overrides_runpath=yes
9416 shlibpath_var=DYLD_LIBRARY_PATH
9417 shrext_cmds='.dylib'
9418 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9419 if test "$GCC" = yes; then
9420 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"`
9421 else
9422 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9423 fi
9424 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9425 ;;
9426
9427dgux*)
9428 version_type=linux
9429 need_lib_prefix=no
9430 need_version=no
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 ;;
9435
9436freebsd1*)
9437 dynamic_linker=no
9438 ;;
9439
9440kfreebsd*-gnu)
9441 version_type=linux
9442 need_lib_prefix=no
9443 need_version=no
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 shlibpath_overrides_runpath=no
9448 hardcode_into_libs=yes
9449 dynamic_linker='GNU ld.so'
9450 ;;
9451
9452freebsd* | dragonfly*)
9453 # DragonFly does not have aout. When/if they implement a new
9454 # versioning mechanism, adjust this.
9455 if test -x /usr/bin/objformat; then
9456 objformat=`/usr/bin/objformat`
9457 else
9458 case $host_os in
9459 freebsd[123]*) objformat=aout ;;
9460 *) objformat=elf ;;
9461 esac
9462 fi
9463 version_type=freebsd-$objformat
9464 case $version_type in
9465 freebsd-elf*)
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9467 need_version=no
9468 need_lib_prefix=no
9469 ;;
9470 freebsd-*)
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9472 need_version=yes
9473 ;;
9474 esac
9475 shlibpath_var=LD_LIBRARY_PATH
9476 case $host_os in
9477 freebsd2*)
9478 shlibpath_overrides_runpath=yes
9479 ;;
9480 freebsd3.[01]* | freebsdelf3.[01]*)
9481 shlibpath_overrides_runpath=yes
9482 hardcode_into_libs=yes
9483 ;;
9484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9486 shlibpath_overrides_runpath=no
9487 hardcode_into_libs=yes
9488 ;;
9489 freebsd*) # from 4.6 on
9490 shlibpath_overrides_runpath=yes
9491 hardcode_into_libs=yes
9492 ;;
9493 esac
9494 ;;
9495
9496gnu*)
9497 version_type=linux
9498 need_lib_prefix=no
9499 need_version=no
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 hardcode_into_libs=yes
9504 ;;
9505
9506hpux9* | hpux10* | hpux11*)
9507 # Give a soname corresponding to the major version so that dld.sl refuses to
9508 # link against other versions.
9509 version_type=sunos
9510 need_lib_prefix=no
9511 need_version=no
9512 case $host_cpu in
9513 ia64*)
9514 shrext_cmds='.so'
9515 hardcode_into_libs=yes
9516 dynamic_linker="$host_os dld.so"
9517 shlibpath_var=LD_LIBRARY_PATH
9518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 if test "X$HPUX_IA64_MODE" = X32; then
9522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9523 else
9524 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9525 fi
9526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9527 ;;
9528 hppa*64*)
9529 shrext_cmds='.sl'
9530 hardcode_into_libs=yes
9531 dynamic_linker="$host_os dld.sl"
9532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9538 ;;
9539 *)
9540 shrext_cmds='.sl'
9541 dynamic_linker="$host_os dld.sl"
9542 shlibpath_var=SHLIB_PATH
9543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 ;;
9547 esac
9548 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9549 postinstall_cmds='chmod 555 $lib'
9550 ;;
9551
9552interix3*)
9553 version_type=linux
9554 need_lib_prefix=no
9555 need_version=no
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9557 soname_spec='${libname}${release}${shared_ext}$major'
9558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9559 shlibpath_var=LD_LIBRARY_PATH
9560 shlibpath_overrides_runpath=no
9561 hardcode_into_libs=yes
9562 ;;
9563
9564irix5* | irix6* | nonstopux*)
9565 case $host_os in
9566 nonstopux*) version_type=nonstopux ;;
9567 *)
9568 if test "$lt_cv_prog_gnu_ld" = yes; then
9569 version_type=linux
9570 else
9571 version_type=irix
9572 fi ;;
9573 esac
9574 need_lib_prefix=no
9575 need_version=no
9576 soname_spec='${libname}${release}${shared_ext}$major'
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9578 case $host_os in
9579 irix5* | nonstopux*)
9580 libsuff= shlibsuff=
9581 ;;
9582 *)
9583 case $LD in # libtool.m4 will add one of these switches to LD
9584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9585 libsuff= shlibsuff= libmagic=32-bit;;
9586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9587 libsuff=32 shlibsuff=N32 libmagic=N32;;
9588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9590 *) libsuff= shlibsuff= libmagic=never-match;;
9591 esac
9592 ;;
9593 esac
9594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9595 shlibpath_overrides_runpath=no
9596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9598 hardcode_into_libs=yes
9599 ;;
9600
9601# No shared lib support for Linux oldld, aout, or coff.
9602linux*oldld* | linux*aout* | linux*coff*)
9603 dynamic_linker=no
9604 ;;
9605
9606# This must be Linux ELF.
9607linux*)
9608 version_type=linux
9609 need_lib_prefix=no
9610 need_version=no
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9614 shlibpath_var=LD_LIBRARY_PATH
9615 shlibpath_overrides_runpath=no
9616 # This implies no fast_install, which is unacceptable.
9617 # Some rework will be needed to allow for fast_install
9618 # before this can be enabled.
9619 hardcode_into_libs=yes
9620
9621 # Append ld.so.conf contents to the search path
9622 if test -f /etc/ld.so.conf; then
9623 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' ' '`
9624 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9625 fi
9626
9627 # We used to test for /lib/ld.so.1 and disable shared libraries on
9628 # powerpc, because MkLinux only supported shared libraries with the
9629 # GNU dynamic linker. Since this was broken with cross compilers,
9630 # most powerpc-linux boxes support dynamic linking these days and
9631 # people can always --disable-shared, the test was removed, and we
9632 # assume the GNU/Linux dynamic linker is in use.
9633 dynamic_linker='GNU/Linux ld.so'
9634 ;;
9635
9636knetbsd*-gnu)
9637 version_type=linux
9638 need_lib_prefix=no
9639 need_version=no
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 shlibpath_overrides_runpath=no
9644 hardcode_into_libs=yes
9645 dynamic_linker='GNU ld.so'
9646 ;;
9647
9648netbsd*)
9649 version_type=sunos
9650 need_lib_prefix=no
9651 need_version=no
9652 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9655 dynamic_linker='NetBSD (a.out) ld.so'
9656 else
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9658 soname_spec='${libname}${release}${shared_ext}$major'
9659 dynamic_linker='NetBSD ld.elf_so'
9660 fi
9661 shlibpath_var=LD_LIBRARY_PATH
9662 shlibpath_overrides_runpath=yes
9663 hardcode_into_libs=yes
9664 ;;
9665
9666newsos6)
9667 version_type=linux
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 shlibpath_var=LD_LIBRARY_PATH
9670 shlibpath_overrides_runpath=yes
9671 ;;
9672
9673nto-qnx*)
9674 version_type=linux
9675 need_lib_prefix=no
9676 need_version=no
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 shlibpath_var=LD_LIBRARY_PATH
9680 shlibpath_overrides_runpath=yes
9681 ;;
9682
9683openbsd*)
9684 version_type=sunos
9685 sys_lib_dlsearch_path_spec="/usr/lib"
9686 need_lib_prefix=no
9687 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9688 case $host_os in
9689 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9690 *) need_version=no ;;
9691 esac
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9694 shlibpath_var=LD_LIBRARY_PATH
9695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9696 case $host_os in
9697 openbsd2.[89] | openbsd2.[89].*)
9698 shlibpath_overrides_runpath=no
9699 ;;
9700 *)
9701 shlibpath_overrides_runpath=yes
9702 ;;
9703 esac
9704 else
9705 shlibpath_overrides_runpath=yes
9706 fi
9707 ;;
9708
9709os2*)
9710 libname_spec='$name'
9711 shrext_cmds=".dll"
9712 need_lib_prefix=no
9713 library_names_spec='$libname${shared_ext} $libname.a'
9714 dynamic_linker='OS/2 ld.exe'
9715 shlibpath_var=LIBPATH
9716 ;;
9717
9718osf3* | osf4* | osf5*)
9719 version_type=osf
9720 need_lib_prefix=no
9721 need_version=no
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9726 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9727 ;;
9728
9729solaris*)
9730 version_type=linux
9731 need_lib_prefix=no
9732 need_version=no
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 shlibpath_overrides_runpath=yes
9737 hardcode_into_libs=yes
9738 # ldd complains unless libraries are executable
9739 postinstall_cmds='chmod +x $lib'
9740 ;;
9741
9742sunos4*)
9743 version_type=sunos
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9745 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 shlibpath_overrides_runpath=yes
9748 if test "$with_gnu_ld" = yes; then
9749 need_lib_prefix=no
9750 fi
9751 need_version=yes
9752 ;;
9753
9754sysv4 | sysv4.3*)
9755 version_type=linux
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 case $host_vendor in
9760 sni)
9761 shlibpath_overrides_runpath=no
9762 need_lib_prefix=no
9763 export_dynamic_flag_spec='${wl}-Blargedynsym'
9764 runpath_var=LD_RUN_PATH
9765 ;;
9766 siemens)
9767 need_lib_prefix=no
9768 ;;
9769 motorola)
9770 need_lib_prefix=no
9771 need_version=no
9772 shlibpath_overrides_runpath=no
9773 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9774 ;;
9775 esac
9776 ;;
9777
9778sysv4*MP*)
9779 if test -d /usr/nec ;then
9780 version_type=linux
9781 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9782 soname_spec='$libname${shared_ext}.$major'
9783 shlibpath_var=LD_LIBRARY_PATH
9784 fi
9785 ;;
9786
9787sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9788 version_type=freebsd-elf
9789 need_lib_prefix=no
9790 need_version=no
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9792 soname_spec='${libname}${release}${shared_ext}$major'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 hardcode_into_libs=yes
9795 if test "$with_gnu_ld" = yes; then
9796 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9797 shlibpath_overrides_runpath=no
9798 else
9799 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9800 shlibpath_overrides_runpath=yes
9801 case $host_os in
9802 sco3.2v5*)
9803 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9804 ;;
9805 esac
9806 fi
9807 sys_lib_dlsearch_path_spec='/usr/lib'
9808 ;;
9809
9810uts4*)
9811 version_type=linux
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813 soname_spec='${libname}${release}${shared_ext}$major'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 ;;
9816
9817*)
9818 dynamic_linker=no
9819 ;;
9820esac
9821{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9822echo "${ECHO_T}$dynamic_linker" >&6; }
9823test "$dynamic_linker" = no && can_build_shared=no
9824
9825variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9826if test "$GCC" = yes; then
9827 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9828fi
9829
9830
9831{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9832echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9833if test "${libltdl_cv_shlibext+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835else
9836
9837module=yes
9838eval libltdl_cv_shlibext=$shrext_cmds
9839
9840fi
9841{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9842echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9843if test -n "$libltdl_cv_shlibext"; then
9844
9845cat >>confdefs.h <<_ACEOF
9846#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9847_ACEOF
9848
9849fi
9850
9851
9852{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9853echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9854if test "${libltdl_cv_shlibpath_var+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856else
9857 libltdl_cv_shlibpath_var="$shlibpath_var"
9858fi
9859{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9860echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9861if test -n "$libltdl_cv_shlibpath_var"; then
9862
9863cat >>confdefs.h <<_ACEOF
9864#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9865_ACEOF
9866
9867fi
9868
9869
9870{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9871echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9872if test "${libltdl_cv_sys_search_path+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9876fi
9877{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9878echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9879if test -n "$libltdl_cv_sys_search_path"; then
9880 sys_search_path=
9881 for dir in $libltdl_cv_sys_search_path; do
9882 if test -z "$sys_search_path"; then
9883 sys_search_path="$dir"
9884 else
9885 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9886 fi
9887 done
9888
9889cat >>confdefs.h <<_ACEOF
9890#define LTDL_SYSSEARCHPATH "$sys_search_path"
9891_ACEOF
9892
9893fi
9894
9895{ echo "$as_me:$LINENO: checking for objdir" >&5
9896echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9897if test "${libltdl_cv_objdir+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899else
9900 libltdl_cv_objdir="$objdir"
9901 if test -n "$objdir"; then
9902 :
9903 else
9904 rm -f .libs 2>/dev/null
9905 mkdir .libs 2>/dev/null
9906 if test -d .libs; then
9907 libltdl_cv_objdir=.libs
9908 else
9909 # MS-DOS does not allow filenames that begin with a dot.
9910 libltdl_cv_objdir=_libs
9911 fi
9912 rmdir .libs 2>/dev/null
9913 fi
9914
9915fi
9916{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9917echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9918
9919cat >>confdefs.h <<_ACEOF
9920#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9921_ACEOF
9922
9923
9924
9925
9926
9927
9928# Check for command to grab the raw symbol name followed by C symbol from nm.
9929{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9930echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9931if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934
9935# These are sane defaults that work on at least a few old systems.
9936# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9937
9938# Character class describing NM global symbol codes.
9939symcode='[BCDEGRST]'
9940
9941# Regexp to match symbols that can be accessed directly from C.
9942sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9943
9944# Transform an extracted symbol line into a proper C declaration
9945lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9946
9947# Transform an extracted symbol line into symbol name and symbol address
9948lt_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'"
9949
9950# Define system-specific variables.
9951case $host_os in
9952aix*)
9953 symcode='[BCDT]'
9954 ;;
9955cygwin* | mingw* | pw32*)
9956 symcode='[ABCDGISTW]'
9957 ;;
9958hpux*) # Its linker distinguishes data from code symbols
9959 if test "$host_cpu" = ia64; then
9960 symcode='[ABCDEGRST]'
9961 fi
9962 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9963 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'"
9964 ;;
9965linux*)
9966 if test "$host_cpu" = ia64; then
9967 symcode='[ABCDGIRSTW]'
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 fi
9971 ;;
9972irix* | nonstopux*)
9973 symcode='[BCDEGRST]'
9974 ;;
9975osf*)
9976 symcode='[BCDEGQRST]'
9977 ;;
9978solaris*)
9979 symcode='[BDRT]'
9980 ;;
9981sco3.2v5*)
9982 symcode='[DT]'
9983 ;;
9984sysv4.2uw2*)
9985 symcode='[DT]'
9986 ;;
9987sysv5* | sco5v6* | unixware* | OpenUNIX*)
9988 symcode='[ABDT]'
9989 ;;
9990sysv4)
9991 symcode='[DFNSTU]'
9992 ;;
9993esac
9994
9995# Handle CRLF in mingw tool chain
9996opt_cr=
9997case $build_os in
9998mingw*)
9999 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10000 ;;
10001esac
10002
10003# If we're using GNU nm, then use its standard symbol codes.
10004case `$NM -V 2>&1` in
10005*GNU* | *'with BFD'*)
10006 symcode='[ABCDGIRSTW]' ;;
10007esac
10008
10009# Try without a prefix undercore, then with it.
10010for ac_symprfx in "" "_"; do
10011
10012 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10013 symxfrm="\\1 $ac_symprfx\\2 \\2"
10014
10015 # Write the raw and C identifiers.
10016 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10017
10018 # Check to see that the pipe works correctly.
10019 pipe_works=no
10020
10021 rm -f conftest*
10022 cat > conftest.$ac_ext <<EOF
10023#ifdef __cplusplus
10024extern "C" {
10025#endif
10026char nm_test_var;
10027void nm_test_func(){}
10028#ifdef __cplusplus
10029}
10030#endif
10031int main(){nm_test_var='a';nm_test_func();return(0);}
10032EOF
10033
10034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10035 (eval $ac_compile) 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; then
10039 # Now try to grab the symbols.
10040 nlist=conftest.nm
10041 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10042 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && test -s "$nlist"; then
10046 # Try sorting and uniquifying the output.
10047 if sort "$nlist" | uniq > "$nlist"T; then
10048 mv -f "$nlist"T "$nlist"
10049 else
10050 rm -f "$nlist"T
10051 fi
10052
10053 # Make sure that we snagged all the symbols we need.
10054 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10055 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10056 cat <<EOF > conftest.$ac_ext
10057#ifdef __cplusplus
10058extern "C" {
10059#endif
10060
10061EOF
10062 # Now generate the symbol file.
10063 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10064
10065 cat <<EOF >> conftest.$ac_ext
10066#if defined (__STDC__) && __STDC__
10067# define lt_ptr_t void *
10068#else
10069# define lt_ptr_t char *
10070# define const
10071#endif
10072
10073/* The mapping between symbol names and symbols. */
10074const struct {
10075 const char *name;
10076 lt_ptr_t address;
10077}
10078lt_preloaded_symbols[] =
10079{
10080EOF
10081 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10082 cat <<\EOF >> conftest.$ac_ext
10083 {0, (lt_ptr_t) 0}
10084};
10085
10086#ifdef __cplusplus
10087}
10088#endif
10089EOF
10090 # Now try linking the two files.
10091 mv conftest.$ac_objext conftstm.$ac_objext
10092 lt_save_LIBS="$LIBS"
10093 lt_save_CFLAGS="$CFLAGS"
10094 LIBS="conftstm.$ac_objext"
10095 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10097 (eval $ac_link) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10101 pipe_works=yes
10102 fi
10103 LIBS="$lt_save_LIBS"
10104 CFLAGS="$lt_save_CFLAGS"
10105 else
10106 echo "cannot find nm_test_func in $nlist" >&5
10107 fi
10108 else
10109 echo "cannot find nm_test_var in $nlist" >&5
10110 fi
10111 else
10112 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10113 fi
10114 else
10115 echo "$progname: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 fi
10118 rm -f conftest* conftst*
10119
10120 # Do not use the global_symbol_pipe unless it works.
10121 if test "$pipe_works" = yes; then
10122 break
10123 else
10124 lt_cv_sys_global_symbol_pipe=
10125 fi
10126done
10127
10128fi
10129
10130if test -z "$lt_cv_sys_global_symbol_pipe"; then
10131 lt_cv_sys_global_symbol_to_cdecl=
10132fi
10133if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10134 { echo "$as_me:$LINENO: result: failed" >&5
10135echo "${ECHO_T}failed" >&6; }
10136else
10137 { echo "$as_me:$LINENO: result: ok" >&5
10138echo "${ECHO_T}ok" >&6; }
10139fi
10140
10141
10142{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10143echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10144if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146else
10147 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10148 libltdl_cv_preloaded_symbols=yes
10149 else
10150 libltdl_cv_preloaded_symbols=no
10151 fi
10152
10153fi
10154{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10155echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10156if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10157
10158cat >>confdefs.h <<\_ACEOF
10159#define HAVE_PRELOADED_SYMBOLS 1
10160_ACEOF
10161
10162fi
10163
10164LIBADD_DL=
10165
10166ac_ext=c
10167ac_cpp='$CPP $CPPFLAGS'
10168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10170ac_compiler_gnu=$ac_cv_c_compiler_gnu
10171
10172
10173{ echo "$as_me:$LINENO: checking for shl_load" >&5
10174echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10175if test "${ac_cv_func_shl_load+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10177else
10178 cat >conftest.$ac_ext <<_ACEOF
10179/* confdefs.h. */
10180_ACEOF
10181cat confdefs.h >>conftest.$ac_ext
10182cat >>conftest.$ac_ext <<_ACEOF
10183/* end confdefs.h. */
10184/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10186#define shl_load innocuous_shl_load
10187
10188/* System header to define __stub macros and hopefully few prototypes,
10189 which can conflict with char shl_load (); below.
10190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10191 <limits.h> exists even on freestanding compilers. */
10192
10193#ifdef __STDC__
10194# include <limits.h>
10195#else
10196# include <assert.h>
10197#endif
10198
10199#undef shl_load
10200
10201/* Override any GCC internal prototype to avoid an error.
10202 Use char because int might match the return type of a GCC
10203 builtin and then its argument prototype would still apply. */
10204#ifdef __cplusplus
10205extern "C"
10206#endif
10207char shl_load ();
10208/* The GNU C library defines this for functions which it implements
10209 to always fail with ENOSYS. Some functions are actually named
10210 something starting with __ and the normal name is an alias. */
10211#if defined __stub_shl_load || defined __stub___shl_load
10212choke me
10213#endif
10214
10215int
10216main ()
10217{
10218return shl_load ();
10219 ;
10220 return 0;
10221}
10222_ACEOF
10223rm -f conftest.$ac_objext conftest$ac_exeext
10224if { (ac_try="$ac_link"
10225case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010236 (exit $ac_status); } &&
10237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10238 { (case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241esac
10242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_try") 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; } &&
10247 { ac_try='test -s conftest$ac_exeext'
10248 { (case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10251esac
10252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_try") 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010257 ac_cv_func_shl_load=yes
10258else
10259 echo "$as_me: failed program was:" >&5
10260sed 's/^/| /' conftest.$ac_ext >&5
10261
10262 ac_cv_func_shl_load=no
10263fi
10264
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010265rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010266 conftest$ac_exeext conftest.$ac_ext
10267fi
10268{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10269echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10270if test $ac_cv_func_shl_load = yes; then
10271
10272cat >>confdefs.h <<\_ACEOF
10273#define HAVE_SHL_LOAD 1
10274_ACEOF
10275
10276else
10277 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10278echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10279if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282 ac_check_lib_save_LIBS=$LIBS
10283LIBS="-ldld $LIBS"
10284cat >conftest.$ac_ext <<_ACEOF
10285/* confdefs.h. */
10286_ACEOF
10287cat confdefs.h >>conftest.$ac_ext
10288cat >>conftest.$ac_ext <<_ACEOF
10289/* end confdefs.h. */
10290
10291/* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10294#ifdef __cplusplus
10295extern "C"
10296#endif
10297char shl_load ();
10298int
10299main ()
10300{
10301return shl_load ();
10302 ;
10303 return 0;
10304}
10305_ACEOF
10306rm -f conftest.$ac_objext conftest$ac_exeext
10307if { (ac_try="$ac_link"
10308case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311esac
10312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_link") 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010319 (exit $ac_status); } &&
10320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10321 { (case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324esac
10325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_try") 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest$ac_exeext'
10331 { (case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334esac
10335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_try") 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010340 ac_cv_lib_dld_shl_load=yes
10341else
10342 echo "$as_me: failed program was:" >&5
10343sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 ac_cv_lib_dld_shl_load=no
10346fi
10347
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010348rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010349 conftest$ac_exeext conftest.$ac_ext
10350LIBS=$ac_check_lib_save_LIBS
10351fi
10352{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10353echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10354if test $ac_cv_lib_dld_shl_load = yes; then
10355
10356cat >>confdefs.h <<\_ACEOF
10357#define HAVE_SHL_LOAD 1
10358_ACEOF
10359
10360 LIBADD_DL="$LIBADD_DL -ldld"
10361else
10362 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10363echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10364if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10366else
10367 ac_check_lib_save_LIBS=$LIBS
10368LIBS="-ldl $LIBS"
10369cat >conftest.$ac_ext <<_ACEOF
10370/* confdefs.h. */
10371_ACEOF
10372cat confdefs.h >>conftest.$ac_ext
10373cat >>conftest.$ac_ext <<_ACEOF
10374/* end confdefs.h. */
10375
10376/* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10379#ifdef __cplusplus
10380extern "C"
10381#endif
10382char dlopen ();
10383int
10384main ()
10385{
10386return dlopen ();
10387 ;
10388 return 0;
10389}
10390_ACEOF
10391rm -f conftest.$ac_objext conftest$ac_exeext
10392if { (ac_try="$ac_link"
10393case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396esac
10397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_link") 2>conftest.er1
10399 ac_status=$?
10400 grep -v '^ *+' conftest.er1 >conftest.err
10401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010404 (exit $ac_status); } &&
10405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409esac
10410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; } &&
10415 { ac_try='test -s conftest$ac_exeext'
10416 { (case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10419esac
10420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421 (eval "$ac_try") 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010425 ac_cv_lib_dl_dlopen=yes
10426else
10427 echo "$as_me: failed program was:" >&5
10428sed 's/^/| /' conftest.$ac_ext >&5
10429
10430 ac_cv_lib_dl_dlopen=no
10431fi
10432
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010433rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010434 conftest$ac_exeext conftest.$ac_ext
10435LIBS=$ac_check_lib_save_LIBS
10436fi
10437{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10438echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10439if test $ac_cv_lib_dl_dlopen = yes; then
10440
10441cat >>confdefs.h <<\_ACEOF
10442#define HAVE_LIBDL 1
10443_ACEOF
10444
10445 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10446else
10447 cat >conftest.$ac_ext <<_ACEOF
10448/* confdefs.h. */
10449_ACEOF
10450cat confdefs.h >>conftest.$ac_ext
10451cat >>conftest.$ac_ext <<_ACEOF
10452/* end confdefs.h. */
10453#if HAVE_DLFCN_H
10454# include <dlfcn.h>
10455#endif
10456
10457int
10458main ()
10459{
10460dlopen(0, 0);
10461 ;
10462 return 0;
10463}
10464_ACEOF
10465rm -f conftest.$ac_objext conftest$ac_exeext
10466if { (ac_try="$ac_link"
10467case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10470esac
10471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472 (eval "$ac_link") 2>conftest.er1
10473 ac_status=$?
10474 grep -v '^ *+' conftest.er1 >conftest.err
10475 rm -f conftest.er1
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010478 (exit $ac_status); } &&
10479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10480 { (case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483esac
10484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_try") 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; } &&
10489 { ac_try='test -s conftest$ac_exeext'
10490 { (case "(($ac_try" in
10491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10492 *) ac_try_echo=$ac_try;;
10493esac
10494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10495 (eval "$ac_try") 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010499
10500cat >>confdefs.h <<\_ACEOF
10501#define HAVE_LIBDL 1
10502_ACEOF
10503 libltdl_cv_func_dlopen="yes"
10504else
10505 echo "$as_me: failed program was:" >&5
10506sed 's/^/| /' conftest.$ac_ext >&5
10507
10508 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10509echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10510if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512else
10513 ac_check_lib_save_LIBS=$LIBS
10514LIBS="-lsvld $LIBS"
10515cat >conftest.$ac_ext <<_ACEOF
10516/* confdefs.h. */
10517_ACEOF
10518cat confdefs.h >>conftest.$ac_ext
10519cat >>conftest.$ac_ext <<_ACEOF
10520/* end confdefs.h. */
10521
10522/* Override any GCC internal prototype to avoid an error.
10523 Use char because int might match the return type of a GCC
10524 builtin and then its argument prototype would still apply. */
10525#ifdef __cplusplus
10526extern "C"
10527#endif
10528char dlopen ();
10529int
10530main ()
10531{
10532return dlopen ();
10533 ;
10534 return 0;
10535}
10536_ACEOF
10537rm -f conftest.$ac_objext conftest$ac_exeext
10538if { (ac_try="$ac_link"
10539case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10542esac
10543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_link") 2>conftest.er1
10545 ac_status=$?
10546 grep -v '^ *+' conftest.er1 >conftest.err
10547 rm -f conftest.er1
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010550 (exit $ac_status); } &&
10551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10552 { (case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10555esac
10556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_try") 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; } &&
10561 { ac_try='test -s conftest$ac_exeext'
10562 { (case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10565esac
10566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_try") 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010571 ac_cv_lib_svld_dlopen=yes
10572else
10573 echo "$as_me: failed program was:" >&5
10574sed 's/^/| /' conftest.$ac_ext >&5
10575
10576 ac_cv_lib_svld_dlopen=no
10577fi
10578
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010579rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010580 conftest$ac_exeext conftest.$ac_ext
10581LIBS=$ac_check_lib_save_LIBS
10582fi
10583{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10584echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10585if test $ac_cv_lib_svld_dlopen = yes; then
10586
10587cat >>confdefs.h <<\_ACEOF
10588#define HAVE_LIBDL 1
10589_ACEOF
10590
10591 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10592else
10593 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10594echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10595if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10597else
10598 ac_check_lib_save_LIBS=$LIBS
10599LIBS="-ldld $LIBS"
10600cat >conftest.$ac_ext <<_ACEOF
10601/* confdefs.h. */
10602_ACEOF
10603cat confdefs.h >>conftest.$ac_ext
10604cat >>conftest.$ac_ext <<_ACEOF
10605/* end confdefs.h. */
10606
10607/* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610#ifdef __cplusplus
10611extern "C"
10612#endif
10613char dld_link ();
10614int
10615main ()
10616{
10617return dld_link ();
10618 ;
10619 return 0;
10620}
10621_ACEOF
10622rm -f conftest.$ac_objext conftest$ac_exeext
10623if { (ac_try="$ac_link"
10624case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10627esac
10628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010635 (exit $ac_status); } &&
10636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10637 { (case "(($ac_try" in
10638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639 *) ac_try_echo=$ac_try;;
10640esac
10641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642 (eval "$ac_try") 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10650esac
10651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_try") 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010656 ac_cv_lib_dld_dld_link=yes
10657else
10658 echo "$as_me: failed program was:" >&5
10659sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ac_cv_lib_dld_dld_link=no
10662fi
10663
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010664rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010665 conftest$ac_exeext conftest.$ac_ext
10666LIBS=$ac_check_lib_save_LIBS
10667fi
10668{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10669echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10670if test $ac_cv_lib_dld_dld_link = yes; then
10671
10672cat >>confdefs.h <<\_ACEOF
10673#define HAVE_DLD 1
10674_ACEOF
10675
10676 LIBADD_DL="$LIBADD_DL -ldld"
10677else
10678 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10679echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10680if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10682else
10683 cat >conftest.$ac_ext <<_ACEOF
10684/* confdefs.h. */
10685_ACEOF
10686cat confdefs.h >>conftest.$ac_ext
10687cat >>conftest.$ac_ext <<_ACEOF
10688/* end confdefs.h. */
10689/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10691#define _dyld_func_lookup innocuous__dyld_func_lookup
10692
10693/* System header to define __stub macros and hopefully few prototypes,
10694 which can conflict with char _dyld_func_lookup (); below.
10695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10696 <limits.h> exists even on freestanding compilers. */
10697
10698#ifdef __STDC__
10699# include <limits.h>
10700#else
10701# include <assert.h>
10702#endif
10703
10704#undef _dyld_func_lookup
10705
10706/* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10709#ifdef __cplusplus
10710extern "C"
10711#endif
10712char _dyld_func_lookup ();
10713/* The GNU C library defines this for functions which it implements
10714 to always fail with ENOSYS. Some functions are actually named
10715 something starting with __ and the normal name is an alias. */
10716#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10717choke me
10718#endif
10719
10720int
10721main ()
10722{
10723return _dyld_func_lookup ();
10724 ;
10725 return 0;
10726}
10727_ACEOF
10728rm -f conftest.$ac_objext conftest$ac_exeext
10729if { (ac_try="$ac_link"
10730case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10733esac
10734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10736 ac_status=$?
10737 grep -v '^ *+' conftest.er1 >conftest.err
10738 rm -f conftest.er1
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010741 (exit $ac_status); } &&
10742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10743 { (case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746esac
10747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748 (eval "$ac_try") 2>&5
10749 ac_status=$?
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; } &&
10752 { ac_try='test -s conftest$ac_exeext'
10753 { (case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10756esac
10757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10758 (eval "$ac_try") 2>&5
10759 ac_status=$?
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010762 ac_cv_func__dyld_func_lookup=yes
10763else
10764 echo "$as_me: failed program was:" >&5
10765sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 ac_cv_func__dyld_func_lookup=no
10768fi
10769
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010770rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010771 conftest$ac_exeext conftest.$ac_ext
10772fi
10773{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10774echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10775if test $ac_cv_func__dyld_func_lookup = yes; then
10776
10777cat >>confdefs.h <<\_ACEOF
10778#define HAVE_DYLD 1
10779_ACEOF
10780
10781fi
10782
10783
10784fi
10785
10786
10787fi
10788
10789
10790fi
10791
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010792rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010793 conftest$ac_exeext conftest.$ac_ext
10794
10795fi
10796
10797
10798fi
10799
10800
10801fi
10802
10803
10804if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10805then
10806 lt_save_LIBS="$LIBS"
10807 LIBS="$LIBS $LIBADD_DL"
10808
10809for ac_func in dlerror
10810do
10811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10812{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10814if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816else
10817 cat >conftest.$ac_ext <<_ACEOF
10818/* confdefs.h. */
10819_ACEOF
10820cat confdefs.h >>conftest.$ac_ext
10821cat >>conftest.$ac_ext <<_ACEOF
10822/* end confdefs.h. */
10823/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10825#define $ac_func innocuous_$ac_func
10826
10827/* System header to define __stub macros and hopefully few prototypes,
10828 which can conflict with char $ac_func (); below.
10829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10830 <limits.h> exists even on freestanding compilers. */
10831
10832#ifdef __STDC__
10833# include <limits.h>
10834#else
10835# include <assert.h>
10836#endif
10837
10838#undef $ac_func
10839
10840/* Override any GCC internal prototype to avoid an error.
10841 Use char because int might match the return type of a GCC
10842 builtin and then its argument prototype would still apply. */
10843#ifdef __cplusplus
10844extern "C"
10845#endif
10846char $ac_func ();
10847/* The GNU C library defines this for functions which it implements
10848 to always fail with ENOSYS. Some functions are actually named
10849 something starting with __ and the normal name is an alias. */
10850#if defined __stub_$ac_func || defined __stub___$ac_func
10851choke me
10852#endif
10853
10854int
10855main ()
10856{
10857return $ac_func ();
10858 ;
10859 return 0;
10860}
10861_ACEOF
10862rm -f conftest.$ac_objext conftest$ac_exeext
10863if { (ac_try="$ac_link"
10864case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867esac
10868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_link") 2>conftest.er1
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010875 (exit $ac_status); } &&
10876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10877 { (case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10880esac
10881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_try") 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; } &&
10886 { ac_try='test -s conftest$ac_exeext'
10887 { (case "(($ac_try" in
10888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889 *) ac_try_echo=$ac_try;;
10890esac
10891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892 (eval "$ac_try") 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010896 eval "$as_ac_var=yes"
10897else
10898 echo "$as_me: failed program was:" >&5
10899sed 's/^/| /' conftest.$ac_ext >&5
10900
10901 eval "$as_ac_var=no"
10902fi
10903
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010904rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010905 conftest$ac_exeext conftest.$ac_ext
10906fi
10907ac_res=`eval echo '${'$as_ac_var'}'`
10908 { echo "$as_me:$LINENO: result: $ac_res" >&5
10909echo "${ECHO_T}$ac_res" >&6; }
10910if test `eval echo '${'$as_ac_var'}'` = yes; then
10911 cat >>confdefs.h <<_ACEOF
10912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10913_ACEOF
10914
10915fi
10916done
10917
10918 LIBS="$lt_save_LIBS"
10919fi
10920ac_ext=c
10921ac_cpp='$CPP $CPPFLAGS'
10922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10924ac_compiler_gnu=$ac_cv_c_compiler_gnu
10925
10926
10927
10928{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10929echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10930if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10932else
10933 ac_cv_sys_symbol_underscore=no
10934 cat > conftest.$ac_ext <<EOF
10935void nm_test_func(){}
10936int main(){nm_test_func;return 0;}
10937EOF
10938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10939 (eval $ac_compile) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; then
10943 # Now try to grab the symbols.
10944 ac_nlist=conftest.nm
10945 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10946 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && test -s "$ac_nlist"; then
10950 # See whether the symbols have a leading underscore.
10951 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10952 ac_cv_sys_symbol_underscore=yes
10953 else
10954 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10955 :
10956 else
10957 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10958 fi
10959 fi
10960 else
10961 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10962 fi
10963 else
10964 echo "configure: failed program was:" >&5
10965 cat conftest.c >&5
10966 fi
10967 rm -rf conftest*
10968
10969fi
10970{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10971echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10972
10973
10974if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10975 if test x"$libltdl_cv_func_dlopen" = xyes ||
10976 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10977 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10978echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10979if test "${libltdl_cv_need_uscore+set}" = set; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10981else
10982 libltdl_cv_need_uscore=unknown
10983 save_LIBS="$LIBS"
10984 LIBS="$LIBS $LIBADD_DL"
10985 if test "$cross_compiling" = yes; then :
10986 libltdl_cv_need_uscore=cross
10987else
10988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10989 lt_status=$lt_dlunknown
10990 cat > conftest.$ac_ext <<EOF
Anton Korobeynikov1207b902009-08-18 00:40:51 +000010991#line 10991 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010992#include "confdefs.h"
10993
10994#if HAVE_DLFCN_H
10995#include <dlfcn.h>
10996#endif
10997
10998#include <stdio.h>
10999
11000#ifdef RTLD_GLOBAL
11001# define LT_DLGLOBAL RTLD_GLOBAL
11002#else
11003# ifdef DL_GLOBAL
11004# define LT_DLGLOBAL DL_GLOBAL
11005# else
11006# define LT_DLGLOBAL 0
11007# endif
11008#endif
11009
11010/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11011 find out it does not work in some platform. */
11012#ifndef LT_DLLAZY_OR_NOW
11013# ifdef RTLD_LAZY
11014# define LT_DLLAZY_OR_NOW RTLD_LAZY
11015# else
11016# ifdef DL_LAZY
11017# define LT_DLLAZY_OR_NOW DL_LAZY
11018# else
11019# ifdef RTLD_NOW
11020# define LT_DLLAZY_OR_NOW RTLD_NOW
11021# else
11022# ifdef DL_NOW
11023# define LT_DLLAZY_OR_NOW DL_NOW
11024# else
11025# define LT_DLLAZY_OR_NOW 0
11026# endif
11027# endif
11028# endif
11029# endif
11030#endif
11031
11032#ifdef __cplusplus
11033extern "C" void exit (int);
11034#endif
11035
11036void fnord() { int i=42;}
11037int main ()
11038{
11039 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11040 int status = $lt_dlunknown;
11041
11042 if (self)
11043 {
11044 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11045 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11046 /* dlclose (self); */
11047 }
11048 else
11049 puts (dlerror ());
11050
11051 exit (status);
11052}
11053EOF
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>&5
11056 ac_status=$?
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11059 (./conftest; exit; ) >&5 2>/dev/null
11060 lt_status=$?
11061 case x$lt_status in
11062 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11063 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11064 x$lt_dlunknown|x*) ;;
11065 esac
11066 else :
11067 # compilation failed
11068
11069 fi
11070fi
11071rm -fr conftest*
11072
11073 LIBS="$save_LIBS"
11074
11075fi
11076{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11077echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11078 fi
11079fi
11080
11081if test x"$libltdl_cv_need_uscore" = xyes; then
11082
11083cat >>confdefs.h <<\_ACEOF
11084#define NEED_USCORE 1
11085_ACEOF
11086
11087fi
11088
11089
11090{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11091echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11092if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094else
11095 # PORTME does your system automatically load deplibs for dlopen?
11096 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11097 # For now, we just catch OSes we know something about -- in the
11098 # future, we'll try test this programmatically.
11099 libltdl_cv_sys_dlopen_deplibs=unknown
11100 case "$host_os" in
11101 aix3*|aix4.1.*|aix4.2.*)
11102 # Unknown whether this is true for these versions of AIX, but
11103 # we want this `case' here to explicitly catch those versions.
11104 libltdl_cv_sys_dlopen_deplibs=unknown
11105 ;;
11106 aix[45]*)
11107 libltdl_cv_sys_dlopen_deplibs=yes
11108 ;;
11109 darwin*)
11110 # Assuming the user has installed a libdl from somewhere, this is true
11111 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11112 libltdl_cv_sys_dlopen_deplibs=yes
11113 ;;
11114 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11115 # GNU and its variants, using gnu ld.so (Glibc)
11116 libltdl_cv_sys_dlopen_deplibs=yes
11117 ;;
11118 hpux10*|hpux11*)
11119 libltdl_cv_sys_dlopen_deplibs=yes
11120 ;;
11121 interix*)
11122 libltdl_cv_sys_dlopen_deplibs=yes
11123 ;;
11124 irix[12345]*|irix6.[01]*)
11125 # Catch all versions of IRIX before 6.2, and indicate that we don't
11126 # know how it worked for any of those versions.
11127 libltdl_cv_sys_dlopen_deplibs=unknown
11128 ;;
11129 irix*)
11130 # The case above catches anything before 6.2, and it's known that
11131 # at 6.2 and later dlopen does load deplibs.
11132 libltdl_cv_sys_dlopen_deplibs=yes
11133 ;;
11134 netbsd*)
11135 libltdl_cv_sys_dlopen_deplibs=yes
11136 ;;
11137 openbsd*)
11138 libltdl_cv_sys_dlopen_deplibs=yes
11139 ;;
11140 osf[1234]*)
11141 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11142 # it did *not* use an RPATH in a shared library to find objects the
11143 # library depends on, so we explictly say `no'.
11144 libltdl_cv_sys_dlopen_deplibs=no
11145 ;;
11146 osf5.0|osf5.0a|osf5.1)
11147 # dlopen *does* load deplibs and with the right loader patch applied
11148 # it even uses RPATH in a shared library to search for shared objects
11149 # that the library depends on, but there's no easy way to know if that
11150 # patch is installed. Since this is the case, all we can really
11151 # say is unknown -- it depends on the patch being installed. If
11152 # it is, this changes to `yes'. Without it, it would be `no'.
11153 libltdl_cv_sys_dlopen_deplibs=unknown
11154 ;;
11155 osf*)
11156 # the two cases above should catch all versions of osf <= 5.1. Read
11157 # the comments above for what we know about them.
11158 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11159 # is used to find them so we can finally say `yes'.
11160 libltdl_cv_sys_dlopen_deplibs=yes
11161 ;;
11162 solaris*)
11163 libltdl_cv_sys_dlopen_deplibs=yes
11164 ;;
11165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11166 libltdl_cv_sys_dlopen_deplibs=yes
11167 ;;
11168 esac
11169
11170fi
11171{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11172echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11173if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11174
11175cat >>confdefs.h <<\_ACEOF
11176#define LTDL_DLOPEN_DEPLIBS 1
11177_ACEOF
11178
11179fi
11180
11181
11182for ac_header in argz.h
11183do
11184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190fi
11191ac_res=`eval echo '${'$as_ac_Header'}'`
11192 { echo "$as_me:$LINENO: result: $ac_res" >&5
11193echo "${ECHO_T}$ac_res" >&6; }
11194else
11195 # Is the header compilable?
11196{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11198cat >conftest.$ac_ext <<_ACEOF
11199/* confdefs.h. */
11200_ACEOF
11201cat confdefs.h >>conftest.$ac_ext
11202cat >>conftest.$ac_ext <<_ACEOF
11203/* end confdefs.h. */
11204$ac_includes_default
11205#include <$ac_header>
11206_ACEOF
11207rm -f conftest.$ac_objext
11208if { (ac_try="$ac_compile"
11209case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11212esac
11213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_compile") 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011220 (exit $ac_status); } &&
11221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11222 { (case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225esac
11226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_try") 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try='test -s conftest.$ac_objext'
11232 { (case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11235esac
11236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_try") 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011241 ac_header_compiler=yes
11242else
11243 echo "$as_me: failed program was:" >&5
11244sed 's/^/| /' conftest.$ac_ext >&5
11245
11246 ac_header_compiler=no
11247fi
11248
11249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11250{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11251echo "${ECHO_T}$ac_header_compiler" >&6; }
11252
11253# Is the header present?
11254{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11256cat >conftest.$ac_ext <<_ACEOF
11257/* confdefs.h. */
11258_ACEOF
11259cat confdefs.h >>conftest.$ac_ext
11260cat >>conftest.$ac_ext <<_ACEOF
11261/* end confdefs.h. */
11262#include <$ac_header>
11263_ACEOF
11264if { (ac_try="$ac_cpp conftest.$ac_ext"
11265case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11268esac
11269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11271 ac_status=$?
11272 grep -v '^ *+' conftest.er1 >conftest.err
11273 rm -f conftest.er1
11274 cat conftest.err >&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011276 (exit $ac_status); } >/dev/null; then
11277 if test -s conftest.err; then
11278 ac_cpp_err=$ac_c_preproc_warn_flag
11279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11280 else
11281 ac_cpp_err=
11282 fi
11283else
11284 ac_cpp_err=yes
11285fi
11286if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011287 ac_header_preproc=yes
11288else
11289 echo "$as_me: failed program was:" >&5
11290sed 's/^/| /' conftest.$ac_ext >&5
11291
11292 ac_header_preproc=no
11293fi
11294
11295rm -f conftest.err conftest.$ac_ext
11296{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11297echo "${ECHO_T}$ac_header_preproc" >&6; }
11298
11299# So? What about this header?
11300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11301 yes:no: )
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11303echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11305echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11306 ac_header_preproc=yes
11307 ;;
11308 no:yes:* )
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11310echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11312echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11314echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11316echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11320echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11321 ( cat <<\_ASBOX
11322## ----------------------------------- ##
11323## Report this to llvmbugs@cs.uiuc.edu ##
11324## ----------------------------------- ##
11325_ASBOX
11326 ) | sed "s/^/$as_me: WARNING: /" >&2
11327 ;;
11328esac
11329{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333else
11334 eval "$as_ac_Header=\$ac_header_preproc"
11335fi
11336ac_res=`eval echo '${'$as_ac_Header'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338echo "${ECHO_T}$ac_res" >&6; }
11339
11340fi
11341if test `eval echo '${'$as_ac_Header'}'` = yes; then
11342 cat >>confdefs.h <<_ACEOF
11343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11344_ACEOF
11345
11346fi
11347
11348done
11349
11350
11351{ echo "$as_me:$LINENO: checking for error_t" >&5
11352echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11353if test "${ac_cv_type_error_t+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355else
11356 cat >conftest.$ac_ext <<_ACEOF
11357/* confdefs.h. */
11358_ACEOF
11359cat confdefs.h >>conftest.$ac_ext
11360cat >>conftest.$ac_ext <<_ACEOF
11361/* end confdefs.h. */
11362#if HAVE_ARGZ_H
11363# include <argz.h>
11364#endif
11365
11366typedef error_t ac__type_new_;
11367int
11368main ()
11369{
11370if ((ac__type_new_ *) 0)
11371 return 0;
11372if (sizeof (ac__type_new_))
11373 return 0;
11374 ;
11375 return 0;
11376}
11377_ACEOF
11378rm -f conftest.$ac_objext
11379if { (ac_try="$ac_compile"
11380case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11383esac
11384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_compile") 2>conftest.er1
11386 ac_status=$?
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011391 (exit $ac_status); } &&
11392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11393 { (case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396esac
11397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_try") 2>&5
11399 ac_status=$?
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; } &&
11402 { ac_try='test -s conftest.$ac_objext'
11403 { (case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406esac
11407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408 (eval "$ac_try") 2>&5
11409 ac_status=$?
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011412 ac_cv_type_error_t=yes
11413else
11414 echo "$as_me: failed program was:" >&5
11415sed 's/^/| /' conftest.$ac_ext >&5
11416
11417 ac_cv_type_error_t=no
11418fi
11419
11420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421fi
11422{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11423echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11424if test $ac_cv_type_error_t = yes; then
11425
11426cat >>confdefs.h <<_ACEOF
11427#define HAVE_ERROR_T 1
11428_ACEOF
11429
11430
11431else
11432
11433cat >>confdefs.h <<\_ACEOF
11434#define error_t int
11435_ACEOF
11436
11437fi
11438
11439
11440
11441
11442
11443
11444
11445for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11446do
11447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11448{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11450if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11451 echo $ECHO_N "(cached) $ECHO_C" >&6
11452else
11453 cat >conftest.$ac_ext <<_ACEOF
11454/* confdefs.h. */
11455_ACEOF
11456cat confdefs.h >>conftest.$ac_ext
11457cat >>conftest.$ac_ext <<_ACEOF
11458/* end confdefs.h. */
11459/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11461#define $ac_func innocuous_$ac_func
11462
11463/* System header to define __stub macros and hopefully few prototypes,
11464 which can conflict with char $ac_func (); below.
11465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11466 <limits.h> exists even on freestanding compilers. */
11467
11468#ifdef __STDC__
11469# include <limits.h>
11470#else
11471# include <assert.h>
11472#endif
11473
11474#undef $ac_func
11475
11476/* Override any GCC internal prototype to avoid an error.
11477 Use char because int might match the return type of a GCC
11478 builtin and then its argument prototype would still apply. */
11479#ifdef __cplusplus
11480extern "C"
11481#endif
11482char $ac_func ();
11483/* The GNU C library defines this for functions which it implements
11484 to always fail with ENOSYS. Some functions are actually named
11485 something starting with __ and the normal name is an alias. */
11486#if defined __stub_$ac_func || defined __stub___$ac_func
11487choke me
11488#endif
11489
11490int
11491main ()
11492{
11493return $ac_func ();
11494 ;
11495 return 0;
11496}
11497_ACEOF
11498rm -f conftest.$ac_objext conftest$ac_exeext
11499if { (ac_try="$ac_link"
11500case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503esac
11504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11505 (eval "$ac_link") 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011511 (exit $ac_status); } &&
11512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11513 { (case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516esac
11517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_try") 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try='test -s conftest$ac_exeext'
11523 { (case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11526esac
11527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_try") 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011532 eval "$as_ac_var=yes"
11533else
11534 echo "$as_me: failed program was:" >&5
11535sed 's/^/| /' conftest.$ac_ext >&5
11536
11537 eval "$as_ac_var=no"
11538fi
11539
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011540rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011541 conftest$ac_exeext conftest.$ac_ext
11542fi
11543ac_res=`eval echo '${'$as_ac_var'}'`
11544 { echo "$as_me:$LINENO: result: $ac_res" >&5
11545echo "${ECHO_T}$ac_res" >&6; }
11546if test `eval echo '${'$as_ac_var'}'` = yes; then
11547 cat >>confdefs.h <<_ACEOF
11548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11549_ACEOF
11550
11551fi
11552done
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11582 stdio.h unistd.h
11583do
11584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590fi
11591ac_res=`eval echo '${'$as_ac_Header'}'`
11592 { echo "$as_me:$LINENO: result: $ac_res" >&5
11593echo "${ECHO_T}$ac_res" >&6; }
11594else
11595 # Is the header compilable?
11596{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11598cat >conftest.$ac_ext <<_ACEOF
11599/* confdefs.h. */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h. */
11604$ac_includes_default
11605#include <$ac_header>
11606_ACEOF
11607rm -f conftest.$ac_objext
11608if { (ac_try="$ac_compile"
11609case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
11613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_compile") 2>conftest.er1
11615 ac_status=$?
11616 grep -v '^ *+' conftest.er1 >conftest.err
11617 rm -f conftest.er1
11618 cat conftest.err >&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011620 (exit $ac_status); } &&
11621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest.$ac_objext'
11632 { (case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635esac
11636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_try") 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011641 ac_header_compiler=yes
11642else
11643 echo "$as_me: failed program was:" >&5
11644sed 's/^/| /' conftest.$ac_ext >&5
11645
11646 ac_header_compiler=no
11647fi
11648
11649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11651echo "${ECHO_T}$ac_header_compiler" >&6; }
11652
11653# Is the header present?
11654{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11656cat >conftest.$ac_ext <<_ACEOF
11657/* confdefs.h. */
11658_ACEOF
11659cat confdefs.h >>conftest.$ac_ext
11660cat >>conftest.$ac_ext <<_ACEOF
11661/* end confdefs.h. */
11662#include <$ac_header>
11663_ACEOF
11664if { (ac_try="$ac_cpp conftest.$ac_ext"
11665case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668esac
11669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011676 (exit $ac_status); } >/dev/null; then
11677 if test -s conftest.err; then
11678 ac_cpp_err=$ac_c_preproc_warn_flag
11679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11680 else
11681 ac_cpp_err=
11682 fi
11683else
11684 ac_cpp_err=yes
11685fi
11686if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011687 ac_header_preproc=yes
11688else
11689 echo "$as_me: failed program was:" >&5
11690sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 ac_header_preproc=no
11693fi
11694
11695rm -f conftest.err conftest.$ac_ext
11696{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11697echo "${ECHO_T}$ac_header_preproc" >&6; }
11698
11699# So? What about this header?
11700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11701 yes:no: )
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11703echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11705echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11706 ac_header_preproc=yes
11707 ;;
11708 no:yes:* )
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11714echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11716echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11720echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11721 ( cat <<\_ASBOX
11722## ----------------------------------- ##
11723## Report this to llvmbugs@cs.uiuc.edu ##
11724## ----------------------------------- ##
11725_ASBOX
11726 ) | sed "s/^/$as_me: WARNING: /" >&2
11727 ;;
11728esac
11729{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11732 echo $ECHO_N "(cached) $ECHO_C" >&6
11733else
11734 eval "$as_ac_Header=\$ac_header_preproc"
11735fi
11736ac_res=`eval echo '${'$as_ac_Header'}'`
11737 { echo "$as_me:$LINENO: result: $ac_res" >&5
11738echo "${ECHO_T}$ac_res" >&6; }
11739
11740fi
11741if test `eval echo '${'$as_ac_Header'}'` = yes; then
11742 cat >>confdefs.h <<_ACEOF
11743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11744_ACEOF
11745
11746fi
11747
11748done
11749
11750
11751
11752
11753
11754for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11755do
11756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762fi
11763ac_res=`eval echo '${'$as_ac_Header'}'`
11764 { echo "$as_me:$LINENO: result: $ac_res" >&5
11765echo "${ECHO_T}$ac_res" >&6; }
11766else
11767 # Is the header compilable?
11768{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11769echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11770cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
11776$ac_includes_default
11777#include <$ac_header>
11778_ACEOF
11779rm -f conftest.$ac_objext
11780if { (ac_try="$ac_compile"
11781case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11784esac
11785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011792 (exit $ac_status); } &&
11793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11794 { (case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797esac
11798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_try") 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807esac
11808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_try") 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011813 ac_header_compiler=yes
11814else
11815 echo "$as_me: failed program was:" >&5
11816sed 's/^/| /' conftest.$ac_ext >&5
11817
11818 ac_header_compiler=no
11819fi
11820
11821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11823echo "${ECHO_T}$ac_header_compiler" >&6; }
11824
11825# Is the header present?
11826{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11828cat >conftest.$ac_ext <<_ACEOF
11829/* confdefs.h. */
11830_ACEOF
11831cat confdefs.h >>conftest.$ac_ext
11832cat >>conftest.$ac_ext <<_ACEOF
11833/* end confdefs.h. */
11834#include <$ac_header>
11835_ACEOF
11836if { (ac_try="$ac_cpp conftest.$ac_ext"
11837case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11840esac
11841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11843 ac_status=$?
11844 grep -v '^ *+' conftest.er1 >conftest.err
11845 rm -f conftest.er1
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011848 (exit $ac_status); } >/dev/null; then
11849 if test -s conftest.err; then
11850 ac_cpp_err=$ac_c_preproc_warn_flag
11851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11852 else
11853 ac_cpp_err=
11854 fi
11855else
11856 ac_cpp_err=yes
11857fi
11858if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011859 ac_header_preproc=yes
11860else
11861 echo "$as_me: failed program was:" >&5
11862sed 's/^/| /' conftest.$ac_ext >&5
11863
11864 ac_header_preproc=no
11865fi
11866
11867rm -f conftest.err conftest.$ac_ext
11868{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11869echo "${ECHO_T}$ac_header_preproc" >&6; }
11870
11871# So? What about this header?
11872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11873 yes:no: )
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11875echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11877echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11878 ac_header_preproc=yes
11879 ;;
11880 no:yes:* )
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11882echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11884echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11886echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11888echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11890echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11892echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11893 ( cat <<\_ASBOX
11894## ----------------------------------- ##
11895## Report this to llvmbugs@cs.uiuc.edu ##
11896## ----------------------------------- ##
11897_ASBOX
11898 ) | sed "s/^/$as_me: WARNING: /" >&2
11899 ;;
11900esac
11901{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906 eval "$as_ac_Header=\$ac_header_preproc"
11907fi
11908ac_res=`eval echo '${'$as_ac_Header'}'`
11909 { echo "$as_me:$LINENO: result: $ac_res" >&5
11910echo "${ECHO_T}$ac_res" >&6; }
11911
11912fi
11913if test `eval echo '${'$as_ac_Header'}'` = yes; then
11914 cat >>confdefs.h <<_ACEOF
11915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11916_ACEOF
11917
11918fi
11919
11920done
11921
11922
11923
11924for ac_header in string.h strings.h
11925do
11926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932fi
11933ac_res=`eval echo '${'$as_ac_Header'}'`
11934 { echo "$as_me:$LINENO: result: $ac_res" >&5
11935echo "${ECHO_T}$ac_res" >&6; }
11936else
11937 # Is the header compilable?
11938{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11940cat >conftest.$ac_ext <<_ACEOF
11941/* confdefs.h. */
11942_ACEOF
11943cat confdefs.h >>conftest.$ac_ext
11944cat >>conftest.$ac_ext <<_ACEOF
11945/* end confdefs.h. */
11946$ac_includes_default
11947#include <$ac_header>
11948_ACEOF
11949rm -f conftest.$ac_objext
11950if { (ac_try="$ac_compile"
11951case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954esac
11955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_compile") 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011962 (exit $ac_status); } &&
11963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11964 { (case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967esac
11968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_try") 2>&5
11970 ac_status=$?
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; } &&
11973 { ac_try='test -s conftest.$ac_objext'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977esac
11978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011983 ac_header_compiler=yes
11984else
11985 echo "$as_me: failed program was:" >&5
11986sed 's/^/| /' conftest.$ac_ext >&5
11987
11988 ac_header_compiler=no
11989fi
11990
11991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11993echo "${ECHO_T}$ac_header_compiler" >&6; }
11994
11995# Is the header present?
11996{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11998cat >conftest.$ac_ext <<_ACEOF
11999/* confdefs.h. */
12000_ACEOF
12001cat confdefs.h >>conftest.$ac_ext
12002cat >>conftest.$ac_ext <<_ACEOF
12003/* end confdefs.h. */
12004#include <$ac_header>
12005_ACEOF
12006if { (ac_try="$ac_cpp conftest.$ac_ext"
12007case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010esac
12011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12013 ac_status=$?
12014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012018 (exit $ac_status); } >/dev/null; then
12019 if test -s conftest.err; then
12020 ac_cpp_err=$ac_c_preproc_warn_flag
12021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12022 else
12023 ac_cpp_err=
12024 fi
12025else
12026 ac_cpp_err=yes
12027fi
12028if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012029 ac_header_preproc=yes
12030else
12031 echo "$as_me: failed program was:" >&5
12032sed 's/^/| /' conftest.$ac_ext >&5
12033
12034 ac_header_preproc=no
12035fi
12036
12037rm -f conftest.err conftest.$ac_ext
12038{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12039echo "${ECHO_T}$ac_header_preproc" >&6; }
12040
12041# So? What about this header?
12042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12043 yes:no: )
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12045echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12047echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12048 ac_header_preproc=yes
12049 ;;
12050 no:yes:* )
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12052echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12053 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12054echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12055 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12056echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12057 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12058echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12060echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12061 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12062echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12063 ( cat <<\_ASBOX
12064## ----------------------------------- ##
12065## Report this to llvmbugs@cs.uiuc.edu ##
12066## ----------------------------------- ##
12067_ASBOX
12068 ) | sed "s/^/$as_me: WARNING: /" >&2
12069 ;;
12070esac
12071{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075else
12076 eval "$as_ac_Header=\$ac_header_preproc"
12077fi
12078ac_res=`eval echo '${'$as_ac_Header'}'`
12079 { echo "$as_me:$LINENO: result: $ac_res" >&5
12080echo "${ECHO_T}$ac_res" >&6; }
12081
12082fi
12083if test `eval echo '${'$as_ac_Header'}'` = yes; then
12084 cat >>confdefs.h <<_ACEOF
12085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12086_ACEOF
12087 break
12088fi
12089
12090done
12091
12092
12093
12094
12095for ac_func in strchr index
12096do
12097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12098{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102else
12103 cat >conftest.$ac_ext <<_ACEOF
12104/* confdefs.h. */
12105_ACEOF
12106cat confdefs.h >>conftest.$ac_ext
12107cat >>conftest.$ac_ext <<_ACEOF
12108/* end confdefs.h. */
12109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12111#define $ac_func innocuous_$ac_func
12112
12113/* System header to define __stub macros and hopefully few prototypes,
12114 which can conflict with char $ac_func (); below.
12115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116 <limits.h> exists even on freestanding compilers. */
12117
12118#ifdef __STDC__
12119# include <limits.h>
12120#else
12121# include <assert.h>
12122#endif
12123
12124#undef $ac_func
12125
12126/* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12129#ifdef __cplusplus
12130extern "C"
12131#endif
12132char $ac_func ();
12133/* The GNU C library defines this for functions which it implements
12134 to always fail with ENOSYS. Some functions are actually named
12135 something starting with __ and the normal name is an alias. */
12136#if defined __stub_$ac_func || defined __stub___$ac_func
12137choke me
12138#endif
12139
12140int
12141main ()
12142{
12143return $ac_func ();
12144 ;
12145 return 0;
12146}
12147_ACEOF
12148rm -f conftest.$ac_objext conftest$ac_exeext
12149if { (ac_try="$ac_link"
12150case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153esac
12154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_link") 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012161 (exit $ac_status); } &&
12162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12163 { (case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166esac
12167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_try") 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest$ac_exeext'
12173 { (case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12176esac
12177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_try") 2>&5
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012182 eval "$as_ac_var=yes"
12183else
12184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 eval "$as_ac_var=no"
12188fi
12189
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012190rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012191 conftest$ac_exeext conftest.$ac_ext
12192fi
12193ac_res=`eval echo '${'$as_ac_var'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195echo "${ECHO_T}$ac_res" >&6; }
12196if test `eval echo '${'$as_ac_var'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199_ACEOF
12200 break
12201fi
12202done
12203
12204
12205
12206for ac_func in strrchr rindex
12207do
12208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12209{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12211if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12213else
12214 cat >conftest.$ac_ext <<_ACEOF
12215/* confdefs.h. */
12216_ACEOF
12217cat confdefs.h >>conftest.$ac_ext
12218cat >>conftest.$ac_ext <<_ACEOF
12219/* end confdefs.h. */
12220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12222#define $ac_func innocuous_$ac_func
12223
12224/* System header to define __stub macros and hopefully few prototypes,
12225 which can conflict with char $ac_func (); below.
12226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12227 <limits.h> exists even on freestanding compilers. */
12228
12229#ifdef __STDC__
12230# include <limits.h>
12231#else
12232# include <assert.h>
12233#endif
12234
12235#undef $ac_func
12236
12237/* Override any GCC internal prototype to avoid an error.
12238 Use char because int might match the return type of a GCC
12239 builtin and then its argument prototype would still apply. */
12240#ifdef __cplusplus
12241extern "C"
12242#endif
12243char $ac_func ();
12244/* The GNU C library defines this for functions which it implements
12245 to always fail with ENOSYS. Some functions are actually named
12246 something starting with __ and the normal name is an alias. */
12247#if defined __stub_$ac_func || defined __stub___$ac_func
12248choke me
12249#endif
12250
12251int
12252main ()
12253{
12254return $ac_func ();
12255 ;
12256 return 0;
12257}
12258_ACEOF
12259rm -f conftest.$ac_objext conftest$ac_exeext
12260if { (ac_try="$ac_link"
12261case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264esac
12265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_link") 2>conftest.er1
12267 ac_status=$?
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012272 (exit $ac_status); } &&
12273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12274 { (case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277esac
12278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_try") 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest$ac_exeext'
12284 { (case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287esac
12288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_try") 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012293 eval "$as_ac_var=yes"
12294else
12295 echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
12298 eval "$as_ac_var=no"
12299fi
12300
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012301rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012302 conftest$ac_exeext conftest.$ac_ext
12303fi
12304ac_res=`eval echo '${'$as_ac_var'}'`
12305 { echo "$as_me:$LINENO: result: $ac_res" >&5
12306echo "${ECHO_T}$ac_res" >&6; }
12307if test `eval echo '${'$as_ac_var'}'` = yes; then
12308 cat >>confdefs.h <<_ACEOF
12309#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12310_ACEOF
12311 break
12312fi
12313done
12314
12315
12316
12317for ac_func in memcpy bcopy
12318do
12319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12320{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12322if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324else
12325 cat >conftest.$ac_ext <<_ACEOF
12326/* confdefs.h. */
12327_ACEOF
12328cat confdefs.h >>conftest.$ac_ext
12329cat >>conftest.$ac_ext <<_ACEOF
12330/* end confdefs.h. */
12331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12333#define $ac_func innocuous_$ac_func
12334
12335/* System header to define __stub macros and hopefully few prototypes,
12336 which can conflict with char $ac_func (); below.
12337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12338 <limits.h> exists even on freestanding compilers. */
12339
12340#ifdef __STDC__
12341# include <limits.h>
12342#else
12343# include <assert.h>
12344#endif
12345
12346#undef $ac_func
12347
12348/* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
12351#ifdef __cplusplus
12352extern "C"
12353#endif
12354char $ac_func ();
12355/* The GNU C library defines this for functions which it implements
12356 to always fail with ENOSYS. Some functions are actually named
12357 something starting with __ and the normal name is an alias. */
12358#if defined __stub_$ac_func || defined __stub___$ac_func
12359choke me
12360#endif
12361
12362int
12363main ()
12364{
12365return $ac_func ();
12366 ;
12367 return 0;
12368}
12369_ACEOF
12370rm -f conftest.$ac_objext conftest$ac_exeext
12371if { (ac_try="$ac_link"
12372case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375esac
12376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_link") 2>conftest.er1
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012383 (exit $ac_status); } &&
12384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12385 { (case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388esac
12389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_try") 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; } &&
12394 { ac_try='test -s conftest$ac_exeext'
12395 { (case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398esac
12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12400 (eval "$ac_try") 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012404 eval "$as_ac_var=yes"
12405else
12406 echo "$as_me: failed program was:" >&5
12407sed 's/^/| /' conftest.$ac_ext >&5
12408
12409 eval "$as_ac_var=no"
12410fi
12411
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012412rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012413 conftest$ac_exeext conftest.$ac_ext
12414fi
12415ac_res=`eval echo '${'$as_ac_var'}'`
12416 { echo "$as_me:$LINENO: result: $ac_res" >&5
12417echo "${ECHO_T}$ac_res" >&6; }
12418if test `eval echo '${'$as_ac_var'}'` = yes; then
12419 cat >>confdefs.h <<_ACEOF
12420#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12421_ACEOF
12422 break
12423fi
12424done
12425
12426
12427
12428for ac_func in memmove strcmp
12429do
12430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12431{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12433if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12435else
12436 cat >conftest.$ac_ext <<_ACEOF
12437/* confdefs.h. */
12438_ACEOF
12439cat confdefs.h >>conftest.$ac_ext
12440cat >>conftest.$ac_ext <<_ACEOF
12441/* end confdefs.h. */
12442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12444#define $ac_func innocuous_$ac_func
12445
12446/* System header to define __stub macros and hopefully few prototypes,
12447 which can conflict with char $ac_func (); below.
12448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12449 <limits.h> exists even on freestanding compilers. */
12450
12451#ifdef __STDC__
12452# include <limits.h>
12453#else
12454# include <assert.h>
12455#endif
12456
12457#undef $ac_func
12458
12459/* Override any GCC internal prototype to avoid an error.
12460 Use char because int might match the return type of a GCC
12461 builtin and then its argument prototype would still apply. */
12462#ifdef __cplusplus
12463extern "C"
12464#endif
12465char $ac_func ();
12466/* The GNU C library defines this for functions which it implements
12467 to always fail with ENOSYS. Some functions are actually named
12468 something starting with __ and the normal name is an alias. */
12469#if defined __stub_$ac_func || defined __stub___$ac_func
12470choke me
12471#endif
12472
12473int
12474main ()
12475{
12476return $ac_func ();
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext conftest$ac_exeext
12482if { (ac_try="$ac_link"
12483case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486esac
12487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_link") 2>conftest.er1
12489 ac_status=$?
12490 grep -v '^ *+' conftest.er1 >conftest.err
12491 rm -f conftest.er1
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012494 (exit $ac_status); } &&
12495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12496 { (case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12499esac
12500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_try") 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; } &&
12505 { ac_try='test -s conftest$ac_exeext'
12506 { (case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509esac
12510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_try") 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012515 eval "$as_ac_var=yes"
12516else
12517 echo "$as_me: failed program was:" >&5
12518sed 's/^/| /' conftest.$ac_ext >&5
12519
12520 eval "$as_ac_var=no"
12521fi
12522
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012523rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012524 conftest$ac_exeext conftest.$ac_ext
12525fi
12526ac_res=`eval echo '${'$as_ac_var'}'`
12527 { echo "$as_me:$LINENO: result: $ac_res" >&5
12528echo "${ECHO_T}$ac_res" >&6; }
12529if test `eval echo '${'$as_ac_var'}'` = yes; then
12530 cat >>confdefs.h <<_ACEOF
12531#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12532_ACEOF
12533
12534fi
12535done
12536
12537
12538
12539
12540for ac_func in closedir opendir readdir
12541do
12542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12543{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12547else
12548 cat >conftest.$ac_ext <<_ACEOF
12549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
12554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12556#define $ac_func innocuous_$ac_func
12557
12558/* System header to define __stub macros and hopefully few prototypes,
12559 which can conflict with char $ac_func (); below.
12560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12561 <limits.h> exists even on freestanding compilers. */
12562
12563#ifdef __STDC__
12564# include <limits.h>
12565#else
12566# include <assert.h>
12567#endif
12568
12569#undef $ac_func
12570
12571/* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12574#ifdef __cplusplus
12575extern "C"
12576#endif
12577char $ac_func ();
12578/* The GNU C library defines this for functions which it implements
12579 to always fail with ENOSYS. Some functions are actually named
12580 something starting with __ and the normal name is an alias. */
12581#if defined __stub_$ac_func || defined __stub___$ac_func
12582choke me
12583#endif
12584
12585int
12586main ()
12587{
12588return $ac_func ();
12589 ;
12590 return 0;
12591}
12592_ACEOF
12593rm -f conftest.$ac_objext conftest$ac_exeext
12594if { (ac_try="$ac_link"
12595case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598esac
12599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_link") 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012606 (exit $ac_status); } &&
12607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12608 { (case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611esac
12612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_try") 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest$ac_exeext'
12618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621esac
12622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012627 eval "$as_ac_var=yes"
12628else
12629 echo "$as_me: failed program was:" >&5
12630sed 's/^/| /' conftest.$ac_ext >&5
12631
12632 eval "$as_ac_var=no"
12633fi
12634
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012635rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012636 conftest$ac_exeext conftest.$ac_ext
12637fi
12638ac_res=`eval echo '${'$as_ac_var'}'`
12639 { echo "$as_me:$LINENO: result: $ac_res" >&5
12640echo "${ECHO_T}$ac_res" >&6; }
12641if test `eval echo '${'$as_ac_var'}'` = yes; then
12642 cat >>confdefs.h <<_ACEOF
12643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12644_ACEOF
12645
12646fi
12647done
12648
12649
12650# Check whether --enable-shared was given.
12651if test "${enable_shared+set}" = set; then
12652 enableval=$enable_shared; p=${PACKAGE-default}
12653 case $enableval in
12654 yes) enable_shared=yes ;;
12655 no) enable_shared=no ;;
12656 *)
12657 enable_shared=no
12658 # Look at the argument we got. We use all the common list separators.
12659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12660 for pkg in $enableval; do
12661 IFS="$lt_save_ifs"
12662 if test "X$pkg" = "X$p"; then
12663 enable_shared=yes
12664 fi
12665 done
12666 IFS="$lt_save_ifs"
12667 ;;
12668 esac
12669else
12670 enable_shared=yes
12671fi
12672
12673
12674# Check whether --enable-static was given.
12675if test "${enable_static+set}" = set; then
12676 enableval=$enable_static; p=${PACKAGE-default}
12677 case $enableval in
12678 yes) enable_static=yes ;;
12679 no) enable_static=no ;;
12680 *)
12681 enable_static=no
12682 # Look at the argument we got. We use all the common list separators.
12683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12684 for pkg in $enableval; do
12685 IFS="$lt_save_ifs"
12686 if test "X$pkg" = "X$p"; then
12687 enable_static=yes
12688 fi
12689 done
12690 IFS="$lt_save_ifs"
12691 ;;
12692 esac
12693else
12694 enable_static=yes
12695fi
12696
12697
12698# Check whether --enable-fast-install was given.
12699if test "${enable_fast_install+set}" = set; then
12700 enableval=$enable_fast_install; p=${PACKAGE-default}
12701 case $enableval in
12702 yes) enable_fast_install=yes ;;
12703 no) enable_fast_install=no ;;
12704 *)
12705 enable_fast_install=no
12706 # Look at the argument we got. We use all the common list separators.
12707 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12708 for pkg in $enableval; do
12709 IFS="$lt_save_ifs"
12710 if test "X$pkg" = "X$p"; then
12711 enable_fast_install=yes
12712 fi
12713 done
12714 IFS="$lt_save_ifs"
12715 ;;
12716 esac
12717else
12718 enable_fast_install=yes
12719fi
12720
12721
12722{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12723echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12724if test "${lt_cv_path_SED+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727 # Loop through the user's path and test for sed and gsed.
12728# Then use that list of sed's as ones to test for truncation.
12729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730for as_dir in $PATH
12731do
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
12734 for lt_ac_prog in sed gsed; do
12735 for ac_exec_ext in '' $ac_executable_extensions; do
12736 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12737 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12738 fi
12739 done
12740 done
12741done
12742lt_ac_max=0
12743lt_ac_count=0
12744# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12745# along with /bin/sed that truncates output.
12746for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12747 test ! -f $lt_ac_sed && continue
12748 cat /dev/null > conftest.in
12749 lt_ac_count=0
12750 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12751 # Check for GNU sed and select it if it is found.
12752 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12753 lt_cv_path_SED=$lt_ac_sed
12754 break
12755 fi
12756 while true; do
12757 cat conftest.in conftest.in >conftest.tmp
12758 mv conftest.tmp conftest.in
12759 cp conftest.in conftest.nl
12760 echo >>conftest.nl
12761 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12762 cmp -s conftest.out conftest.nl || break
12763 # 10000 chars as input seems more than enough
12764 test $lt_ac_count -gt 10 && break
12765 lt_ac_count=`expr $lt_ac_count + 1`
12766 if test $lt_ac_count -gt $lt_ac_max; then
12767 lt_ac_max=$lt_ac_count
12768 lt_cv_path_SED=$lt_ac_sed
12769 fi
12770 done
12771done
12772
12773fi
12774
12775SED=$lt_cv_path_SED
12776{ echo "$as_me:$LINENO: result: $SED" >&5
12777echo "${ECHO_T}$SED" >&6; }
12778
12779
12780# Check whether --with-gnu-ld was given.
12781if test "${with_gnu_ld+set}" = set; then
12782 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12783else
12784 with_gnu_ld=no
12785fi
12786
12787ac_prog=ld
12788if test "$GCC" = yes; then
12789 # Check if gcc -print-prog-name=ld gives a path.
12790 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12791echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12792 case $host in
12793 *-*-mingw*)
12794 # gcc leaves a trailing carriage return which upsets mingw
12795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12796 *)
12797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12798 esac
12799 case $ac_prog in
12800 # Accept absolute paths.
12801 [\\/]* | ?:[\\/]*)
12802 re_direlt='/[^/][^/]*/\.\./'
12803 # Canonicalize the pathname of ld
12804 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12805 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12806 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12807 done
12808 test -z "$LD" && LD="$ac_prog"
12809 ;;
12810 "")
12811 # If it fails, then pretend we aren't using GCC.
12812 ac_prog=ld
12813 ;;
12814 *)
12815 # If it is relative, then search for the first ld in PATH.
12816 with_gnu_ld=unknown
12817 ;;
12818 esac
12819elif test "$with_gnu_ld" = yes; then
12820 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12821echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12822else
12823 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12824echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12825fi
12826if test "${lt_cv_path_LD+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828else
12829 if test -z "$LD"; then
12830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12831 for ac_dir in $PATH; do
12832 IFS="$lt_save_ifs"
12833 test -z "$ac_dir" && ac_dir=.
12834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12835 lt_cv_path_LD="$ac_dir/$ac_prog"
12836 # Check to see if the program is GNU ld. I'd rather use --version,
12837 # but apparently some variants of GNU ld only accept -v.
12838 # Break only if it was the GNU/non-GNU ld that we prefer.
12839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12840 *GNU* | *'with BFD'*)
12841 test "$with_gnu_ld" != no && break
12842 ;;
12843 *)
12844 test "$with_gnu_ld" != yes && break
12845 ;;
12846 esac
12847 fi
12848 done
12849 IFS="$lt_save_ifs"
12850else
12851 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12852fi
12853fi
12854
12855LD="$lt_cv_path_LD"
12856if test -n "$LD"; then
12857 { echo "$as_me:$LINENO: result: $LD" >&5
12858echo "${ECHO_T}$LD" >&6; }
12859else
12860 { echo "$as_me:$LINENO: result: no" >&5
12861echo "${ECHO_T}no" >&6; }
12862fi
12863test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12864echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12865 { (exit 1); exit 1; }; }
12866{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12867echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12868if test "${lt_cv_prog_gnu_ld+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12870else
12871 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12872case `$LD -v 2>&1 </dev/null` in
12873*GNU* | *'with BFD'*)
12874 lt_cv_prog_gnu_ld=yes
12875 ;;
12876*)
12877 lt_cv_prog_gnu_ld=no
12878 ;;
12879esac
12880fi
12881{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12882echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12883with_gnu_ld=$lt_cv_prog_gnu_ld
12884
12885
12886{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12887echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12888if test "${lt_cv_ld_reload_flag+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890else
12891 lt_cv_ld_reload_flag='-r'
12892fi
12893{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12894echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12895reload_flag=$lt_cv_ld_reload_flag
12896case $reload_flag in
12897"" | " "*) ;;
12898*) reload_flag=" $reload_flag" ;;
12899esac
12900reload_cmds='$LD$reload_flag -o $output$reload_objs'
12901case $host_os in
12902 darwin*)
12903 if test "$GCC" = yes; then
12904 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12905 else
12906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12907 fi
12908 ;;
12909esac
12910
12911{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12912echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12913if test "${lt_cv_deplibs_check_method+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915else
12916 lt_cv_file_magic_cmd='$MAGIC_CMD'
12917lt_cv_file_magic_test_file=
12918lt_cv_deplibs_check_method='unknown'
12919# Need to set the preceding variable on all platforms that support
12920# interlibrary dependencies.
12921# 'none' -- dependencies not supported.
12922# `unknown' -- same as none, but documents that we really don't know.
12923# 'pass_all' -- all dependencies passed with no checks.
12924# 'test_compile' -- check by making test program.
12925# 'file_magic [[regex]]' -- check by looking for files in library path
12926# which responds to the $file_magic_cmd with a given extended regex.
12927# If you have `file' or equivalent on your system and you're not sure
12928# whether `pass_all' will *always* work, you probably want this one.
12929
12930case $host_os in
12931aix4* | aix5*)
12932 lt_cv_deplibs_check_method=pass_all
12933 ;;
12934
12935beos*)
12936 lt_cv_deplibs_check_method=pass_all
12937 ;;
12938
12939bsdi[45]*)
12940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12941 lt_cv_file_magic_cmd='/usr/bin/file -L'
12942 lt_cv_file_magic_test_file=/shlib/libc.so
12943 ;;
12944
12945cygwin*)
12946 # func_win32_libid is a shell function defined in ltmain.sh
12947 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12948 lt_cv_file_magic_cmd='func_win32_libid'
12949 ;;
12950
12951mingw* | pw32*)
12952 # Base MSYS/MinGW do not provide the 'file' command needed by
12953 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12954 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12955 lt_cv_file_magic_cmd='$OBJDUMP -f'
12956 ;;
12957
12958darwin* | rhapsody*)
12959 lt_cv_deplibs_check_method=pass_all
12960 ;;
12961
12962freebsd* | kfreebsd*-gnu | dragonfly*)
12963 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12964 case $host_cpu in
12965 i*86 )
12966 # Not sure whether the presence of OpenBSD here was a mistake.
12967 # Let's accept both of them until this is cleared up.
12968 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12969 lt_cv_file_magic_cmd=/usr/bin/file
12970 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12971 ;;
12972 esac
12973 else
12974 lt_cv_deplibs_check_method=pass_all
12975 fi
12976 ;;
12977
12978gnu*)
12979 lt_cv_deplibs_check_method=pass_all
12980 ;;
12981
12982hpux10.20* | hpux11*)
12983 lt_cv_file_magic_cmd=/usr/bin/file
12984 case $host_cpu in
12985 ia64*)
12986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12987 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12988 ;;
12989 hppa*64*)
12990 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]'
12991 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12992 ;;
12993 *)
12994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12995 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12996 ;;
12997 esac
12998 ;;
12999
13000interix3*)
13001 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13002 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13003 ;;
13004
13005irix5* | irix6* | nonstopux*)
13006 case $LD in
13007 *-32|*"-32 ") libmagic=32-bit;;
13008 *-n32|*"-n32 ") libmagic=N32;;
13009 *-64|*"-64 ") libmagic=64-bit;;
13010 *) libmagic=never-match;;
13011 esac
13012 lt_cv_deplibs_check_method=pass_all
13013 ;;
13014
13015# This must be Linux ELF.
13016linux*)
13017 lt_cv_deplibs_check_method=pass_all
13018 ;;
13019
13020netbsd*)
13021 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
13022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13023 else
13024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13025 fi
13026 ;;
13027
13028newos6*)
13029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13030 lt_cv_file_magic_cmd=/usr/bin/file
13031 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13032 ;;
13033
13034nto-qnx*)
13035 lt_cv_deplibs_check_method=unknown
13036 ;;
13037
13038openbsd*)
13039 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13041 else
13042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13043 fi
13044 ;;
13045
13046osf3* | osf4* | osf5*)
13047 lt_cv_deplibs_check_method=pass_all
13048 ;;
13049
13050solaris*)
13051 lt_cv_deplibs_check_method=pass_all
13052 ;;
13053
13054sysv4 | sysv4.3*)
13055 case $host_vendor in
13056 motorola)
13057 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]'
13058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13059 ;;
13060 ncr)
13061 lt_cv_deplibs_check_method=pass_all
13062 ;;
13063 sequent)
13064 lt_cv_file_magic_cmd='/bin/file'
13065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13066 ;;
13067 sni)
13068 lt_cv_file_magic_cmd='/bin/file'
13069 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13070 lt_cv_file_magic_test_file=/lib/libc.so
13071 ;;
13072 siemens)
13073 lt_cv_deplibs_check_method=pass_all
13074 ;;
13075 pc)
13076 lt_cv_deplibs_check_method=pass_all
13077 ;;
13078 esac
13079 ;;
13080
13081sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13082 lt_cv_deplibs_check_method=pass_all
13083 ;;
13084esac
13085
13086fi
13087{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13088echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
13089file_magic_cmd=$lt_cv_file_magic_cmd
13090deplibs_check_method=$lt_cv_deplibs_check_method
13091test -z "$deplibs_check_method" && deplibs_check_method=unknown
13092
13093
13094
13095# If no C compiler was specified, use CC.
13096LTCC=${LTCC-"$CC"}
13097
13098# If no C compiler flags were specified, use CFLAGS.
13099LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13100
13101# Allow CC to be a program name with arguments.
13102compiler=$CC
13103
13104# Check whether --enable-libtool-lock was given.
13105if test "${enable_libtool_lock+set}" = set; then
13106 enableval=$enable_libtool_lock;
13107fi
13108
13109test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13110
13111# Some flags need to be propagated to the compiler or linker for good
13112# libtool support.
13113case $host in
13114ia64-*-hpux*)
13115 # Find out which ABI we are using.
13116 echo 'int i;' > conftest.$ac_ext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118 (eval $ac_compile) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; then
13122 case `/usr/bin/file conftest.$ac_objext` in
13123 *ELF-32*)
13124 HPUX_IA64_MODE="32"
13125 ;;
13126 *ELF-64*)
13127 HPUX_IA64_MODE="64"
13128 ;;
13129 esac
13130 fi
13131 rm -rf conftest*
13132 ;;
13133*-*-irix6*)
13134 # Find out which ABI we are using.
Anton Korobeynikov1207b902009-08-18 00:40:51 +000013135 echo '#line 13135 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13137 (eval $ac_compile) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; then
13141 if test "$lt_cv_prog_gnu_ld" = yes; then
13142 case `/usr/bin/file conftest.$ac_objext` in
13143 *32-bit*)
13144 LD="${LD-ld} -melf32bsmip"
13145 ;;
13146 *N32*)
13147 LD="${LD-ld} -melf32bmipn32"
13148 ;;
13149 *64-bit*)
13150 LD="${LD-ld} -melf64bmip"
13151 ;;
13152 esac
13153 else
13154 case `/usr/bin/file conftest.$ac_objext` in
13155 *32-bit*)
13156 LD="${LD-ld} -32"
13157 ;;
13158 *N32*)
13159 LD="${LD-ld} -n32"
13160 ;;
13161 *64-bit*)
13162 LD="${LD-ld} -64"
13163 ;;
13164 esac
13165 fi
13166 fi
13167 rm -rf conftest*
13168 ;;
13169
13170x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13171 # Find out which ABI we are using.
13172 echo 'int i;' > conftest.$ac_ext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13174 (eval $ac_compile) 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; then
13178 case `/usr/bin/file conftest.o` in
13179 *32-bit*)
13180 case $host in
13181 x86_64-*linux*)
13182 LD="${LD-ld} -m elf_i386"
13183 ;;
13184 ppc64-*linux*|powerpc64-*linux*)
13185 LD="${LD-ld} -m elf32ppclinux"
13186 ;;
13187 s390x-*linux*)
13188 LD="${LD-ld} -m elf_s390"
13189 ;;
13190 sparc64-*linux*)
13191 LD="${LD-ld} -m elf32_sparc"
13192 ;;
13193 esac
13194 ;;
13195 *64-bit*)
13196 case $host in
13197 x86_64-*linux*)
13198 LD="${LD-ld} -m elf_x86_64"
13199 ;;
13200 ppc*-*linux*|powerpc*-*linux*)
13201 LD="${LD-ld} -m elf64ppc"
13202 ;;
13203 s390*-*linux*)
13204 LD="${LD-ld} -m elf64_s390"
13205 ;;
13206 sparc*-*linux*)
13207 LD="${LD-ld} -m elf64_sparc"
13208 ;;
13209 esac
13210 ;;
13211 esac
13212 fi
13213 rm -rf conftest*
13214 ;;
13215
13216*-*-sco3.2v5*)
13217 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13218 SAVE_CFLAGS="$CFLAGS"
13219 CFLAGS="$CFLAGS -belf"
13220 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13221echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
13222if test "${lt_cv_cc_needs_belf+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13224else
13225 ac_ext=c
13226ac_cpp='$CPP $CPPFLAGS'
13227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229ac_compiler_gnu=$ac_cv_c_compiler_gnu
13230
13231 cat >conftest.$ac_ext <<_ACEOF
13232/* confdefs.h. */
13233_ACEOF
13234cat confdefs.h >>conftest.$ac_ext
13235cat >>conftest.$ac_ext <<_ACEOF
13236/* end confdefs.h. */
13237
13238int
13239main ()
13240{
13241
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext conftest$ac_exeext
13247if { (ac_try="$ac_link"
13248case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251esac
13252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_link") 2>conftest.er1
13254 ac_status=$?
13255 grep -v '^ *+' conftest.er1 >conftest.err
13256 rm -f conftest.er1
13257 cat conftest.err >&5
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013259 (exit $ac_status); } &&
13260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13261 { (case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264esac
13265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_try") 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest$ac_exeext'
13271 { (case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13274esac
13275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_try") 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013280 lt_cv_cc_needs_belf=yes
13281else
13282 echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 lt_cv_cc_needs_belf=no
13286fi
13287
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013288rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013289 conftest$ac_exeext conftest.$ac_ext
13290 ac_ext=c
13291ac_cpp='$CPP $CPPFLAGS'
13292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13294ac_compiler_gnu=$ac_cv_c_compiler_gnu
13295
13296fi
13297{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13298echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
13299 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13300 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13301 CFLAGS="$SAVE_CFLAGS"
13302 fi
13303 ;;
13304sparc*-*solaris*)
13305 # Find out which ABI we are using.
13306 echo 'int i;' > conftest.$ac_ext
13307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13308 (eval $ac_compile) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; then
13312 case `/usr/bin/file conftest.o` in
13313 *64-bit*)
13314 case $lt_cv_prog_gnu_ld in
13315 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13316 *) LD="${LD-ld} -64" ;;
13317 esac
13318 ;;
13319 esac
13320 fi
13321 rm -rf conftest*
13322 ;;
13323
13324
13325esac
13326
13327need_locks="$enable_libtool_lock"
13328
13329
13330
13331
13332if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13333 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13334 (test "X$CXX" != "Xg++"))) ; then
13335 ac_ext=cpp
13336ac_cpp='$CXXCPP $CPPFLAGS'
13337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13340{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13341echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13342if test -z "$CXXCPP"; then
13343 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13345else
13346 # Double quotes because CXXCPP needs to be expanded
13347 for CXXCPP in "$CXX -E" "/lib/cpp"
13348 do
13349 ac_preproc_ok=false
13350for ac_cxx_preproc_warn_flag in '' yes
13351do
13352 # Use a header file that comes with gcc, so configuring glibc
13353 # with a fresh cross-compiler works.
13354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13355 # <limits.h> exists even on freestanding compilers.
13356 # On the NeXT, cc -E runs the code through the compiler's parser,
13357 # not just through cpp. "Syntax error" is here to catch this case.
13358 cat >conftest.$ac_ext <<_ACEOF
13359/* confdefs.h. */
13360_ACEOF
13361cat confdefs.h >>conftest.$ac_ext
13362cat >>conftest.$ac_ext <<_ACEOF
13363/* end confdefs.h. */
13364#ifdef __STDC__
13365# include <limits.h>
13366#else
13367# include <assert.h>
13368#endif
13369 Syntax error
13370_ACEOF
13371if { (ac_try="$ac_cpp conftest.$ac_ext"
13372case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375esac
13376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013383 (exit $ac_status); } >/dev/null; then
13384 if test -s conftest.err; then
13385 ac_cpp_err=$ac_cxx_preproc_warn_flag
13386 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13387 else
13388 ac_cpp_err=
13389 fi
13390else
13391 ac_cpp_err=yes
13392fi
13393if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013394 :
13395else
13396 echo "$as_me: failed program was:" >&5
13397sed 's/^/| /' conftest.$ac_ext >&5
13398
13399 # Broken: fails on valid input.
13400continue
13401fi
13402
13403rm -f conftest.err conftest.$ac_ext
13404
13405 # OK, works on sane cases. Now check whether nonexistent headers
13406 # can be detected and how.
13407 cat >conftest.$ac_ext <<_ACEOF
13408/* confdefs.h. */
13409_ACEOF
13410cat confdefs.h >>conftest.$ac_ext
13411cat >>conftest.$ac_ext <<_ACEOF
13412/* end confdefs.h. */
13413#include <ac_nonexistent.h>
13414_ACEOF
13415if { (ac_try="$ac_cpp conftest.$ac_ext"
13416case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419esac
13420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013427 (exit $ac_status); } >/dev/null; then
13428 if test -s conftest.err; then
13429 ac_cpp_err=$ac_cxx_preproc_warn_flag
13430 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13431 else
13432 ac_cpp_err=
13433 fi
13434else
13435 ac_cpp_err=yes
13436fi
13437if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013438 # Broken: success on invalid input.
13439continue
13440else
13441 echo "$as_me: failed program was:" >&5
13442sed 's/^/| /' conftest.$ac_ext >&5
13443
13444 # Passes both tests.
13445ac_preproc_ok=:
13446break
13447fi
13448
13449rm -f conftest.err conftest.$ac_ext
13450
13451done
13452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13453rm -f conftest.err conftest.$ac_ext
13454if $ac_preproc_ok; then
13455 break
13456fi
13457
13458 done
13459 ac_cv_prog_CXXCPP=$CXXCPP
13460
13461fi
13462 CXXCPP=$ac_cv_prog_CXXCPP
13463else
13464 ac_cv_prog_CXXCPP=$CXXCPP
13465fi
13466{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13467echo "${ECHO_T}$CXXCPP" >&6; }
13468ac_preproc_ok=false
13469for ac_cxx_preproc_warn_flag in '' yes
13470do
13471 # Use a header file that comes with gcc, so configuring glibc
13472 # with a fresh cross-compiler works.
13473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13474 # <limits.h> exists even on freestanding compilers.
13475 # On the NeXT, cc -E runs the code through the compiler's parser,
13476 # not just through cpp. "Syntax error" is here to catch this case.
13477 cat >conftest.$ac_ext <<_ACEOF
13478/* confdefs.h. */
13479_ACEOF
13480cat confdefs.h >>conftest.$ac_ext
13481cat >>conftest.$ac_ext <<_ACEOF
13482/* end confdefs.h. */
13483#ifdef __STDC__
13484# include <limits.h>
13485#else
13486# include <assert.h>
13487#endif
13488 Syntax error
13489_ACEOF
13490if { (ac_try="$ac_cpp conftest.$ac_ext"
13491case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13494esac
13495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13497 ac_status=$?
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013502 (exit $ac_status); } >/dev/null; then
13503 if test -s conftest.err; then
13504 ac_cpp_err=$ac_cxx_preproc_warn_flag
13505 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13506 else
13507 ac_cpp_err=
13508 fi
13509else
13510 ac_cpp_err=yes
13511fi
13512if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013513 :
13514else
13515 echo "$as_me: failed program was:" >&5
13516sed 's/^/| /' conftest.$ac_ext >&5
13517
13518 # Broken: fails on valid input.
13519continue
13520fi
13521
13522rm -f conftest.err conftest.$ac_ext
13523
13524 # OK, works on sane cases. Now check whether nonexistent headers
13525 # can be detected and how.
13526 cat >conftest.$ac_ext <<_ACEOF
13527/* confdefs.h. */
13528_ACEOF
13529cat confdefs.h >>conftest.$ac_ext
13530cat >>conftest.$ac_ext <<_ACEOF
13531/* end confdefs.h. */
13532#include <ac_nonexistent.h>
13533_ACEOF
13534if { (ac_try="$ac_cpp conftest.$ac_ext"
13535case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13538esac
13539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13541 ac_status=$?
13542 grep -v '^ *+' conftest.er1 >conftest.err
13543 rm -f conftest.er1
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013546 (exit $ac_status); } >/dev/null; then
13547 if test -s conftest.err; then
13548 ac_cpp_err=$ac_cxx_preproc_warn_flag
13549 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13550 else
13551 ac_cpp_err=
13552 fi
13553else
13554 ac_cpp_err=yes
13555fi
13556if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013557 # Broken: success on invalid input.
13558continue
13559else
13560 echo "$as_me: failed program was:" >&5
13561sed 's/^/| /' conftest.$ac_ext >&5
13562
13563 # Passes both tests.
13564ac_preproc_ok=:
13565break
13566fi
13567
13568rm -f conftest.err conftest.$ac_ext
13569
13570done
13571# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13572rm -f conftest.err conftest.$ac_ext
13573if $ac_preproc_ok; then
13574 :
13575else
13576 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13577See \`config.log' for more details." >&5
13578echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13579See \`config.log' for more details." >&2;}
13580 { (exit 1); exit 1; }; }
13581fi
13582
13583ac_ext=cpp
13584ac_cpp='$CXXCPP $CPPFLAGS'
13585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13588
13589fi
13590
13591
13592ac_ext=f
13593ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13594ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13595ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13596if test -n "$ac_tool_prefix"; then
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013597 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 +000013598 do
13599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13603if test "${ac_cv_prog_F77+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605else
13606 if test -n "$F77"; then
13607 ac_cv_prog_F77="$F77" # Let the user override the test.
13608else
13609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610for as_dir in $PATH
13611do
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013615 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 +000013616 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13618 break 2
13619 fi
13620done
13621done
13622IFS=$as_save_IFS
13623
13624fi
13625fi
13626F77=$ac_cv_prog_F77
13627if test -n "$F77"; then
13628 { echo "$as_me:$LINENO: result: $F77" >&5
13629echo "${ECHO_T}$F77" >&6; }
13630else
13631 { echo "$as_me:$LINENO: result: no" >&5
13632echo "${ECHO_T}no" >&6; }
13633fi
13634
13635
13636 test -n "$F77" && break
13637 done
13638fi
13639if test -z "$F77"; then
13640 ac_ct_F77=$F77
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013641 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 +000013642do
13643 # Extract the first word of "$ac_prog", so it can be a program name with args.
13644set dummy $ac_prog; ac_word=$2
13645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13647if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13649else
13650 if test -n "$ac_ct_F77"; then
13651 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13652else
13653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654for as_dir in $PATH
13655do
13656 IFS=$as_save_IFS
13657 test -z "$as_dir" && as_dir=.
13658 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013659 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 +000013660 ac_cv_prog_ac_ct_F77="$ac_prog"
13661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13662 break 2
13663 fi
13664done
13665done
13666IFS=$as_save_IFS
13667
13668fi
13669fi
13670ac_ct_F77=$ac_cv_prog_ac_ct_F77
13671if test -n "$ac_ct_F77"; then
13672 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13673echo "${ECHO_T}$ac_ct_F77" >&6; }
13674else
13675 { echo "$as_me:$LINENO: result: no" >&5
13676echo "${ECHO_T}no" >&6; }
13677fi
13678
13679
13680 test -n "$ac_ct_F77" && break
13681done
13682
13683 if test "x$ac_ct_F77" = x; then
13684 F77=""
13685 else
13686 case $cross_compiling:$ac_tool_warned in
13687yes:)
13688{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13689whose name does not start with the host triplet. If you think this
13690configuration is useful to you, please write to autoconf@gnu.org." >&5
13691echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13692whose name does not start with the host triplet. If you think this
13693configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13694ac_tool_warned=yes ;;
13695esac
13696 F77=$ac_ct_F77
13697 fi
13698fi
13699
13700
13701# Provide some information about the compiler.
13702echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13703ac_compiler=`set X $ac_compile; echo $2`
13704{ (ac_try="$ac_compiler --version >&5"
13705case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13708esac
13709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_compiler --version >&5") 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }
13714{ (ac_try="$ac_compiler -v >&5"
13715case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718esac
13719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_compiler -v >&5") 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }
13724{ (ac_try="$ac_compiler -V >&5"
13725case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13728esac
13729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_compiler -V >&5") 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }
13734rm -f a.out
13735
13736# If we don't use `.F' as extension, the preprocessor is not run on the
13737# input file. (Note that this only needs to work for GNU compilers.)
13738ac_save_ext=$ac_ext
13739ac_ext=F
13740{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13741echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13742if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744else
13745 cat >conftest.$ac_ext <<_ACEOF
13746 program main
13747#ifndef __GNUC__
13748 choke me
13749#endif
13750
13751 end
13752_ACEOF
13753rm -f conftest.$ac_objext
13754if { (ac_try="$ac_compile"
13755case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758esac
13759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_compile") 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771esac
13772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781esac
13782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013787 ac_compiler_gnu=yes
13788else
13789 echo "$as_me: failed program was:" >&5
13790sed 's/^/| /' conftest.$ac_ext >&5
13791
13792 ac_compiler_gnu=no
13793fi
13794
13795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13796ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13797
13798fi
13799{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13800echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13801ac_ext=$ac_save_ext
13802ac_test_FFLAGS=${FFLAGS+set}
13803ac_save_FFLAGS=$FFLAGS
13804FFLAGS=
13805{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13806echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13807if test "${ac_cv_prog_f77_g+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810 FFLAGS=-g
13811cat >conftest.$ac_ext <<_ACEOF
13812 program main
13813
13814 end
13815_ACEOF
13816rm -f conftest.$ac_objext
13817if { (ac_try="$ac_compile"
13818case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13821esac
13822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_compile") 2>conftest.er1
13824 ac_status=$?
13825 grep -v '^ *+' conftest.er1 >conftest.err
13826 rm -f conftest.er1
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013829 (exit $ac_status); } &&
13830 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13831 { (case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13834esac
13835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_try") 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; } &&
13840 { ac_try='test -s conftest.$ac_objext'
13841 { (case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844esac
13845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_try") 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013850 ac_cv_prog_f77_g=yes
13851else
13852 echo "$as_me: failed program was:" >&5
13853sed 's/^/| /' conftest.$ac_ext >&5
13854
13855 ac_cv_prog_f77_g=no
13856fi
13857
13858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13859
13860fi
13861{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13862echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13863if test "$ac_test_FFLAGS" = set; then
13864 FFLAGS=$ac_save_FFLAGS
13865elif test $ac_cv_prog_f77_g = yes; then
13866 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13867 FFLAGS="-g -O2"
13868 else
13869 FFLAGS="-g"
13870 fi
13871else
13872 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13873 FFLAGS="-O2"
13874 else
13875 FFLAGS=
13876 fi
13877fi
13878
13879G77=`test $ac_compiler_gnu = yes && echo yes`
13880ac_ext=c
13881ac_cpp='$CPP $CPPFLAGS'
13882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13884ac_compiler_gnu=$ac_cv_c_compiler_gnu
13885
13886
13887
13888# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13889
13890# find the maximum length of command line arguments
13891{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13892echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13893if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13895else
13896 i=0
13897 teststring="ABCD"
13898
13899 case $build_os in
13900 msdosdjgpp*)
13901 # On DJGPP, this test can blow up pretty badly due to problems in libc
13902 # (any single argument exceeding 2000 bytes causes a buffer overrun
13903 # during glob expansion). Even if it were fixed, the result of this
13904 # check would be larger than it should be.
13905 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13906 ;;
13907
13908 gnu*)
13909 # Under GNU Hurd, this test is not required because there is
13910 # no limit to the length of command line arguments.
13911 # Libtool will interpret -1 as no limit whatsoever
13912 lt_cv_sys_max_cmd_len=-1;
13913 ;;
13914
13915 cygwin* | mingw*)
13916 # On Win9x/ME, this test blows up -- it succeeds, but takes
13917 # about 5 minutes as the teststring grows exponentially.
13918 # Worse, since 9x/ME are not pre-emptively multitasking,
13919 # you end up with a "frozen" computer, even though with patience
13920 # the test eventually succeeds (with a max line length of 256k).
13921 # Instead, let's just punt: use the minimum linelength reported by
13922 # all of the supported platforms: 8192 (on NT/2K/XP).
13923 lt_cv_sys_max_cmd_len=8192;
13924 ;;
13925
13926 amigaos*)
13927 # On AmigaOS with pdksh, this test takes hours, literally.
13928 # So we just punt and use a minimum line length of 8192.
13929 lt_cv_sys_max_cmd_len=8192;
13930 ;;
13931
13932 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13933 # This has been around since 386BSD, at least. Likely further.
13934 if test -x /sbin/sysctl; then
13935 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13936 elif test -x /usr/sbin/sysctl; then
13937 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13938 else
13939 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13940 fi
13941 # And add a safety zone
13942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13944 ;;
13945
13946 interix*)
13947 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13948 lt_cv_sys_max_cmd_len=196608
13949 ;;
13950
13951 osf*)
13952 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13953 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13954 # nice to cause kernel panics so lets avoid the loop below.
13955 # First set a reasonable default.
13956 lt_cv_sys_max_cmd_len=16384
13957 #
13958 if test -x /sbin/sysconfig; then
13959 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13960 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13961 esac
13962 fi
13963 ;;
13964 sco3.2v5*)
13965 lt_cv_sys_max_cmd_len=102400
13966 ;;
13967 sysv5* | sco5v6* | sysv4.2uw2*)
13968 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13969 if test -n "$kargmax"; then
13970 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13971 else
13972 lt_cv_sys_max_cmd_len=32768
13973 fi
13974 ;;
13975 *)
13976 # If test is not a shell built-in, we'll probably end up computing a
13977 # maximum length that is only half of the actual maximum length, but
13978 # we can't tell.
13979 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13980 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13981 = "XX$teststring") >/dev/null 2>&1 &&
13982 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13983 lt_cv_sys_max_cmd_len=$new_result &&
13984 test $i != 17 # 1/2 MB should be enough
13985 do
13986 i=`expr $i + 1`
13987 teststring=$teststring$teststring
13988 done
13989 teststring=
13990 # Add a significant safety factor because C++ compilers can tack on massive
13991 # amounts of additional arguments before passing them to the linker.
13992 # It appears as though 1/2 is a usable value.
13993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13994 ;;
13995 esac
13996
13997fi
13998
13999if test -n $lt_cv_sys_max_cmd_len ; then
14000 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14001echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
14002else
14003 { echo "$as_me:$LINENO: result: none" >&5
14004echo "${ECHO_T}none" >&6; }
14005fi
14006
14007
14008
14009
14010# Check for command to grab the raw symbol name followed by C symbol from nm.
14011{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14012echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
14013if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015else
14016
14017# These are sane defaults that work on at least a few old systems.
14018# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14019
14020# Character class describing NM global symbol codes.
14021symcode='[BCDEGRST]'
14022
14023# Regexp to match symbols that can be accessed directly from C.
14024sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14025
14026# Transform an extracted symbol line into a proper C declaration
14027lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14028
14029# Transform an extracted symbol line into symbol name and symbol address
14030lt_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'"
14031
14032# Define system-specific variables.
14033case $host_os in
14034aix*)
14035 symcode='[BCDT]'
14036 ;;
14037cygwin* | mingw* | pw32*)
14038 symcode='[ABCDGISTW]'
14039 ;;
14040hpux*) # Its linker distinguishes data from code symbols
14041 if test "$host_cpu" = ia64; then
14042 symcode='[ABCDEGRST]'
14043 fi
14044 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14045 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'"
14046 ;;
14047linux*)
14048 if test "$host_cpu" = ia64; then
14049 symcode='[ABCDGIRSTW]'
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 fi
14053 ;;
14054irix* | nonstopux*)
14055 symcode='[BCDEGRST]'
14056 ;;
14057osf*)
14058 symcode='[BCDEGQRST]'
14059 ;;
14060solaris*)
14061 symcode='[BDRT]'
14062 ;;
14063sco3.2v5*)
14064 symcode='[DT]'
14065 ;;
14066sysv4.2uw2*)
14067 symcode='[DT]'
14068 ;;
14069sysv5* | sco5v6* | unixware* | OpenUNIX*)
14070 symcode='[ABDT]'
14071 ;;
14072sysv4)
14073 symcode='[DFNSTU]'
14074 ;;
14075esac
14076
14077# Handle CRLF in mingw tool chain
14078opt_cr=
14079case $build_os in
14080mingw*)
14081 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14082 ;;
14083esac
14084
14085# If we're using GNU nm, then use its standard symbol codes.
14086case `$NM -V 2>&1` in
14087*GNU* | *'with BFD'*)
14088 symcode='[ABCDGIRSTW]' ;;
14089esac
14090
14091# Try without a prefix undercore, then with it.
14092for ac_symprfx in "" "_"; do
14093
14094 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14095 symxfrm="\\1 $ac_symprfx\\2 \\2"
14096
14097 # Write the raw and C identifiers.
14098 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14099
14100 # Check to see that the pipe works correctly.
14101 pipe_works=no
14102
14103 rm -f conftest*
14104 cat > conftest.$ac_ext <<EOF
14105#ifdef __cplusplus
14106extern "C" {
14107#endif
14108char nm_test_var;
14109void nm_test_func(){}
14110#ifdef __cplusplus
14111}
14112#endif
14113int main(){nm_test_var='a';nm_test_func();return(0);}
14114EOF
14115
14116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14117 (eval $ac_compile) 2>&5
14118 ac_status=$?
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; then
14121 # Now try to grab the symbols.
14122 nlist=conftest.nm
14123 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14124 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } && test -s "$nlist"; then
14128 # Try sorting and uniquifying the output.
14129 if sort "$nlist" | uniq > "$nlist"T; then
14130 mv -f "$nlist"T "$nlist"
14131 else
14132 rm -f "$nlist"T
14133 fi
14134
14135 # Make sure that we snagged all the symbols we need.
14136 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14137 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14138 cat <<EOF > conftest.$ac_ext
14139#ifdef __cplusplus
14140extern "C" {
14141#endif
14142
14143EOF
14144 # Now generate the symbol file.
14145 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14146
14147 cat <<EOF >> conftest.$ac_ext
14148#if defined (__STDC__) && __STDC__
14149# define lt_ptr_t void *
14150#else
14151# define lt_ptr_t char *
14152# define const
14153#endif
14154
14155/* The mapping between symbol names and symbols. */
14156const struct {
14157 const char *name;
14158 lt_ptr_t address;
14159}
14160lt_preloaded_symbols[] =
14161{
14162EOF
14163 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14164 cat <<\EOF >> conftest.$ac_ext
14165 {0, (lt_ptr_t) 0}
14166};
14167
14168#ifdef __cplusplus
14169}
14170#endif
14171EOF
14172 # Now try linking the two files.
14173 mv conftest.$ac_objext conftstm.$ac_objext
14174 lt_save_LIBS="$LIBS"
14175 lt_save_CFLAGS="$CFLAGS"
14176 LIBS="conftstm.$ac_objext"
14177 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14179 (eval $ac_link) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14183 pipe_works=yes
14184 fi
14185 LIBS="$lt_save_LIBS"
14186 CFLAGS="$lt_save_CFLAGS"
14187 else
14188 echo "cannot find nm_test_func in $nlist" >&5
14189 fi
14190 else
14191 echo "cannot find nm_test_var in $nlist" >&5
14192 fi
14193 else
14194 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14195 fi
14196 else
14197 echo "$progname: failed program was:" >&5
14198 cat conftest.$ac_ext >&5
14199 fi
14200 rm -f conftest* conftst*
14201
14202 # Do not use the global_symbol_pipe unless it works.
14203 if test "$pipe_works" = yes; then
14204 break
14205 else
14206 lt_cv_sys_global_symbol_pipe=
14207 fi
14208done
14209
14210fi
14211
14212if test -z "$lt_cv_sys_global_symbol_pipe"; then
14213 lt_cv_sys_global_symbol_to_cdecl=
14214fi
14215if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14216 { echo "$as_me:$LINENO: result: failed" >&5
14217echo "${ECHO_T}failed" >&6; }
14218else
14219 { echo "$as_me:$LINENO: result: ok" >&5
14220echo "${ECHO_T}ok" >&6; }
14221fi
14222
14223{ echo "$as_me:$LINENO: checking for objdir" >&5
14224echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
14225if test "${lt_cv_objdir+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14227else
14228 rm -f .libs 2>/dev/null
14229mkdir .libs 2>/dev/null
14230if test -d .libs; then
14231 lt_cv_objdir=.libs
14232else
14233 # MS-DOS does not allow filenames that begin with a dot.
14234 lt_cv_objdir=_libs
14235fi
14236rmdir .libs 2>/dev/null
14237fi
14238{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14239echo "${ECHO_T}$lt_cv_objdir" >&6; }
14240objdir=$lt_cv_objdir
14241
14242
14243
14244
14245
14246case $host_os in
14247aix3*)
14248 # AIX sometimes has problems with the GCC collect2 program. For some
14249 # reason, if we set the COLLECT_NAMES environment variable, the problems
14250 # vanish in a puff of smoke.
14251 if test "X${COLLECT_NAMES+set}" != Xset; then
14252 COLLECT_NAMES=
14253 export COLLECT_NAMES
14254 fi
14255 ;;
14256esac
14257
14258# Sed substitution that helps us do robust quoting. It backslashifies
14259# metacharacters that are still active within double-quoted strings.
14260Xsed='sed -e 1s/^X//'
14261sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14262
14263# Same as above, but do not quote variable references.
14264double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14265
14266# Sed substitution to delay expansion of an escaped shell variable in a
14267# double_quote_subst'ed string.
14268delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14269
14270# Sed substitution to avoid accidental globbing in evaled expressions
14271no_glob_subst='s/\*/\\\*/g'
14272
14273# Constants:
14274rm="rm -f"
14275
14276# Global variables:
14277default_ofile=mklib
14278can_build_shared=yes
14279
14280# All known linkers require a `.a' archive for static linking (except MSVC,
14281# which needs '.lib').
14282libext=a
14283ltmain="$ac_aux_dir/ltmain.sh"
14284ofile="$default_ofile"
14285with_gnu_ld="$lt_cv_prog_gnu_ld"
14286
14287if test -n "$ac_tool_prefix"; then
14288 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14289set dummy ${ac_tool_prefix}ar; ac_word=$2
14290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14292if test "${ac_cv_prog_AR+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14294else
14295 if test -n "$AR"; then
14296 ac_cv_prog_AR="$AR" # Let the user override the test.
14297else
14298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299for as_dir in $PATH
14300do
14301 IFS=$as_save_IFS
14302 test -z "$as_dir" && as_dir=.
14303 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014304 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 +000014305 ac_cv_prog_AR="${ac_tool_prefix}ar"
14306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14307 break 2
14308 fi
14309done
14310done
14311IFS=$as_save_IFS
14312
14313fi
14314fi
14315AR=$ac_cv_prog_AR
14316if test -n "$AR"; then
14317 { echo "$as_me:$LINENO: result: $AR" >&5
14318echo "${ECHO_T}$AR" >&6; }
14319else
14320 { echo "$as_me:$LINENO: result: no" >&5
14321echo "${ECHO_T}no" >&6; }
14322fi
14323
14324
14325fi
14326if test -z "$ac_cv_prog_AR"; then
14327 ac_ct_AR=$AR
14328 # Extract the first word of "ar", so it can be a program name with args.
14329set dummy ar; ac_word=$2
14330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14332if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14333 echo $ECHO_N "(cached) $ECHO_C" >&6
14334else
14335 if test -n "$ac_ct_AR"; then
14336 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14337else
14338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14339for as_dir in $PATH
14340do
14341 IFS=$as_save_IFS
14342 test -z "$as_dir" && as_dir=.
14343 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014344 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 +000014345 ac_cv_prog_ac_ct_AR="ar"
14346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14347 break 2
14348 fi
14349done
14350done
14351IFS=$as_save_IFS
14352
14353fi
14354fi
14355ac_ct_AR=$ac_cv_prog_ac_ct_AR
14356if test -n "$ac_ct_AR"; then
14357 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14358echo "${ECHO_T}$ac_ct_AR" >&6; }
14359else
14360 { echo "$as_me:$LINENO: result: no" >&5
14361echo "${ECHO_T}no" >&6; }
14362fi
14363
14364 if test "x$ac_ct_AR" = x; then
14365 AR="false"
14366 else
14367 case $cross_compiling:$ac_tool_warned in
14368yes:)
14369{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14370whose name does not start with the host triplet. If you think this
14371configuration is useful to you, please write to autoconf@gnu.org." >&5
14372echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14373whose name does not start with the host triplet. If you think this
14374configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14375ac_tool_warned=yes ;;
14376esac
14377 AR=$ac_ct_AR
14378 fi
14379else
14380 AR="$ac_cv_prog_AR"
14381fi
14382
14383if test -n "$ac_tool_prefix"; then
14384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14385set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14388if test "${ac_cv_prog_RANLIB+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14390else
14391 if test -n "$RANLIB"; then
14392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14393else
14394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395for as_dir in $PATH
14396do
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
14399 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014400 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 +000014401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14403 break 2
14404 fi
14405done
14406done
14407IFS=$as_save_IFS
14408
14409fi
14410fi
14411RANLIB=$ac_cv_prog_RANLIB
14412if test -n "$RANLIB"; then
14413 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14414echo "${ECHO_T}$RANLIB" >&6; }
14415else
14416 { echo "$as_me:$LINENO: result: no" >&5
14417echo "${ECHO_T}no" >&6; }
14418fi
14419
14420
14421fi
14422if test -z "$ac_cv_prog_RANLIB"; then
14423 ac_ct_RANLIB=$RANLIB
14424 # Extract the first word of "ranlib", so it can be a program name with args.
14425set dummy ranlib; ac_word=$2
14426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14428if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14430else
14431 if test -n "$ac_ct_RANLIB"; then
14432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14433else
14434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14435for as_dir in $PATH
14436do
14437 IFS=$as_save_IFS
14438 test -z "$as_dir" && as_dir=.
14439 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014440 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 +000014441 ac_cv_prog_ac_ct_RANLIB="ranlib"
14442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14443 break 2
14444 fi
14445done
14446done
14447IFS=$as_save_IFS
14448
14449fi
14450fi
14451ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14452if test -n "$ac_ct_RANLIB"; then
14453 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14454echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14455else
14456 { echo "$as_me:$LINENO: result: no" >&5
14457echo "${ECHO_T}no" >&6; }
14458fi
14459
14460 if test "x$ac_ct_RANLIB" = x; then
14461 RANLIB=":"
14462 else
14463 case $cross_compiling:$ac_tool_warned in
14464yes:)
14465{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14466whose name does not start with the host triplet. If you think this
14467configuration is useful to you, please write to autoconf@gnu.org." >&5
14468echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14469whose name does not start with the host triplet. If you think this
14470configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14471ac_tool_warned=yes ;;
14472esac
14473 RANLIB=$ac_ct_RANLIB
14474 fi
14475else
14476 RANLIB="$ac_cv_prog_RANLIB"
14477fi
14478
14479if test -n "$ac_tool_prefix"; then
14480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14481set dummy ${ac_tool_prefix}strip; ac_word=$2
14482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14484if test "${ac_cv_prog_STRIP+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
14486else
14487 if test -n "$STRIP"; then
14488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14489else
14490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14491for as_dir in $PATH
14492do
14493 IFS=$as_save_IFS
14494 test -z "$as_dir" && as_dir=.
14495 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014496 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 +000014497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14499 break 2
14500 fi
14501done
14502done
14503IFS=$as_save_IFS
14504
14505fi
14506fi
14507STRIP=$ac_cv_prog_STRIP
14508if test -n "$STRIP"; then
14509 { echo "$as_me:$LINENO: result: $STRIP" >&5
14510echo "${ECHO_T}$STRIP" >&6; }
14511else
14512 { echo "$as_me:$LINENO: result: no" >&5
14513echo "${ECHO_T}no" >&6; }
14514fi
14515
14516
14517fi
14518if test -z "$ac_cv_prog_STRIP"; then
14519 ac_ct_STRIP=$STRIP
14520 # Extract the first word of "strip", so it can be a program name with args.
14521set dummy strip; ac_word=$2
14522{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14524if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14526else
14527 if test -n "$ac_ct_STRIP"; then
14528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14529else
14530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531for as_dir in $PATH
14532do
14533 IFS=$as_save_IFS
14534 test -z "$as_dir" && as_dir=.
14535 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014536 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 +000014537 ac_cv_prog_ac_ct_STRIP="strip"
14538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14539 break 2
14540 fi
14541done
14542done
14543IFS=$as_save_IFS
14544
14545fi
14546fi
14547ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14548if test -n "$ac_ct_STRIP"; then
14549 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14550echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14551else
14552 { echo "$as_me:$LINENO: result: no" >&5
14553echo "${ECHO_T}no" >&6; }
14554fi
14555
14556 if test "x$ac_ct_STRIP" = x; then
14557 STRIP=":"
14558 else
14559 case $cross_compiling:$ac_tool_warned in
14560yes:)
14561{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14562whose name does not start with the host triplet. If you think this
14563configuration is useful to you, please write to autoconf@gnu.org." >&5
14564echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14565whose name does not start with the host triplet. If you think this
14566configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14567ac_tool_warned=yes ;;
14568esac
14569 STRIP=$ac_ct_STRIP
14570 fi
14571else
14572 STRIP="$ac_cv_prog_STRIP"
14573fi
14574
14575
14576old_CC="$CC"
14577old_CFLAGS="$CFLAGS"
14578
14579# Set sane defaults for various variables
14580test -z "$AR" && AR=ar
14581test -z "$AR_FLAGS" && AR_FLAGS=cru
14582test -z "$AS" && AS=as
14583test -z "$CC" && CC=cc
14584test -z "$LTCC" && LTCC=$CC
14585test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14586test -z "$DLLTOOL" && DLLTOOL=dlltool
14587test -z "$LD" && LD=ld
14588test -z "$LN_S" && LN_S="ln -s"
14589test -z "$MAGIC_CMD" && MAGIC_CMD=file
14590test -z "$NM" && NM=nm
14591test -z "$SED" && SED=sed
14592test -z "$OBJDUMP" && OBJDUMP=objdump
14593test -z "$RANLIB" && RANLIB=:
14594test -z "$STRIP" && STRIP=:
14595test -z "$ac_objext" && ac_objext=o
14596
14597# Determine commands to create old-style static archives.
14598old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14599old_postinstall_cmds='chmod 644 $oldlib'
14600old_postuninstall_cmds=
14601
14602if test -n "$RANLIB"; then
14603 case $host_os in
14604 openbsd*)
14605 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14606 ;;
14607 *)
14608 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14609 ;;
14610 esac
14611 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14612fi
14613
14614for cc_temp in $compiler""; do
14615 case $cc_temp in
14616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14618 \-*) ;;
14619 *) break;;
14620 esac
14621done
14622cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14623
14624
14625# Only perform the check for file, if the check method requires it
14626case $deplibs_check_method in
14627file_magic*)
14628 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14629 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14630echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14631if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633else
14634 case $MAGIC_CMD in
14635[\\/*] | ?:[\\/]*)
14636 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14637 ;;
14638*)
14639 lt_save_MAGIC_CMD="$MAGIC_CMD"
14640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14642 for ac_dir in $ac_dummy; do
14643 IFS="$lt_save_ifs"
14644 test -z "$ac_dir" && ac_dir=.
14645 if test -f $ac_dir/${ac_tool_prefix}file; then
14646 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14647 if test -n "$file_magic_test_file"; then
14648 case $deplibs_check_method in
14649 "file_magic "*)
14650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14653 $EGREP "$file_magic_regex" > /dev/null; then
14654 :
14655 else
14656 cat <<EOF 1>&2
14657
14658*** Warning: the command libtool uses to detect shared libraries,
14659*** $file_magic_cmd, produces output that libtool cannot recognize.
14660*** The result is that libtool may fail to recognize shared libraries
14661*** as such. This will affect the creation of libtool libraries that
14662*** depend on shared libraries, but programs linked with such libtool
14663*** libraries will work regardless of this problem. Nevertheless, you
14664*** may want to report the problem to your system manager and/or to
14665*** bug-libtool@gnu.org
14666
14667EOF
14668 fi ;;
14669 esac
14670 fi
14671 break
14672 fi
14673 done
14674 IFS="$lt_save_ifs"
14675 MAGIC_CMD="$lt_save_MAGIC_CMD"
14676 ;;
14677esac
14678fi
14679
14680MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14681if test -n "$MAGIC_CMD"; then
14682 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14683echo "${ECHO_T}$MAGIC_CMD" >&6; }
14684else
14685 { echo "$as_me:$LINENO: result: no" >&5
14686echo "${ECHO_T}no" >&6; }
14687fi
14688
14689if test -z "$lt_cv_path_MAGIC_CMD"; then
14690 if test -n "$ac_tool_prefix"; then
14691 { echo "$as_me:$LINENO: checking for file" >&5
14692echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14693if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14694 echo $ECHO_N "(cached) $ECHO_C" >&6
14695else
14696 case $MAGIC_CMD in
14697[\\/*] | ?:[\\/]*)
14698 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14699 ;;
14700*)
14701 lt_save_MAGIC_CMD="$MAGIC_CMD"
14702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14703 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14704 for ac_dir in $ac_dummy; do
14705 IFS="$lt_save_ifs"
14706 test -z "$ac_dir" && ac_dir=.
14707 if test -f $ac_dir/file; then
14708 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14709 if test -n "$file_magic_test_file"; then
14710 case $deplibs_check_method in
14711 "file_magic "*)
14712 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14714 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14715 $EGREP "$file_magic_regex" > /dev/null; then
14716 :
14717 else
14718 cat <<EOF 1>&2
14719
14720*** Warning: the command libtool uses to detect shared libraries,
14721*** $file_magic_cmd, produces output that libtool cannot recognize.
14722*** The result is that libtool may fail to recognize shared libraries
14723*** as such. This will affect the creation of libtool libraries that
14724*** depend on shared libraries, but programs linked with such libtool
14725*** libraries will work regardless of this problem. Nevertheless, you
14726*** may want to report the problem to your system manager and/or to
14727*** bug-libtool@gnu.org
14728
14729EOF
14730 fi ;;
14731 esac
14732 fi
14733 break
14734 fi
14735 done
14736 IFS="$lt_save_ifs"
14737 MAGIC_CMD="$lt_save_MAGIC_CMD"
14738 ;;
14739esac
14740fi
14741
14742MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14743if test -n "$MAGIC_CMD"; then
14744 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14745echo "${ECHO_T}$MAGIC_CMD" >&6; }
14746else
14747 { echo "$as_me:$LINENO: result: no" >&5
14748echo "${ECHO_T}no" >&6; }
14749fi
14750
14751 else
14752 MAGIC_CMD=:
14753 fi
14754fi
14755
14756 fi
14757 ;;
14758esac
14759
14760enable_dlopen=yes
14761enable_win32_dll=no
14762
14763# Check whether --enable-libtool-lock was given.
14764if test "${enable_libtool_lock+set}" = set; then
14765 enableval=$enable_libtool_lock;
14766fi
14767
14768test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14769
14770
14771# Check whether --with-pic was given.
14772if test "${with_pic+set}" = set; then
14773 withval=$with_pic; pic_mode="$withval"
14774else
14775 pic_mode=default
14776fi
14777
14778test -z "$pic_mode" && pic_mode=default
14779
14780# Use C for the default configuration in the libtool script
14781tagname=
14782lt_save_CC="$CC"
14783ac_ext=c
14784ac_cpp='$CPP $CPPFLAGS'
14785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14787ac_compiler_gnu=$ac_cv_c_compiler_gnu
14788
14789
14790# Source file extension for C test sources.
14791ac_ext=c
14792
14793# Object file extension for compiled C test sources.
14794objext=o
14795objext=$objext
14796
14797# Code to be used in simple compile tests
14798lt_simple_compile_test_code="int some_variable = 0;\n"
14799
14800# Code to be used in simple link tests
14801lt_simple_link_test_code='int main(){return(0);}\n'
14802
14803
14804# If no C compiler was specified, use CC.
14805LTCC=${LTCC-"$CC"}
14806
14807# If no C compiler flags were specified, use CFLAGS.
14808LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14809
14810# Allow CC to be a program name with arguments.
14811compiler=$CC
14812
14813
14814# save warnings/boilerplate of simple test code
14815ac_outfile=conftest.$ac_objext
14816printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14817eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14818_lt_compiler_boilerplate=`cat conftest.err`
14819$rm conftest*
14820
14821ac_outfile=conftest.$ac_objext
14822printf "$lt_simple_link_test_code" >conftest.$ac_ext
14823eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14824_lt_linker_boilerplate=`cat conftest.err`
14825$rm conftest*
14826
14827
14828
14829lt_prog_compiler_no_builtin_flag=
14830
14831if test "$GCC" = yes; then
14832 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14833
14834
14835{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14836echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14837if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14839else
14840 lt_cv_prog_compiler_rtti_exceptions=no
14841 ac_outfile=conftest.$ac_objext
14842 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14843 lt_compiler_flag="-fno-rtti -fno-exceptions"
14844 # Insert the option either (1) after the last *FLAGS variable, or
14845 # (2) before a word containing "conftest.", or (3) at the end.
14846 # Note that $ac_compile itself does not contain backslashes and begins
14847 # with a dollar sign (not a hyphen), so the echo should work correctly.
14848 # The option is referenced via a variable to avoid confusing sed.
14849 lt_compile=`echo "$ac_compile" | $SED \
14850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14852 -e 's:$: $lt_compiler_flag:'`
Anton Korobeynikov1207b902009-08-18 00:40:51 +000014853 (eval echo "\"\$as_me:14853: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014854 (eval "$lt_compile" 2>conftest.err)
14855 ac_status=$?
14856 cat conftest.err >&5
Anton Korobeynikov1207b902009-08-18 00:40:51 +000014857 echo "$as_me:14857: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014858 if (exit $ac_status) && test -s "$ac_outfile"; then
14859 # The compiler can only warn and ignore the option if not recognized
14860 # So say no if there are warnings other than the usual output.
14861 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14864 lt_cv_prog_compiler_rtti_exceptions=yes
14865 fi
14866 fi
14867 $rm conftest*
14868
14869fi
14870{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14871echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14872
14873if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14874 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14875else
14876 :
14877fi
14878
14879fi
14880
14881lt_prog_compiler_wl=
14882lt_prog_compiler_pic=
14883lt_prog_compiler_static=
14884
14885{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14886echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14887
14888 if test "$GCC" = yes; then
14889 lt_prog_compiler_wl='-Wl,'
14890 lt_prog_compiler_static='-static'
14891
14892 case $host_os in
14893 aix*)
14894 # All AIX code is PIC.
14895 if test "$host_cpu" = ia64; then
14896 # AIX 5 now supports IA64 processor
14897 lt_prog_compiler_static='-Bstatic'
14898 fi
14899 ;;
14900
14901 amigaos*)
14902 # FIXME: we need at least 68020 code to build shared libraries, but
14903 # adding the `-m68020' flag to GCC prevents building anything better,
14904 # like `-m68040'.
14905 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14906 ;;
14907
14908 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14909 # PIC is the default for these OSes.
14910 ;;
14911
14912 mingw* | pw32* | os2*)
14913 # This hack is so that the source file can tell whether it is being
14914 # built for inclusion in a dll (and should export symbols for example).
14915 lt_prog_compiler_pic='-DDLL_EXPORT'
14916 ;;
14917
14918 darwin* | rhapsody*)
14919 # PIC is the default on this platform
14920 # Common symbols not allowed in MH_DYLIB files
14921 lt_prog_compiler_pic='-fno-common'
14922 ;;
14923
14924 interix3*)
14925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14926 # Instead, we relocate shared libraries at runtime.
14927 ;;
14928
14929 msdosdjgpp*)
14930 # Just because we use GCC doesn't mean we suddenly get shared libraries
14931 # on systems that don't support them.
14932 lt_prog_compiler_can_build_shared=no
14933 enable_shared=no
14934 ;;
14935
14936 sysv4*MP*)
14937 if test -d /usr/nec; then
14938 lt_prog_compiler_pic=-Kconform_pic
14939 fi
14940 ;;
14941
14942 hpux*)
14943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14944 # not for PA HP-UX.
14945 case $host_cpu in
14946 hppa*64*|ia64*)
14947 # +Z the default
14948 ;;
14949 *)
14950 lt_prog_compiler_pic='-fPIC'
14951 ;;
14952 esac
14953 ;;
14954
14955 *)
14956 lt_prog_compiler_pic='-fPIC'
14957 ;;
14958 esac
14959 else
14960 # PORTME Check for flag to pass linker flags through the system compiler.
14961 case $host_os in
14962 aix*)
14963 lt_prog_compiler_wl='-Wl,'
14964 if test "$host_cpu" = ia64; then
14965 # AIX 5 now supports IA64 processor
14966 lt_prog_compiler_static='-Bstatic'
14967 else
14968 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14969 fi
14970 ;;
14971 darwin*)
14972 # PIC is the default on this platform
14973 # Common symbols not allowed in MH_DYLIB files
14974 case $cc_basename in
14975 xlc*)
14976 lt_prog_compiler_pic='-qnocommon'
14977 lt_prog_compiler_wl='-Wl,'
14978 ;;
14979 esac
14980 ;;
14981
14982 mingw* | pw32* | os2*)
14983 # This hack is so that the source file can tell whether it is being
14984 # built for inclusion in a dll (and should export symbols for example).
14985 lt_prog_compiler_pic='-DDLL_EXPORT'
14986 ;;
14987
14988 hpux9* | hpux10* | hpux11*)
14989 lt_prog_compiler_wl='-Wl,'
14990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14991 # not for PA HP-UX.
14992 case $host_cpu in
14993 hppa*64*|ia64*)
14994 # +Z the default
14995 ;;
14996 *)
14997 lt_prog_compiler_pic='+Z'
14998 ;;
14999 esac
15000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15001 lt_prog_compiler_static='${wl}-a ${wl}archive'
15002 ;;
15003
15004 irix5* | irix6* | nonstopux*)
15005 lt_prog_compiler_wl='-Wl,'
15006 # PIC (with -KPIC) is the default.
15007 lt_prog_compiler_static='-non_shared'
15008 ;;
15009
15010 newsos6)
15011 lt_prog_compiler_pic='-KPIC'
15012 lt_prog_compiler_static='-Bstatic'
15013 ;;
15014
15015 linux*)
15016 case $cc_basename in
15017 icc* | ecc*)
15018 lt_prog_compiler_wl='-Wl,'
15019 lt_prog_compiler_pic='-KPIC'
15020 lt_prog_compiler_static='-static'
15021 ;;
15022 pgcc* | pgf77* | pgf90* | pgf95*)
15023 # Portland Group compilers (*not* the Pentium gcc compiler,
15024 # which looks to be a dead project)
15025 lt_prog_compiler_wl='-Wl,'
15026 lt_prog_compiler_pic='-fpic'
15027 lt_prog_compiler_static='-Bstatic'
15028 ;;
15029 ccc*)
15030 lt_prog_compiler_wl='-Wl,'
15031 # All Alpha code is PIC.
15032 lt_prog_compiler_static='-non_shared'
15033 ;;
15034 esac
15035 ;;
15036
15037 osf3* | osf4* | osf5*)
15038 lt_prog_compiler_wl='-Wl,'
15039 # All OSF/1 code is PIC.
15040 lt_prog_compiler_static='-non_shared'
15041 ;;
15042
15043 solaris*)
15044 lt_prog_compiler_pic='-KPIC'
15045 lt_prog_compiler_static='-Bstatic'
15046 case $cc_basename in
15047 f77* | f90* | f95*)
15048 lt_prog_compiler_wl='-Qoption ld ';;
15049 *)
15050 lt_prog_compiler_wl='-Wl,';;
15051 esac
15052 ;;
15053
15054 sunos4*)
15055 lt_prog_compiler_wl='-Qoption ld '
15056 lt_prog_compiler_pic='-PIC'
15057 lt_prog_compiler_static='-Bstatic'
15058 ;;
15059
15060 sysv4 | sysv4.2uw2* | sysv4.3*)
15061 lt_prog_compiler_wl='-Wl,'
15062 lt_prog_compiler_pic='-KPIC'
15063 lt_prog_compiler_static='-Bstatic'
15064 ;;
15065
15066 sysv4*MP*)
15067 if test -d /usr/nec ;then
15068 lt_prog_compiler_pic='-Kconform_pic'
15069 lt_prog_compiler_static='-Bstatic'
15070 fi
15071 ;;
15072
15073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15074 lt_prog_compiler_wl='-Wl,'
15075 lt_prog_compiler_pic='-KPIC'
15076 lt_prog_compiler_static='-Bstatic'
15077 ;;
15078
15079 unicos*)
15080 lt_prog_compiler_wl='-Wl,'
15081 lt_prog_compiler_can_build_shared=no
15082 ;;
15083
15084 uts4*)
15085 lt_prog_compiler_pic='-pic'
15086 lt_prog_compiler_static='-Bstatic'
15087 ;;
15088
15089 *)
15090 lt_prog_compiler_can_build_shared=no
15091 ;;
15092 esac
15093 fi
15094
15095{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15096echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
15097
15098#
15099# Check to make sure the PIC flag actually works.
15100#
15101if test -n "$lt_prog_compiler_pic"; then
15102
15103{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15104echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
15105if test "${lt_prog_compiler_pic_works+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107else
15108 lt_prog_compiler_pic_works=no
15109 ac_outfile=conftest.$ac_objext
15110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15112 # Insert the option either (1) after the last *FLAGS variable, or
15113 # (2) before a word containing "conftest.", or (3) at the end.
15114 # Note that $ac_compile itself does not contain backslashes and begins
15115 # with a dollar sign (not a hyphen), so the echo should work correctly.
15116 # The option is referenced via a variable to avoid confusing sed.
15117 lt_compile=`echo "$ac_compile" | $SED \
15118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15120 -e 's:$: $lt_compiler_flag:'`
Anton Korobeynikov1207b902009-08-18 00:40:51 +000015121 (eval echo "\"\$as_me:15121: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015122 (eval "$lt_compile" 2>conftest.err)
15123 ac_status=$?
15124 cat conftest.err >&5
Anton Korobeynikov1207b902009-08-18 00:40:51 +000015125 echo "$as_me:15125: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015126 if (exit $ac_status) && test -s "$ac_outfile"; then
15127 # The compiler can only warn and ignore the option if not recognized
15128 # So say no if there are warnings other than the usual output.
15129 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15132 lt_prog_compiler_pic_works=yes
15133 fi
15134 fi
15135 $rm conftest*
15136
15137fi
15138{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15139echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
15140
15141if test x"$lt_prog_compiler_pic_works" = xyes; then
15142 case $lt_prog_compiler_pic in
15143 "" | " "*) ;;
15144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15145 esac
15146else
15147 lt_prog_compiler_pic=
15148 lt_prog_compiler_can_build_shared=no
15149fi
15150
15151fi
15152case $host_os in
15153 # For platforms which do not support PIC, -DPIC is meaningless:
15154 *djgpp*)
15155 lt_prog_compiler_pic=
15156 ;;
15157 *)
15158 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15159 ;;
15160esac
15161
15162#
15163# Check to make sure the static flag actually works.
15164#
15165wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15166{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15167echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15168if test "${lt_prog_compiler_static_works+set}" = set; then
15169 echo $ECHO_N "(cached) $ECHO_C" >&6
15170else
15171 lt_prog_compiler_static_works=no
15172 save_LDFLAGS="$LDFLAGS"
15173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15174 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15176 # The linker can only warn and ignore the option if not recognized
15177 # So say no if there are warnings
15178 if test -s conftest.err; then
15179 # Append any errors to the config.log.
15180 cat conftest.err 1>&5
15181 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15183 if diff conftest.exp conftest.er2 >/dev/null; then
15184 lt_prog_compiler_static_works=yes
15185 fi
15186 else
15187 lt_prog_compiler_static_works=yes
15188 fi
15189 fi
15190 $rm conftest*
15191 LDFLAGS="$save_LDFLAGS"
15192
15193fi
15194{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15195echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15196
15197if test x"$lt_prog_compiler_static_works" = xyes; then
15198 :
15199else
15200 lt_prog_compiler_static=
15201fi
15202
15203
15204{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15205echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15206if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15207 echo $ECHO_N "(cached) $ECHO_C" >&6
15208else
15209 lt_cv_prog_compiler_c_o=no
15210 $rm -r conftest 2>/dev/null
15211 mkdir conftest
15212 cd conftest
15213 mkdir out
15214 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15215
15216 lt_compiler_flag="-o out/conftest2.$ac_objext"
15217 # Insert the option either (1) after the last *FLAGS variable, or
15218 # (2) before a word containing "conftest.", or (3) at the end.
15219 # Note that $ac_compile itself does not contain backslashes and begins
15220 # with a dollar sign (not a hyphen), so the echo should work correctly.
15221 lt_compile=`echo "$ac_compile" | $SED \
15222 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15224 -e 's:$: $lt_compiler_flag:'`
Anton Korobeynikov1207b902009-08-18 00:40:51 +000015225 (eval echo "\"\$as_me:15225: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015226 (eval "$lt_compile" 2>out/conftest.err)
15227 ac_status=$?
15228 cat out/conftest.err >&5
Anton Korobeynikov1207b902009-08-18 00:40:51 +000015229 echo "$as_me:15229: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15231 then
15232 # The compiler can only warn and ignore the option if not recognized
15233 # So say no if there are warnings
15234 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15235 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15236 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15237 lt_cv_prog_compiler_c_o=yes
15238 fi
15239 fi
15240 chmod u+w . 2>&5
15241 $rm conftest*
15242 # SGI C++ compiler will create directory out/ii_files/ for
15243 # template instantiation
15244 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15245 $rm out/* && rmdir out
15246 cd ..
15247 rmdir conftest
15248 $rm conftest*
15249
15250fi
15251{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15252echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
15253
15254
15255hard_links="nottested"
15256if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15257 # do not overwrite the value of need_locks provided by the user
15258 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15259echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15260 hard_links=yes
15261 $rm conftest*
15262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15263 touch conftest.a
15264 ln conftest.a conftest.b 2>&5 || hard_links=no
15265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15266 { echo "$as_me:$LINENO: result: $hard_links" >&5
15267echo "${ECHO_T}$hard_links" >&6; }
15268 if test "$hard_links" = no; then
15269 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15270echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15271 need_locks=warn
15272 fi
15273else
15274 need_locks=no
15275fi
15276
15277{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15278echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15279
15280 runpath_var=
15281 allow_undefined_flag=
15282 enable_shared_with_static_runtimes=no
15283 archive_cmds=
15284 archive_expsym_cmds=
15285 old_archive_From_new_cmds=
15286 old_archive_from_expsyms_cmds=
15287 export_dynamic_flag_spec=
15288 whole_archive_flag_spec=
15289 thread_safe_flag_spec=
15290 hardcode_libdir_flag_spec=
15291 hardcode_libdir_flag_spec_ld=
15292 hardcode_libdir_separator=
15293 hardcode_direct=no
15294 hardcode_minus_L=no
15295 hardcode_shlibpath_var=unsupported
15296 link_all_deplibs=unknown
15297 hardcode_automatic=no
15298 module_cmds=
15299 module_expsym_cmds=
15300 always_export_symbols=no
15301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15302 # include_expsyms should be a list of space-separated symbols to be *always*
15303 # included in the symbol list
15304 include_expsyms=
15305 # exclude_expsyms can be an extended regexp of symbols to exclude
15306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15308 # as well as any symbol that contains `d'.
15309 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15311 # platforms (ab)use it in PIC code, but their linkers get confused if
15312 # the symbol is explicitly referenced. Since portable code cannot
15313 # rely on this symbol name, it's probably fine to never include it in
15314 # preloaded symbol tables.
15315 extract_expsyms_cmds=
15316 # Just being paranoid about ensuring that cc_basename is set.
15317 for cc_temp in $compiler""; do
15318 case $cc_temp in
15319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15321 \-*) ;;
15322 *) break;;
15323 esac
15324done
15325cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15326
15327 case $host_os in
15328 cygwin* | mingw* | pw32*)
15329 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15330 # When not using gcc, we currently assume that we are using
15331 # Microsoft Visual C++.
15332 if test "$GCC" != yes; then
15333 with_gnu_ld=no
15334 fi
15335 ;;
15336 interix*)
15337 # we just hope/assume this is gcc and not c89 (= MSVC++)
15338 with_gnu_ld=yes
15339 ;;
15340 openbsd*)
15341 with_gnu_ld=no
15342 ;;
15343 esac
15344
15345 ld_shlibs=yes
15346 if test "$with_gnu_ld" = yes; then
15347 # If archive_cmds runs LD, not CC, wlarc should be empty
15348 wlarc='${wl}'
15349
15350 # Set some defaults for GNU ld with shared library support. These
15351 # are reset later if shared libraries are not supported. Putting them
15352 # here allows them to be overridden if necessary.
15353 runpath_var=LD_RUN_PATH
15354 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15355 export_dynamic_flag_spec='${wl}--export-dynamic'
15356 # ancient GNU ld didn't support --whole-archive et. al.
15357 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15358 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15359 else
15360 whole_archive_flag_spec=
15361 fi
15362 supports_anon_versioning=no
15363 case `$LD -v 2>/dev/null` in
15364 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15365 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15366 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15367 *\ 2.11.*) ;; # other 2.11 versions
15368 *) supports_anon_versioning=yes ;;
15369 esac
15370
15371 # See if GNU ld supports shared libraries.
15372 case $host_os in
15373 aix3* | aix4* | aix5*)
15374 # On AIX/PPC, the GNU linker is very broken
15375 if test "$host_cpu" != ia64; then
15376 ld_shlibs=no
15377 cat <<EOF 1>&2
15378
15379*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15380*** to be unable to reliably create shared libraries on AIX.
15381*** Therefore, libtool is disabling shared libraries support. If you
15382*** really care for shared libraries, you may want to modify your PATH
15383*** so that a non-GNU linker is found, and then restart.
15384
15385EOF
15386 fi
15387 ;;
15388
15389 amigaos*)
15390 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)'
15391 hardcode_libdir_flag_spec='-L$libdir'
15392 hardcode_minus_L=yes
15393
15394 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15395 # that the semantics of dynamic libraries on AmigaOS, at least up
15396 # to version 4, is to share data among multiple programs linked
15397 # with the same dynamic library. Since this doesn't match the
15398 # behavior of shared libraries on other platforms, we can't use
15399 # them.
15400 ld_shlibs=no
15401 ;;
15402
15403 beos*)
15404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15405 allow_undefined_flag=unsupported
15406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15407 # support --undefined. This deserves some investigation. FIXME
15408 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15409 else
15410 ld_shlibs=no
15411 fi
15412 ;;
15413
15414 cygwin* | mingw* | pw32*)
15415 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15416 # as there is no search path for DLLs.
15417 hardcode_libdir_flag_spec='-L$libdir'
15418 allow_undefined_flag=unsupported
15419 always_export_symbols=no
15420 enable_shared_with_static_runtimes=yes
15421 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15422
15423 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15425 # If the export-symbols file already is a .def file (1st line
15426 # is EXPORTS), use it as is; otherwise, prepend...
15427 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15428 cp $export_symbols $output_objdir/$soname.def;
15429 else
15430 echo EXPORTS > $output_objdir/$soname.def;
15431 cat $export_symbols >> $output_objdir/$soname.def;
15432 fi~
15433 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15434 else
15435 ld_shlibs=no
15436 fi
15437 ;;
15438
15439 interix3*)
15440 hardcode_direct=no
15441 hardcode_shlibpath_var=no
15442 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15443 export_dynamic_flag_spec='${wl}-E'
15444 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15445 # Instead, shared libraries are loaded at an image base (0x10000000 by
15446 # default) and relocated if they conflict, which is a slow very memory
15447 # consuming and fragmenting process. To avoid this, we pick a random,
15448 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15449 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15450 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15451 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'
15452 ;;
15453
15454 linux*)
15455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15456 tmp_addflag=
15457 case $cc_basename,$host_cpu in
15458 pgcc*) # Portland Group C compiler
15459 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'
15460 tmp_addflag=' $pic_flag'
15461 ;;
15462 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15463 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'
15464 tmp_addflag=' $pic_flag -Mnomain' ;;
15465 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15466 tmp_addflag=' -i_dynamic' ;;
15467 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15468 tmp_addflag=' -i_dynamic -nofor_main' ;;
15469 ifc* | ifort*) # Intel Fortran compiler
15470 tmp_addflag=' -nofor_main' ;;
15471 esac
15472 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15473
15474 if test $supports_anon_versioning = yes; then
15475 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15477 $echo "local: *; };" >> $output_objdir/$libname.ver~
15478 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15479 fi
15480 else
15481 ld_shlibs=no
15482 fi
15483 ;;
15484
15485 netbsd*)
15486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15487 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15488 wlarc=
15489 else
15490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15492 fi
15493 ;;
15494
15495 solaris*)
15496 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15497 ld_shlibs=no
15498 cat <<EOF 1>&2
15499
15500*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15501*** create shared libraries on Solaris systems. Therefore, libtool
15502*** is disabling shared libraries support. We urge you to upgrade GNU
15503*** binutils to release 2.9.1 or newer. Another option is to modify
15504*** your PATH or compiler configuration so that the native linker is
15505*** used, and then restart.
15506
15507EOF
15508 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15511 else
15512 ld_shlibs=no
15513 fi
15514 ;;
15515
15516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15517 case `$LD -v 2>&1` in
15518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15519 ld_shlibs=no
15520 cat <<_LT_EOF 1>&2
15521
15522*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15523*** reliably create shared libraries on SCO systems. Therefore, libtool
15524*** is disabling shared libraries support. We urge you to upgrade GNU
15525*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15526*** your PATH or compiler configuration so that the native linker is
15527*** used, and then restart.
15528
15529_LT_EOF
15530 ;;
15531 *)
15532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15533 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15536 else
15537 ld_shlibs=no
15538 fi
15539 ;;
15540 esac
15541 ;;
15542
15543 sunos4*)
15544 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15545 wlarc=
15546 hardcode_direct=yes
15547 hardcode_shlibpath_var=no
15548 ;;
15549
15550 *)
15551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15554 else
15555 ld_shlibs=no
15556 fi
15557 ;;
15558 esac
15559
15560 if test "$ld_shlibs" = no; then
15561 runpath_var=
15562 hardcode_libdir_flag_spec=
15563 export_dynamic_flag_spec=
15564 whole_archive_flag_spec=
15565 fi
15566 else
15567 # PORTME fill in a description of your system's linker (not GNU ld)
15568 case $host_os in
15569 aix3*)
15570 allow_undefined_flag=unsupported
15571 always_export_symbols=yes
15572 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'
15573 # Note: this linker hardcodes the directories in LIBPATH if there
15574 # are no directories specified by -L.
15575 hardcode_minus_L=yes
15576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15577 # Neither direct hardcoding nor static linking is supported with a
15578 # broken collect2.
15579 hardcode_direct=unsupported
15580 fi
15581 ;;
15582
15583 aix4* | aix5*)
15584 if test "$host_cpu" = ia64; then
15585 # On IA64, the linker does run time linking by default, so we don't
15586 # have to do anything special.
15587 aix_use_runtimelinking=no
15588 exp_sym_flag='-Bexport'
15589 no_entry_flag=""
15590 else
15591 # If we're using GNU nm, then we don't want the "-C" option.
15592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15593 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15594 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'
15595 else
15596 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'
15597 fi
15598 aix_use_runtimelinking=no
15599
15600 # Test if we are trying to use run time linking or normal
15601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15602 # need to do runtime linking.
15603 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15604 for ld_flag in $LDFLAGS; do
15605 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15606 aix_use_runtimelinking=yes
15607 break
15608 fi
15609 done
15610 ;;
15611 esac
15612
15613 exp_sym_flag='-bexport'
15614 no_entry_flag='-bnoentry'
15615 fi
15616
15617 # When large executables or shared objects are built, AIX ld can
15618 # have problems creating the table of contents. If linking a library
15619 # or program results in "error TOC overflow" add -mminimal-toc to
15620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15622
15623 archive_cmds=''
15624 hardcode_direct=yes
15625 hardcode_libdir_separator=':'
15626 link_all_deplibs=yes
15627
15628 if test "$GCC" = yes; then
15629 case $host_os in aix4.[012]|aix4.[012].*)
15630 # We only want to do this on AIX 4.2 and lower, the check
15631 # below for broken collect2 doesn't work under 4.3+
15632 collect2name=`${CC} -print-prog-name=collect2`
15633 if test -f "$collect2name" && \
15634 strings "$collect2name" | grep resolve_lib_name >/dev/null
15635 then
15636 # We have reworked collect2
15637 hardcode_direct=yes
15638 else
15639 # We have old collect2
15640 hardcode_direct=unsupported
15641 # It fails to find uninstalled libraries when the uninstalled
15642 # path is not listed in the libpath. Setting hardcode_minus_L
15643 # to unsupported forces relinking
15644 hardcode_minus_L=yes
15645 hardcode_libdir_flag_spec='-L$libdir'
15646 hardcode_libdir_separator=
15647 fi
15648 ;;
15649 esac
15650 shared_flag='-shared'
15651 if test "$aix_use_runtimelinking" = yes; then
15652 shared_flag="$shared_flag "'${wl}-G'
15653 fi
15654 else
15655 # not using gcc
15656 if test "$host_cpu" = ia64; then
15657 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15658 # chokes on -Wl,-G. The following line is correct:
15659 shared_flag='-G'
15660 else
15661 if test "$aix_use_runtimelinking" = yes; then
15662 shared_flag='${wl}-G'
15663 else
15664 shared_flag='${wl}-bM:SRE'
15665 fi
15666 fi
15667 fi
15668
15669 # It seems that -bexpall does not export symbols beginning with
15670 # underscore (_), so it is better to generate a list of symbols to export.
15671 always_export_symbols=yes
15672 if test "$aix_use_runtimelinking" = yes; then
15673 # Warning - without using the other runtime loading flags (-brtl),
15674 # -berok will link without error, but may produce a broken library.
15675 allow_undefined_flag='-berok'
15676 # Determine the default libpath from the value encoded in an empty executable.
15677 cat >conftest.$ac_ext <<_ACEOF
15678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
15683
15684int
15685main ()
15686{
15687
15688 ;
15689 return 0;
15690}
15691_ACEOF
15692rm -f conftest.$ac_objext conftest$ac_exeext
15693if { (ac_try="$ac_link"
15694case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697esac
15698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_link") 2>conftest.er1
15700 ac_status=$?
15701 grep -v '^ *+' conftest.er1 >conftest.err
15702 rm -f conftest.er1
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015705 (exit $ac_status); } &&
15706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15707 { (case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15710esac
15711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_try") 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest$ac_exeext'
15717 { (case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720esac
15721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_try") 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015726
15727aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15728}'`
15729# Check for a 64-bit object if we didn't find anything.
15730if 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; }
15731}'`; fi
15732else
15733 echo "$as_me: failed program was:" >&5
15734sed 's/^/| /' conftest.$ac_ext >&5
15735
15736
15737fi
15738
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015739rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015740 conftest$ac_exeext conftest.$ac_ext
15741if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15742
15743 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15744 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"
15745 else
15746 if test "$host_cpu" = ia64; then
15747 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15748 allow_undefined_flag="-z nodefs"
15749 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"
15750 else
15751 # Determine the default libpath from the value encoded in an empty executable.
15752 cat >conftest.$ac_ext <<_ACEOF
15753/* confdefs.h. */
15754_ACEOF
15755cat confdefs.h >>conftest.$ac_ext
15756cat >>conftest.$ac_ext <<_ACEOF
15757/* end confdefs.h. */
15758
15759int
15760main ()
15761{
15762
15763 ;
15764 return 0;
15765}
15766_ACEOF
15767rm -f conftest.$ac_objext conftest$ac_exeext
15768if { (ac_try="$ac_link"
15769case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15772esac
15773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_link") 2>conftest.er1
15775 ac_status=$?
15776 grep -v '^ *+' conftest.er1 >conftest.err
15777 rm -f conftest.er1
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015780 (exit $ac_status); } &&
15781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15782 { (case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15785esac
15786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_try") 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; } &&
15791 { ac_try='test -s conftest$ac_exeext'
15792 { (case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15795esac
15796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_try") 2>&5
15798 ac_status=$?
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015801
15802aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15803}'`
15804# Check for a 64-bit object if we didn't find anything.
15805if 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; }
15806}'`; fi
15807else
15808 echo "$as_me: failed program was:" >&5
15809sed 's/^/| /' conftest.$ac_ext >&5
15810
15811
15812fi
15813
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015814rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015815 conftest$ac_exeext conftest.$ac_ext
15816if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15817
15818 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15819 # Warning - without using the other run time loading flags,
15820 # -berok will link without error, but may produce a broken library.
15821 no_undefined_flag=' ${wl}-bernotok'
15822 allow_undefined_flag=' ${wl}-berok'
15823 # Exported symbols can be pulled into shared objects from archives
15824 whole_archive_flag_spec='$convenience'
15825 archive_cmds_need_lc=yes
15826 # This is similar to how AIX traditionally builds its shared libraries.
15827 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'
15828 fi
15829 fi
15830 ;;
15831
15832 amigaos*)
15833 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)'
15834 hardcode_libdir_flag_spec='-L$libdir'
15835 hardcode_minus_L=yes
15836 # see comment about different semantics on the GNU ld section
15837 ld_shlibs=no
15838 ;;
15839
15840 bsdi[45]*)
15841 export_dynamic_flag_spec=-rdynamic
15842 ;;
15843
15844 cygwin* | mingw* | pw32*)
15845 # When not using gcc, we currently assume that we are using
15846 # Microsoft Visual C++.
15847 # hardcode_libdir_flag_spec is actually meaningless, as there is
15848 # no search path for DLLs.
15849 hardcode_libdir_flag_spec=' '
15850 allow_undefined_flag=unsupported
15851 # Tell ltmain to make .lib files, not .a files.
15852 libext=lib
15853 # Tell ltmain to make .dll files, not .so files.
15854 shrext_cmds=".dll"
15855 # FIXME: Setting linknames here is a bad hack.
15856 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15857 # The linker will automatically build a .lib file if we build a DLL.
15858 old_archive_From_new_cmds='true'
15859 # FIXME: Should let the user specify the lib program.
15860 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15861 fix_srcfile_path='`cygpath -w "$srcfile"`'
15862 enable_shared_with_static_runtimes=yes
15863 ;;
15864
15865 darwin* | rhapsody*)
15866 case $host_os in
15867 rhapsody* | darwin1.[012])
15868 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15869 ;;
15870 *) # Darwin 1.3 on
15871 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15872 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15873 else
15874 case ${MACOSX_DEPLOYMENT_TARGET} in
15875 10.[012])
15876 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15877 ;;
15878 10.*)
15879 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15880 ;;
15881 esac
15882 fi
15883 ;;
15884 esac
15885 archive_cmds_need_lc=no
15886 hardcode_direct=no
15887 hardcode_automatic=yes
15888 hardcode_shlibpath_var=unsupported
15889 whole_archive_flag_spec=''
15890 link_all_deplibs=yes
15891 if test "$GCC" = yes ; then
15892 output_verbose_link_cmd='echo'
15893 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15894 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15895 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15896 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}'
15897 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}'
15898 else
15899 case $cc_basename in
15900 xlc*)
15901 output_verbose_link_cmd='echo'
15902 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15903 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15904 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15905 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}'
15906 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}'
15907 ;;
15908 *)
15909 ld_shlibs=no
15910 ;;
15911 esac
15912 fi
15913 ;;
15914
15915 dgux*)
15916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15917 hardcode_libdir_flag_spec='-L$libdir'
15918 hardcode_shlibpath_var=no
15919 ;;
15920
15921 freebsd1*)
15922 ld_shlibs=no
15923 ;;
15924
15925 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15926 # support. Future versions do this automatically, but an explicit c++rt0.o
15927 # does not break anything, and helps significantly (at the cost of a little
15928 # extra space).
15929 freebsd2.2*)
15930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15931 hardcode_libdir_flag_spec='-R$libdir'
15932 hardcode_direct=yes
15933 hardcode_shlibpath_var=no
15934 ;;
15935
15936 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15937 freebsd2*)
15938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15939 hardcode_direct=yes
15940 hardcode_minus_L=yes
15941 hardcode_shlibpath_var=no
15942 ;;
15943
15944 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15945 freebsd* | kfreebsd*-gnu | dragonfly*)
15946 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15947 hardcode_libdir_flag_spec='-R$libdir'
15948 hardcode_direct=yes
15949 hardcode_shlibpath_var=no
15950 ;;
15951
15952 hpux9*)
15953 if test "$GCC" = yes; then
15954 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'
15955 else
15956 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'
15957 fi
15958 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15959 hardcode_libdir_separator=:
15960 hardcode_direct=yes
15961
15962 # hardcode_minus_L: Not really in the search PATH,
15963 # but as the default location of the library.
15964 hardcode_minus_L=yes
15965 export_dynamic_flag_spec='${wl}-E'
15966 ;;
15967
15968 hpux10*)
15969 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15970 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15971 else
15972 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15973 fi
15974 if test "$with_gnu_ld" = no; then
15975 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15976 hardcode_libdir_separator=:
15977
15978 hardcode_direct=yes
15979 export_dynamic_flag_spec='${wl}-E'
15980
15981 # hardcode_minus_L: Not really in the search PATH,
15982 # but as the default location of the library.
15983 hardcode_minus_L=yes
15984 fi
15985 ;;
15986
15987 hpux11*)
15988 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15989 case $host_cpu in
15990 hppa*64*)
15991 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15992 ;;
15993 ia64*)
15994 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15995 ;;
15996 *)
15997 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15998 ;;
15999 esac
16000 else
16001 case $host_cpu in
16002 hppa*64*)
16003 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16004 ;;
16005 ia64*)
16006 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16007 ;;
16008 *)
16009 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16010 ;;
16011 esac
16012 fi
16013 if test "$with_gnu_ld" = no; then
16014 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16015 hardcode_libdir_separator=:
16016
16017 case $host_cpu in
16018 hppa*64*|ia64*)
16019 hardcode_libdir_flag_spec_ld='+b $libdir'
16020 hardcode_direct=no
16021 hardcode_shlibpath_var=no
16022 ;;
16023 *)
16024 hardcode_direct=yes
16025 export_dynamic_flag_spec='${wl}-E'
16026
16027 # hardcode_minus_L: Not really in the search PATH,
16028 # but as the default location of the library.
16029 hardcode_minus_L=yes
16030 ;;
16031 esac
16032 fi
16033 ;;
16034
16035 irix5* | irix6* | nonstopux*)
16036 if test "$GCC" = yes; then
16037 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'
16038 else
16039 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'
16040 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16041 fi
16042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16043 hardcode_libdir_separator=:
16044 link_all_deplibs=yes
16045 ;;
16046
16047 netbsd*)
16048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16050 else
16051 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16052 fi
16053 hardcode_libdir_flag_spec='-R$libdir'
16054 hardcode_direct=yes
16055 hardcode_shlibpath_var=no
16056 ;;
16057
16058 newsos6)
16059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 hardcode_direct=yes
16061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16062 hardcode_libdir_separator=:
16063 hardcode_shlibpath_var=no
16064 ;;
16065
16066 openbsd*)
16067 hardcode_direct=yes
16068 hardcode_shlibpath_var=no
16069 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16070 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16071 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16073 export_dynamic_flag_spec='${wl}-E'
16074 else
16075 case $host_os in
16076 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16077 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16078 hardcode_libdir_flag_spec='-R$libdir'
16079 ;;
16080 *)
16081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16082 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16083 ;;
16084 esac
16085 fi
16086 ;;
16087
16088 os2*)
16089 hardcode_libdir_flag_spec='-L$libdir'
16090 hardcode_minus_L=yes
16091 allow_undefined_flag=unsupported
16092 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'
16093 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16094 ;;
16095
16096 osf3*)
16097 if test "$GCC" = yes; then
16098 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16099 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'
16100 else
16101 allow_undefined_flag=' -expect_unresolved \*'
16102 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'
16103 fi
16104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16105 hardcode_libdir_separator=:
16106 ;;
16107
16108 osf4* | osf5*) # as osf3* with the addition of -msym flag
16109 if test "$GCC" = yes; then
16110 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16111 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'
16112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16113 else
16114 allow_undefined_flag=' -expect_unresolved \*'
16115 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'
16116 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16117 $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'
16118
16119 # Both c and cxx compiler support -rpath directly
16120 hardcode_libdir_flag_spec='-rpath $libdir'
16121 fi
16122 hardcode_libdir_separator=:
16123 ;;
16124
16125 solaris*)
16126 no_undefined_flag=' -z text'
16127 if test "$GCC" = yes; then
16128 wlarc='${wl}'
16129 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16130 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16131 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16132 else
16133 wlarc=''
16134 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16136 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16137 fi
16138 hardcode_libdir_flag_spec='-R$libdir'
16139 hardcode_shlibpath_var=no
16140 case $host_os in
16141 solaris2.[0-5] | solaris2.[0-5].*) ;;
16142 *)
16143 # The compiler driver will combine linker options so we
16144 # cannot just pass the convience library names through
16145 # without $wl, iff we do not link with $LD.
16146 # Luckily, gcc supports the same syntax we need for Sun Studio.
16147 # Supported since Solaris 2.6 (maybe 2.5.1?)
16148 case $wlarc in
16149 '')
16150 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16151 *)
16152 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' ;;
16153 esac ;;
16154 esac
16155 link_all_deplibs=yes
16156 ;;
16157
16158 sunos4*)
16159 if test "x$host_vendor" = xsequent; then
16160 # Use $CC to link under sequent, because it throws in some extra .o
16161 # files that make .init and .fini sections work.
16162 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16163 else
16164 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16165 fi
16166 hardcode_libdir_flag_spec='-L$libdir'
16167 hardcode_direct=yes
16168 hardcode_minus_L=yes
16169 hardcode_shlibpath_var=no
16170 ;;
16171
16172 sysv4)
16173 case $host_vendor in
16174 sni)
16175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176 hardcode_direct=yes # is this really true???
16177 ;;
16178 siemens)
16179 ## LD is ld it makes a PLAMLIB
16180 ## CC just makes a GrossModule.
16181 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16182 reload_cmds='$CC -r -o $output$reload_objs'
16183 hardcode_direct=no
16184 ;;
16185 motorola)
16186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16188 ;;
16189 esac
16190 runpath_var='LD_RUN_PATH'
16191 hardcode_shlibpath_var=no
16192 ;;
16193
16194 sysv4.3*)
16195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16196 hardcode_shlibpath_var=no
16197 export_dynamic_flag_spec='-Bexport'
16198 ;;
16199
16200 sysv4*MP*)
16201 if test -d /usr/nec; then
16202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16203 hardcode_shlibpath_var=no
16204 runpath_var=LD_RUN_PATH
16205 hardcode_runpath_var=yes
16206 ld_shlibs=yes
16207 fi
16208 ;;
16209
16210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16211 no_undefined_flag='${wl}-z,text'
16212 archive_cmds_need_lc=no
16213 hardcode_shlibpath_var=no
16214 runpath_var='LD_RUN_PATH'
16215
16216 if test "$GCC" = yes; then
16217 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16218 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16219 else
16220 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16221 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16222 fi
16223 ;;
16224
16225 sysv5* | sco3.2v5* | sco5v6*)
16226 # Note: We can NOT use -z defs as we might desire, because we do not
16227 # link with -lc, and that would cause any symbols used from libc to
16228 # always be unresolved, which means just about no library would
16229 # ever link correctly. If we're not using GNU ld we use -z text
16230 # though, which does catch some bad symbols but isn't as heavy-handed
16231 # as -z defs.
16232 no_undefined_flag='${wl}-z,text'
16233 allow_undefined_flag='${wl}-z,nodefs'
16234 archive_cmds_need_lc=no
16235 hardcode_shlibpath_var=no
16236 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16237 hardcode_libdir_separator=':'
16238 link_all_deplibs=yes
16239 export_dynamic_flag_spec='${wl}-Bexport'
16240 runpath_var='LD_RUN_PATH'
16241
16242 if test "$GCC" = yes; then
16243 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16244 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16245 else
16246 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16247 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16248 fi
16249 ;;
16250
16251 uts4*)
16252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16253 hardcode_libdir_flag_spec='-L$libdir'
16254 hardcode_shlibpath_var=no
16255 ;;
16256
16257 *)
16258 ld_shlibs=no
16259 ;;
16260 esac
16261 fi
16262
16263{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16264echo "${ECHO_T}$ld_shlibs" >&6; }
16265test "$ld_shlibs" = no && can_build_shared=no
16266
16267#
16268# Do we need to explicitly link libc?
16269#
16270case "x$archive_cmds_need_lc" in
16271x|xyes)
16272 # Assume -lc should be added
16273 archive_cmds_need_lc=yes
16274
16275 if test "$enable_shared" = yes && test "$GCC" = yes; then
16276 case $archive_cmds in
16277 *'~'*)
16278 # FIXME: we may have to deal with multi-command sequences.
16279 ;;
16280 '$CC '*)
16281 # Test whether the compiler implicitly links with -lc since on some
16282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16283 # to ld, don't add -lc before -lgcc.
16284 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16285echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16286 $rm conftest*
16287 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16288
16289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16290 (eval $ac_compile) 2>&5
16291 ac_status=$?
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } 2>conftest.err; then
16294 soname=conftest
16295 lib=conftest
16296 libobjs=conftest.$ac_objext
16297 deplibs=
16298 wl=$lt_prog_compiler_wl
16299 pic_flag=$lt_prog_compiler_pic
16300 compiler_flags=-v
16301 linker_flags=-v
16302 verstring=
16303 output_objdir=.
16304 libname=conftest
16305 lt_save_allow_undefined_flag=$allow_undefined_flag
16306 allow_undefined_flag=
16307 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16308 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }
16312 then
16313 archive_cmds_need_lc=no
16314 else
16315 archive_cmds_need_lc=yes
16316 fi
16317 allow_undefined_flag=$lt_save_allow_undefined_flag
16318 else
16319 cat conftest.err 1>&5
16320 fi
16321 $rm conftest*
16322 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16323echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
16324 ;;
16325 esac
16326 fi
16327 ;;
16328esac
16329
16330{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16331echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16332library_names_spec=
16333libname_spec='lib$name'
16334soname_spec=
16335shrext_cmds=".so"
16336postinstall_cmds=
16337postuninstall_cmds=
16338finish_cmds=
16339finish_eval=
16340shlibpath_var=
16341shlibpath_overrides_runpath=unknown
16342version_type=none
16343dynamic_linker="$host_os ld.so"
16344sys_lib_dlsearch_path_spec="/lib /usr/lib"
16345if test "$GCC" = yes; then
16346 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16347 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16348 # if the path contains ";" then we assume it to be the separator
16349 # otherwise default to the standard path separator (i.e. ":") - it is
16350 # assumed that no part of a normal pathname contains ";" but that should
16351 # okay in the real world where ";" in dirpaths is itself problematic.
16352 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16353 else
16354 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16355 fi
16356else
16357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16358fi
16359need_lib_prefix=unknown
16360hardcode_into_libs=no
16361
16362# when you set need_version to no, make sure it does not cause -set_version
16363# flags to be left without arguments
16364need_version=unknown
16365
16366case $host_os in
16367aix3*)
16368 version_type=linux
16369 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16370 shlibpath_var=LIBPATH
16371
16372 # AIX 3 has no versioning support, so we append a major version to the name.
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 ;;
16375
16376aix4* | aix5*)
16377 version_type=linux
16378 need_lib_prefix=no
16379 need_version=no
16380 hardcode_into_libs=yes
16381 if test "$host_cpu" = ia64; then
16382 # AIX 5 supports IA64
16383 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 else
16386 # With GCC up to 2.95.x, collect2 would create an import file
16387 # for dependence libraries. The import file would start with
16388 # the line `#! .'. This would cause the generated library to
16389 # depend on `.', always an invalid library. This was fixed in
16390 # development snapshots of GCC prior to 3.0.
16391 case $host_os in
16392 aix4 | aix4.[01] | aix4.[01].*)
16393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16394 echo ' yes '
16395 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16396 :
16397 else
16398 can_build_shared=no
16399 fi
16400 ;;
16401 esac
16402 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16403 # soname into executable. Probably we can add versioning support to
16404 # collect2, so additional links can be useful in future.
16405 if test "$aix_use_runtimelinking" = yes; then
16406 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16407 # instead of lib<name>.a to let people know that these are not
16408 # typical AIX shared libraries.
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 else
16411 # We preserve .a as extension for shared libraries through AIX4.2
16412 # and later when we are not doing run time linking.
16413 library_names_spec='${libname}${release}.a $libname.a'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 fi
16416 shlibpath_var=LIBPATH
16417 fi
16418 ;;
16419
16420amigaos*)
16421 library_names_spec='$libname.ixlibrary $libname.a'
16422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16423 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'
16424 ;;
16425
16426beos*)
16427 library_names_spec='${libname}${shared_ext}'
16428 dynamic_linker="$host_os ld.so"
16429 shlibpath_var=LIBRARY_PATH
16430 ;;
16431
16432bsdi[45]*)
16433 version_type=linux
16434 need_version=no
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16440 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16441 # the default ld.so.conf also contains /usr/contrib/lib and
16442 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16443 # libtool to hard-code these into programs
16444 ;;
16445
16446cygwin* | mingw* | pw32*)
16447 version_type=windows
16448 shrext_cmds=".dll"
16449 need_version=no
16450 need_lib_prefix=no
16451
16452 case $GCC,$host_os in
16453 yes,cygwin* | yes,mingw* | yes,pw32*)
16454 library_names_spec='$libname.dll.a'
16455 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16456 postinstall_cmds='base_file=`basename \${file}`~
16457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16458 dldir=$destdir/`dirname \$dlpath`~
16459 test -d \$dldir || mkdir -p \$dldir~
16460 $install_prog $dir/$dlname \$dldir/$dlname~
16461 chmod a+x \$dldir/$dlname'
16462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16463 dlpath=$dir/\$dldll~
16464 $rm \$dlpath'
16465 shlibpath_overrides_runpath=yes
16466
16467 case $host_os in
16468 cygwin*)
16469 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16470 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16471 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16472 ;;
16473 mingw*)
16474 # MinGW DLLs use traditional 'lib' prefix
16475 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16476 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16477 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16478 # It is most probably a Windows format PATH printed by
16479 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16480 # path with ; separators, and with drive letters. We can handle the
16481 # drive letters (cygwin fileutils understands them), so leave them,
16482 # especially as we might pass files found there to a mingw objdump,
16483 # which wouldn't understand a cygwinified path. Ahh.
16484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16485 else
16486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16487 fi
16488 ;;
16489 pw32*)
16490 # pw32 DLLs use 'pw' prefix rather than 'lib'
16491 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16492 ;;
16493 esac
16494 ;;
16495
16496 *)
16497 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16498 ;;
16499 esac
16500 dynamic_linker='Win32 ld.exe'
16501 # FIXME: first we should search . and the directory the executable is in
16502 shlibpath_var=PATH
16503 ;;
16504
16505darwin* | rhapsody*)
16506 dynamic_linker="$host_os dyld"
16507 version_type=darwin
16508 need_lib_prefix=no
16509 need_version=no
16510 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16511 soname_spec='${libname}${release}${major}$shared_ext'
16512 shlibpath_overrides_runpath=yes
16513 shlibpath_var=DYLD_LIBRARY_PATH
16514 shrext_cmds='.dylib'
16515 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16516 if test "$GCC" = yes; then
16517 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"`
16518 else
16519 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16520 fi
16521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16522 ;;
16523
16524dgux*)
16525 version_type=linux
16526 need_lib_prefix=no
16527 need_version=no
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 ;;
16532
16533freebsd1*)
16534 dynamic_linker=no
16535 ;;
16536
16537kfreebsd*-gnu)
16538 version_type=linux
16539 need_lib_prefix=no
16540 need_version=no
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 shlibpath_overrides_runpath=no
16545 hardcode_into_libs=yes
16546 dynamic_linker='GNU ld.so'
16547 ;;
16548
16549freebsd* | dragonfly*)
16550 # DragonFly does not have aout. When/if they implement a new
16551 # versioning mechanism, adjust this.
16552 if test -x /usr/bin/objformat; then
16553 objformat=`/usr/bin/objformat`
16554 else
16555 case $host_os in
16556 freebsd[123]*) objformat=aout ;;
16557 *) objformat=elf ;;
16558 esac
16559 fi
16560 version_type=freebsd-$objformat
16561 case $version_type in
16562 freebsd-elf*)
16563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16564 need_version=no
16565 need_lib_prefix=no
16566 ;;
16567 freebsd-*)
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16569 need_version=yes
16570 ;;
16571 esac
16572 shlibpath_var=LD_LIBRARY_PATH
16573 case $host_os in
16574 freebsd2*)
16575 shlibpath_overrides_runpath=yes
16576 ;;
16577 freebsd3.[01]* | freebsdelf3.[01]*)
16578 shlibpath_overrides_runpath=yes
16579 hardcode_into_libs=yes
16580 ;;
16581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16583 shlibpath_overrides_runpath=no
16584 hardcode_into_libs=yes
16585 ;;
16586 freebsd*) # from 4.6 on
16587 shlibpath_overrides_runpath=yes
16588 hardcode_into_libs=yes
16589 ;;
16590 esac
16591 ;;
16592
16593gnu*)
16594 version_type=linux
16595 need_lib_prefix=no
16596 need_version=no
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16598 soname_spec='${libname}${release}${shared_ext}$major'
16599 shlibpath_var=LD_LIBRARY_PATH
16600 hardcode_into_libs=yes
16601 ;;
16602
16603hpux9* | hpux10* | hpux11*)
16604 # Give a soname corresponding to the major version so that dld.sl refuses to
16605 # link against other versions.
16606 version_type=sunos
16607 need_lib_prefix=no
16608 need_version=no
16609 case $host_cpu in
16610 ia64*)
16611 shrext_cmds='.so'
16612 hardcode_into_libs=yes
16613 dynamic_linker="$host_os dld.so"
16614 shlibpath_var=LD_LIBRARY_PATH
16615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16617 soname_spec='${libname}${release}${shared_ext}$major'
16618 if test "X$HPUX_IA64_MODE" = X32; then
16619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16620 else
16621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16622 fi
16623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16624 ;;
16625 hppa*64*)
16626 shrext_cmds='.sl'
16627 hardcode_into_libs=yes
16628 dynamic_linker="$host_os dld.sl"
16629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16635 ;;
16636 *)
16637 shrext_cmds='.sl'
16638 dynamic_linker="$host_os dld.sl"
16639 shlibpath_var=SHLIB_PATH
16640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16642 soname_spec='${libname}${release}${shared_ext}$major'
16643 ;;
16644 esac
16645 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16646 postinstall_cmds='chmod 555 $lib'
16647 ;;
16648
16649interix3*)
16650 version_type=linux
16651 need_lib_prefix=no
16652 need_version=no
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16656 shlibpath_var=LD_LIBRARY_PATH
16657 shlibpath_overrides_runpath=no
16658 hardcode_into_libs=yes
16659 ;;
16660
16661irix5* | irix6* | nonstopux*)
16662 case $host_os in
16663 nonstopux*) version_type=nonstopux ;;
16664 *)
16665 if test "$lt_cv_prog_gnu_ld" = yes; then
16666 version_type=linux
16667 else
16668 version_type=irix
16669 fi ;;
16670 esac
16671 need_lib_prefix=no
16672 need_version=no
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16675 case $host_os in
16676 irix5* | nonstopux*)
16677 libsuff= shlibsuff=
16678 ;;
16679 *)
16680 case $LD in # libtool.m4 will add one of these switches to LD
16681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16682 libsuff= shlibsuff= libmagic=32-bit;;
16683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16684 libsuff=32 shlibsuff=N32 libmagic=N32;;
16685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16687 *) libsuff= shlibsuff= libmagic=never-match;;
16688 esac
16689 ;;
16690 esac
16691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16692 shlibpath_overrides_runpath=no
16693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16695 hardcode_into_libs=yes
16696 ;;
16697
16698# No shared lib support for Linux oldld, aout, or coff.
16699linux*oldld* | linux*aout* | linux*coff*)
16700 dynamic_linker=no
16701 ;;
16702
16703# This must be Linux ELF.
16704linux*)
16705 version_type=linux
16706 need_lib_prefix=no
16707 need_version=no
16708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709 soname_spec='${libname}${release}${shared_ext}$major'
16710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16711 shlibpath_var=LD_LIBRARY_PATH
16712 shlibpath_overrides_runpath=no
16713 # This implies no fast_install, which is unacceptable.
16714 # Some rework will be needed to allow for fast_install
16715 # before this can be enabled.
16716 hardcode_into_libs=yes
16717
16718 # Append ld.so.conf contents to the search path
16719 if test -f /etc/ld.so.conf; then
16720 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' ' '`
16721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16722 fi
16723
16724 # We used to test for /lib/ld.so.1 and disable shared libraries on
16725 # powerpc, because MkLinux only supported shared libraries with the
16726 # GNU dynamic linker. Since this was broken with cross compilers,
16727 # most powerpc-linux boxes support dynamic linking these days and
16728 # people can always --disable-shared, the test was removed, and we
16729 # assume the GNU/Linux dynamic linker is in use.
16730 dynamic_linker='GNU/Linux ld.so'
16731 ;;
16732
16733knetbsd*-gnu)
16734 version_type=linux
16735 need_lib_prefix=no
16736 need_version=no
16737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16738 soname_spec='${libname}${release}${shared_ext}$major'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 shlibpath_overrides_runpath=no
16741 hardcode_into_libs=yes
16742 dynamic_linker='GNU ld.so'
16743 ;;
16744
16745netbsd*)
16746 version_type=sunos
16747 need_lib_prefix=no
16748 need_version=no
16749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16752 dynamic_linker='NetBSD (a.out) ld.so'
16753 else
16754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16755 soname_spec='${libname}${release}${shared_ext}$major'
16756 dynamic_linker='NetBSD ld.elf_so'
16757 fi
16758 shlibpath_var=LD_LIBRARY_PATH
16759 shlibpath_overrides_runpath=yes
16760 hardcode_into_libs=yes
16761 ;;
16762
16763newsos6)
16764 version_type=linux
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 shlibpath_var=LD_LIBRARY_PATH
16767 shlibpath_overrides_runpath=yes
16768 ;;
16769
16770nto-qnx*)
16771 version_type=linux
16772 need_lib_prefix=no
16773 need_version=no
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16775 soname_spec='${libname}${release}${shared_ext}$major'
16776 shlibpath_var=LD_LIBRARY_PATH
16777 shlibpath_overrides_runpath=yes
16778 ;;
16779
16780openbsd*)
16781 version_type=sunos
16782 sys_lib_dlsearch_path_spec="/usr/lib"
16783 need_lib_prefix=no
16784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16785 case $host_os in
16786 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16787 *) need_version=no ;;
16788 esac
16789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16791 shlibpath_var=LD_LIBRARY_PATH
16792 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16793 case $host_os in
16794 openbsd2.[89] | openbsd2.[89].*)
16795 shlibpath_overrides_runpath=no
16796 ;;
16797 *)
16798 shlibpath_overrides_runpath=yes
16799 ;;
16800 esac
16801 else
16802 shlibpath_overrides_runpath=yes
16803 fi
16804 ;;
16805
16806os2*)
16807 libname_spec='$name'
16808 shrext_cmds=".dll"
16809 need_lib_prefix=no
16810 library_names_spec='$libname${shared_ext} $libname.a'
16811 dynamic_linker='OS/2 ld.exe'
16812 shlibpath_var=LIBPATH
16813 ;;
16814
16815osf3* | osf4* | osf5*)
16816 version_type=osf
16817 need_lib_prefix=no
16818 need_version=no
16819 soname_spec='${libname}${release}${shared_ext}$major'
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 shlibpath_var=LD_LIBRARY_PATH
16822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16824 ;;
16825
16826solaris*)
16827 version_type=linux
16828 need_lib_prefix=no
16829 need_version=no
16830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16831 soname_spec='${libname}${release}${shared_ext}$major'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 shlibpath_overrides_runpath=yes
16834 hardcode_into_libs=yes
16835 # ldd complains unless libraries are executable
16836 postinstall_cmds='chmod +x $lib'
16837 ;;
16838
16839sunos4*)
16840 version_type=sunos
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16842 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=yes
16845 if test "$with_gnu_ld" = yes; then
16846 need_lib_prefix=no
16847 fi
16848 need_version=yes
16849 ;;
16850
16851sysv4 | sysv4.3*)
16852 version_type=linux
16853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16854 soname_spec='${libname}${release}${shared_ext}$major'
16855 shlibpath_var=LD_LIBRARY_PATH
16856 case $host_vendor in
16857 sni)
16858 shlibpath_overrides_runpath=no
16859 need_lib_prefix=no
16860 export_dynamic_flag_spec='${wl}-Blargedynsym'
16861 runpath_var=LD_RUN_PATH
16862 ;;
16863 siemens)
16864 need_lib_prefix=no
16865 ;;
16866 motorola)
16867 need_lib_prefix=no
16868 need_version=no
16869 shlibpath_overrides_runpath=no
16870 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16871 ;;
16872 esac
16873 ;;
16874
16875sysv4*MP*)
16876 if test -d /usr/nec ;then
16877 version_type=linux
16878 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16879 soname_spec='$libname${shared_ext}.$major'
16880 shlibpath_var=LD_LIBRARY_PATH
16881 fi
16882 ;;
16883
16884sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16885 version_type=freebsd-elf
16886 need_lib_prefix=no
16887 need_version=no
16888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16889 soname_spec='${libname}${release}${shared_ext}$major'
16890 shlibpath_var=LD_LIBRARY_PATH
16891 hardcode_into_libs=yes
16892 if test "$with_gnu_ld" = yes; then
16893 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16894 shlibpath_overrides_runpath=no
16895 else
16896 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16897 shlibpath_overrides_runpath=yes
16898 case $host_os in
16899 sco3.2v5*)
16900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16901 ;;
16902 esac
16903 fi
16904 sys_lib_dlsearch_path_spec='/usr/lib'
16905 ;;
16906
16907uts4*)
16908 version_type=linux
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16910 soname_spec='${libname}${release}${shared_ext}$major'
16911 shlibpath_var=LD_LIBRARY_PATH
16912 ;;
16913
16914*)
16915 dynamic_linker=no
16916 ;;
16917esac
16918{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16919echo "${ECHO_T}$dynamic_linker" >&6; }
16920test "$dynamic_linker" = no && can_build_shared=no
16921
16922variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16923if test "$GCC" = yes; then
16924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16925fi
16926
16927{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16928echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16929hardcode_action=
16930if test -n "$hardcode_libdir_flag_spec" || \
16931 test -n "$runpath_var" || \
16932 test "X$hardcode_automatic" = "Xyes" ; then
16933
16934 # We can hardcode non-existant directories.
16935 if test "$hardcode_direct" != no &&
16936 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16937 # have to relink, otherwise we might link with an installed library
16938 # when we should be linking with a yet-to-be-installed one
16939 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16940 test "$hardcode_minus_L" != no; then
16941 # Linking always hardcodes the temporary library directory.
16942 hardcode_action=relink
16943 else
16944 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16945 hardcode_action=immediate
16946 fi
16947else
16948 # We cannot hardcode anything, or else we can only hardcode existing
16949 # directories.
16950 hardcode_action=unsupported
16951fi
16952{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16953echo "${ECHO_T}$hardcode_action" >&6; }
16954
16955if test "$hardcode_action" = relink; then
16956 # Fast installation is not supported
16957 enable_fast_install=no
16958elif test "$shlibpath_overrides_runpath" = yes ||
16959 test "$enable_shared" = no; then
16960 # Fast installation is not necessary
16961 enable_fast_install=needless
16962fi
16963
16964striplib=
16965old_striplib=
16966{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16967echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16968if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16969 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16970 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16971 { echo "$as_me:$LINENO: result: yes" >&5
16972echo "${ECHO_T}yes" >&6; }
16973else
16974# FIXME - insert some real tests, host_os isn't really good enough
16975 case $host_os in
16976 darwin*)
16977 if test -n "$STRIP" ; then
16978 striplib="$STRIP -x"
16979 { echo "$as_me:$LINENO: result: yes" >&5
16980echo "${ECHO_T}yes" >&6; }
16981 else
16982 { echo "$as_me:$LINENO: result: no" >&5
16983echo "${ECHO_T}no" >&6; }
16984fi
16985 ;;
16986 *)
16987 { echo "$as_me:$LINENO: result: no" >&5
16988echo "${ECHO_T}no" >&6; }
16989 ;;
16990 esac
16991fi
16992
16993if test "x$enable_dlopen" != xyes; then
16994 enable_dlopen=unknown
16995 enable_dlopen_self=unknown
16996 enable_dlopen_self_static=unknown
16997else
16998 lt_cv_dlopen=no
16999 lt_cv_dlopen_libs=
17000
17001 case $host_os in
17002 beos*)
17003 lt_cv_dlopen="load_add_on"
17004 lt_cv_dlopen_libs=
17005 lt_cv_dlopen_self=yes
17006 ;;
17007
17008 mingw* | pw32*)
17009 lt_cv_dlopen="LoadLibrary"
17010 lt_cv_dlopen_libs=
17011 ;;
17012
17013 cygwin*)
17014 lt_cv_dlopen="dlopen"
17015 lt_cv_dlopen_libs=
17016 ;;
17017
17018 darwin*)
17019 # if libdl is installed we need to link against it
17020 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17021echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17022if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024else
17025 ac_check_lib_save_LIBS=$LIBS
17026LIBS="-ldl $LIBS"
17027cat >conftest.$ac_ext <<_ACEOF
17028/* confdefs.h. */
17029_ACEOF
17030cat confdefs.h >>conftest.$ac_ext
17031cat >>conftest.$ac_ext <<_ACEOF
17032/* end confdefs.h. */
17033
17034/* Override any GCC internal prototype to avoid an error.
17035 Use char because int might match the return type of a GCC
17036 builtin and then its argument prototype would still apply. */
17037#ifdef __cplusplus
17038extern "C"
17039#endif
17040char dlopen ();
17041int
17042main ()
17043{
17044return dlopen ();
17045 ;
17046 return 0;
17047}
17048_ACEOF
17049rm -f conftest.$ac_objext conftest$ac_exeext
17050if { (ac_try="$ac_link"
17051case "(($ac_try" in
17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053 *) ac_try_echo=$ac_try;;
17054esac
17055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056 (eval "$ac_link") 2>conftest.er1
17057 ac_status=$?
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017062 (exit $ac_status); } &&
17063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17064 { (case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067esac
17068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_try") 2>&5
17070 ac_status=$?
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } &&
17073 { ac_try='test -s conftest$ac_exeext'
17074 { (case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17077esac
17078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_try") 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017083 ac_cv_lib_dl_dlopen=yes
17084else
17085 echo "$as_me: failed program was:" >&5
17086sed 's/^/| /' conftest.$ac_ext >&5
17087
17088 ac_cv_lib_dl_dlopen=no
17089fi
17090
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017091rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017092 conftest$ac_exeext conftest.$ac_ext
17093LIBS=$ac_check_lib_save_LIBS
17094fi
17095{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17096echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17097if test $ac_cv_lib_dl_dlopen = yes; then
17098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17099else
17100
17101 lt_cv_dlopen="dyld"
17102 lt_cv_dlopen_libs=
17103 lt_cv_dlopen_self=yes
17104
17105fi
17106
17107 ;;
17108
17109 *)
17110 { echo "$as_me:$LINENO: checking for shl_load" >&5
17111echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17112if test "${ac_cv_func_shl_load+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17114else
17115 cat >conftest.$ac_ext <<_ACEOF
17116/* confdefs.h. */
17117_ACEOF
17118cat confdefs.h >>conftest.$ac_ext
17119cat >>conftest.$ac_ext <<_ACEOF
17120/* end confdefs.h. */
17121/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17123#define shl_load innocuous_shl_load
17124
17125/* System header to define __stub macros and hopefully few prototypes,
17126 which can conflict with char shl_load (); below.
17127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17128 <limits.h> exists even on freestanding compilers. */
17129
17130#ifdef __STDC__
17131# include <limits.h>
17132#else
17133# include <assert.h>
17134#endif
17135
17136#undef shl_load
17137
17138/* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
17141#ifdef __cplusplus
17142extern "C"
17143#endif
17144char shl_load ();
17145/* The GNU C library defines this for functions which it implements
17146 to always fail with ENOSYS. Some functions are actually named
17147 something starting with __ and the normal name is an alias. */
17148#if defined __stub_shl_load || defined __stub___shl_load
17149choke me
17150#endif
17151
17152int
17153main ()
17154{
17155return shl_load ();
17156 ;
17157 return 0;
17158}
17159_ACEOF
17160rm -f conftest.$ac_objext conftest$ac_exeext
17161if { (ac_try="$ac_link"
17162case "(($ac_try" in
17163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164 *) ac_try_echo=$ac_try;;
17165esac
17166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167 (eval "$ac_link") 2>conftest.er1
17168 ac_status=$?
17169 grep -v '^ *+' conftest.er1 >conftest.err
17170 rm -f conftest.er1
17171 cat conftest.err >&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017173 (exit $ac_status); } &&
17174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178esac
17179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest$ac_exeext'
17185 { (case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17188esac
17189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_try") 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017194 ac_cv_func_shl_load=yes
17195else
17196 echo "$as_me: failed program was:" >&5
17197sed 's/^/| /' conftest.$ac_ext >&5
17198
17199 ac_cv_func_shl_load=no
17200fi
17201
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017202rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017203 conftest$ac_exeext conftest.$ac_ext
17204fi
17205{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17206echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17207if test $ac_cv_func_shl_load = yes; then
17208 lt_cv_dlopen="shl_load"
17209else
17210 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17211echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17212if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17213 echo $ECHO_N "(cached) $ECHO_C" >&6
17214else
17215 ac_check_lib_save_LIBS=$LIBS
17216LIBS="-ldld $LIBS"
17217cat >conftest.$ac_ext <<_ACEOF
17218/* confdefs.h. */
17219_ACEOF
17220cat confdefs.h >>conftest.$ac_ext
17221cat >>conftest.$ac_ext <<_ACEOF
17222/* end confdefs.h. */
17223
17224/* Override any GCC internal prototype to avoid an error.
17225 Use char because int might match the return type of a GCC
17226 builtin and then its argument prototype would still apply. */
17227#ifdef __cplusplus
17228extern "C"
17229#endif
17230char shl_load ();
17231int
17232main ()
17233{
17234return shl_load ();
17235 ;
17236 return 0;
17237}
17238_ACEOF
17239rm -f conftest.$ac_objext conftest$ac_exeext
17240if { (ac_try="$ac_link"
17241case "(($ac_try" in
17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17244esac
17245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_link") 2>conftest.er1
17247 ac_status=$?
17248 grep -v '^ *+' conftest.er1 >conftest.err
17249 rm -f conftest.er1
17250 cat conftest.err >&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017252 (exit $ac_status); } &&
17253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17257esac
17258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest$ac_exeext'
17264 { (case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17267esac
17268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_try") 2>&5
17270 ac_status=$?
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017273 ac_cv_lib_dld_shl_load=yes
17274else
17275 echo "$as_me: failed program was:" >&5
17276sed 's/^/| /' conftest.$ac_ext >&5
17277
17278 ac_cv_lib_dld_shl_load=no
17279fi
17280
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017281rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017282 conftest$ac_exeext conftest.$ac_ext
17283LIBS=$ac_check_lib_save_LIBS
17284fi
17285{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17286echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17287if test $ac_cv_lib_dld_shl_load = yes; then
17288 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17289else
17290 { echo "$as_me:$LINENO: checking for dlopen" >&5
17291echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17292if test "${ac_cv_func_dlopen+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17294else
17295 cat >conftest.$ac_ext <<_ACEOF
17296/* confdefs.h. */
17297_ACEOF
17298cat confdefs.h >>conftest.$ac_ext
17299cat >>conftest.$ac_ext <<_ACEOF
17300/* end confdefs.h. */
17301/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17303#define dlopen innocuous_dlopen
17304
17305/* System header to define __stub macros and hopefully few prototypes,
17306 which can conflict with char dlopen (); below.
17307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17308 <limits.h> exists even on freestanding compilers. */
17309
17310#ifdef __STDC__
17311# include <limits.h>
17312#else
17313# include <assert.h>
17314#endif
17315
17316#undef dlopen
17317
17318/* Override any GCC internal prototype to avoid an error.
17319 Use char because int might match the return type of a GCC
17320 builtin and then its argument prototype would still apply. */
17321#ifdef __cplusplus
17322extern "C"
17323#endif
17324char dlopen ();
17325/* The GNU C library defines this for functions which it implements
17326 to always fail with ENOSYS. Some functions are actually named
17327 something starting with __ and the normal name is an alias. */
17328#if defined __stub_dlopen || defined __stub___dlopen
17329choke me
17330#endif
17331
17332int
17333main ()
17334{
17335return dlopen ();
17336 ;
17337 return 0;
17338}
17339_ACEOF
17340rm -f conftest.$ac_objext conftest$ac_exeext
17341if { (ac_try="$ac_link"
17342case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17345esac
17346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>conftest.er1
17348 ac_status=$?
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017353 (exit $ac_status); } &&
17354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17355 { (case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17358esac
17359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_try") 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest$ac_exeext'
17365 { (case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17368esac
17369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_try") 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017374 ac_cv_func_dlopen=yes
17375else
17376 echo "$as_me: failed program was:" >&5
17377sed 's/^/| /' conftest.$ac_ext >&5
17378
17379 ac_cv_func_dlopen=no
17380fi
17381
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017382rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017383 conftest$ac_exeext conftest.$ac_ext
17384fi
17385{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17386echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17387if test $ac_cv_func_dlopen = yes; then
17388 lt_cv_dlopen="dlopen"
17389else
17390 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17391echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17392if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394else
17395 ac_check_lib_save_LIBS=$LIBS
17396LIBS="-ldl $LIBS"
17397cat >conftest.$ac_ext <<_ACEOF
17398/* confdefs.h. */
17399_ACEOF
17400cat confdefs.h >>conftest.$ac_ext
17401cat >>conftest.$ac_ext <<_ACEOF
17402/* end confdefs.h. */
17403
17404/* Override any GCC internal prototype to avoid an error.
17405 Use char because int might match the return type of a GCC
17406 builtin and then its argument prototype would still apply. */
17407#ifdef __cplusplus
17408extern "C"
17409#endif
17410char dlopen ();
17411int
17412main ()
17413{
17414return dlopen ();
17415 ;
17416 return 0;
17417}
17418_ACEOF
17419rm -f conftest.$ac_objext conftest$ac_exeext
17420if { (ac_try="$ac_link"
17421case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424esac
17425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017432 (exit $ac_status); } &&
17433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17434 { (case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17437esac
17438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_try") 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try='test -s conftest$ac_exeext'
17444 { (case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17447esac
17448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_try") 2>&5
17450 ac_status=$?
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017453 ac_cv_lib_dl_dlopen=yes
17454else
17455 echo "$as_me: failed program was:" >&5
17456sed 's/^/| /' conftest.$ac_ext >&5
17457
17458 ac_cv_lib_dl_dlopen=no
17459fi
17460
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017461rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017462 conftest$ac_exeext conftest.$ac_ext
17463LIBS=$ac_check_lib_save_LIBS
17464fi
17465{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17466echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17467if test $ac_cv_lib_dl_dlopen = yes; then
17468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17469else
17470 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17471echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17472if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474else
17475 ac_check_lib_save_LIBS=$LIBS
17476LIBS="-lsvld $LIBS"
17477cat >conftest.$ac_ext <<_ACEOF
17478/* confdefs.h. */
17479_ACEOF
17480cat confdefs.h >>conftest.$ac_ext
17481cat >>conftest.$ac_ext <<_ACEOF
17482/* end confdefs.h. */
17483
17484/* Override any GCC internal prototype to avoid an error.
17485 Use char because int might match the return type of a GCC
17486 builtin and then its argument prototype would still apply. */
17487#ifdef __cplusplus
17488extern "C"
17489#endif
17490char dlopen ();
17491int
17492main ()
17493{
17494return dlopen ();
17495 ;
17496 return 0;
17497}
17498_ACEOF
17499rm -f conftest.$ac_objext conftest$ac_exeext
17500if { (ac_try="$ac_link"
17501case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504esac
17505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_link") 2>conftest.er1
17507 ac_status=$?
17508 grep -v '^ *+' conftest.er1 >conftest.err
17509 rm -f conftest.er1
17510 cat conftest.err >&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017512 (exit $ac_status); } &&
17513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17514 { (case "(($ac_try" in
17515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17517esac
17518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_try") 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17527esac
17528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_try") 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017533 ac_cv_lib_svld_dlopen=yes
17534else
17535 echo "$as_me: failed program was:" >&5
17536sed 's/^/| /' conftest.$ac_ext >&5
17537
17538 ac_cv_lib_svld_dlopen=no
17539fi
17540
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017541rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017542 conftest$ac_exeext conftest.$ac_ext
17543LIBS=$ac_check_lib_save_LIBS
17544fi
17545{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17546echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17547if test $ac_cv_lib_svld_dlopen = yes; then
17548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17549else
17550 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17551echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17552if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17553 echo $ECHO_N "(cached) $ECHO_C" >&6
17554else
17555 ac_check_lib_save_LIBS=$LIBS
17556LIBS="-ldld $LIBS"
17557cat >conftest.$ac_ext <<_ACEOF
17558/* confdefs.h. */
17559_ACEOF
17560cat confdefs.h >>conftest.$ac_ext
17561cat >>conftest.$ac_ext <<_ACEOF
17562/* end confdefs.h. */
17563
17564/* Override any GCC internal prototype to avoid an error.
17565 Use char because int might match the return type of a GCC
17566 builtin and then its argument prototype would still apply. */
17567#ifdef __cplusplus
17568extern "C"
17569#endif
17570char dld_link ();
17571int
17572main ()
17573{
17574return dld_link ();
17575 ;
17576 return 0;
17577}
17578_ACEOF
17579rm -f conftest.$ac_objext conftest$ac_exeext
17580if { (ac_try="$ac_link"
17581case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17584esac
17585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_link") 2>conftest.er1
17587 ac_status=$?
17588 grep -v '^ *+' conftest.er1 >conftest.err
17589 rm -f conftest.er1
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017592 (exit $ac_status); } &&
17593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594 { (case "(($ac_try" in
17595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596 *) ac_try_echo=$ac_try;;
17597esac
17598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599 (eval "$ac_try") 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest$ac_exeext'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17607esac
17608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17610 ac_status=$?
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017613 ac_cv_lib_dld_dld_link=yes
17614else
17615 echo "$as_me: failed program was:" >&5
17616sed 's/^/| /' conftest.$ac_ext >&5
17617
17618 ac_cv_lib_dld_dld_link=no
17619fi
17620
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017621rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017622 conftest$ac_exeext conftest.$ac_ext
17623LIBS=$ac_check_lib_save_LIBS
17624fi
17625{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17626echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17627if test $ac_cv_lib_dld_dld_link = yes; then
17628 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17629fi
17630
17631
17632fi
17633
17634
17635fi
17636
17637
17638fi
17639
17640
17641fi
17642
17643
17644fi
17645
17646 ;;
17647 esac
17648
17649 if test "x$lt_cv_dlopen" != xno; then
17650 enable_dlopen=yes
17651 else
17652 enable_dlopen=no
17653 fi
17654
17655 case $lt_cv_dlopen in
17656 dlopen)
17657 save_CPPFLAGS="$CPPFLAGS"
17658 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17659
17660 save_LDFLAGS="$LDFLAGS"
17661 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17662
17663 save_LIBS="$LIBS"
17664 LIBS="$lt_cv_dlopen_libs $LIBS"
17665
17666 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17667echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17668if test "${lt_cv_dlopen_self+set}" = set; then
17669 echo $ECHO_N "(cached) $ECHO_C" >&6
17670else
17671 if test "$cross_compiling" = yes; then :
17672 lt_cv_dlopen_self=cross
17673else
17674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17675 lt_status=$lt_dlunknown
17676 cat > conftest.$ac_ext <<EOF
Anton Korobeynikov1207b902009-08-18 00:40:51 +000017677#line 17677 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017678#include "confdefs.h"
17679
17680#if HAVE_DLFCN_H
17681#include <dlfcn.h>
17682#endif
17683
17684#include <stdio.h>
17685
17686#ifdef RTLD_GLOBAL
17687# define LT_DLGLOBAL RTLD_GLOBAL
17688#else
17689# ifdef DL_GLOBAL
17690# define LT_DLGLOBAL DL_GLOBAL
17691# else
17692# define LT_DLGLOBAL 0
17693# endif
17694#endif
17695
17696/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17697 find out it does not work in some platform. */
17698#ifndef LT_DLLAZY_OR_NOW
17699# ifdef RTLD_LAZY
17700# define LT_DLLAZY_OR_NOW RTLD_LAZY
17701# else
17702# ifdef DL_LAZY
17703# define LT_DLLAZY_OR_NOW DL_LAZY
17704# else
17705# ifdef RTLD_NOW
17706# define LT_DLLAZY_OR_NOW RTLD_NOW
17707# else
17708# ifdef DL_NOW
17709# define LT_DLLAZY_OR_NOW DL_NOW
17710# else
17711# define LT_DLLAZY_OR_NOW 0
17712# endif
17713# endif
17714# endif
17715# endif
17716#endif
17717
17718#ifdef __cplusplus
17719extern "C" void exit (int);
17720#endif
17721
17722void fnord() { int i=42;}
17723int main ()
17724{
17725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17726 int status = $lt_dlunknown;
17727
17728 if (self)
17729 {
17730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17731 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17732 /* dlclose (self); */
17733 }
17734 else
17735 puts (dlerror ());
17736
17737 exit (status);
17738}
17739EOF
17740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17741 (eval $ac_link) 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17745 (./conftest; exit; ) >&5 2>/dev/null
17746 lt_status=$?
17747 case x$lt_status in
17748 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17749 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17750 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17751 esac
17752 else :
17753 # compilation failed
17754 lt_cv_dlopen_self=no
17755 fi
17756fi
17757rm -fr conftest*
17758
17759
17760fi
17761{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17762echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17763
17764 if test "x$lt_cv_dlopen_self" = xyes; then
17765 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17766 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17767echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17768if test "${lt_cv_dlopen_self_static+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17770else
17771 if test "$cross_compiling" = yes; then :
17772 lt_cv_dlopen_self_static=cross
17773else
17774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17775 lt_status=$lt_dlunknown
17776 cat > conftest.$ac_ext <<EOF
Anton Korobeynikov1207b902009-08-18 00:40:51 +000017777#line 17777 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017778#include "confdefs.h"
17779
17780#if HAVE_DLFCN_H
17781#include <dlfcn.h>
17782#endif
17783
17784#include <stdio.h>
17785
17786#ifdef RTLD_GLOBAL
17787# define LT_DLGLOBAL RTLD_GLOBAL
17788#else
17789# ifdef DL_GLOBAL
17790# define LT_DLGLOBAL DL_GLOBAL
17791# else
17792# define LT_DLGLOBAL 0
17793# endif
17794#endif
17795
17796/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17797 find out it does not work in some platform. */
17798#ifndef LT_DLLAZY_OR_NOW
17799# ifdef RTLD_LAZY
17800# define LT_DLLAZY_OR_NOW RTLD_LAZY
17801# else
17802# ifdef DL_LAZY
17803# define LT_DLLAZY_OR_NOW DL_LAZY
17804# else
17805# ifdef RTLD_NOW
17806# define LT_DLLAZY_OR_NOW RTLD_NOW
17807# else
17808# ifdef DL_NOW
17809# define LT_DLLAZY_OR_NOW DL_NOW
17810# else
17811# define LT_DLLAZY_OR_NOW 0
17812# endif
17813# endif
17814# endif
17815# endif
17816#endif
17817
17818#ifdef __cplusplus
17819extern "C" void exit (int);
17820#endif
17821
17822void fnord() { int i=42;}
17823int main ()
17824{
17825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17826 int status = $lt_dlunknown;
17827
17828 if (self)
17829 {
17830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17831 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17832 /* dlclose (self); */
17833 }
17834 else
17835 puts (dlerror ());
17836
17837 exit (status);
17838}
17839EOF
17840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17841 (eval $ac_link) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17845 (./conftest; exit; ) >&5 2>/dev/null
17846 lt_status=$?
17847 case x$lt_status in
17848 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17849 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17850 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17851 esac
17852 else :
17853 # compilation failed
17854 lt_cv_dlopen_self_static=no
17855 fi
17856fi
17857rm -fr conftest*
17858
17859
17860fi
17861{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17862echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17863 fi
17864
17865 CPPFLAGS="$save_CPPFLAGS"
17866 LDFLAGS="$save_LDFLAGS"
17867 LIBS="$save_LIBS"
17868 ;;
17869 esac
17870
17871 case $lt_cv_dlopen_self in
17872 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17873 *) enable_dlopen_self=unknown ;;
17874 esac
17875
17876 case $lt_cv_dlopen_self_static in
17877 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17878 *) enable_dlopen_self_static=unknown ;;
17879 esac
17880fi
17881
17882
17883# Report which library types will actually be built
17884{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17885echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17886{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17887echo "${ECHO_T}$can_build_shared" >&6; }
17888
17889{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17890echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17891test "$can_build_shared" = "no" && enable_shared=no
17892
17893# On AIX, shared libraries and static libraries use the same namespace, and
17894# are all built from PIC.
17895case $host_os in
17896aix3*)
17897 test "$enable_shared" = yes && enable_static=no
17898 if test -n "$RANLIB"; then
17899 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17900 postinstall_cmds='$RANLIB $lib'
17901 fi
17902 ;;
17903
17904aix4* | aix5*)
17905 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17906 test "$enable_shared" = yes && enable_static=no
17907 fi
17908 ;;
17909esac
17910{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17911echo "${ECHO_T}$enable_shared" >&6; }
17912
17913{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17914echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17915# Make sure either enable_shared or enable_static is yes.
17916test "$enable_shared" = yes || enable_static=yes
17917{ echo "$as_me:$LINENO: result: $enable_static" >&5
17918echo "${ECHO_T}$enable_static" >&6; }
17919
17920# The else clause should only fire when bootstrapping the
17921# libtool distribution, otherwise you forgot to ship ltmain.sh
17922# with your package, and you will get complaints that there are
17923# no rules to generate ltmain.sh.
17924if test -f "$ltmain"; then
17925 # See if we are running on zsh, and set the options which allow our commands through
17926 # without removal of \ escapes.
17927 if test -n "${ZSH_VERSION+set}" ; then
17928 setopt NO_GLOB_SUBST
17929 fi
17930 # Now quote all the things that may contain metacharacters while being
17931 # careful not to overquote the AC_SUBSTed values. We take copies of the
17932 # variables and quote the copies for generation of the libtool script.
17933 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17934 SED SHELL STRIP \
17935 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17936 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17937 deplibs_check_method reload_flag reload_cmds need_locks \
17938 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17939 lt_cv_sys_global_symbol_to_c_name_address \
17940 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17941 old_postinstall_cmds old_postuninstall_cmds \
17942 compiler \
17943 CC \
17944 LD \
17945 lt_prog_compiler_wl \
17946 lt_prog_compiler_pic \
17947 lt_prog_compiler_static \
17948 lt_prog_compiler_no_builtin_flag \
17949 export_dynamic_flag_spec \
17950 thread_safe_flag_spec \
17951 whole_archive_flag_spec \
17952 enable_shared_with_static_runtimes \
17953 old_archive_cmds \
17954 old_archive_from_new_cmds \
17955 predep_objects \
17956 postdep_objects \
17957 predeps \
17958 postdeps \
17959 compiler_lib_search_path \
17960 archive_cmds \
17961 archive_expsym_cmds \
17962 postinstall_cmds \
17963 postuninstall_cmds \
17964 old_archive_from_expsyms_cmds \
17965 allow_undefined_flag \
17966 no_undefined_flag \
17967 export_symbols_cmds \
17968 hardcode_libdir_flag_spec \
17969 hardcode_libdir_flag_spec_ld \
17970 hardcode_libdir_separator \
17971 hardcode_automatic \
17972 module_cmds \
17973 module_expsym_cmds \
17974 lt_cv_prog_compiler_c_o \
17975 exclude_expsyms \
17976 include_expsyms; do
17977
17978 case $var in
17979 old_archive_cmds | \
17980 old_archive_from_new_cmds | \
17981 archive_cmds | \
17982 archive_expsym_cmds | \
17983 module_cmds | \
17984 module_expsym_cmds | \
17985 old_archive_from_expsyms_cmds | \
17986 export_symbols_cmds | \
17987 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17988 postinstall_cmds | postuninstall_cmds | \
17989 old_postinstall_cmds | old_postuninstall_cmds | \
17990 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17991 # Double-quote double-evaled strings.
17992 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17993 ;;
17994 *)
17995 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17996 ;;
17997 esac
17998 done
17999
18000 case $lt_echo in
18001 *'\$0 --fallback-echo"')
18002 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18003 ;;
18004 esac
18005
18006cfgfile="${ofile}T"
18007 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18008 $rm -f "$cfgfile"
18009 { echo "$as_me:$LINENO: creating $ofile" >&5
18010echo "$as_me: creating $ofile" >&6;}
18011
18012 cat <<__EOF__ >> "$cfgfile"
18013#! $SHELL
18014
18015# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18016# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18017# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18018#
18019# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18020# Free Software Foundation, Inc.
18021#
18022# This file is part of GNU Libtool:
18023# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18024#
18025# This program is free software; you can redistribute it and/or modify
18026# it under the terms of the GNU General Public License as published by
18027# the Free Software Foundation; either version 2 of the License, or
18028# (at your option) any later version.
18029#
18030# This program is distributed in the hope that it will be useful, but
18031# WITHOUT ANY WARRANTY; without even the implied warranty of
18032# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18033# General Public License for more details.
18034#
18035# You should have received a copy of the GNU General Public License
18036# along with this program; if not, write to the Free Software
18037# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18038#
18039# As a special exception to the GNU General Public License, if you
18040# distribute this file as part of a program that contains a
18041# configuration script generated by Autoconf, you may include it under
18042# the same distribution terms that you use for the rest of that program.
18043
18044# A sed program that does not truncate output.
18045SED=$lt_SED
18046
18047# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18048Xsed="$SED -e 1s/^X//"
18049
18050# The HP-UX ksh and POSIX shell print the target directory to stdout
18051# if CDPATH is set.
18052(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18053
18054# The names of the tagged configurations supported by this script.
18055available_tags=
18056
18057# ### BEGIN LIBTOOL CONFIG
18058
18059# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18060
18061# Shell to use when invoking shell scripts.
18062SHELL=$lt_SHELL
18063
18064# Whether or not to build shared libraries.
18065build_libtool_libs=$enable_shared
18066
18067# Whether or not to build static libraries.
18068build_old_libs=$enable_static
18069
18070# Whether or not to add -lc for building shared libraries.
18071build_libtool_need_lc=$archive_cmds_need_lc
18072
18073# Whether or not to disallow shared libs when runtime libs are static
18074allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18075
18076# Whether or not to optimize for fast installation.
18077fast_install=$enable_fast_install
18078
18079# The host system.
18080host_alias=$host_alias
18081host=$host
18082host_os=$host_os
18083
18084# The build system.
18085build_alias=$build_alias
18086build=$build
18087build_os=$build_os
18088
18089# An echo program that does not interpret backslashes.
18090echo=$lt_echo
18091
18092# The archiver.
18093AR=$lt_AR
18094AR_FLAGS=$lt_AR_FLAGS
18095
18096# A C compiler.
18097LTCC=$lt_LTCC
18098
18099# LTCC compiler flags.
18100LTCFLAGS=$lt_LTCFLAGS
18101
18102# A language-specific compiler.
18103CC=$lt_compiler
18104
18105# Is the compiler the GNU C compiler?
18106with_gcc=$GCC
18107
18108# An ERE matcher.
18109EGREP=$lt_EGREP
18110
18111# The linker used to build libraries.
18112LD=$lt_LD
18113
18114# Whether we need hard or soft links.
18115LN_S=$lt_LN_S
18116
18117# A BSD-compatible nm program.
18118NM=$lt_NM
18119
18120# A symbol stripping program
18121STRIP=$lt_STRIP
18122
18123# Used to examine libraries when file_magic_cmd begins "file"
18124MAGIC_CMD=$MAGIC_CMD
18125
18126# Used on cygwin: DLL creation program.
18127DLLTOOL="$DLLTOOL"
18128
18129# Used on cygwin: object dumper.
18130OBJDUMP="$OBJDUMP"
18131
18132# Used on cygwin: assembler.
18133AS="$AS"
18134
18135# The name of the directory that contains temporary libtool files.
18136objdir=$objdir
18137
18138# How to create reloadable object files.
18139reload_flag=$lt_reload_flag
18140reload_cmds=$lt_reload_cmds
18141
18142# How to pass a linker flag through the compiler.
18143wl=$lt_lt_prog_compiler_wl
18144
18145# Object file suffix (normally "o").
18146objext="$ac_objext"
18147
18148# Old archive suffix (normally "a").
18149libext="$libext"
18150
18151# Shared library suffix (normally ".so").
18152shrext_cmds='$shrext_cmds'
18153
18154# Executable file suffix (normally "").
18155exeext="$exeext"
18156
18157# Additional compiler flags for building library objects.
18158pic_flag=$lt_lt_prog_compiler_pic
18159pic_mode=$pic_mode
18160
18161# What is the maximum length of a command?
18162max_cmd_len=$lt_cv_sys_max_cmd_len
18163
18164# Does compiler simultaneously support -c and -o options?
18165compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18166
18167# Must we lock files when doing compilation?
18168need_locks=$lt_need_locks
18169
18170# Do we need the lib prefix for modules?
18171need_lib_prefix=$need_lib_prefix
18172
18173# Do we need a version for libraries?
18174need_version=$need_version
18175
18176# Whether dlopen is supported.
18177dlopen_support=$enable_dlopen
18178
18179# Whether dlopen of programs is supported.
18180dlopen_self=$enable_dlopen_self
18181
18182# Whether dlopen of statically linked programs is supported.
18183dlopen_self_static=$enable_dlopen_self_static
18184
18185# Compiler flag to prevent dynamic linking.
18186link_static_flag=$lt_lt_prog_compiler_static
18187
18188# Compiler flag to turn off builtin functions.
18189no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18190
18191# Compiler flag to allow reflexive dlopens.
18192export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18193
18194# Compiler flag to generate shared objects directly from archives.
18195whole_archive_flag_spec=$lt_whole_archive_flag_spec
18196
18197# Compiler flag to generate thread-safe objects.
18198thread_safe_flag_spec=$lt_thread_safe_flag_spec
18199
18200# Library versioning type.
18201version_type=$version_type
18202
18203# Format of library name prefix.
18204libname_spec=$lt_libname_spec
18205
18206# List of archive names. First name is the real one, the rest are links.
18207# The last name is the one that the linker finds with -lNAME.
18208library_names_spec=$lt_library_names_spec
18209
18210# The coded name of the library, if different from the real name.
18211soname_spec=$lt_soname_spec
18212
18213# Commands used to build and install an old-style archive.
18214RANLIB=$lt_RANLIB
18215old_archive_cmds=$lt_old_archive_cmds
18216old_postinstall_cmds=$lt_old_postinstall_cmds
18217old_postuninstall_cmds=$lt_old_postuninstall_cmds
18218
18219# Create an old-style archive from a shared archive.
18220old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18221
18222# Create a temporary old-style archive to link instead of a shared archive.
18223old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18224
18225# Commands used to build and install a shared archive.
18226archive_cmds=$lt_archive_cmds
18227archive_expsym_cmds=$lt_archive_expsym_cmds
18228postinstall_cmds=$lt_postinstall_cmds
18229postuninstall_cmds=$lt_postuninstall_cmds
18230
18231# Commands used to build a loadable module (assumed same as above if empty)
18232module_cmds=$lt_module_cmds
18233module_expsym_cmds=$lt_module_expsym_cmds
18234
18235# Commands to strip libraries.
18236old_striplib=$lt_old_striplib
18237striplib=$lt_striplib
18238
18239# Dependencies to place before the objects being linked to create a
18240# shared library.
18241predep_objects=$lt_predep_objects
18242
18243# Dependencies to place after the objects being linked to create a
18244# shared library.
18245postdep_objects=$lt_postdep_objects
18246
18247# Dependencies to place before the objects being linked to create a
18248# shared library.
18249predeps=$lt_predeps
18250
18251# Dependencies to place after the objects being linked to create a
18252# shared library.
18253postdeps=$lt_postdeps
18254
18255# The library search path used internally by the compiler when linking
18256# a shared library.
18257compiler_lib_search_path=$lt_compiler_lib_search_path
18258
18259# Method to check whether dependent libraries are shared objects.
18260deplibs_check_method=$lt_deplibs_check_method
18261
18262# Command to use when deplibs_check_method == file_magic.
18263file_magic_cmd=$lt_file_magic_cmd
18264
18265# Flag that allows shared libraries with undefined symbols to be built.
18266allow_undefined_flag=$lt_allow_undefined_flag
18267
18268# Flag that forces no undefined symbols.
18269no_undefined_flag=$lt_no_undefined_flag
18270
18271# Commands used to finish a libtool library installation in a directory.
18272finish_cmds=$lt_finish_cmds
18273
18274# Same as above, but a single script fragment to be evaled but not shown.
18275finish_eval=$lt_finish_eval
18276
18277# Take the output of nm and produce a listing of raw symbols and C names.
18278global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18279
18280# Transform the output of nm in a proper C declaration
18281global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18282
18283# Transform the output of nm in a C name address pair
18284global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18285
18286# This is the shared library runtime path variable.
18287runpath_var=$runpath_var
18288
18289# This is the shared library path variable.
18290shlibpath_var=$shlibpath_var
18291
18292# Is shlibpath searched before the hard-coded library search path?
18293shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18294
18295# How to hardcode a shared library path into an executable.
18296hardcode_action=$hardcode_action
18297
18298# Whether we should hardcode library paths into libraries.
18299hardcode_into_libs=$hardcode_into_libs
18300
18301# Flag to hardcode \$libdir into a binary during linking.
18302# This must work even if \$libdir does not exist.
18303hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18304
18305# If ld is used when linking, flag to hardcode \$libdir into
18306# a binary during linking. This must work even if \$libdir does
18307# not exist.
18308hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18309
18310# Whether we need a single -rpath flag with a separated argument.
18311hardcode_libdir_separator=$lt_hardcode_libdir_separator
18312
18313# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18314# resulting binary.
18315hardcode_direct=$hardcode_direct
18316
18317# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18318# resulting binary.
18319hardcode_minus_L=$hardcode_minus_L
18320
18321# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18322# the resulting binary.
18323hardcode_shlibpath_var=$hardcode_shlibpath_var
18324
18325# Set to yes if building a shared library automatically hardcodes DIR into the library
18326# and all subsequent libraries and executables linked against it.
18327hardcode_automatic=$hardcode_automatic
18328
18329# Variables whose values should be saved in libtool wrapper scripts and
18330# restored at relink time.
18331variables_saved_for_relink="$variables_saved_for_relink"
18332
18333# Whether libtool must link a program against all its dependency libraries.
18334link_all_deplibs=$link_all_deplibs
18335
18336# Compile-time system search path for libraries
18337sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18338
18339# Run-time system search path for libraries
18340sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18341
18342# Fix the shell variable \$srcfile for the compiler.
18343fix_srcfile_path="$fix_srcfile_path"
18344
18345# Set to yes if exported symbols are required.
18346always_export_symbols=$always_export_symbols
18347
18348# The commands to list exported symbols.
18349export_symbols_cmds=$lt_export_symbols_cmds
18350
18351# The commands to extract the exported symbol list from a shared archive.
18352extract_expsyms_cmds=$lt_extract_expsyms_cmds
18353
18354# Symbols that should not be listed in the preloaded symbols.
18355exclude_expsyms=$lt_exclude_expsyms
18356
18357# Symbols that must always be exported.
18358include_expsyms=$lt_include_expsyms
18359
18360# ### END LIBTOOL CONFIG
18361
18362__EOF__
18363
18364
18365 case $host_os in
18366 aix3*)
18367 cat <<\EOF >> "$cfgfile"
18368
18369# AIX sometimes has problems with the GCC collect2 program. For some
18370# reason, if we set the COLLECT_NAMES environment variable, the problems
18371# vanish in a puff of smoke.
18372if test "X${COLLECT_NAMES+set}" != Xset; then
18373 COLLECT_NAMES=
18374 export COLLECT_NAMES
18375fi
18376EOF
18377 ;;
18378 esac
18379
18380 # We use sed instead of cat because bash on DJGPP gets confused if
18381 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18382 # text mode, it properly converts lines to CR/LF. This bash problem
18383 # is reportedly fixed, but why not run on old versions too?
18384 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18385
18386 mv -f "$cfgfile" "$ofile" || \
18387 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18388 chmod +x "$ofile"
18389
18390else
18391 # If there is no Makefile yet, we rely on a make rule to execute
18392 # `config.status --recheck' to rerun these tests and create the
18393 # libtool script then.
18394 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18395 if test -f "$ltmain_in"; then
18396 test -f Makefile && make "$ltmain"
18397 fi
18398fi
18399
18400
18401ac_ext=c
18402ac_cpp='$CPP $CPPFLAGS'
18403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18405ac_compiler_gnu=$ac_cv_c_compiler_gnu
18406
18407CC="$lt_save_CC"
18408
18409
18410# Check whether --with-tags was given.
18411if test "${with_tags+set}" = set; then
18412 withval=$with_tags; tagnames="$withval"
18413fi
18414
18415
18416if test -f "$ltmain" && test -n "$tagnames"; then
18417 if test ! -f "${ofile}"; then
18418 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18419echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18420 fi
18421
18422 if test -z "$LTCC"; then
18423 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18424 if test -z "$LTCC"; then
18425 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18426echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18427 else
18428 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18429echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18430 fi
18431 fi
18432 if test -z "$LTCFLAGS"; then
18433 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18434 fi
18435
18436 # Extract list of available tagged configurations in $ofile.
18437 # Note that this assumes the entire list is on one line.
18438 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18439
18440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18441 for tagname in $tagnames; do
18442 IFS="$lt_save_ifs"
18443 # Check whether tagname contains only valid characters
18444 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18445 "") ;;
18446 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18447echo "$as_me: error: invalid tag name: $tagname" >&2;}
18448 { (exit 1); exit 1; }; }
18449 ;;
18450 esac
18451
18452 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18453 then
18454 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18455echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18456 { (exit 1); exit 1; }; }
18457 fi
18458
18459 # Update the list of available tags.
18460 if test -n "$tagname"; then
18461 echo appending configuration tag \"$tagname\" to $ofile
18462
18463 case $tagname in
18464 CXX)
18465 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18466 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18467 (test "X$CXX" != "Xg++"))) ; then
18468 ac_ext=cpp
18469ac_cpp='$CXXCPP $CPPFLAGS'
18470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18473
18474
18475
18476
18477archive_cmds_need_lc_CXX=no
18478allow_undefined_flag_CXX=
18479always_export_symbols_CXX=no
18480archive_expsym_cmds_CXX=
18481export_dynamic_flag_spec_CXX=
18482hardcode_direct_CXX=no
18483hardcode_libdir_flag_spec_CXX=
18484hardcode_libdir_flag_spec_ld_CXX=
18485hardcode_libdir_separator_CXX=
18486hardcode_minus_L_CXX=no
18487hardcode_shlibpath_var_CXX=unsupported
18488hardcode_automatic_CXX=no
18489module_cmds_CXX=
18490module_expsym_cmds_CXX=
18491link_all_deplibs_CXX=unknown
18492old_archive_cmds_CXX=$old_archive_cmds
18493no_undefined_flag_CXX=
18494whole_archive_flag_spec_CXX=
18495enable_shared_with_static_runtimes_CXX=no
18496
18497# Dependencies to place before and after the object being linked:
18498predep_objects_CXX=
18499postdep_objects_CXX=
18500predeps_CXX=
18501postdeps_CXX=
18502compiler_lib_search_path_CXX=
18503
18504# Source file extension for C++ test sources.
18505ac_ext=cpp
18506
18507# Object file extension for compiled C++ test sources.
18508objext=o
18509objext_CXX=$objext
18510
18511# Code to be used in simple compile tests
18512lt_simple_compile_test_code="int some_variable = 0;\n"
18513
18514# Code to be used in simple link tests
18515lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18516
18517# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18518
18519# If no C compiler was specified, use CC.
18520LTCC=${LTCC-"$CC"}
18521
18522# If no C compiler flags were specified, use CFLAGS.
18523LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18524
18525# Allow CC to be a program name with arguments.
18526compiler=$CC
18527
18528
18529# save warnings/boilerplate of simple test code
18530ac_outfile=conftest.$ac_objext
18531printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18532eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18533_lt_compiler_boilerplate=`cat conftest.err`
18534$rm conftest*
18535
18536ac_outfile=conftest.$ac_objext
18537printf "$lt_simple_link_test_code" >conftest.$ac_ext
18538eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18539_lt_linker_boilerplate=`cat conftest.err`
18540$rm conftest*
18541
18542
18543# Allow CC to be a program name with arguments.
18544lt_save_CC=$CC
18545lt_save_LD=$LD
18546lt_save_GCC=$GCC
18547GCC=$GXX
18548lt_save_with_gnu_ld=$with_gnu_ld
18549lt_save_path_LD=$lt_cv_path_LD
18550if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18551 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18552else
18553 $as_unset lt_cv_prog_gnu_ld
18554fi
18555if test -n "${lt_cv_path_LDCXX+set}"; then
18556 lt_cv_path_LD=$lt_cv_path_LDCXX
18557else
18558 $as_unset lt_cv_path_LD
18559fi
18560test -z "${LDCXX+set}" || LD=$LDCXX
18561CC=${CXX-"c++"}
18562compiler=$CC
18563compiler_CXX=$CC
18564for cc_temp in $compiler""; do
18565 case $cc_temp in
18566 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18567 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18568 \-*) ;;
18569 *) break;;
18570 esac
18571done
18572cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18573
18574
18575# We don't want -fno-exception wen compiling C++ code, so set the
18576# no_builtin_flag separately
18577if test "$GXX" = yes; then
18578 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18579else
18580 lt_prog_compiler_no_builtin_flag_CXX=
18581fi
18582
18583if test "$GXX" = yes; then
18584 # Set up default GNU C++ configuration
18585
18586
18587# Check whether --with-gnu-ld was given.
18588if test "${with_gnu_ld+set}" = set; then
18589 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18590else
18591 with_gnu_ld=no
18592fi
18593
18594ac_prog=ld
18595if test "$GCC" = yes; then
18596 # Check if gcc -print-prog-name=ld gives a path.
18597 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18598echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18599 case $host in
18600 *-*-mingw*)
18601 # gcc leaves a trailing carriage return which upsets mingw
18602 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18603 *)
18604 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18605 esac
18606 case $ac_prog in
18607 # Accept absolute paths.
18608 [\\/]* | ?:[\\/]*)
18609 re_direlt='/[^/][^/]*/\.\./'
18610 # Canonicalize the pathname of ld
18611 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18612 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18613 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18614 done
18615 test -z "$LD" && LD="$ac_prog"
18616 ;;
18617 "")
18618 # If it fails, then pretend we aren't using GCC.
18619 ac_prog=ld
18620 ;;
18621 *)
18622 # If it is relative, then search for the first ld in PATH.
18623 with_gnu_ld=unknown
18624 ;;
18625 esac
18626elif test "$with_gnu_ld" = yes; then
18627 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18628echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18629else
18630 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18631echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18632fi
18633if test "${lt_cv_path_LD+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18635else
18636 if test -z "$LD"; then
18637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18638 for ac_dir in $PATH; do
18639 IFS="$lt_save_ifs"
18640 test -z "$ac_dir" && ac_dir=.
18641 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18642 lt_cv_path_LD="$ac_dir/$ac_prog"
18643 # Check to see if the program is GNU ld. I'd rather use --version,
18644 # but apparently some variants of GNU ld only accept -v.
18645 # Break only if it was the GNU/non-GNU ld that we prefer.
18646 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18647 *GNU* | *'with BFD'*)
18648 test "$with_gnu_ld" != no && break
18649 ;;
18650 *)
18651 test "$with_gnu_ld" != yes && break
18652 ;;
18653 esac
18654 fi
18655 done
18656 IFS="$lt_save_ifs"
18657else
18658 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18659fi
18660fi
18661
18662LD="$lt_cv_path_LD"
18663if test -n "$LD"; then
18664 { echo "$as_me:$LINENO: result: $LD" >&5
18665echo "${ECHO_T}$LD" >&6; }
18666else
18667 { echo "$as_me:$LINENO: result: no" >&5
18668echo "${ECHO_T}no" >&6; }
18669fi
18670test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18671echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18672 { (exit 1); exit 1; }; }
18673{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18674echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18675if test "${lt_cv_prog_gnu_ld+set}" = set; then
18676 echo $ECHO_N "(cached) $ECHO_C" >&6
18677else
18678 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18679case `$LD -v 2>&1 </dev/null` in
18680*GNU* | *'with BFD'*)
18681 lt_cv_prog_gnu_ld=yes
18682 ;;
18683*)
18684 lt_cv_prog_gnu_ld=no
18685 ;;
18686esac
18687fi
18688{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18689echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18690with_gnu_ld=$lt_cv_prog_gnu_ld
18691
18692
18693
18694 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18695 # archiving commands below assume that GNU ld is being used.
18696 if test "$with_gnu_ld" = yes; then
18697 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18698 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'
18699
18700 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18702
18703 # If archive_cmds runs LD, not CC, wlarc should be empty
18704 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18705 # investigate it a little bit more. (MM)
18706 wlarc='${wl}'
18707
18708 # ancient GNU ld didn't support --whole-archive et. al.
18709 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18710 grep 'no-whole-archive' > /dev/null; then
18711 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18712 else
18713 whole_archive_flag_spec_CXX=
18714 fi
18715 else
18716 with_gnu_ld=no
18717 wlarc=
18718
18719 # A generic and very simple default shared library creation
18720 # command for GNU C++ for the case where it uses the native
18721 # linker, instead of GNU ld. If possible, this setting should
18722 # overridden to take advantage of the native linker features on
18723 # the platform it is being used on.
18724 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18725 fi
18726
18727 # Commands to make compiler produce verbose output that lists
18728 # what "hidden" libraries, object files and flags are used when
18729 # linking a shared library.
18730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18731
18732else
18733 GXX=no
18734 with_gnu_ld=no
18735 wlarc=
18736fi
18737
18738# PORTME: fill in a description of your system's C++ link characteristics
18739{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18740echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18741ld_shlibs_CXX=yes
18742case $host_os in
18743 aix3*)
18744 # FIXME: insert proper C++ library support
18745 ld_shlibs_CXX=no
18746 ;;
18747 aix4* | aix5*)
18748 if test "$host_cpu" = ia64; then
18749 # On IA64, the linker does run time linking by default, so we don't
18750 # have to do anything special.
18751 aix_use_runtimelinking=no
18752 exp_sym_flag='-Bexport'
18753 no_entry_flag=""
18754 else
18755 aix_use_runtimelinking=no
18756
18757 # Test if we are trying to use run time linking or normal
18758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18759 # need to do runtime linking.
18760 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18761 for ld_flag in $LDFLAGS; do
18762 case $ld_flag in
18763 *-brtl*)
18764 aix_use_runtimelinking=yes
18765 break
18766 ;;
18767 esac
18768 done
18769 ;;
18770 esac
18771
18772 exp_sym_flag='-bexport'
18773 no_entry_flag='-bnoentry'
18774 fi
18775
18776 # When large executables or shared objects are built, AIX ld can
18777 # have problems creating the table of contents. If linking a library
18778 # or program results in "error TOC overflow" add -mminimal-toc to
18779 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18780 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18781
18782 archive_cmds_CXX=''
18783 hardcode_direct_CXX=yes
18784 hardcode_libdir_separator_CXX=':'
18785 link_all_deplibs_CXX=yes
18786
18787 if test "$GXX" = yes; then
18788 case $host_os in aix4.[012]|aix4.[012].*)
18789 # We only want to do this on AIX 4.2 and lower, the check
18790 # below for broken collect2 doesn't work under 4.3+
18791 collect2name=`${CC} -print-prog-name=collect2`
18792 if test -f "$collect2name" && \
18793 strings "$collect2name" | grep resolve_lib_name >/dev/null
18794 then
18795 # We have reworked collect2
18796 hardcode_direct_CXX=yes
18797 else
18798 # We have old collect2
18799 hardcode_direct_CXX=unsupported
18800 # It fails to find uninstalled libraries when the uninstalled
18801 # path is not listed in the libpath. Setting hardcode_minus_L
18802 # to unsupported forces relinking
18803 hardcode_minus_L_CXX=yes
18804 hardcode_libdir_flag_spec_CXX='-L$libdir'
18805 hardcode_libdir_separator_CXX=
18806 fi
18807 ;;
18808 esac
18809 shared_flag='-shared'
18810 if test "$aix_use_runtimelinking" = yes; then
18811 shared_flag="$shared_flag "'${wl}-G'
18812 fi
18813 else
18814 # not using gcc
18815 if test "$host_cpu" = ia64; then
18816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18817 # chokes on -Wl,-G. The following line is correct:
18818 shared_flag='-G'
18819 else
18820 if test "$aix_use_runtimelinking" = yes; then
18821 shared_flag='${wl}-G'
18822 else
18823 shared_flag='${wl}-bM:SRE'
18824 fi
18825 fi
18826 fi
18827
18828 # It seems that -bexpall does not export symbols beginning with
18829 # underscore (_), so it is better to generate a list of symbols to export.
18830 always_export_symbols_CXX=yes
18831 if test "$aix_use_runtimelinking" = yes; then
18832 # Warning - without using the other runtime loading flags (-brtl),
18833 # -berok will link without error, but may produce a broken library.
18834 allow_undefined_flag_CXX='-berok'
18835 # Determine the default libpath from the value encoded in an empty executable.
18836 cat >conftest.$ac_ext <<_ACEOF
18837/* confdefs.h. */
18838_ACEOF
18839cat confdefs.h >>conftest.$ac_ext
18840cat >>conftest.$ac_ext <<_ACEOF
18841/* end confdefs.h. */
18842
18843int
18844main ()
18845{
18846
18847 ;
18848 return 0;
18849}
18850_ACEOF
18851rm -f conftest.$ac_objext conftest$ac_exeext
18852if { (ac_try="$ac_link"
18853case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18856esac
18857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_link") 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018864 (exit $ac_status); } &&
18865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18866 { (case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869esac
18870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_try") 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest$ac_exeext'
18876 { (case "(($ac_try" in
18877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878 *) ac_try_echo=$ac_try;;
18879esac
18880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881 (eval "$ac_try") 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018885
18886aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18887}'`
18888# Check for a 64-bit object if we didn't find anything.
18889if 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; }
18890}'`; fi
18891else
18892 echo "$as_me: failed program was:" >&5
18893sed 's/^/| /' conftest.$ac_ext >&5
18894
18895
18896fi
18897
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018898rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018899 conftest$ac_exeext conftest.$ac_ext
18900if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18901
18902 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18903
18904 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"
18905 else
18906 if test "$host_cpu" = ia64; then
18907 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18908 allow_undefined_flag_CXX="-z nodefs"
18909 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"
18910 else
18911 # Determine the default libpath from the value encoded in an empty executable.
18912 cat >conftest.$ac_ext <<_ACEOF
18913/* confdefs.h. */
18914_ACEOF
18915cat confdefs.h >>conftest.$ac_ext
18916cat >>conftest.$ac_ext <<_ACEOF
18917/* end confdefs.h. */
18918
18919int
18920main ()
18921{
18922
18923 ;
18924 return 0;
18925}
18926_ACEOF
18927rm -f conftest.$ac_objext conftest$ac_exeext
18928if { (ac_try="$ac_link"
18929case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18932esac
18933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_link") 2>conftest.er1
18935 ac_status=$?
18936 grep -v '^ *+' conftest.er1 >conftest.err
18937 rm -f conftest.er1
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018940 (exit $ac_status); } &&
18941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18942 { (case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945esac
18946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_try") 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest$ac_exeext'
18952 { (case "(($ac_try" in
18953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18954 *) ac_try_echo=$ac_try;;
18955esac
18956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18957 (eval "$ac_try") 2>&5
18958 ac_status=$?
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018961
18962aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18963}'`
18964# Check for a 64-bit object if we didn't find anything.
18965if 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; }
18966}'`; fi
18967else
18968 echo "$as_me: failed program was:" >&5
18969sed 's/^/| /' conftest.$ac_ext >&5
18970
18971
18972fi
18973
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018974rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018975 conftest$ac_exeext conftest.$ac_ext
18976if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18977
18978 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18979 # Warning - without using the other run time loading flags,
18980 # -berok will link without error, but may produce a broken library.
18981 no_undefined_flag_CXX=' ${wl}-bernotok'
18982 allow_undefined_flag_CXX=' ${wl}-berok'
18983 # Exported symbols can be pulled into shared objects from archives
18984 whole_archive_flag_spec_CXX='$convenience'
18985 archive_cmds_need_lc_CXX=yes
18986 # This is similar to how AIX traditionally builds its shared libraries.
18987 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'
18988 fi
18989 fi
18990 ;;
18991
18992 beos*)
18993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18994 allow_undefined_flag_CXX=unsupported
18995 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18996 # support --undefined. This deserves some investigation. FIXME
18997 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18998 else
18999 ld_shlibs_CXX=no
19000 fi
19001 ;;
19002
19003 chorus*)
19004 case $cc_basename in
19005 *)
19006 # FIXME: insert proper C++ library support
19007 ld_shlibs_CXX=no
19008 ;;
19009 esac
19010 ;;
19011
19012 cygwin* | mingw* | pw32*)
19013 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19014 # as there is no search path for DLLs.
19015 hardcode_libdir_flag_spec_CXX='-L$libdir'
19016 allow_undefined_flag_CXX=unsupported
19017 always_export_symbols_CXX=no
19018 enable_shared_with_static_runtimes_CXX=yes
19019
19020 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19021 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'
19022 # If the export-symbols file already is a .def file (1st line
19023 # is EXPORTS), use it as is; otherwise, prepend...
19024 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19025 cp $export_symbols $output_objdir/$soname.def;
19026 else
19027 echo EXPORTS > $output_objdir/$soname.def;
19028 cat $export_symbols >> $output_objdir/$soname.def;
19029 fi~
19030 $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'
19031 else
19032 ld_shlibs_CXX=no
19033 fi
19034 ;;
19035 darwin* | rhapsody*)
19036 case $host_os in
19037 rhapsody* | darwin1.[012])
19038 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19039 ;;
19040 *) # Darwin 1.3 on
19041 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19042 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19043 else
19044 case ${MACOSX_DEPLOYMENT_TARGET} in
19045 10.[012])
19046 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19047 ;;
19048 10.*)
19049 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19050 ;;
19051 esac
19052 fi
19053 ;;
19054 esac
19055 archive_cmds_need_lc_CXX=no
19056 hardcode_direct_CXX=no
19057 hardcode_automatic_CXX=yes
19058 hardcode_shlibpath_var_CXX=unsupported
19059 whole_archive_flag_spec_CXX=''
19060 link_all_deplibs_CXX=yes
19061
19062 if test "$GXX" = yes ; then
19063 lt_int_apple_cc_single_mod=no
19064 output_verbose_link_cmd='echo'
19065 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19066 lt_int_apple_cc_single_mod=yes
19067 fi
19068 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19069 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19070 else
19071 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'
19072 fi
19073 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19074 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19075 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19076 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}'
19077 else
19078 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}'
19079 fi
19080 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}'
19081 else
19082 case $cc_basename in
19083 xlc*)
19084 output_verbose_link_cmd='echo'
19085 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'
19086 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19087 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19088 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}'
19089 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}'
19090 ;;
19091 *)
19092 ld_shlibs_CXX=no
19093 ;;
19094 esac
19095 fi
19096 ;;
19097
19098 dgux*)
19099 case $cc_basename in
19100 ec++*)
19101 # FIXME: insert proper C++ library support
19102 ld_shlibs_CXX=no
19103 ;;
19104 ghcx*)
19105 # Green Hills C++ Compiler
19106 # FIXME: insert proper C++ library support
19107 ld_shlibs_CXX=no
19108 ;;
19109 *)
19110 # FIXME: insert proper C++ library support
19111 ld_shlibs_CXX=no
19112 ;;
19113 esac
19114 ;;
19115 freebsd[12]*)
19116 # C++ shared libraries reported to be fairly broken before switch to ELF
19117 ld_shlibs_CXX=no
19118 ;;
19119 freebsd-elf*)
19120 archive_cmds_need_lc_CXX=no
19121 ;;
19122 freebsd* | kfreebsd*-gnu | dragonfly*)
19123 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19124 # conventions
19125 ld_shlibs_CXX=yes
19126 ;;
19127 gnu*)
19128 ;;
19129 hpux9*)
19130 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19131 hardcode_libdir_separator_CXX=:
19132 export_dynamic_flag_spec_CXX='${wl}-E'
19133 hardcode_direct_CXX=yes
19134 hardcode_minus_L_CXX=yes # Not in the search PATH,
19135 # but as the default
19136 # location of the library.
19137
19138 case $cc_basename in
19139 CC*)
19140 # FIXME: insert proper C++ library support
19141 ld_shlibs_CXX=no
19142 ;;
19143 aCC*)
19144 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'
19145 # Commands to make compiler produce verbose output that lists
19146 # what "hidden" libraries, object files and flags are used when
19147 # linking a shared library.
19148 #
19149 # There doesn't appear to be a way to prevent this compiler from
19150 # explicitly linking system object files so we need to strip them
19151 # from the output so that they don't get included in the library
19152 # dependencies.
19153 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'
19154 ;;
19155 *)
19156 if test "$GXX" = yes; then
19157 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'
19158 else
19159 # FIXME: insert proper C++ library support
19160 ld_shlibs_CXX=no
19161 fi
19162 ;;
19163 esac
19164 ;;
19165 hpux10*|hpux11*)
19166 if test $with_gnu_ld = no; then
19167 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19168 hardcode_libdir_separator_CXX=:
19169
19170 case $host_cpu in
19171 hppa*64*|ia64*)
19172 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19173 ;;
19174 *)
19175 export_dynamic_flag_spec_CXX='${wl}-E'
19176 ;;
19177 esac
19178 fi
19179 case $host_cpu in
19180 hppa*64*|ia64*)
19181 hardcode_direct_CXX=no
19182 hardcode_shlibpath_var_CXX=no
19183 ;;
19184 *)
19185 hardcode_direct_CXX=yes
19186 hardcode_minus_L_CXX=yes # Not in the search PATH,
19187 # but as the default
19188 # location of the library.
19189 ;;
19190 esac
19191
19192 case $cc_basename in
19193 CC*)
19194 # FIXME: insert proper C++ library support
19195 ld_shlibs_CXX=no
19196 ;;
19197 aCC*)
19198 case $host_cpu in
19199 hppa*64*)
19200 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19201 ;;
19202 ia64*)
19203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19204 ;;
19205 *)
19206 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19207 ;;
19208 esac
19209 # Commands to make compiler produce verbose output that lists
19210 # what "hidden" libraries, object files and flags are used when
19211 # linking a shared library.
19212 #
19213 # There doesn't appear to be a way to prevent this compiler from
19214 # explicitly linking system object files so we need to strip them
19215 # from the output so that they don't get included in the library
19216 # dependencies.
19217 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'
19218 ;;
19219 *)
19220 if test "$GXX" = yes; then
19221 if test $with_gnu_ld = no; then
19222 case $host_cpu in
19223 hppa*64*)
19224 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19225 ;;
19226 ia64*)
19227 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19228 ;;
19229 *)
19230 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'
19231 ;;
19232 esac
19233 fi
19234 else
19235 # FIXME: insert proper C++ library support
19236 ld_shlibs_CXX=no
19237 fi
19238 ;;
19239 esac
19240 ;;
19241 interix3*)
19242 hardcode_direct_CXX=no
19243 hardcode_shlibpath_var_CXX=no
19244 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19245 export_dynamic_flag_spec_CXX='${wl}-E'
19246 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19247 # Instead, shared libraries are loaded at an image base (0x10000000 by
19248 # default) and relocated if they conflict, which is a slow very memory
19249 # consuming and fragmenting process. To avoid this, we pick a random,
19250 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19251 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19252 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'
19253 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'
19254 ;;
19255 irix5* | irix6*)
19256 case $cc_basename in
19257 CC*)
19258 # SGI C++
19259 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'
19260
19261 # Archives containing C++ object files must be created using
19262 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19263 # necessary to make sure instantiated templates are included
19264 # in the archive.
19265 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19266 ;;
19267 *)
19268 if test "$GXX" = yes; then
19269 if test "$with_gnu_ld" = no; then
19270 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'
19271 else
19272 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'
19273 fi
19274 fi
19275 link_all_deplibs_CXX=yes
19276 ;;
19277 esac
19278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19279 hardcode_libdir_separator_CXX=:
19280 ;;
19281 linux*)
19282 case $cc_basename in
19283 KCC*)
19284 # Kuck and Associates, Inc. (KAI) C++ Compiler
19285
19286 # KCC will only create a shared library if the output file
19287 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19288 # to its proper name (with version) after linking.
19289 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'
19290 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'
19291 # Commands to make compiler produce verbose output that lists
19292 # what "hidden" libraries, object files and flags are used when
19293 # linking a shared library.
19294 #
19295 # There doesn't appear to be a way to prevent this compiler from
19296 # explicitly linking system object files so we need to strip them
19297 # from the output so that they don't get included in the library
19298 # dependencies.
19299 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'
19300
19301 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19302 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19303
19304 # Archives containing C++ object files must be created using
19305 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19306 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19307 ;;
19308 icpc*)
19309 # Intel C++
19310 with_gnu_ld=yes
19311 # version 8.0 and above of icpc choke on multiply defined symbols
19312 # if we add $predep_objects and $postdep_objects, however 7.1 and
19313 # earlier do not add the objects themselves.
19314 case `$CC -V 2>&1` in
19315 *"Version 7."*)
19316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19317 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'
19318 ;;
19319 *) # Version 8.0 or newer
19320 tmp_idyn=
19321 case $host_cpu in
19322 ia64*) tmp_idyn=' -i_dynamic';;
19323 esac
19324 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19325 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'
19326 ;;
19327 esac
19328 archive_cmds_need_lc_CXX=no
19329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19331 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19332 ;;
19333 pgCC*)
19334 # Portland Group C++ compiler
19335 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19336 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'
19337
19338 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19339 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19340 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'
19341 ;;
19342 cxx*)
19343 # Compaq C++
19344 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19345 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'
19346
19347 runpath_var=LD_RUN_PATH
19348 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19349 hardcode_libdir_separator_CXX=:
19350
19351 # Commands to make compiler produce verbose output that lists
19352 # what "hidden" libraries, object files and flags are used when
19353 # linking a shared library.
19354 #
19355 # There doesn't appear to be a way to prevent this compiler from
19356 # explicitly linking system object files so we need to strip them
19357 # from the output so that they don't get included in the library
19358 # dependencies.
19359 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'
19360 ;;
19361 esac
19362 ;;
19363 lynxos*)
19364 # FIXME: insert proper C++ library support
19365 ld_shlibs_CXX=no
19366 ;;
19367 m88k*)
19368 # FIXME: insert proper C++ library support
19369 ld_shlibs_CXX=no
19370 ;;
19371 mvs*)
19372 case $cc_basename in
19373 cxx*)
19374 # FIXME: insert proper C++ library support
19375 ld_shlibs_CXX=no
19376 ;;
19377 *)
19378 # FIXME: insert proper C++ library support
19379 ld_shlibs_CXX=no
19380 ;;
19381 esac
19382 ;;
19383 netbsd*)
19384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19385 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19386 wlarc=
19387 hardcode_libdir_flag_spec_CXX='-R$libdir'
19388 hardcode_direct_CXX=yes
19389 hardcode_shlibpath_var_CXX=no
19390 fi
19391 # Workaround some broken pre-1.5 toolchains
19392 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19393 ;;
19394 openbsd2*)
19395 # C++ shared libraries are fairly broken
19396 ld_shlibs_CXX=no
19397 ;;
19398 openbsd*)
19399 hardcode_direct_CXX=yes
19400 hardcode_shlibpath_var_CXX=no
19401 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19402 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19404 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19405 export_dynamic_flag_spec_CXX='${wl}-E'
19406 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19407 fi
19408 output_verbose_link_cmd='echo'
19409 ;;
19410 osf3*)
19411 case $cc_basename in
19412 KCC*)
19413 # Kuck and Associates, Inc. (KAI) C++ Compiler
19414
19415 # KCC will only create a shared library if the output file
19416 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19417 # to its proper name (with version) after linking.
19418 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'
19419
19420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19421 hardcode_libdir_separator_CXX=:
19422
19423 # Archives containing C++ object files must be created using
19424 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19425 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19426
19427 ;;
19428 RCC*)
19429 # Rational C++ 2.4.1
19430 # FIXME: insert proper C++ library support
19431 ld_shlibs_CXX=no
19432 ;;
19433 cxx*)
19434 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19435 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'
19436
19437 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19438 hardcode_libdir_separator_CXX=:
19439
19440 # Commands to make compiler produce verbose output that lists
19441 # what "hidden" libraries, object files and flags are used when
19442 # linking a shared library.
19443 #
19444 # There doesn't appear to be a way to prevent this compiler from
19445 # explicitly linking system object files so we need to strip them
19446 # from the output so that they don't get included in the library
19447 # dependencies.
19448 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'
19449 ;;
19450 *)
19451 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19452 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19453 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'
19454
19455 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19456 hardcode_libdir_separator_CXX=:
19457
19458 # Commands to make compiler produce verbose output that lists
19459 # what "hidden" libraries, object files and flags are used when
19460 # linking a shared library.
19461 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19462
19463 else
19464 # FIXME: insert proper C++ library support
19465 ld_shlibs_CXX=no
19466 fi
19467 ;;
19468 esac
19469 ;;
19470 osf4* | osf5*)
19471 case $cc_basename in
19472 KCC*)
19473 # Kuck and Associates, Inc. (KAI) C++ Compiler
19474
19475 # KCC will only create a shared library if the output file
19476 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19477 # to its proper name (with version) after linking.
19478 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'
19479
19480 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19481 hardcode_libdir_separator_CXX=:
19482
19483 # Archives containing C++ object files must be created using
19484 # the KAI C++ compiler.
19485 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19486 ;;
19487 RCC*)
19488 # Rational C++ 2.4.1
19489 # FIXME: insert proper C++ library support
19490 ld_shlibs_CXX=no
19491 ;;
19492 cxx*)
19493 allow_undefined_flag_CXX=' -expect_unresolved \*'
19494 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'
19495 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19496 echo "-hidden">> $lib.exp~
19497 $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~
19498 $rm $lib.exp'
19499
19500 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19501 hardcode_libdir_separator_CXX=:
19502
19503 # Commands to make compiler produce verbose output that lists
19504 # what "hidden" libraries, object files and flags are used when
19505 # linking a shared library.
19506 #
19507 # There doesn't appear to be a way to prevent this compiler from
19508 # explicitly linking system object files so we need to strip them
19509 # from the output so that they don't get included in the library
19510 # dependencies.
19511 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'
19512 ;;
19513 *)
19514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19515 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19516 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'
19517
19518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19519 hardcode_libdir_separator_CXX=:
19520
19521 # Commands to make compiler produce verbose output that lists
19522 # what "hidden" libraries, object files and flags are used when
19523 # linking a shared library.
19524 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19525
19526 else
19527 # FIXME: insert proper C++ library support
19528 ld_shlibs_CXX=no
19529 fi
19530 ;;
19531 esac
19532 ;;
19533 psos*)
19534 # FIXME: insert proper C++ library support
19535 ld_shlibs_CXX=no
19536 ;;
19537 sunos4*)
19538 case $cc_basename in
19539 CC*)
19540 # Sun C++ 4.x
19541 # FIXME: insert proper C++ library support
19542 ld_shlibs_CXX=no
19543 ;;
19544 lcc*)
19545 # Lucid
19546 # FIXME: insert proper C++ library support
19547 ld_shlibs_CXX=no
19548 ;;
19549 *)
19550 # FIXME: insert proper C++ library support
19551 ld_shlibs_CXX=no
19552 ;;
19553 esac
19554 ;;
19555 solaris*)
19556 case $cc_basename in
19557 CC*)
19558 # Sun C++ 4.2, 5.x and Centerline C++
19559 archive_cmds_need_lc_CXX=yes
19560 no_undefined_flag_CXX=' -zdefs'
19561 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19562 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19563 $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'
19564
19565 hardcode_libdir_flag_spec_CXX='-R$libdir'
19566 hardcode_shlibpath_var_CXX=no
19567 case $host_os in
19568 solaris2.[0-5] | solaris2.[0-5].*) ;;
19569 *)
19570 # The C++ compiler is used as linker so we must use $wl
19571 # flag to pass the commands to the underlying system
19572 # linker. We must also pass each convience library through
19573 # to the system linker between allextract/defaultextract.
19574 # The C++ compiler will combine linker options so we
19575 # cannot just pass the convience library names through
19576 # without $wl.
19577 # Supported since Solaris 2.6 (maybe 2.5.1?)
19578 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'
19579 ;;
19580 esac
19581 link_all_deplibs_CXX=yes
19582
19583 output_verbose_link_cmd='echo'
19584
19585 # Archives containing C++ object files must be created using
19586 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19587 # necessary to make sure instantiated templates are included
19588 # in the archive.
19589 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19590 ;;
19591 gcx*)
19592 # Green Hills C++ Compiler
19593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19594
19595 # The C++ compiler must be used to create the archive.
19596 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19597 ;;
19598 *)
19599 # GNU C++ compiler with Solaris linker
19600 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19601 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19602 if $CC --version | grep -v '^2\.7' > /dev/null; then
19603 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19604 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19605 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19606
19607 # Commands to make compiler produce verbose output that lists
19608 # what "hidden" libraries, object files and flags are used when
19609 # linking a shared library.
19610 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19611 else
19612 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19613 # platform.
19614 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19615 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19616 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19617
19618 # Commands to make compiler produce verbose output that lists
19619 # what "hidden" libraries, object files and flags are used when
19620 # linking a shared library.
19621 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19622 fi
19623
19624 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19625 fi
19626 ;;
19627 esac
19628 ;;
19629 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19630 no_undefined_flag_CXX='${wl}-z,text'
19631 archive_cmds_need_lc_CXX=no
19632 hardcode_shlibpath_var_CXX=no
19633 runpath_var='LD_RUN_PATH'
19634
19635 case $cc_basename in
19636 CC*)
19637 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19638 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19639 ;;
19640 *)
19641 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19642 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19643 ;;
19644 esac
19645 ;;
19646 sysv5* | sco3.2v5* | sco5v6*)
19647 # Note: We can NOT use -z defs as we might desire, because we do not
19648 # link with -lc, and that would cause any symbols used from libc to
19649 # always be unresolved, which means just about no library would
19650 # ever link correctly. If we're not using GNU ld we use -z text
19651 # though, which does catch some bad symbols but isn't as heavy-handed
19652 # as -z defs.
19653 # For security reasons, it is highly recommended that you always
19654 # use absolute paths for naming shared libraries, and exclude the
19655 # DT_RUNPATH tag from executables and libraries. But doing so
19656 # requires that you compile everything twice, which is a pain.
19657 # So that behaviour is only enabled if SCOABSPATH is set to a
19658 # non-empty value in the environment. Most likely only useful for
19659 # creating official distributions of packages.
19660 # This is a hack until libtool officially supports absolute path
19661 # names for shared libraries.
19662 no_undefined_flag_CXX='${wl}-z,text'
19663 allow_undefined_flag_CXX='${wl}-z,nodefs'
19664 archive_cmds_need_lc_CXX=no
19665 hardcode_shlibpath_var_CXX=no
19666 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19667 hardcode_libdir_separator_CXX=':'
19668 link_all_deplibs_CXX=yes
19669 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19670 runpath_var='LD_RUN_PATH'
19671
19672 case $cc_basename in
19673 CC*)
19674 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19675 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19676 ;;
19677 *)
19678 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19679 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19680 ;;
19681 esac
19682 ;;
19683 tandem*)
19684 case $cc_basename in
19685 NCC*)
19686 # NonStop-UX NCC 3.20
19687 # FIXME: insert proper C++ library support
19688 ld_shlibs_CXX=no
19689 ;;
19690 *)
19691 # FIXME: insert proper C++ library support
19692 ld_shlibs_CXX=no
19693 ;;
19694 esac
19695 ;;
19696 vxworks*)
19697 # FIXME: insert proper C++ library support
19698 ld_shlibs_CXX=no
19699 ;;
19700 *)
19701 # FIXME: insert proper C++ library support
19702 ld_shlibs_CXX=no
19703 ;;
19704esac
19705{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19706echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19707test "$ld_shlibs_CXX" = no && can_build_shared=no
19708
19709GCC_CXX="$GXX"
19710LD_CXX="$LD"
19711
19712
19713cat > conftest.$ac_ext <<EOF
19714class Foo
19715{
19716public:
19717 Foo (void) { a = 0; }
19718private:
19719 int a;
19720};
19721EOF
19722
19723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19724 (eval $ac_compile) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; then
19728 # Parse the compiler output and extract the necessary
19729 # objects, libraries and library flags.
19730
19731 # Sentinel used to keep track of whether or not we are before
19732 # the conftest object file.
19733 pre_test_object_deps_done=no
19734
19735 # The `*' in the case matches for architectures that use `case' in
19736 # $output_verbose_cmd can trigger glob expansion during the loop
19737 # eval without this substitution.
19738 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19739
19740 for p in `eval $output_verbose_link_cmd`; do
19741 case $p in
19742
19743 -L* | -R* | -l*)
19744 # Some compilers place space between "-{L,R}" and the path.
19745 # Remove the space.
19746 if test $p = "-L" \
19747 || test $p = "-R"; then
19748 prev=$p
19749 continue
19750 else
19751 prev=
19752 fi
19753
19754 if test "$pre_test_object_deps_done" = no; then
19755 case $p in
19756 -L* | -R*)
19757 # Internal compiler library paths should come after those
19758 # provided the user. The postdeps already come after the
19759 # user supplied libs so there is no need to process them.
19760 if test -z "$compiler_lib_search_path_CXX"; then
19761 compiler_lib_search_path_CXX="${prev}${p}"
19762 else
19763 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19764 fi
19765 ;;
19766 # The "-l" case would never come before the object being
19767 # linked, so don't bother handling this case.
19768 esac
19769 else
19770 if test -z "$postdeps_CXX"; then
19771 postdeps_CXX="${prev}${p}"
19772 else
19773 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19774 fi
19775 fi
19776 ;;
19777
19778 *.$objext)
19779 # This assumes that the test object file only shows up
19780 # once in the compiler output.
19781 if test "$p" = "conftest.$objext"; then
19782 pre_test_object_deps_done=yes
19783 continue
19784 fi
19785
19786 if test "$pre_test_object_deps_done" = no; then
19787 if test -z "$predep_objects_CXX"; then
19788 predep_objects_CXX="$p"
19789 else
19790 predep_objects_CXX="$predep_objects_CXX $p"
19791 fi
19792 else
19793 if test -z "$postdep_objects_CXX"; then
19794 postdep_objects_CXX="$p"
19795 else
19796 postdep_objects_CXX="$postdep_objects_CXX $p"
19797 fi
19798 fi
19799 ;;
19800
19801 *) ;; # Ignore the rest.
19802
19803 esac
19804 done
19805
19806 # Clean up.
19807 rm -f a.out a.exe
19808else
19809 echo "libtool.m4: error: problem compiling CXX test program"
19810fi
19811
19812$rm -f confest.$objext
19813
19814# PORTME: override above test on systems where it is broken
19815case $host_os in
19816interix3*)
19817 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19818 # hack all around it, let's just trust "g++" to DTRT.
19819 predep_objects_CXX=
19820 postdep_objects_CXX=
19821 postdeps_CXX=
19822 ;;
19823
19824solaris*)
19825 case $cc_basename in
19826 CC*)
19827 # Adding this requires a known-good setup of shared libraries for
19828 # Sun compiler versions before 5.6, else PIC objects from an old
19829 # archive will be linked into the output, leading to subtle bugs.
19830 postdeps_CXX='-lCstd -lCrun'
19831 ;;
19832 esac
19833 ;;
19834esac
19835
19836
19837case " $postdeps_CXX " in
19838*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19839esac
19840
19841lt_prog_compiler_wl_CXX=
19842lt_prog_compiler_pic_CXX=
19843lt_prog_compiler_static_CXX=
19844
19845{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19846echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19847
19848 # C++ specific cases for pic, static, wl, etc.
19849 if test "$GXX" = yes; then
19850 lt_prog_compiler_wl_CXX='-Wl,'
19851 lt_prog_compiler_static_CXX='-static'
19852
19853 case $host_os in
19854 aix*)
19855 # All AIX code is PIC.
19856 if test "$host_cpu" = ia64; then
19857 # AIX 5 now supports IA64 processor
19858 lt_prog_compiler_static_CXX='-Bstatic'
19859 fi
19860 ;;
19861 amigaos*)
19862 # FIXME: we need at least 68020 code to build shared libraries, but
19863 # adding the `-m68020' flag to GCC prevents building anything better,
19864 # like `-m68040'.
19865 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19866 ;;
19867 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19868 # PIC is the default for these OSes.
19869 ;;
19870 mingw* | os2* | pw32*)
19871 # This hack is so that the source file can tell whether it is being
19872 # built for inclusion in a dll (and should export symbols for example).
19873 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19874 ;;
19875 darwin* | rhapsody*)
19876 # PIC is the default on this platform
19877 # Common symbols not allowed in MH_DYLIB files
19878 lt_prog_compiler_pic_CXX='-fno-common'
19879 ;;
19880 *djgpp*)
19881 # DJGPP does not support shared libraries at all
19882 lt_prog_compiler_pic_CXX=
19883 ;;
19884 interix3*)
19885 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19886 # Instead, we relocate shared libraries at runtime.
19887 ;;
19888 sysv4*MP*)
19889 if test -d /usr/nec; then
19890 lt_prog_compiler_pic_CXX=-Kconform_pic
19891 fi
19892 ;;
19893 hpux*)
19894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19895 # not for PA HP-UX.
19896 case $host_cpu in
19897 hppa*64*|ia64*)
19898 ;;
19899 *)
19900 lt_prog_compiler_pic_CXX='-fPIC'
19901 ;;
19902 esac
19903 ;;
19904 *)
19905 lt_prog_compiler_pic_CXX='-fPIC'
19906 ;;
19907 esac
19908 else
19909 case $host_os in
19910 aix4* | aix5*)
19911 # All AIX code is PIC.
19912 if test "$host_cpu" = ia64; then
19913 # AIX 5 now supports IA64 processor
19914 lt_prog_compiler_static_CXX='-Bstatic'
19915 else
19916 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19917 fi
19918 ;;
19919 chorus*)
19920 case $cc_basename in
19921 cxch68*)
19922 # Green Hills C++ Compiler
19923 # _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"
19924 ;;
19925 esac
19926 ;;
19927 darwin*)
19928 # PIC is the default on this platform
19929 # Common symbols not allowed in MH_DYLIB files
19930 case $cc_basename in
19931 xlc*)
19932 lt_prog_compiler_pic_CXX='-qnocommon'
19933 lt_prog_compiler_wl_CXX='-Wl,'
19934 ;;
19935 esac
19936 ;;
19937 dgux*)
19938 case $cc_basename in
19939 ec++*)
19940 lt_prog_compiler_pic_CXX='-KPIC'
19941 ;;
19942 ghcx*)
19943 # Green Hills C++ Compiler
19944 lt_prog_compiler_pic_CXX='-pic'
19945 ;;
19946 *)
19947 ;;
19948 esac
19949 ;;
19950 freebsd* | kfreebsd*-gnu | dragonfly*)
19951 # FreeBSD uses GNU C++
19952 ;;
19953 hpux9* | hpux10* | hpux11*)
19954 case $cc_basename in
19955 CC*)
19956 lt_prog_compiler_wl_CXX='-Wl,'
19957 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19958 if test "$host_cpu" != ia64; then
19959 lt_prog_compiler_pic_CXX='+Z'
19960 fi
19961 ;;
19962 aCC*)
19963 lt_prog_compiler_wl_CXX='-Wl,'
19964 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19965 case $host_cpu in
19966 hppa*64*|ia64*)
19967 # +Z the default
19968 ;;
19969 *)
19970 lt_prog_compiler_pic_CXX='+Z'
19971 ;;
19972 esac
19973 ;;
19974 *)
19975 ;;
19976 esac
19977 ;;
19978 interix*)
19979 # This is c89, which is MS Visual C++ (no shared libs)
19980 # Anyone wants to do a port?
19981 ;;
19982 irix5* | irix6* | nonstopux*)
19983 case $cc_basename in
19984 CC*)
19985 lt_prog_compiler_wl_CXX='-Wl,'
19986 lt_prog_compiler_static_CXX='-non_shared'
19987 # CC pic flag -KPIC is the default.
19988 ;;
19989 *)
19990 ;;
19991 esac
19992 ;;
19993 linux*)
19994 case $cc_basename in
19995 KCC*)
19996 # KAI C++ Compiler
19997 lt_prog_compiler_wl_CXX='--backend -Wl,'
19998 lt_prog_compiler_pic_CXX='-fPIC'
19999 ;;
20000 icpc* | ecpc*)
20001 # Intel C++
20002 lt_prog_compiler_wl_CXX='-Wl,'
20003 lt_prog_compiler_pic_CXX='-KPIC'
20004 lt_prog_compiler_static_CXX='-static'
20005 ;;
20006 pgCC*)
20007 # Portland Group C++ compiler.
20008 lt_prog_compiler_wl_CXX='-Wl,'
20009 lt_prog_compiler_pic_CXX='-fpic'
20010 lt_prog_compiler_static_CXX='-Bstatic'
20011 ;;
20012 cxx*)
20013 # Compaq C++
20014 # Make sure the PIC flag is empty. It appears that all Alpha
20015 # Linux and Compaq Tru64 Unix objects are PIC.
20016 lt_prog_compiler_pic_CXX=
20017 lt_prog_compiler_static_CXX='-non_shared'
20018 ;;
20019 *)
20020 ;;
20021 esac
20022 ;;
20023 lynxos*)
20024 ;;
20025 m88k*)
20026 ;;
20027 mvs*)
20028 case $cc_basename in
20029 cxx*)
20030 lt_prog_compiler_pic_CXX='-W c,exportall'
20031 ;;
20032 *)
20033 ;;
20034 esac
20035 ;;
20036 netbsd*)
20037 ;;
20038 osf3* | osf4* | osf5*)
20039 case $cc_basename in
20040 KCC*)
20041 lt_prog_compiler_wl_CXX='--backend -Wl,'
20042 ;;
20043 RCC*)
20044 # Rational C++ 2.4.1
20045 lt_prog_compiler_pic_CXX='-pic'
20046 ;;
20047 cxx*)
20048 # Digital/Compaq C++
20049 lt_prog_compiler_wl_CXX='-Wl,'
20050 # Make sure the PIC flag is empty. It appears that all Alpha
20051 # Linux and Compaq Tru64 Unix objects are PIC.
20052 lt_prog_compiler_pic_CXX=
20053 lt_prog_compiler_static_CXX='-non_shared'
20054 ;;
20055 *)
20056 ;;
20057 esac
20058 ;;
20059 psos*)
20060 ;;
20061 solaris*)
20062 case $cc_basename in
20063 CC*)
20064 # Sun C++ 4.2, 5.x and Centerline C++
20065 lt_prog_compiler_pic_CXX='-KPIC'
20066 lt_prog_compiler_static_CXX='-Bstatic'
20067 lt_prog_compiler_wl_CXX='-Qoption ld '
20068 ;;
20069 gcx*)
20070 # Green Hills C++ Compiler
20071 lt_prog_compiler_pic_CXX='-PIC'
20072 ;;
20073 *)
20074 ;;
20075 esac
20076 ;;
20077 sunos4*)
20078 case $cc_basename in
20079 CC*)
20080 # Sun C++ 4.x
20081 lt_prog_compiler_pic_CXX='-pic'
20082 lt_prog_compiler_static_CXX='-Bstatic'
20083 ;;
20084 lcc*)
20085 # Lucid
20086 lt_prog_compiler_pic_CXX='-pic'
20087 ;;
20088 *)
20089 ;;
20090 esac
20091 ;;
20092 tandem*)
20093 case $cc_basename in
20094 NCC*)
20095 # NonStop-UX NCC 3.20
20096 lt_prog_compiler_pic_CXX='-KPIC'
20097 ;;
20098 *)
20099 ;;
20100 esac
20101 ;;
20102 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20103 case $cc_basename in
20104 CC*)
20105 lt_prog_compiler_wl_CXX='-Wl,'
20106 lt_prog_compiler_pic_CXX='-KPIC'
20107 lt_prog_compiler_static_CXX='-Bstatic'
20108 ;;
20109 esac
20110 ;;
20111 vxworks*)
20112 ;;
20113 *)
20114 lt_prog_compiler_can_build_shared_CXX=no
20115 ;;
20116 esac
20117 fi
20118
20119{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20120echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
20121
20122#
20123# Check to make sure the PIC flag actually works.
20124#
20125if test -n "$lt_prog_compiler_pic_CXX"; then
20126
20127{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20128echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
20129if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20131else
20132 lt_prog_compiler_pic_works_CXX=no
20133 ac_outfile=conftest.$ac_objext
20134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20135 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20136 # Insert the option either (1) after the last *FLAGS variable, or
20137 # (2) before a word containing "conftest.", or (3) at the end.
20138 # Note that $ac_compile itself does not contain backslashes and begins
20139 # with a dollar sign (not a hyphen), so the echo should work correctly.
20140 # The option is referenced via a variable to avoid confusing sed.
20141 lt_compile=`echo "$ac_compile" | $SED \
20142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20144 -e 's:$: $lt_compiler_flag:'`
Anton Korobeynikov1207b902009-08-18 00:40:51 +000020145 (eval echo "\"\$as_me:20145: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020146 (eval "$lt_compile" 2>conftest.err)
20147 ac_status=$?
20148 cat conftest.err >&5
Anton Korobeynikov1207b902009-08-18 00:40:51 +000020149 echo "$as_me:20149: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020150 if (exit $ac_status) && test -s "$ac_outfile"; then
20151 # The compiler can only warn and ignore the option if not recognized
20152 # So say no if there are warnings other than the usual output.
20153 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20156 lt_prog_compiler_pic_works_CXX=yes
20157 fi
20158 fi
20159 $rm conftest*
20160
20161fi
20162{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20163echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
20164
20165if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20166 case $lt_prog_compiler_pic_CXX in
20167 "" | " "*) ;;
20168 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20169 esac
20170else
20171 lt_prog_compiler_pic_CXX=
20172 lt_prog_compiler_can_build_shared_CXX=no
20173fi
20174
20175fi
20176case $host_os in
20177 # For platforms which do not support PIC, -DPIC is meaningless:
20178 *djgpp*)
20179 lt_prog_compiler_pic_CXX=
20180 ;;
20181 *)
20182 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20183 ;;
20184esac
20185
20186#
20187# Check to make sure the static flag actually works.
20188#
20189wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20190{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20191echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20192if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20194else
20195 lt_prog_compiler_static_works_CXX=no
20196 save_LDFLAGS="$LDFLAGS"
20197 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20198 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20199 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20200 # The linker can only warn and ignore the option if not recognized
20201 # So say no if there are warnings
20202 if test -s conftest.err; then
20203 # Append any errors to the config.log.
20204 cat conftest.err 1>&5
20205 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20207 if diff conftest.exp conftest.er2 >/dev/null; then
20208 lt_prog_compiler_static_works_CXX=yes
20209 fi
20210 else
20211 lt_prog_compiler_static_works_CXX=yes
20212 fi
20213 fi
20214 $rm conftest*
20215 LDFLAGS="$save_LDFLAGS"
20216
20217fi
20218{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20219echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20220
20221if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20222 :
20223else
20224 lt_prog_compiler_static_CXX=
20225fi
20226
20227
20228{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20229echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20230if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20232else
20233 lt_cv_prog_compiler_c_o_CXX=no
20234 $rm -r conftest 2>/dev/null
20235 mkdir conftest
20236 cd conftest
20237 mkdir out
20238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20239
20240 lt_compiler_flag="-o out/conftest2.$ac_objext"
20241 # Insert the option either (1) after the last *FLAGS variable, or
20242 # (2) before a word containing "conftest.", or (3) at the end.
20243 # Note that $ac_compile itself does not contain backslashes and begins
20244 # with a dollar sign (not a hyphen), so the echo should work correctly.
20245 lt_compile=`echo "$ac_compile" | $SED \
20246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20248 -e 's:$: $lt_compiler_flag:'`
Anton Korobeynikov1207b902009-08-18 00:40:51 +000020249 (eval echo "\"\$as_me:20249: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020250 (eval "$lt_compile" 2>out/conftest.err)
20251 ac_status=$?
20252 cat out/conftest.err >&5
Anton Korobeynikov1207b902009-08-18 00:40:51 +000020253 echo "$as_me:20253: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20255 then
20256 # The compiler can only warn and ignore the option if not recognized
20257 # So say no if there are warnings
20258 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20261 lt_cv_prog_compiler_c_o_CXX=yes
20262 fi
20263 fi
20264 chmod u+w . 2>&5
20265 $rm conftest*
20266 # SGI C++ compiler will create directory out/ii_files/ for
20267 # template instantiation
20268 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20269 $rm out/* && rmdir out
20270 cd ..
20271 rmdir conftest
20272 $rm conftest*
20273
20274fi
20275{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20276echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
20277
20278
20279hard_links="nottested"
20280if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20281 # do not overwrite the value of need_locks provided by the user
20282 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20283echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20284 hard_links=yes
20285 $rm conftest*
20286 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20287 touch conftest.a
20288 ln conftest.a conftest.b 2>&5 || hard_links=no
20289 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20290 { echo "$as_me:$LINENO: result: $hard_links" >&5
20291echo "${ECHO_T}$hard_links" >&6; }
20292 if test "$hard_links" = no; then
20293 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20294echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20295 need_locks=warn
20296 fi
20297else
20298 need_locks=no
20299fi
20300
20301{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20302echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20303
20304 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20305 case $host_os in
20306 aix4* | aix5*)
20307 # If we're using GNU nm, then we don't want the "-C" option.
20308 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20309 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20310 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'
20311 else
20312 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'
20313 fi
20314 ;;
20315 pw32*)
20316 export_symbols_cmds_CXX="$ltdll_cmds"
20317 ;;
20318 cygwin* | mingw*)
20319 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'
20320 ;;
20321 *)
20322 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20323 ;;
20324 esac
20325
20326{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20327echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
20328test "$ld_shlibs_CXX" = no && can_build_shared=no
20329
20330#
20331# Do we need to explicitly link libc?
20332#
20333case "x$archive_cmds_need_lc_CXX" in
20334x|xyes)
20335 # Assume -lc should be added
20336 archive_cmds_need_lc_CXX=yes
20337
20338 if test "$enable_shared" = yes && test "$GCC" = yes; then
20339 case $archive_cmds_CXX in
20340 *'~'*)
20341 # FIXME: we may have to deal with multi-command sequences.
20342 ;;
20343 '$CC '*)
20344 # Test whether the compiler implicitly links with -lc since on some
20345 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20346 # to ld, don't add -lc before -lgcc.
20347 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20348echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20349 $rm conftest*
20350 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20351
20352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20353 (eval $ac_compile) 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } 2>conftest.err; then
20357 soname=conftest
20358 lib=conftest
20359 libobjs=conftest.$ac_objext
20360 deplibs=
20361 wl=$lt_prog_compiler_wl_CXX
20362 pic_flag=$lt_prog_compiler_pic_CXX
20363 compiler_flags=-v
20364 linker_flags=-v
20365 verstring=
20366 output_objdir=.
20367 libname=conftest
20368 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20369 allow_undefined_flag_CXX=
20370 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20371 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20372 ac_status=$?
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }
20375 then
20376 archive_cmds_need_lc_CXX=no
20377 else
20378 archive_cmds_need_lc_CXX=yes
20379 fi
20380 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20381 else
20382 cat conftest.err 1>&5
20383 fi
20384 $rm conftest*
20385 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20386echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
20387 ;;
20388 esac
20389 fi
20390 ;;
20391esac
20392
20393{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20394echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20395library_names_spec=
20396libname_spec='lib$name'
20397soname_spec=
20398shrext_cmds=".so"
20399postinstall_cmds=
20400postuninstall_cmds=
20401finish_cmds=
20402finish_eval=
20403shlibpath_var=
20404shlibpath_overrides_runpath=unknown
20405version_type=none
20406dynamic_linker="$host_os ld.so"
20407sys_lib_dlsearch_path_spec="/lib /usr/lib"
20408if test "$GCC" = yes; then
20409 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20410 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20411 # if the path contains ";" then we assume it to be the separator
20412 # otherwise default to the standard path separator (i.e. ":") - it is
20413 # assumed that no part of a normal pathname contains ";" but that should
20414 # okay in the real world where ";" in dirpaths is itself problematic.
20415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20416 else
20417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20418 fi
20419else
20420 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20421fi
20422need_lib_prefix=unknown
20423hardcode_into_libs=no
20424
20425# when you set need_version to no, make sure it does not cause -set_version
20426# flags to be left without arguments
20427need_version=unknown
20428
20429case $host_os in
20430aix3*)
20431 version_type=linux
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20433 shlibpath_var=LIBPATH
20434
20435 # AIX 3 has no versioning support, so we append a major version to the name.
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 ;;
20438
20439aix4* | aix5*)
20440 version_type=linux
20441 need_lib_prefix=no
20442 need_version=no
20443 hardcode_into_libs=yes
20444 if test "$host_cpu" = ia64; then
20445 # AIX 5 supports IA64
20446 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20447 shlibpath_var=LD_LIBRARY_PATH
20448 else
20449 # With GCC up to 2.95.x, collect2 would create an import file
20450 # for dependence libraries. The import file would start with
20451 # the line `#! .'. This would cause the generated library to
20452 # depend on `.', always an invalid library. This was fixed in
20453 # development snapshots of GCC prior to 3.0.
20454 case $host_os in
20455 aix4 | aix4.[01] | aix4.[01].*)
20456 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20457 echo ' yes '
20458 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20459 :
20460 else
20461 can_build_shared=no
20462 fi
20463 ;;
20464 esac
20465 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20466 # soname into executable. Probably we can add versioning support to
20467 # collect2, so additional links can be useful in future.
20468 if test "$aix_use_runtimelinking" = yes; then
20469 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20470 # instead of lib<name>.a to let people know that these are not
20471 # typical AIX shared libraries.
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473 else
20474 # We preserve .a as extension for shared libraries through AIX4.2
20475 # and later when we are not doing run time linking.
20476 library_names_spec='${libname}${release}.a $libname.a'
20477 soname_spec='${libname}${release}${shared_ext}$major'
20478 fi
20479 shlibpath_var=LIBPATH
20480 fi
20481 ;;
20482
20483amigaos*)
20484 library_names_spec='$libname.ixlibrary $libname.a'
20485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20486 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'
20487 ;;
20488
20489beos*)
20490 library_names_spec='${libname}${shared_ext}'
20491 dynamic_linker="$host_os ld.so"
20492 shlibpath_var=LIBRARY_PATH
20493 ;;
20494
20495bsdi[45]*)
20496 version_type=linux
20497 need_version=no
20498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20499 soname_spec='${libname}${release}${shared_ext}$major'
20500 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20501 shlibpath_var=LD_LIBRARY_PATH
20502 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20503 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20504 # the default ld.so.conf also contains /usr/contrib/lib and
20505 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20506 # libtool to hard-code these into programs
20507 ;;
20508
20509cygwin* | mingw* | pw32*)
20510 version_type=windows
20511 shrext_cmds=".dll"
20512 need_version=no
20513 need_lib_prefix=no
20514
20515 case $GCC,$host_os in
20516 yes,cygwin* | yes,mingw* | yes,pw32*)
20517 library_names_spec='$libname.dll.a'
20518 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20519 postinstall_cmds='base_file=`basename \${file}`~
20520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20521 dldir=$destdir/`dirname \$dlpath`~
20522 test -d \$dldir || mkdir -p \$dldir~
20523 $install_prog $dir/$dlname \$dldir/$dlname~
20524 chmod a+x \$dldir/$dlname'
20525 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20526 dlpath=$dir/\$dldll~
20527 $rm \$dlpath'
20528 shlibpath_overrides_runpath=yes
20529
20530 case $host_os in
20531 cygwin*)
20532 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20533 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20534 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20535 ;;
20536 mingw*)
20537 # MinGW DLLs use traditional 'lib' prefix
20538 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20539 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20540 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20541 # It is most probably a Windows format PATH printed by
20542 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20543 # path with ; separators, and with drive letters. We can handle the
20544 # drive letters (cygwin fileutils understands them), so leave them,
20545 # especially as we might pass files found there to a mingw objdump,
20546 # which wouldn't understand a cygwinified path. Ahh.
20547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20548 else
20549 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20550 fi
20551 ;;
20552 pw32*)
20553 # pw32 DLLs use 'pw' prefix rather than 'lib'
20554 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20555 ;;
20556 esac
20557 ;;
20558
20559 *)
20560 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20561 ;;
20562 esac
20563 dynamic_linker='Win32 ld.exe'
20564 # FIXME: first we should search . and the directory the executable is in
20565 shlibpath_var=PATH
20566 ;;
20567
20568darwin* | rhapsody*)
20569 dynamic_linker="$host_os dyld"
20570 version_type=darwin
20571 need_lib_prefix=no
20572 need_version=no
20573 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20574 soname_spec='${libname}${release}${major}$shared_ext'
20575 shlibpath_overrides_runpath=yes
20576 shlibpath_var=DYLD_LIBRARY_PATH
20577 shrext_cmds='.dylib'
20578 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20579 if test "$GCC" = yes; then
20580 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"`
20581 else
20582 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20583 fi
20584 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20585 ;;
20586
20587dgux*)
20588 version_type=linux
20589 need_lib_prefix=no
20590 need_version=no
20591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20592 soname_spec='${libname}${release}${shared_ext}$major'
20593 shlibpath_var=LD_LIBRARY_PATH
20594 ;;
20595
20596freebsd1*)
20597 dynamic_linker=no
20598 ;;
20599
20600kfreebsd*-gnu)
20601 version_type=linux
20602 need_lib_prefix=no
20603 need_version=no
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 shlibpath_var=LD_LIBRARY_PATH
20607 shlibpath_overrides_runpath=no
20608 hardcode_into_libs=yes
20609 dynamic_linker='GNU ld.so'
20610 ;;
20611
20612freebsd* | dragonfly*)
20613 # DragonFly does not have aout. When/if they implement a new
20614 # versioning mechanism, adjust this.
20615 if test -x /usr/bin/objformat; then
20616 objformat=`/usr/bin/objformat`
20617 else
20618 case $host_os in
20619 freebsd[123]*) objformat=aout ;;
20620 *) objformat=elf ;;
20621 esac
20622 fi
20623 version_type=freebsd-$objformat
20624 case $version_type in
20625 freebsd-elf*)
20626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20627 need_version=no
20628 need_lib_prefix=no
20629 ;;
20630 freebsd-*)
20631 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20632 need_version=yes
20633 ;;
20634 esac
20635 shlibpath_var=LD_LIBRARY_PATH
20636 case $host_os in
20637 freebsd2*)
20638 shlibpath_overrides_runpath=yes
20639 ;;
20640 freebsd3.[01]* | freebsdelf3.[01]*)
20641 shlibpath_overrides_runpath=yes
20642 hardcode_into_libs=yes
20643 ;;
20644 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20645 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20646 shlibpath_overrides_runpath=no
20647 hardcode_into_libs=yes
20648 ;;
20649 freebsd*) # from 4.6 on
20650 shlibpath_overrides_runpath=yes
20651 hardcode_into_libs=yes
20652 ;;
20653 esac
20654 ;;
20655
20656gnu*)
20657 version_type=linux
20658 need_lib_prefix=no
20659 need_version=no
20660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20661 soname_spec='${libname}${release}${shared_ext}$major'
20662 shlibpath_var=LD_LIBRARY_PATH
20663 hardcode_into_libs=yes
20664 ;;
20665
20666hpux9* | hpux10* | hpux11*)
20667 # Give a soname corresponding to the major version so that dld.sl refuses to
20668 # link against other versions.
20669 version_type=sunos
20670 need_lib_prefix=no
20671 need_version=no
20672 case $host_cpu in
20673 ia64*)
20674 shrext_cmds='.so'
20675 hardcode_into_libs=yes
20676 dynamic_linker="$host_os dld.so"
20677 shlibpath_var=LD_LIBRARY_PATH
20678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20680 soname_spec='${libname}${release}${shared_ext}$major'
20681 if test "X$HPUX_IA64_MODE" = X32; then
20682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20683 else
20684 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20685 fi
20686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20687 ;;
20688 hppa*64*)
20689 shrext_cmds='.sl'
20690 hardcode_into_libs=yes
20691 dynamic_linker="$host_os dld.sl"
20692 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695 soname_spec='${libname}${release}${shared_ext}$major'
20696 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20698 ;;
20699 *)
20700 shrext_cmds='.sl'
20701 dynamic_linker="$host_os dld.sl"
20702 shlibpath_var=SHLIB_PATH
20703 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20705 soname_spec='${libname}${release}${shared_ext}$major'
20706 ;;
20707 esac
20708 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20709 postinstall_cmds='chmod 555 $lib'
20710 ;;
20711
20712interix3*)
20713 version_type=linux
20714 need_lib_prefix=no
20715 need_version=no
20716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20717 soname_spec='${libname}${release}${shared_ext}$major'
20718 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20719 shlibpath_var=LD_LIBRARY_PATH
20720 shlibpath_overrides_runpath=no
20721 hardcode_into_libs=yes
20722 ;;
20723
20724irix5* | irix6* | nonstopux*)
20725 case $host_os in
20726 nonstopux*) version_type=nonstopux ;;
20727 *)
20728 if test "$lt_cv_prog_gnu_ld" = yes; then
20729 version_type=linux
20730 else
20731 version_type=irix
20732 fi ;;
20733 esac
20734 need_lib_prefix=no
20735 need_version=no
20736 soname_spec='${libname}${release}${shared_ext}$major'
20737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20738 case $host_os in
20739 irix5* | nonstopux*)
20740 libsuff= shlibsuff=
20741 ;;
20742 *)
20743 case $LD in # libtool.m4 will add one of these switches to LD
20744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20745 libsuff= shlibsuff= libmagic=32-bit;;
20746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20747 libsuff=32 shlibsuff=N32 libmagic=N32;;
20748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20749 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20750 *) libsuff= shlibsuff= libmagic=never-match;;
20751 esac
20752 ;;
20753 esac
20754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20755 shlibpath_overrides_runpath=no
20756 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20757 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20758 hardcode_into_libs=yes
20759 ;;
20760
20761# No shared lib support for Linux oldld, aout, or coff.
20762linux*oldld* | linux*aout* | linux*coff*)
20763 dynamic_linker=no
20764 ;;
20765
20766# This must be Linux ELF.
20767linux*)
20768 version_type=linux
20769 need_lib_prefix=no
20770 need_version=no
20771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20772 soname_spec='${libname}${release}${shared_ext}$major'
20773 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20774 shlibpath_var=LD_LIBRARY_PATH
20775 shlibpath_overrides_runpath=no
20776 # This implies no fast_install, which is unacceptable.
20777 # Some rework will be needed to allow for fast_install
20778 # before this can be enabled.
20779 hardcode_into_libs=yes
20780
20781 # Append ld.so.conf contents to the search path
20782 if test -f /etc/ld.so.conf; then
20783 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' ' '`
20784 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20785 fi
20786
20787 # We used to test for /lib/ld.so.1 and disable shared libraries on
20788 # powerpc, because MkLinux only supported shared libraries with the
20789 # GNU dynamic linker. Since this was broken with cross compilers,
20790 # most powerpc-linux boxes support dynamic linking these days and
20791 # people can always --disable-shared, the test was removed, and we
20792 # assume the GNU/Linux dynamic linker is in use.
20793 dynamic_linker='GNU/Linux ld.so'
20794 ;;
20795
20796knetbsd*-gnu)
20797 version_type=linux
20798 need_lib_prefix=no
20799 need_version=no
20800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20801 soname_spec='${libname}${release}${shared_ext}$major'
20802 shlibpath_var=LD_LIBRARY_PATH
20803 shlibpath_overrides_runpath=no
20804 hardcode_into_libs=yes
20805 dynamic_linker='GNU ld.so'
20806 ;;
20807
20808netbsd*)
20809 version_type=sunos
20810 need_lib_prefix=no
20811 need_version=no
20812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20815 dynamic_linker='NetBSD (a.out) ld.so'
20816 else
20817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20818 soname_spec='${libname}${release}${shared_ext}$major'
20819 dynamic_linker='NetBSD ld.elf_so'
20820 fi
20821 shlibpath_var=LD_LIBRARY_PATH
20822 shlibpath_overrides_runpath=yes
20823 hardcode_into_libs=yes
20824 ;;
20825
20826newsos6)
20827 version_type=linux
20828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20829 shlibpath_var=LD_LIBRARY_PATH
20830 shlibpath_overrides_runpath=yes
20831 ;;
20832
20833nto-qnx*)
20834 version_type=linux
20835 need_lib_prefix=no
20836 need_version=no
20837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20838 soname_spec='${libname}${release}${shared_ext}$major'
20839 shlibpath_var=LD_LIBRARY_PATH
20840 shlibpath_overrides_runpath=yes
20841 ;;
20842
20843openbsd*)
20844 version_type=sunos
20845 sys_lib_dlsearch_path_spec="/usr/lib"
20846 need_lib_prefix=no
20847 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20848 case $host_os in
20849 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20850 *) need_version=no ;;
20851 esac
20852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20854 shlibpath_var=LD_LIBRARY_PATH
20855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20856 case $host_os in
20857 openbsd2.[89] | openbsd2.[89].*)
20858 shlibpath_overrides_runpath=no
20859 ;;
20860 *)
20861 shlibpath_overrides_runpath=yes
20862 ;;
20863 esac
20864 else
20865 shlibpath_overrides_runpath=yes
20866 fi
20867 ;;
20868
20869os2*)
20870 libname_spec='$name'
20871 shrext_cmds=".dll"
20872 need_lib_prefix=no
20873 library_names_spec='$libname${shared_ext} $libname.a'
20874 dynamic_linker='OS/2 ld.exe'
20875 shlibpath_var=LIBPATH
20876 ;;
20877
20878osf3* | osf4* | osf5*)
20879 version_type=osf
20880 need_lib_prefix=no
20881 need_version=no
20882 soname_spec='${libname}${release}${shared_ext}$major'
20883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20884 shlibpath_var=LD_LIBRARY_PATH
20885 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20886 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20887 ;;
20888
20889solaris*)
20890 version_type=linux
20891 need_lib_prefix=no
20892 need_version=no
20893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20894 soname_spec='${libname}${release}${shared_ext}$major'
20895 shlibpath_var=LD_LIBRARY_PATH
20896 shlibpath_overrides_runpath=yes
20897 hardcode_into_libs=yes
20898 # ldd complains unless libraries are executable
20899 postinstall_cmds='chmod +x $lib'
20900 ;;
20901
20902sunos4*)
20903 version_type=sunos
20904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20905 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20906 shlibpath_var=LD_LIBRARY_PATH
20907 shlibpath_overrides_runpath=yes
20908 if test "$with_gnu_ld" = yes; then
20909 need_lib_prefix=no
20910 fi
20911 need_version=yes
20912 ;;
20913
20914sysv4 | sysv4.3*)
20915 version_type=linux
20916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20917 soname_spec='${libname}${release}${shared_ext}$major'
20918 shlibpath_var=LD_LIBRARY_PATH
20919 case $host_vendor in
20920 sni)
20921 shlibpath_overrides_runpath=no
20922 need_lib_prefix=no
20923 export_dynamic_flag_spec='${wl}-Blargedynsym'
20924 runpath_var=LD_RUN_PATH
20925 ;;
20926 siemens)
20927 need_lib_prefix=no
20928 ;;
20929 motorola)
20930 need_lib_prefix=no
20931 need_version=no
20932 shlibpath_overrides_runpath=no
20933 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20934 ;;
20935 esac
20936 ;;
20937
20938sysv4*MP*)
20939 if test -d /usr/nec ;then
20940 version_type=linux
20941 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20942 soname_spec='$libname${shared_ext}.$major'
20943 shlibpath_var=LD_LIBRARY_PATH
20944 fi
20945 ;;
20946
20947sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20948 version_type=freebsd-elf
20949 need_lib_prefix=no
20950 need_version=no
20951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20952 soname_spec='${libname}${release}${shared_ext}$major'
20953 shlibpath_var=LD_LIBRARY_PATH
20954 hardcode_into_libs=yes
20955 if test "$with_gnu_ld" = yes; then
20956 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20957 shlibpath_overrides_runpath=no
20958 else
20959 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20960 shlibpath_overrides_runpath=yes
20961 case $host_os in
20962 sco3.2v5*)
20963 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20964 ;;
20965 esac
20966 fi
20967 sys_lib_dlsearch_path_spec='/usr/lib'
20968 ;;
20969
20970uts4*)
20971 version_type=linux
20972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20973 soname_spec='${libname}${release}${shared_ext}$major'
20974 shlibpath_var=LD_LIBRARY_PATH
20975 ;;
20976
20977*)
20978 dynamic_linker=no
20979 ;;
20980esac
20981{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20982echo "${ECHO_T}$dynamic_linker" >&6; }
20983test "$dynamic_linker" = no && can_build_shared=no
20984
20985variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20986if test "$GCC" = yes; then
20987 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20988fi
20989
20990{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20991echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20992hardcode_action_CXX=
20993if test -n "$hardcode_libdir_flag_spec_CXX" || \
20994 test -n "$runpath_var_CXX" || \
20995 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20996
20997 # We can hardcode non-existant directories.
20998 if test "$hardcode_direct_CXX" != no &&
20999 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21000 # have to relink, otherwise we might link with an installed library
21001 # when we should be linking with a yet-to-be-installed one
21002 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21003 test "$hardcode_minus_L_CXX" != no; then
21004 # Linking always hardcodes the temporary library directory.
21005 hardcode_action_CXX=relink
21006 else
21007 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21008 hardcode_action_CXX=immediate
21009 fi
21010else
21011 # We cannot hardcode anything, or else we can only hardcode existing
21012 # directories.
21013 hardcode_action_CXX=unsupported
21014fi
21015{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21016echo "${ECHO_T}$hardcode_action_CXX" >&6; }
21017
21018if test "$hardcode_action_CXX" = relink; then
21019 # Fast installation is not supported
21020 enable_fast_install=no
21021elif test "$shlibpath_overrides_runpath" = yes ||
21022 test "$enable_shared" = no; then
21023 # Fast installation is not necessary
21024 enable_fast_install=needless
21025fi
21026
21027
21028# The else clause should only fire when bootstrapping the
21029# libtool distribution, otherwise you forgot to ship ltmain.sh
21030# with your package, and you will get complaints that there are
21031# no rules to generate ltmain.sh.
21032if test -f "$ltmain"; then
21033 # See if we are running on zsh, and set the options which allow our commands through
21034 # without removal of \ escapes.
21035 if test -n "${ZSH_VERSION+set}" ; then
21036 setopt NO_GLOB_SUBST
21037 fi
21038 # Now quote all the things that may contain metacharacters while being
21039 # careful not to overquote the AC_SUBSTed values. We take copies of the
21040 # variables and quote the copies for generation of the libtool script.
21041 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21042 SED SHELL STRIP \
21043 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21044 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21045 deplibs_check_method reload_flag reload_cmds need_locks \
21046 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21047 lt_cv_sys_global_symbol_to_c_name_address \
21048 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21049 old_postinstall_cmds old_postuninstall_cmds \
21050 compiler_CXX \
21051 CC_CXX \
21052 LD_CXX \
21053 lt_prog_compiler_wl_CXX \
21054 lt_prog_compiler_pic_CXX \
21055 lt_prog_compiler_static_CXX \
21056 lt_prog_compiler_no_builtin_flag_CXX \
21057 export_dynamic_flag_spec_CXX \
21058 thread_safe_flag_spec_CXX \
21059 whole_archive_flag_spec_CXX \
21060 enable_shared_with_static_runtimes_CXX \
21061 old_archive_cmds_CXX \
21062 old_archive_from_new_cmds_CXX \
21063 predep_objects_CXX \
21064 postdep_objects_CXX \
21065 predeps_CXX \
21066 postdeps_CXX \
21067 compiler_lib_search_path_CXX \
21068 archive_cmds_CXX \
21069 archive_expsym_cmds_CXX \
21070 postinstall_cmds_CXX \
21071 postuninstall_cmds_CXX \
21072 old_archive_from_expsyms_cmds_CXX \
21073 allow_undefined_flag_CXX \
21074 no_undefined_flag_CXX \
21075 export_symbols_cmds_CXX \
21076 hardcode_libdir_flag_spec_CXX \
21077 hardcode_libdir_flag_spec_ld_CXX \
21078 hardcode_libdir_separator_CXX \
21079 hardcode_automatic_CXX \
21080 module_cmds_CXX \
21081 module_expsym_cmds_CXX \
21082 lt_cv_prog_compiler_c_o_CXX \
21083 exclude_expsyms_CXX \
21084 include_expsyms_CXX; do
21085
21086 case $var in
21087 old_archive_cmds_CXX | \
21088 old_archive_from_new_cmds_CXX | \
21089 archive_cmds_CXX | \
21090 archive_expsym_cmds_CXX | \
21091 module_cmds_CXX | \
21092 module_expsym_cmds_CXX | \
21093 old_archive_from_expsyms_cmds_CXX | \
21094 export_symbols_cmds_CXX | \
21095 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21096 postinstall_cmds | postuninstall_cmds | \
21097 old_postinstall_cmds | old_postuninstall_cmds | \
21098 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21099 # Double-quote double-evaled strings.
21100 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21101 ;;
21102 *)
21103 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21104 ;;
21105 esac
21106 done
21107
21108 case $lt_echo in
21109 *'\$0 --fallback-echo"')
21110 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21111 ;;
21112 esac
21113
21114cfgfile="$ofile"
21115
21116 cat <<__EOF__ >> "$cfgfile"
21117# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21118
21119# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21120
21121# Shell to use when invoking shell scripts.
21122SHELL=$lt_SHELL
21123
21124# Whether or not to build shared libraries.
21125build_libtool_libs=$enable_shared
21126
21127# Whether or not to build static libraries.
21128build_old_libs=$enable_static
21129
21130# Whether or not to add -lc for building shared libraries.
21131build_libtool_need_lc=$archive_cmds_need_lc_CXX
21132
21133# Whether or not to disallow shared libs when runtime libs are static
21134allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21135
21136# Whether or not to optimize for fast installation.
21137fast_install=$enable_fast_install
21138
21139# The host system.
21140host_alias=$host_alias
21141host=$host
21142host_os=$host_os
21143
21144# The build system.
21145build_alias=$build_alias
21146build=$build
21147build_os=$build_os
21148
21149# An echo program that does not interpret backslashes.
21150echo=$lt_echo
21151
21152# The archiver.
21153AR=$lt_AR
21154AR_FLAGS=$lt_AR_FLAGS
21155
21156# A C compiler.
21157LTCC=$lt_LTCC
21158
21159# LTCC compiler flags.
21160LTCFLAGS=$lt_LTCFLAGS
21161
21162# A language-specific compiler.
21163CC=$lt_compiler_CXX
21164
21165# Is the compiler the GNU C compiler?
21166with_gcc=$GCC_CXX
21167
21168# An ERE matcher.
21169EGREP=$lt_EGREP
21170
21171# The linker used to build libraries.
21172LD=$lt_LD_CXX
21173
21174# Whether we need hard or soft links.
21175LN_S=$lt_LN_S
21176
21177# A BSD-compatible nm program.
21178NM=$lt_NM
21179
21180# A symbol stripping program
21181STRIP=$lt_STRIP
21182
21183# Used to examine libraries when file_magic_cmd begins "file"
21184MAGIC_CMD=$MAGIC_CMD
21185
21186# Used on cygwin: DLL creation program.
21187DLLTOOL="$DLLTOOL"
21188
21189# Used on cygwin: object dumper.
21190OBJDUMP="$OBJDUMP"
21191
21192# Used on cygwin: assembler.
21193AS="$AS"
21194
21195# The name of the directory that contains temporary libtool files.
21196objdir=$objdir
21197
21198# How to create reloadable object files.
21199reload_flag=$lt_reload_flag
21200reload_cmds=$lt_reload_cmds
21201
21202# How to pass a linker flag through the compiler.
21203wl=$lt_lt_prog_compiler_wl_CXX
21204
21205# Object file suffix (normally "o").
21206objext="$ac_objext"
21207
21208# Old archive suffix (normally "a").
21209libext="$libext"
21210
21211# Shared library suffix (normally ".so").
21212shrext_cmds='$shrext_cmds'
21213
21214# Executable file suffix (normally "").
21215exeext="$exeext"
21216
21217# Additional compiler flags for building library objects.
21218pic_flag=$lt_lt_prog_compiler_pic_CXX
21219pic_mode=$pic_mode
21220
21221# What is the maximum length of a command?
21222max_cmd_len=$lt_cv_sys_max_cmd_len
21223
21224# Does compiler simultaneously support -c and -o options?
21225compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21226
21227# Must we lock files when doing compilation?
21228need_locks=$lt_need_locks
21229
21230# Do we need the lib prefix for modules?
21231need_lib_prefix=$need_lib_prefix
21232
21233# Do we need a version for libraries?
21234need_version=$need_version
21235
21236# Whether dlopen is supported.
21237dlopen_support=$enable_dlopen
21238
21239# Whether dlopen of programs is supported.
21240dlopen_self=$enable_dlopen_self
21241
21242# Whether dlopen of statically linked programs is supported.
21243dlopen_self_static=$enable_dlopen_self_static
21244
21245# Compiler flag to prevent dynamic linking.
21246link_static_flag=$lt_lt_prog_compiler_static_CXX
21247
21248# Compiler flag to turn off builtin functions.
21249no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21250
21251# Compiler flag to allow reflexive dlopens.
21252export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21253
21254# Compiler flag to generate shared objects directly from archives.
21255whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21256
21257# Compiler flag to generate thread-safe objects.
21258thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21259
21260# Library versioning type.
21261version_type=$version_type
21262
21263# Format of library name prefix.
21264libname_spec=$lt_libname_spec
21265
21266# List of archive names. First name is the real one, the rest are links.
21267# The last name is the one that the linker finds with -lNAME.
21268library_names_spec=$lt_library_names_spec
21269
21270# The coded name of the library, if different from the real name.
21271soname_spec=$lt_soname_spec
21272
21273# Commands used to build and install an old-style archive.
21274RANLIB=$lt_RANLIB
21275old_archive_cmds=$lt_old_archive_cmds_CXX
21276old_postinstall_cmds=$lt_old_postinstall_cmds
21277old_postuninstall_cmds=$lt_old_postuninstall_cmds
21278
21279# Create an old-style archive from a shared archive.
21280old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21281
21282# Create a temporary old-style archive to link instead of a shared archive.
21283old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21284
21285# Commands used to build and install a shared archive.
21286archive_cmds=$lt_archive_cmds_CXX
21287archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21288postinstall_cmds=$lt_postinstall_cmds
21289postuninstall_cmds=$lt_postuninstall_cmds
21290
21291# Commands used to build a loadable module (assumed same as above if empty)
21292module_cmds=$lt_module_cmds_CXX
21293module_expsym_cmds=$lt_module_expsym_cmds_CXX
21294
21295# Commands to strip libraries.
21296old_striplib=$lt_old_striplib
21297striplib=$lt_striplib
21298
21299# Dependencies to place before the objects being linked to create a
21300# shared library.
21301predep_objects=$lt_predep_objects_CXX
21302
21303# Dependencies to place after the objects being linked to create a
21304# shared library.
21305postdep_objects=$lt_postdep_objects_CXX
21306
21307# Dependencies to place before the objects being linked to create a
21308# shared library.
21309predeps=$lt_predeps_CXX
21310
21311# Dependencies to place after the objects being linked to create a
21312# shared library.
21313postdeps=$lt_postdeps_CXX
21314
21315# The library search path used internally by the compiler when linking
21316# a shared library.
21317compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21318
21319# Method to check whether dependent libraries are shared objects.
21320deplibs_check_method=$lt_deplibs_check_method
21321
21322# Command to use when deplibs_check_method == file_magic.
21323file_magic_cmd=$lt_file_magic_cmd
21324
21325# Flag that allows shared libraries with undefined symbols to be built.
21326allow_undefined_flag=$lt_allow_undefined_flag_CXX
21327
21328# Flag that forces no undefined symbols.
21329no_undefined_flag=$lt_no_undefined_flag_CXX
21330
21331# Commands used to finish a libtool library installation in a directory.
21332finish_cmds=$lt_finish_cmds
21333
21334# Same as above, but a single script fragment to be evaled but not shown.
21335finish_eval=$lt_finish_eval
21336
21337# Take the output of nm and produce a listing of raw symbols and C names.
21338global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21339
21340# Transform the output of nm in a proper C declaration
21341global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21342
21343# Transform the output of nm in a C name address pair
21344global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21345
21346# This is the shared library runtime path variable.
21347runpath_var=$runpath_var
21348
21349# This is the shared library path variable.
21350shlibpath_var=$shlibpath_var
21351
21352# Is shlibpath searched before the hard-coded library search path?
21353shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21354
21355# How to hardcode a shared library path into an executable.
21356hardcode_action=$hardcode_action_CXX
21357
21358# Whether we should hardcode library paths into libraries.
21359hardcode_into_libs=$hardcode_into_libs
21360
21361# Flag to hardcode \$libdir into a binary during linking.
21362# This must work even if \$libdir does not exist.
21363hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21364
21365# If ld is used when linking, flag to hardcode \$libdir into
21366# a binary during linking. This must work even if \$libdir does
21367# not exist.
21368hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21369
21370# Whether we need a single -rpath flag with a separated argument.
21371hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21372
21373# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21374# resulting binary.
21375hardcode_direct=$hardcode_direct_CXX
21376
21377# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21378# resulting binary.
21379hardcode_minus_L=$hardcode_minus_L_CXX
21380
21381# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21382# the resulting binary.
21383hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21384
21385# Set to yes if building a shared library automatically hardcodes DIR into the library
21386# and all subsequent libraries and executables linked against it.
21387hardcode_automatic=$hardcode_automatic_CXX
21388
21389# Variables whose values should be saved in libtool wrapper scripts and
21390# restored at relink time.
21391variables_saved_for_relink="$variables_saved_for_relink"
21392
21393# Whether libtool must link a program against all its dependency libraries.
21394link_all_deplibs=$link_all_deplibs_CXX
21395
21396# Compile-time system search path for libraries
21397sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21398
21399# Run-time system search path for libraries
21400sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21401
21402# Fix the shell variable \$srcfile for the compiler.
21403fix_srcfile_path="$fix_srcfile_path_CXX"
21404
21405# Set to yes if exported symbols are required.
21406always_export_symbols=$always_export_symbols_CXX
21407
21408# The commands to list exported symbols.
21409export_symbols_cmds=$lt_export_symbols_cmds_CXX
21410
21411# The commands to extract the exported symbol list from a shared archive.
21412extract_expsyms_cmds=$lt_extract_expsyms_cmds
21413
21414# Symbols that should not be listed in the preloaded symbols.
21415exclude_expsyms=$lt_exclude_expsyms_CXX
21416
21417# Symbols that must always be exported.
21418include_expsyms=$lt_include_expsyms_CXX
21419
21420# ### END LIBTOOL TAG CONFIG: $tagname
21421
21422__EOF__
21423
21424
21425else
21426 # If there is no Makefile yet, we rely on a make rule to execute
21427 # `config.status --recheck' to rerun these tests and create the
21428 # libtool script then.
21429 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21430 if test -f "$ltmain_in"; then
21431 test -f Makefile && make "$ltmain"
21432 fi
21433fi
21434
21435
21436ac_ext=c
21437ac_cpp='$CPP $CPPFLAGS'
21438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21440ac_compiler_gnu=$ac_cv_c_compiler_gnu
21441
21442CC=$lt_save_CC
21443LDCXX=$LD
21444LD=$lt_save_LD
21445GCC=$lt_save_GCC
21446with_gnu_ldcxx=$with_gnu_ld
21447with_gnu_ld=$lt_save_with_gnu_ld
21448lt_cv_path_LDCXX=$lt_cv_path_LD
21449lt_cv_path_LD=$lt_save_path_LD
21450lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21451lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21452
21453 else
21454 tagname=""
21455 fi
21456 ;;
21457
21458 F77)
21459 if test -n "$F77" && test "X$F77" != "Xno"; then
21460
21461ac_ext=f
21462ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21463ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21464ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21465
21466
21467archive_cmds_need_lc_F77=no
21468allow_undefined_flag_F77=
21469always_export_symbols_F77=no
21470archive_expsym_cmds_F77=
21471export_dynamic_flag_spec_F77=
21472hardcode_direct_F77=no
21473hardcode_libdir_flag_spec_F77=
21474hardcode_libdir_flag_spec_ld_F77=
21475hardcode_libdir_separator_F77=
21476hardcode_minus_L_F77=no
21477hardcode_automatic_F77=no
21478module_cmds_F77=
21479module_expsym_cmds_F77=
21480link_all_deplibs_F77=unknown
21481old_archive_cmds_F77=$old_archive_cmds
21482no_undefined_flag_F77=
21483whole_archive_flag_spec_F77=
21484enable_shared_with_static_runtimes_F77=no
21485
21486# Source file extension for f77 test sources.
21487ac_ext=f
21488
21489# Object file extension for compiled f77 test sources.
21490objext=o
21491objext_F77=$objext
21492
21493# Code to be used in simple compile tests
21494lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21495
21496# Code to be used in simple link tests
21497lt_simple_link_test_code=" program t\n end\n"
21498
21499# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21500
21501# If no C compiler was specified, use CC.
21502LTCC=${LTCC-"$CC"}
21503
21504# If no C compiler flags were specified, use CFLAGS.
21505LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21506
21507# Allow CC to be a program name with arguments.
21508compiler=$CC
21509
21510
21511# save warnings/boilerplate of simple test code
21512ac_outfile=conftest.$ac_objext
21513printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21514eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21515_lt_compiler_boilerplate=`cat conftest.err`
21516$rm conftest*
21517
21518ac_outfile=conftest.$ac_objext
21519printf "$lt_simple_link_test_code" >conftest.$ac_ext
21520eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21521_lt_linker_boilerplate=`cat conftest.err`
21522$rm conftest*
21523
21524
21525# Allow CC to be a program name with arguments.
21526lt_save_CC="$CC"
21527CC=${F77-"f77"}
21528compiler=$CC
21529compiler_F77=$CC
21530for cc_temp in $compiler""; do
21531 case $cc_temp in
21532 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21533 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21534 \-*) ;;
21535 *) break;;
21536 esac
21537done
21538cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21539
21540
21541{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21542echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21543{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21544echo "${ECHO_T}$can_build_shared" >&6; }
21545
21546{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21547echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21548test "$can_build_shared" = "no" && enable_shared=no
21549
21550# On AIX, shared libraries and static libraries use the same namespace, and
21551# are all built from PIC.
21552case $host_os in
21553aix3*)
21554 test "$enable_shared" = yes && enable_static=no
21555 if test -n "$RANLIB"; then
21556 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21557 postinstall_cmds='$RANLIB $lib'
21558 fi
21559 ;;
21560aix4* | aix5*)
21561 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21562 test "$enable_shared" = yes && enable_static=no
21563 fi
21564 ;;
21565esac
21566{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21567echo "${ECHO_T}$enable_shared" >&6; }
21568
21569{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21570echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21571# Make sure either enable_shared or enable_static is yes.
21572test "$enable_shared" = yes || enable_static=yes
21573{ echo "$as_me:$LINENO: result: $enable_static" >&5
21574echo "${ECHO_T}$enable_static" >&6; }
21575
21576GCC_F77="$G77"
21577LD_F77="$LD"
21578
21579lt_prog_compiler_wl_F77=
21580lt_prog_compiler_pic_F77=
21581lt_prog_compiler_static_F77=
21582
21583{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21584echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21585
21586 if test "$GCC" = yes; then
21587 lt_prog_compiler_wl_F77='-Wl,'
21588 lt_prog_compiler_static_F77='-static'
21589
21590 case $host_os in
21591 aix*)
21592 # All AIX code is PIC.
21593 if test "$host_cpu" = ia64; then
21594 # AIX 5 now supports IA64 processor
21595 lt_prog_compiler_static_F77='-Bstatic'
21596 fi
21597 ;;
21598
21599 amigaos*)
21600 # FIXME: we need at least 68020 code to build shared libraries, but
21601 # adding the `-m68020' flag to GCC prevents building anything better,
21602 # like `-m68040'.
21603 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21604 ;;
21605
21606 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21607 # PIC is the default for these OSes.
21608 ;;
21609
21610 mingw* | pw32* | os2*)
21611 # This hack is so that the source file can tell whether it is being
21612 # built for inclusion in a dll (and should export symbols for example).
21613 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21614 ;;
21615
21616 darwin* | rhapsody*)
21617 # PIC is the default on this platform
21618 # Common symbols not allowed in MH_DYLIB files
21619 lt_prog_compiler_pic_F77='-fno-common'
21620 ;;
21621
21622 interix3*)
21623 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21624 # Instead, we relocate shared libraries at runtime.
21625 ;;
21626
21627 msdosdjgpp*)
21628 # Just because we use GCC doesn't mean we suddenly get shared libraries
21629 # on systems that don't support them.
21630 lt_prog_compiler_can_build_shared_F77=no
21631 enable_shared=no
21632 ;;
21633
21634 sysv4*MP*)
21635 if test -d /usr/nec; then
21636 lt_prog_compiler_pic_F77=-Kconform_pic
21637 fi
21638 ;;
21639
21640 hpux*)
21641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21642 # not for PA HP-UX.
21643 case $host_cpu in
21644 hppa*64*|ia64*)
21645 # +Z the default
21646 ;;
21647 *)
21648 lt_prog_compiler_pic_F77='-fPIC'
21649 ;;
21650 esac
21651 ;;
21652
21653 *)
21654 lt_prog_compiler_pic_F77='-fPIC'
21655 ;;
21656 esac
21657 else
21658 # PORTME Check for flag to pass linker flags through the system compiler.
21659 case $host_os in
21660 aix*)
21661 lt_prog_compiler_wl_F77='-Wl,'
21662 if test "$host_cpu" = ia64; then
21663 # AIX 5 now supports IA64 processor
21664 lt_prog_compiler_static_F77='-Bstatic'
21665 else
21666 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21667 fi
21668 ;;
21669 darwin*)
21670 # PIC is the default on this platform
21671 # Common symbols not allowed in MH_DYLIB files
21672 case $cc_basename in
21673 xlc*)
21674 lt_prog_compiler_pic_F77='-qnocommon'
21675 lt_prog_compiler_wl_F77='-Wl,'
21676 ;;
21677 esac
21678 ;;
21679
21680 mingw* | pw32* | os2*)
21681 # This hack is so that the source file can tell whether it is being
21682 # built for inclusion in a dll (and should export symbols for example).
21683 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21684 ;;
21685
21686 hpux9* | hpux10* | hpux11*)
21687 lt_prog_compiler_wl_F77='-Wl,'
21688 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21689 # not for PA HP-UX.
21690 case $host_cpu in
21691 hppa*64*|ia64*)
21692 # +Z the default
21693 ;;
21694 *)
21695 lt_prog_compiler_pic_F77='+Z'
21696 ;;
21697 esac
21698 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21699 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21700 ;;
21701
21702 irix5* | irix6* | nonstopux*)
21703 lt_prog_compiler_wl_F77='-Wl,'
21704 # PIC (with -KPIC) is the default.
21705 lt_prog_compiler_static_F77='-non_shared'
21706 ;;
21707
21708 newsos6)
21709 lt_prog_compiler_pic_F77='-KPIC'
21710 lt_prog_compiler_static_F77='-Bstatic'
21711 ;;
21712
21713 linux*)
21714 case $cc_basename in
21715 icc* | ecc*)
21716 lt_prog_compiler_wl_F77='-Wl,'
21717 lt_prog_compiler_pic_F77='-KPIC'
21718 lt_prog_compiler_static_F77='-static'
21719 ;;
21720 pgcc* | pgf77* | pgf90* | pgf95*)
21721 # Portland Group compilers (*not* the Pentium gcc compiler,
21722 # which looks to be a dead project)
21723 lt_prog_compiler_wl_F77='-Wl,'
21724 lt_prog_compiler_pic_F77='-fpic'
21725 lt_prog_compiler_static_F77='-Bstatic'
21726 ;;
21727 ccc*)
21728 lt_prog_compiler_wl_F77='-Wl,'
21729 # All Alpha code is PIC.
21730 lt_prog_compiler_static_F77='-non_shared'
21731 ;;
21732 esac
21733 ;;
21734
21735 osf3* | osf4* | osf5*)
21736 lt_prog_compiler_wl_F77='-Wl,'
21737 # All OSF/1 code is PIC.
21738 lt_prog_compiler_static_F77='-non_shared'
21739 ;;
21740
21741 solaris*)
21742 lt_prog_compiler_pic_F77='-KPIC'
21743 lt_prog_compiler_static_F77='-Bstatic'
21744 case $cc_basename in
21745 f77* | f90* | f95*)
21746 lt_prog_compiler_wl_F77='-Qoption ld ';;
21747 *)
21748 lt_prog_compiler_wl_F77='-Wl,';;
21749 esac
21750 ;;
21751
21752 sunos4*)
21753 lt_prog_compiler_wl_F77='-Qoption ld '
21754 lt_prog_compiler_pic_F77='-PIC'
21755 lt_prog_compiler_static_F77='-Bstatic'
21756 ;;
21757
21758 sysv4 | sysv4.2uw2* | sysv4.3*)
21759 lt_prog_compiler_wl_F77='-Wl,'
21760 lt_prog_compiler_pic_F77='-KPIC'
21761 lt_prog_compiler_static_F77='-Bstatic'
21762 ;;
21763
21764 sysv4*MP*)
21765 if test -d /usr/nec ;then
21766 lt_prog_compiler_pic_F77='-Kconform_pic'
21767 lt_prog_compiler_static_F77='-Bstatic'
21768 fi
21769 ;;
21770
21771 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21772 lt_prog_compiler_wl_F77='-Wl,'
21773 lt_prog_compiler_pic_F77='-KPIC'
21774 lt_prog_compiler_static_F77='-Bstatic'
21775 ;;
21776
21777 unicos*)
21778 lt_prog_compiler_wl_F77='-Wl,'
21779 lt_prog_compiler_can_build_shared_F77=no
21780 ;;
21781
21782 uts4*)
21783 lt_prog_compiler_pic_F77='-pic'
21784 lt_prog_compiler_static_F77='-Bstatic'
21785 ;;
21786
21787 *)
21788 lt_prog_compiler_can_build_shared_F77=no
21789 ;;
21790 esac
21791 fi
21792
21793{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21794echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21795
21796#
21797# Check to make sure the PIC flag actually works.
21798#
21799if test -n "$lt_prog_compiler_pic_F77"; then
21800
21801{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21802echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21803if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21805else
21806 lt_prog_compiler_pic_works_F77=no
21807 ac_outfile=conftest.$ac_objext
21808 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21809 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21810 # Insert the option either (1) after the last *FLAGS variable, or
21811 # (2) before a word containing "conftest.", or (3) at the end.
21812 # Note that $ac_compile itself does not contain backslashes and begins
21813 # with a dollar sign (not a hyphen), so the echo should work correctly.
21814 # The option is referenced via a variable to avoid confusing sed.
21815 lt_compile=`echo "$ac_compile" | $SED \
21816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21818 -e 's:$: $lt_compiler_flag:'`
Anton Korobeynikov1207b902009-08-18 00:40:51 +000021819 (eval echo "\"\$as_me:21819: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021820 (eval "$lt_compile" 2>conftest.err)
21821 ac_status=$?
21822 cat conftest.err >&5
Anton Korobeynikov1207b902009-08-18 00:40:51 +000021823 echo "$as_me:21823: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021824 if (exit $ac_status) && test -s "$ac_outfile"; then
21825 # The compiler can only warn and ignore the option if not recognized
21826 # So say no if there are warnings other than the usual output.
21827 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21830 lt_prog_compiler_pic_works_F77=yes
21831 fi
21832 fi
21833 $rm conftest*
21834
21835fi
21836{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21837echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21838
21839if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21840 case $lt_prog_compiler_pic_F77 in
21841 "" | " "*) ;;
21842 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21843 esac
21844else
21845 lt_prog_compiler_pic_F77=
21846 lt_prog_compiler_can_build_shared_F77=no
21847fi
21848
21849fi
21850case $host_os in
21851 # For platforms which do not support PIC, -DPIC is meaningless:
21852 *djgpp*)
21853 lt_prog_compiler_pic_F77=
21854 ;;
21855 *)
21856 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21857 ;;
21858esac
21859
21860#
21861# Check to make sure the static flag actually works.
21862#
21863wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21864{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21865echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21866if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21868else
21869 lt_prog_compiler_static_works_F77=no
21870 save_LDFLAGS="$LDFLAGS"
21871 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21872 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21873 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21874 # The linker can only warn and ignore the option if not recognized
21875 # So say no if there are warnings
21876 if test -s conftest.err; then
21877 # Append any errors to the config.log.
21878 cat conftest.err 1>&5
21879 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21881 if diff conftest.exp conftest.er2 >/dev/null; then
21882 lt_prog_compiler_static_works_F77=yes
21883 fi
21884 else
21885 lt_prog_compiler_static_works_F77=yes
21886 fi
21887 fi
21888 $rm conftest*
21889 LDFLAGS="$save_LDFLAGS"
21890
21891fi
21892{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21893echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21894
21895if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21896 :
21897else
21898 lt_prog_compiler_static_F77=
21899fi
21900
21901
21902{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21903echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21904if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21905 echo $ECHO_N "(cached) $ECHO_C" >&6
21906else
21907 lt_cv_prog_compiler_c_o_F77=no
21908 $rm -r conftest 2>/dev/null
21909 mkdir conftest
21910 cd conftest
21911 mkdir out
21912 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21913
21914 lt_compiler_flag="-o out/conftest2.$ac_objext"
21915 # Insert the option either (1) after the last *FLAGS variable, or
21916 # (2) before a word containing "conftest.", or (3) at the end.
21917 # Note that $ac_compile itself does not contain backslashes and begins
21918 # with a dollar sign (not a hyphen), so the echo should work correctly.
21919 lt_compile=`echo "$ac_compile" | $SED \
21920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21922 -e 's:$: $lt_compiler_flag:'`
Anton Korobeynikov1207b902009-08-18 00:40:51 +000021923 (eval echo "\"\$as_me:21923: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021924 (eval "$lt_compile" 2>out/conftest.err)
21925 ac_status=$?
21926 cat out/conftest.err >&5
Anton Korobeynikov1207b902009-08-18 00:40:51 +000021927 echo "$as_me:21927: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021928 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21929 then
21930 # The compiler can only warn and ignore the option if not recognized
21931 # So say no if there are warnings
21932 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21933 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21934 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21935 lt_cv_prog_compiler_c_o_F77=yes
21936 fi
21937 fi
21938 chmod u+w . 2>&5
21939 $rm conftest*
21940 # SGI C++ compiler will create directory out/ii_files/ for
21941 # template instantiation
21942 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21943 $rm out/* && rmdir out
21944 cd ..
21945 rmdir conftest
21946 $rm conftest*
21947
21948fi
21949{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21950echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21951
21952
21953hard_links="nottested"
21954if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21955 # do not overwrite the value of need_locks provided by the user
21956 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21957echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21958 hard_links=yes
21959 $rm conftest*
21960 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21961 touch conftest.a
21962 ln conftest.a conftest.b 2>&5 || hard_links=no
21963 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21964 { echo "$as_me:$LINENO: result: $hard_links" >&5
21965echo "${ECHO_T}$hard_links" >&6; }
21966 if test "$hard_links" = no; then
21967 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21968echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21969 need_locks=warn
21970 fi
21971else
21972 need_locks=no
21973fi
21974
21975{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21976echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21977
21978 runpath_var=
21979 allow_undefined_flag_F77=
21980 enable_shared_with_static_runtimes_F77=no
21981 archive_cmds_F77=
21982 archive_expsym_cmds_F77=
21983 old_archive_From_new_cmds_F77=
21984 old_archive_from_expsyms_cmds_F77=
21985 export_dynamic_flag_spec_F77=
21986 whole_archive_flag_spec_F77=
21987 thread_safe_flag_spec_F77=
21988 hardcode_libdir_flag_spec_F77=
21989 hardcode_libdir_flag_spec_ld_F77=
21990 hardcode_libdir_separator_F77=
21991 hardcode_direct_F77=no
21992 hardcode_minus_L_F77=no
21993 hardcode_shlibpath_var_F77=unsupported
21994 link_all_deplibs_F77=unknown
21995 hardcode_automatic_F77=no
21996 module_cmds_F77=
21997 module_expsym_cmds_F77=
21998 always_export_symbols_F77=no
21999 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22000 # include_expsyms should be a list of space-separated symbols to be *always*
22001 # included in the symbol list
22002 include_expsyms_F77=
22003 # exclude_expsyms can be an extended regexp of symbols to exclude
22004 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22005 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22006 # as well as any symbol that contains `d'.
22007 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22008 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22009 # platforms (ab)use it in PIC code, but their linkers get confused if
22010 # the symbol is explicitly referenced. Since portable code cannot
22011 # rely on this symbol name, it's probably fine to never include it in
22012 # preloaded symbol tables.
22013 extract_expsyms_cmds=
22014 # Just being paranoid about ensuring that cc_basename is set.
22015 for cc_temp in $compiler""; do
22016 case $cc_temp in
22017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22019 \-*) ;;
22020 *) break;;
22021 esac
22022done
22023cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22024
22025 case $host_os in
22026 cygwin* | mingw* | pw32*)
22027 # FIXME: the MSVC++ port hasn't been tested in a loooong time
22028 # When not using gcc, we currently assume that we are using
22029 # Microsoft Visual C++.
22030 if test "$GCC" != yes; then
22031 with_gnu_ld=no
22032 fi
22033 ;;
22034 interix*)
22035 # we just hope/assume this is gcc and not c89 (= MSVC++)
22036 with_gnu_ld=yes
22037 ;;
22038 openbsd*)
22039 with_gnu_ld=no
22040 ;;
22041 esac
22042
22043 ld_shlibs_F77=yes
22044 if test "$with_gnu_ld" = yes; then
22045 # If archive_cmds runs LD, not CC, wlarc should be empty
22046 wlarc='${wl}'
22047
22048 # Set some defaults for GNU ld with shared library support. These
22049 # are reset later if shared libraries are not supported. Putting them
22050 # here allows them to be overridden if necessary.
22051 runpath_var=LD_RUN_PATH
22052 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22053 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22054 # ancient GNU ld didn't support --whole-archive et. al.
22055 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22056 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22057 else
22058 whole_archive_flag_spec_F77=
22059 fi
22060 supports_anon_versioning=no
22061 case `$LD -v 2>/dev/null` in
22062 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22063 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22064 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22065 *\ 2.11.*) ;; # other 2.11 versions
22066 *) supports_anon_versioning=yes ;;
22067 esac
22068
22069 # See if GNU ld supports shared libraries.
22070 case $host_os in
22071 aix3* | aix4* | aix5*)
22072 # On AIX/PPC, the GNU linker is very broken
22073 if test "$host_cpu" != ia64; then
22074 ld_shlibs_F77=no
22075 cat <<EOF 1>&2
22076
22077*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22078*** to be unable to reliably create shared libraries on AIX.
22079*** Therefore, libtool is disabling shared libraries support. If you
22080*** really care for shared libraries, you may want to modify your PATH
22081*** so that a non-GNU linker is found, and then restart.
22082
22083EOF
22084 fi
22085 ;;
22086
22087 amigaos*)
22088 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)'
22089 hardcode_libdir_flag_spec_F77='-L$libdir'
22090 hardcode_minus_L_F77=yes
22091
22092 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22093 # that the semantics of dynamic libraries on AmigaOS, at least up
22094 # to version 4, is to share data among multiple programs linked
22095 # with the same dynamic library. Since this doesn't match the
22096 # behavior of shared libraries on other platforms, we can't use
22097 # them.
22098 ld_shlibs_F77=no
22099 ;;
22100
22101 beos*)
22102 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22103 allow_undefined_flag_F77=unsupported
22104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22105 # support --undefined. This deserves some investigation. FIXME
22106 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22107 else
22108 ld_shlibs_F77=no
22109 fi
22110 ;;
22111
22112 cygwin* | mingw* | pw32*)
22113 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22114 # as there is no search path for DLLs.
22115 hardcode_libdir_flag_spec_F77='-L$libdir'
22116 allow_undefined_flag_F77=unsupported
22117 always_export_symbols_F77=no
22118 enable_shared_with_static_runtimes_F77=yes
22119 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22120
22121 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22122 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22123 # If the export-symbols file already is a .def file (1st line
22124 # is EXPORTS), use it as is; otherwise, prepend...
22125 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22126 cp $export_symbols $output_objdir/$soname.def;
22127 else
22128 echo EXPORTS > $output_objdir/$soname.def;
22129 cat $export_symbols >> $output_objdir/$soname.def;
22130 fi~
22131 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22132 else
22133 ld_shlibs_F77=no
22134 fi
22135 ;;
22136
22137 interix3*)
22138 hardcode_direct_F77=no
22139 hardcode_shlibpath_var_F77=no
22140 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22141 export_dynamic_flag_spec_F77='${wl}-E'
22142 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22143 # Instead, shared libraries are loaded at an image base (0x10000000 by
22144 # default) and relocated if they conflict, which is a slow very memory
22145 # consuming and fragmenting process. To avoid this, we pick a random,
22146 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22147 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22148 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'
22149 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'
22150 ;;
22151
22152 linux*)
22153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22154 tmp_addflag=
22155 case $cc_basename,$host_cpu in
22156 pgcc*) # Portland Group C compiler
22157 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'
22158 tmp_addflag=' $pic_flag'
22159 ;;
22160 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22161 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'
22162 tmp_addflag=' $pic_flag -Mnomain' ;;
22163 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22164 tmp_addflag=' -i_dynamic' ;;
22165 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22166 tmp_addflag=' -i_dynamic -nofor_main' ;;
22167 ifc* | ifort*) # Intel Fortran compiler
22168 tmp_addflag=' -nofor_main' ;;
22169 esac
22170 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22171
22172 if test $supports_anon_versioning = yes; then
22173 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22175 $echo "local: *; };" >> $output_objdir/$libname.ver~
22176 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22177 fi
22178 else
22179 ld_shlibs_F77=no
22180 fi
22181 ;;
22182
22183 netbsd*)
22184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22185 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22186 wlarc=
22187 else
22188 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22189 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22190 fi
22191 ;;
22192
22193 solaris*)
22194 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22195 ld_shlibs_F77=no
22196 cat <<EOF 1>&2
22197
22198*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22199*** create shared libraries on Solaris systems. Therefore, libtool
22200*** is disabling shared libraries support. We urge you to upgrade GNU
22201*** binutils to release 2.9.1 or newer. Another option is to modify
22202*** your PATH or compiler configuration so that the native linker is
22203*** used, and then restart.
22204
22205EOF
22206 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22207 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22208 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22209 else
22210 ld_shlibs_F77=no
22211 fi
22212 ;;
22213
22214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22215 case `$LD -v 2>&1` in
22216 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22217 ld_shlibs_F77=no
22218 cat <<_LT_EOF 1>&2
22219
22220*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22221*** reliably create shared libraries on SCO systems. Therefore, libtool
22222*** is disabling shared libraries support. We urge you to upgrade GNU
22223*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22224*** your PATH or compiler configuration so that the native linker is
22225*** used, and then restart.
22226
22227_LT_EOF
22228 ;;
22229 *)
22230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22231 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22232 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22233 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22234 else
22235 ld_shlibs_F77=no
22236 fi
22237 ;;
22238 esac
22239 ;;
22240
22241 sunos4*)
22242 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22243 wlarc=
22244 hardcode_direct_F77=yes
22245 hardcode_shlibpath_var_F77=no
22246 ;;
22247
22248 *)
22249 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22250 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22251 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22252 else
22253 ld_shlibs_F77=no
22254 fi
22255 ;;
22256 esac
22257
22258 if test "$ld_shlibs_F77" = no; then
22259 runpath_var=
22260 hardcode_libdir_flag_spec_F77=
22261 export_dynamic_flag_spec_F77=
22262 whole_archive_flag_spec_F77=
22263 fi
22264 else
22265 # PORTME fill in a description of your system's linker (not GNU ld)
22266 case $host_os in
22267 aix3*)
22268 allow_undefined_flag_F77=unsupported
22269 always_export_symbols_F77=yes
22270 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'
22271 # Note: this linker hardcodes the directories in LIBPATH if there
22272 # are no directories specified by -L.
22273 hardcode_minus_L_F77=yes
22274 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22275 # Neither direct hardcoding nor static linking is supported with a
22276 # broken collect2.
22277 hardcode_direct_F77=unsupported
22278 fi
22279 ;;
22280
22281 aix4* | aix5*)
22282 if test "$host_cpu" = ia64; then
22283 # On IA64, the linker does run time linking by default, so we don't
22284 # have to do anything special.
22285 aix_use_runtimelinking=no
22286 exp_sym_flag='-Bexport'
22287 no_entry_flag=""
22288 else
22289 # If we're using GNU nm, then we don't want the "-C" option.
22290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22291 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22292 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'
22293 else
22294 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'
22295 fi
22296 aix_use_runtimelinking=no
22297
22298 # Test if we are trying to use run time linking or normal
22299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22300 # need to do runtime linking.
22301 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22302 for ld_flag in $LDFLAGS; do
22303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22304 aix_use_runtimelinking=yes
22305 break
22306 fi
22307 done
22308 ;;
22309 esac
22310
22311 exp_sym_flag='-bexport'
22312 no_entry_flag='-bnoentry'
22313 fi
22314
22315 # When large executables or shared objects are built, AIX ld can
22316 # have problems creating the table of contents. If linking a library
22317 # or program results in "error TOC overflow" add -mminimal-toc to
22318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22320
22321 archive_cmds_F77=''
22322 hardcode_direct_F77=yes
22323 hardcode_libdir_separator_F77=':'
22324 link_all_deplibs_F77=yes
22325
22326 if test "$GCC" = yes; then
22327 case $host_os in aix4.[012]|aix4.[012].*)
22328 # We only want to do this on AIX 4.2 and lower, the check
22329 # below for broken collect2 doesn't work under 4.3+
22330 collect2name=`${CC} -print-prog-name=collect2`
22331 if test -f "$collect2name" && \
22332 strings "$collect2name" | grep resolve_lib_name >/dev/null
22333 then
22334 # We have reworked collect2
22335 hardcode_direct_F77=yes
22336 else
22337 # We have old collect2
22338 hardcode_direct_F77=unsupported
22339 # It fails to find uninstalled libraries when the uninstalled
22340 # path is not listed in the libpath. Setting hardcode_minus_L
22341 # to unsupported forces relinking
22342 hardcode_minus_L_F77=yes
22343 hardcode_libdir_flag_spec_F77='-L$libdir'
22344 hardcode_libdir_separator_F77=
22345 fi
22346 ;;
22347 esac
22348 shared_flag='-shared'
22349 if test "$aix_use_runtimelinking" = yes; then
22350 shared_flag="$shared_flag "'${wl}-G'
22351 fi
22352 else
22353 # not using gcc
22354 if test "$host_cpu" = ia64; then
22355 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22356 # chokes on -Wl,-G. The following line is correct:
22357 shared_flag='-G'
22358 else
22359 if test "$aix_use_runtimelinking" = yes; then
22360 shared_flag='${wl}-G'
22361 else
22362 shared_flag='${wl}-bM:SRE'
22363 fi
22364 fi
22365 fi
22366
22367 # It seems that -bexpall does not export symbols beginning with
22368 # underscore (_), so it is better to generate a list of symbols to export.
22369 always_export_symbols_F77=yes
22370 if test "$aix_use_runtimelinking" = yes; then
22371 # Warning - without using the other runtime loading flags (-brtl),
22372 # -berok will link without error, but may produce a broken library.
22373 allow_undefined_flag_F77='-berok'
22374 # Determine the default libpath from the value encoded in an empty executable.
22375 cat >conftest.$ac_ext <<_ACEOF
22376 program main
22377
22378 end
22379_ACEOF
22380rm -f conftest.$ac_objext conftest$ac_exeext
22381if { (ac_try="$ac_link"
22382case "(($ac_try" in
22383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384 *) ac_try_echo=$ac_try;;
22385esac
22386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387 (eval "$ac_link") 2>conftest.er1
22388 ac_status=$?
22389 grep -v '^ *+' conftest.er1 >conftest.err
22390 rm -f conftest.er1
22391 cat conftest.err >&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022393 (exit $ac_status); } &&
22394 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22395 { (case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22398esac
22399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_try") 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; } &&
22404 { ac_try='test -s conftest$ac_exeext'
22405 { (case "(($ac_try" in
22406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407 *) ac_try_echo=$ac_try;;
22408esac
22409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22410 (eval "$ac_try") 2>&5
22411 ac_status=$?
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022414
22415aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22416}'`
22417# Check for a 64-bit object if we didn't find anything.
22418if 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; }
22419}'`; fi
22420else
22421 echo "$as_me: failed program was:" >&5
22422sed 's/^/| /' conftest.$ac_ext >&5
22423
22424
22425fi
22426
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022427rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022428 conftest$ac_exeext conftest.$ac_ext
22429if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22430
22431 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22432 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"
22433 else
22434 if test "$host_cpu" = ia64; then
22435 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22436 allow_undefined_flag_F77="-z nodefs"
22437 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"
22438 else
22439 # Determine the default libpath from the value encoded in an empty executable.
22440 cat >conftest.$ac_ext <<_ACEOF
22441 program main
22442
22443 end
22444_ACEOF
22445rm -f conftest.$ac_objext conftest$ac_exeext
22446if { (ac_try="$ac_link"
22447case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22450esac
22451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452 (eval "$ac_link") 2>conftest.er1
22453 ac_status=$?
22454 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1
22456 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022458 (exit $ac_status); } &&
22459 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22460 { (case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22463esac
22464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_try") 2>&5
22466 ac_status=$?
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; } &&
22469 { ac_try='test -s conftest$ac_exeext'
22470 { (case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22473esac
22474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_try") 2>&5
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022479
22480aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22481}'`
22482# Check for a 64-bit object if we didn't find anything.
22483if 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; }
22484}'`; fi
22485else
22486 echo "$as_me: failed program was:" >&5
22487sed 's/^/| /' conftest.$ac_ext >&5
22488
22489
22490fi
22491
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022492rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022493 conftest$ac_exeext conftest.$ac_ext
22494if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22495
22496 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22497 # Warning - without using the other run time loading flags,
22498 # -berok will link without error, but may produce a broken library.
22499 no_undefined_flag_F77=' ${wl}-bernotok'
22500 allow_undefined_flag_F77=' ${wl}-berok'
22501 # Exported symbols can be pulled into shared objects from archives
22502 whole_archive_flag_spec_F77='$convenience'
22503 archive_cmds_need_lc_F77=yes
22504 # This is similar to how AIX traditionally builds its shared libraries.
22505 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'
22506 fi
22507 fi
22508 ;;
22509
22510 amigaos*)
22511 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)'
22512 hardcode_libdir_flag_spec_F77='-L$libdir'
22513 hardcode_minus_L_F77=yes
22514 # see comment about different semantics on the GNU ld section
22515 ld_shlibs_F77=no
22516 ;;
22517
22518 bsdi[45]*)
22519 export_dynamic_flag_spec_F77=-rdynamic
22520 ;;
22521
22522 cygwin* | mingw* | pw32*)
22523 # When not using gcc, we currently assume that we are using
22524 # Microsoft Visual C++.
22525 # hardcode_libdir_flag_spec is actually meaningless, as there is
22526 # no search path for DLLs.
22527 hardcode_libdir_flag_spec_F77=' '
22528 allow_undefined_flag_F77=unsupported
22529 # Tell ltmain to make .lib files, not .a files.
22530 libext=lib
22531 # Tell ltmain to make .dll files, not .so files.
22532 shrext_cmds=".dll"
22533 # FIXME: Setting linknames here is a bad hack.
22534 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22535 # The linker will automatically build a .lib file if we build a DLL.
22536 old_archive_From_new_cmds_F77='true'
22537 # FIXME: Should let the user specify the lib program.
22538 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22539 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22540 enable_shared_with_static_runtimes_F77=yes
22541 ;;
22542
22543 darwin* | rhapsody*)
22544 case $host_os in
22545 rhapsody* | darwin1.[012])
22546 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22547 ;;
22548 *) # Darwin 1.3 on
22549 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22550 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22551 else
22552 case ${MACOSX_DEPLOYMENT_TARGET} in
22553 10.[012])
22554 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22555 ;;
22556 10.*)
22557 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22558 ;;
22559 esac
22560 fi
22561 ;;
22562 esac
22563 archive_cmds_need_lc_F77=no
22564 hardcode_direct_F77=no
22565 hardcode_automatic_F77=yes
22566 hardcode_shlibpath_var_F77=unsupported
22567 whole_archive_flag_spec_F77=''
22568 link_all_deplibs_F77=yes
22569 if test "$GCC" = yes ; then
22570 output_verbose_link_cmd='echo'
22571 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22572 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22574 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}'
22575 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}'
22576 else
22577 case $cc_basename in
22578 xlc*)
22579 output_verbose_link_cmd='echo'
22580 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22581 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22583 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}'
22584 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}'
22585 ;;
22586 *)
22587 ld_shlibs_F77=no
22588 ;;
22589 esac
22590 fi
22591 ;;
22592
22593 dgux*)
22594 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22595 hardcode_libdir_flag_spec_F77='-L$libdir'
22596 hardcode_shlibpath_var_F77=no
22597 ;;
22598
22599 freebsd1*)
22600 ld_shlibs_F77=no
22601 ;;
22602
22603 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22604 # support. Future versions do this automatically, but an explicit c++rt0.o
22605 # does not break anything, and helps significantly (at the cost of a little
22606 # extra space).
22607 freebsd2.2*)
22608 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22609 hardcode_libdir_flag_spec_F77='-R$libdir'
22610 hardcode_direct_F77=yes
22611 hardcode_shlibpath_var_F77=no
22612 ;;
22613
22614 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22615 freebsd2*)
22616 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22617 hardcode_direct_F77=yes
22618 hardcode_minus_L_F77=yes
22619 hardcode_shlibpath_var_F77=no
22620 ;;
22621
22622 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22623 freebsd* | kfreebsd*-gnu | dragonfly*)
22624 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22625 hardcode_libdir_flag_spec_F77='-R$libdir'
22626 hardcode_direct_F77=yes
22627 hardcode_shlibpath_var_F77=no
22628 ;;
22629
22630 hpux9*)
22631 if test "$GCC" = yes; then
22632 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'
22633 else
22634 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'
22635 fi
22636 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22637 hardcode_libdir_separator_F77=:
22638 hardcode_direct_F77=yes
22639
22640 # hardcode_minus_L: Not really in the search PATH,
22641 # but as the default location of the library.
22642 hardcode_minus_L_F77=yes
22643 export_dynamic_flag_spec_F77='${wl}-E'
22644 ;;
22645
22646 hpux10*)
22647 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22648 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22649 else
22650 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22651 fi
22652 if test "$with_gnu_ld" = no; then
22653 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22654 hardcode_libdir_separator_F77=:
22655
22656 hardcode_direct_F77=yes
22657 export_dynamic_flag_spec_F77='${wl}-E'
22658
22659 # hardcode_minus_L: Not really in the search PATH,
22660 # but as the default location of the library.
22661 hardcode_minus_L_F77=yes
22662 fi
22663 ;;
22664
22665 hpux11*)
22666 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22667 case $host_cpu in
22668 hppa*64*)
22669 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22670 ;;
22671 ia64*)
22672 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22673 ;;
22674 *)
22675 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22676 ;;
22677 esac
22678 else
22679 case $host_cpu in
22680 hppa*64*)
22681 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22682 ;;
22683 ia64*)
22684 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22685 ;;
22686 *)
22687 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22688 ;;
22689 esac
22690 fi
22691 if test "$with_gnu_ld" = no; then
22692 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22693 hardcode_libdir_separator_F77=:
22694
22695 case $host_cpu in
22696 hppa*64*|ia64*)
22697 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22698 hardcode_direct_F77=no
22699 hardcode_shlibpath_var_F77=no
22700 ;;
22701 *)
22702 hardcode_direct_F77=yes
22703 export_dynamic_flag_spec_F77='${wl}-E'
22704
22705 # hardcode_minus_L: Not really in the search PATH,
22706 # but as the default location of the library.
22707 hardcode_minus_L_F77=yes
22708 ;;
22709 esac
22710 fi
22711 ;;
22712
22713 irix5* | irix6* | nonstopux*)
22714 if test "$GCC" = yes; then
22715 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'
22716 else
22717 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'
22718 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22719 fi
22720 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22721 hardcode_libdir_separator_F77=:
22722 link_all_deplibs_F77=yes
22723 ;;
22724
22725 netbsd*)
22726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22727 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22728 else
22729 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22730 fi
22731 hardcode_libdir_flag_spec_F77='-R$libdir'
22732 hardcode_direct_F77=yes
22733 hardcode_shlibpath_var_F77=no
22734 ;;
22735
22736 newsos6)
22737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22738 hardcode_direct_F77=yes
22739 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22740 hardcode_libdir_separator_F77=:
22741 hardcode_shlibpath_var_F77=no
22742 ;;
22743
22744 openbsd*)
22745 hardcode_direct_F77=yes
22746 hardcode_shlibpath_var_F77=no
22747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22748 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22749 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22750 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22751 export_dynamic_flag_spec_F77='${wl}-E'
22752 else
22753 case $host_os in
22754 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22755 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22756 hardcode_libdir_flag_spec_F77='-R$libdir'
22757 ;;
22758 *)
22759 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22760 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22761 ;;
22762 esac
22763 fi
22764 ;;
22765
22766 os2*)
22767 hardcode_libdir_flag_spec_F77='-L$libdir'
22768 hardcode_minus_L_F77=yes
22769 allow_undefined_flag_F77=unsupported
22770 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'
22771 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22772 ;;
22773
22774 osf3*)
22775 if test "$GCC" = yes; then
22776 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22777 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'
22778 else
22779 allow_undefined_flag_F77=' -expect_unresolved \*'
22780 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'
22781 fi
22782 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22783 hardcode_libdir_separator_F77=:
22784 ;;
22785
22786 osf4* | osf5*) # as osf3* with the addition of -msym flag
22787 if test "$GCC" = yes; then
22788 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22789 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'
22790 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22791 else
22792 allow_undefined_flag_F77=' -expect_unresolved \*'
22793 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'
22794 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~
22795 $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'
22796
22797 # Both c and cxx compiler support -rpath directly
22798 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22799 fi
22800 hardcode_libdir_separator_F77=:
22801 ;;
22802
22803 solaris*)
22804 no_undefined_flag_F77=' -z text'
22805 if test "$GCC" = yes; then
22806 wlarc='${wl}'
22807 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22808 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22809 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22810 else
22811 wlarc=''
22812 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22813 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22815 fi
22816 hardcode_libdir_flag_spec_F77='-R$libdir'
22817 hardcode_shlibpath_var_F77=no
22818 case $host_os in
22819 solaris2.[0-5] | solaris2.[0-5].*) ;;
22820 *)
22821 # The compiler driver will combine linker options so we
22822 # cannot just pass the convience library names through
22823 # without $wl, iff we do not link with $LD.
22824 # Luckily, gcc supports the same syntax we need for Sun Studio.
22825 # Supported since Solaris 2.6 (maybe 2.5.1?)
22826 case $wlarc in
22827 '')
22828 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22829 *)
22830 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' ;;
22831 esac ;;
22832 esac
22833 link_all_deplibs_F77=yes
22834 ;;
22835
22836 sunos4*)
22837 if test "x$host_vendor" = xsequent; then
22838 # Use $CC to link under sequent, because it throws in some extra .o
22839 # files that make .init and .fini sections work.
22840 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22841 else
22842 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22843 fi
22844 hardcode_libdir_flag_spec_F77='-L$libdir'
22845 hardcode_direct_F77=yes
22846 hardcode_minus_L_F77=yes
22847 hardcode_shlibpath_var_F77=no
22848 ;;
22849
22850 sysv4)
22851 case $host_vendor in
22852 sni)
22853 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22854 hardcode_direct_F77=yes # is this really true???
22855 ;;
22856 siemens)
22857 ## LD is ld it makes a PLAMLIB
22858 ## CC just makes a GrossModule.
22859 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22860 reload_cmds_F77='$CC -r -o $output$reload_objs'
22861 hardcode_direct_F77=no
22862 ;;
22863 motorola)
22864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22865 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22866 ;;
22867 esac
22868 runpath_var='LD_RUN_PATH'
22869 hardcode_shlibpath_var_F77=no
22870 ;;
22871
22872 sysv4.3*)
22873 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22874 hardcode_shlibpath_var_F77=no
22875 export_dynamic_flag_spec_F77='-Bexport'
22876 ;;
22877
22878 sysv4*MP*)
22879 if test -d /usr/nec; then
22880 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22881 hardcode_shlibpath_var_F77=no
22882 runpath_var=LD_RUN_PATH
22883 hardcode_runpath_var=yes
22884 ld_shlibs_F77=yes
22885 fi
22886 ;;
22887
22888 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22889 no_undefined_flag_F77='${wl}-z,text'
22890 archive_cmds_need_lc_F77=no
22891 hardcode_shlibpath_var_F77=no
22892 runpath_var='LD_RUN_PATH'
22893
22894 if test "$GCC" = yes; then
22895 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22896 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22897 else
22898 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22899 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22900 fi
22901 ;;
22902
22903 sysv5* | sco3.2v5* | sco5v6*)
22904 # Note: We can NOT use -z defs as we might desire, because we do not
22905 # link with -lc, and that would cause any symbols used from libc to
22906 # always be unresolved, which means just about no library would
22907 # ever link correctly. If we're not using GNU ld we use -z text
22908 # though, which does catch some bad symbols but isn't as heavy-handed
22909 # as -z defs.
22910 no_undefined_flag_F77='${wl}-z,text'
22911 allow_undefined_flag_F77='${wl}-z,nodefs'
22912 archive_cmds_need_lc_F77=no
22913 hardcode_shlibpath_var_F77=no
22914 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22915 hardcode_libdir_separator_F77=':'
22916 link_all_deplibs_F77=yes
22917 export_dynamic_flag_spec_F77='${wl}-Bexport'
22918 runpath_var='LD_RUN_PATH'
22919
22920 if test "$GCC" = yes; then
22921 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22922 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22923 else
22924 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22925 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22926 fi
22927 ;;
22928
22929 uts4*)
22930 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22931 hardcode_libdir_flag_spec_F77='-L$libdir'
22932 hardcode_shlibpath_var_F77=no
22933 ;;
22934
22935 *)
22936 ld_shlibs_F77=no
22937 ;;
22938 esac
22939 fi
22940
22941{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22942echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22943test "$ld_shlibs_F77" = no && can_build_shared=no
22944
22945#
22946# Do we need to explicitly link libc?
22947#
22948case "x$archive_cmds_need_lc_F77" in
22949x|xyes)
22950 # Assume -lc should be added
22951 archive_cmds_need_lc_F77=yes
22952
22953 if test "$enable_shared" = yes && test "$GCC" = yes; then
22954 case $archive_cmds_F77 in
22955 *'~'*)
22956 # FIXME: we may have to deal with multi-command sequences.
22957 ;;
22958 '$CC '*)
22959 # Test whether the compiler implicitly links with -lc since on some
22960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22961 # to ld, don't add -lc before -lgcc.
22962 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22963echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22964 $rm conftest*
22965 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22966
22967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22968 (eval $ac_compile) 2>&5
22969 ac_status=$?
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } 2>conftest.err; then
22972 soname=conftest
22973 lib=conftest
22974 libobjs=conftest.$ac_objext
22975 deplibs=
22976 wl=$lt_prog_compiler_wl_F77
22977 pic_flag=$lt_prog_compiler_pic_F77
22978 compiler_flags=-v
22979 linker_flags=-v
22980 verstring=
22981 output_objdir=.
22982 libname=conftest
22983 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22984 allow_undefined_flag_F77=
22985 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22986 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22987 ac_status=$?
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }
22990 then
22991 archive_cmds_need_lc_F77=no
22992 else
22993 archive_cmds_need_lc_F77=yes
22994 fi
22995 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22996 else
22997 cat conftest.err 1>&5
22998 fi
22999 $rm conftest*
23000 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23001echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
23002 ;;
23003 esac
23004 fi
23005 ;;
23006esac
23007
23008{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23009echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23010library_names_spec=
23011libname_spec='lib$name'
23012soname_spec=
23013shrext_cmds=".so"
23014postinstall_cmds=
23015postuninstall_cmds=
23016finish_cmds=
23017finish_eval=
23018shlibpath_var=
23019shlibpath_overrides_runpath=unknown
23020version_type=none
23021dynamic_linker="$host_os ld.so"
23022sys_lib_dlsearch_path_spec="/lib /usr/lib"
23023if test "$GCC" = yes; then
23024 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23025 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23026 # if the path contains ";" then we assume it to be the separator
23027 # otherwise default to the standard path separator (i.e. ":") - it is
23028 # assumed that no part of a normal pathname contains ";" but that should
23029 # okay in the real world where ";" in dirpaths is itself problematic.
23030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23031 else
23032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23033 fi
23034else
23035 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23036fi
23037need_lib_prefix=unknown
23038hardcode_into_libs=no
23039
23040# when you set need_version to no, make sure it does not cause -set_version
23041# flags to be left without arguments
23042need_version=unknown
23043
23044case $host_os in
23045aix3*)
23046 version_type=linux
23047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23048 shlibpath_var=LIBPATH
23049
23050 # AIX 3 has no versioning support, so we append a major version to the name.
23051 soname_spec='${libname}${release}${shared_ext}$major'
23052 ;;
23053
23054aix4* | aix5*)
23055 version_type=linux
23056 need_lib_prefix=no
23057 need_version=no
23058 hardcode_into_libs=yes
23059 if test "$host_cpu" = ia64; then
23060 # AIX 5 supports IA64
23061 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23062 shlibpath_var=LD_LIBRARY_PATH
23063 else
23064 # With GCC up to 2.95.x, collect2 would create an import file
23065 # for dependence libraries. The import file would start with
23066 # the line `#! .'. This would cause the generated library to
23067 # depend on `.', always an invalid library. This was fixed in
23068 # development snapshots of GCC prior to 3.0.
23069 case $host_os in
23070 aix4 | aix4.[01] | aix4.[01].*)
23071 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23072 echo ' yes '
23073 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23074 :
23075 else
23076 can_build_shared=no
23077 fi
23078 ;;
23079 esac
23080 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23081 # soname into executable. Probably we can add versioning support to
23082 # collect2, so additional links can be useful in future.
23083 if test "$aix_use_runtimelinking" = yes; then
23084 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23085 # instead of lib<name>.a to let people know that these are not
23086 # typical AIX shared libraries.
23087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088 else
23089 # We preserve .a as extension for shared libraries through AIX4.2
23090 # and later when we are not doing run time linking.
23091 library_names_spec='${libname}${release}.a $libname.a'
23092 soname_spec='${libname}${release}${shared_ext}$major'
23093 fi
23094 shlibpath_var=LIBPATH
23095 fi
23096 ;;
23097
23098amigaos*)
23099 library_names_spec='$libname.ixlibrary $libname.a'
23100 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23101 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'
23102 ;;
23103
23104beos*)
23105 library_names_spec='${libname}${shared_ext}'
23106 dynamic_linker="$host_os ld.so"
23107 shlibpath_var=LIBRARY_PATH
23108 ;;
23109
23110bsdi[45]*)
23111 version_type=linux
23112 need_version=no
23113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23114 soname_spec='${libname}${release}${shared_ext}$major'
23115 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23116 shlibpath_var=LD_LIBRARY_PATH
23117 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23118 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23119 # the default ld.so.conf also contains /usr/contrib/lib and
23120 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23121 # libtool to hard-code these into programs
23122 ;;
23123
23124cygwin* | mingw* | pw32*)
23125 version_type=windows
23126 shrext_cmds=".dll"
23127 need_version=no
23128 need_lib_prefix=no
23129
23130 case $GCC,$host_os in
23131 yes,cygwin* | yes,mingw* | yes,pw32*)
23132 library_names_spec='$libname.dll.a'
23133 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23134 postinstall_cmds='base_file=`basename \${file}`~
23135 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23136 dldir=$destdir/`dirname \$dlpath`~
23137 test -d \$dldir || mkdir -p \$dldir~
23138 $install_prog $dir/$dlname \$dldir/$dlname~
23139 chmod a+x \$dldir/$dlname'
23140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23141 dlpath=$dir/\$dldll~
23142 $rm \$dlpath'
23143 shlibpath_overrides_runpath=yes
23144
23145 case $host_os in
23146 cygwin*)
23147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23149 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23150 ;;
23151 mingw*)
23152 # MinGW DLLs use traditional 'lib' prefix
23153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23154 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23155 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23156 # It is most probably a Windows format PATH printed by
23157 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23158 # path with ; separators, and with drive letters. We can handle the
23159 # drive letters (cygwin fileutils understands them), so leave them,
23160 # especially as we might pass files found there to a mingw objdump,
23161 # which wouldn't understand a cygwinified path. Ahh.
23162 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23163 else
23164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23165 fi
23166 ;;
23167 pw32*)
23168 # pw32 DLLs use 'pw' prefix rather than 'lib'
23169 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23170 ;;
23171 esac
23172 ;;
23173
23174 *)
23175 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23176 ;;
23177 esac
23178 dynamic_linker='Win32 ld.exe'
23179 # FIXME: first we should search . and the directory the executable is in
23180 shlibpath_var=PATH
23181 ;;
23182
23183darwin* | rhapsody*)
23184 dynamic_linker="$host_os dyld"
23185 version_type=darwin
23186 need_lib_prefix=no
23187 need_version=no
23188 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23189 soname_spec='${libname}${release}${major}$shared_ext'
23190 shlibpath_overrides_runpath=yes
23191 shlibpath_var=DYLD_LIBRARY_PATH
23192 shrext_cmds='.dylib'
23193 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23194 if test "$GCC" = yes; then
23195 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"`
23196 else
23197 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23198 fi
23199 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23200 ;;
23201
23202dgux*)
23203 version_type=linux
23204 need_lib_prefix=no
23205 need_version=no
23206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23207 soname_spec='${libname}${release}${shared_ext}$major'
23208 shlibpath_var=LD_LIBRARY_PATH
23209 ;;
23210
23211freebsd1*)
23212 dynamic_linker=no
23213 ;;
23214
23215kfreebsd*-gnu)
23216 version_type=linux
23217 need_lib_prefix=no
23218 need_version=no
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23220 soname_spec='${libname}${release}${shared_ext}$major'
23221 shlibpath_var=LD_LIBRARY_PATH
23222 shlibpath_overrides_runpath=no
23223 hardcode_into_libs=yes
23224 dynamic_linker='GNU ld.so'
23225 ;;
23226
23227freebsd* | dragonfly*)
23228 # DragonFly does not have aout. When/if they implement a new
23229 # versioning mechanism, adjust this.
23230 if test -x /usr/bin/objformat; then
23231 objformat=`/usr/bin/objformat`
23232 else
23233 case $host_os in
23234 freebsd[123]*) objformat=aout ;;
23235 *) objformat=elf ;;
23236 esac
23237 fi
23238 version_type=freebsd-$objformat
23239 case $version_type in
23240 freebsd-elf*)
23241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23242 need_version=no
23243 need_lib_prefix=no
23244 ;;
23245 freebsd-*)
23246 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23247 need_version=yes
23248 ;;
23249 esac
23250 shlibpath_var=LD_LIBRARY_PATH
23251 case $host_os in
23252 freebsd2*)
23253 shlibpath_overrides_runpath=yes
23254 ;;
23255 freebsd3.[01]* | freebsdelf3.[01]*)
23256 shlibpath_overrides_runpath=yes
23257 hardcode_into_libs=yes
23258 ;;
23259 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23260 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23261 shlibpath_overrides_runpath=no
23262 hardcode_into_libs=yes
23263 ;;
23264 freebsd*) # from 4.6 on
23265 shlibpath_overrides_runpath=yes
23266 hardcode_into_libs=yes
23267 ;;
23268 esac
23269 ;;
23270
23271gnu*)
23272 version_type=linux
23273 need_lib_prefix=no
23274 need_version=no
23275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23276 soname_spec='${libname}${release}${shared_ext}$major'
23277 shlibpath_var=LD_LIBRARY_PATH
23278 hardcode_into_libs=yes
23279 ;;
23280
23281hpux9* | hpux10* | hpux11*)
23282 # Give a soname corresponding to the major version so that dld.sl refuses to
23283 # link against other versions.
23284 version_type=sunos
23285 need_lib_prefix=no
23286 need_version=no
23287 case $host_cpu in
23288 ia64*)
23289 shrext_cmds='.so'
23290 hardcode_into_libs=yes
23291 dynamic_linker="$host_os dld.so"
23292 shlibpath_var=LD_LIBRARY_PATH
23293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23295 soname_spec='${libname}${release}${shared_ext}$major'
23296 if test "X$HPUX_IA64_MODE" = X32; then
23297 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23298 else
23299 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23300 fi
23301 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23302 ;;
23303 hppa*64*)
23304 shrext_cmds='.sl'
23305 hardcode_into_libs=yes
23306 dynamic_linker="$host_os dld.sl"
23307 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23310 soname_spec='${libname}${release}${shared_ext}$major'
23311 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23313 ;;
23314 *)
23315 shrext_cmds='.sl'
23316 dynamic_linker="$host_os dld.sl"
23317 shlibpath_var=SHLIB_PATH
23318 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23320 soname_spec='${libname}${release}${shared_ext}$major'
23321 ;;
23322 esac
23323 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23324 postinstall_cmds='chmod 555 $lib'
23325 ;;
23326
23327interix3*)
23328 version_type=linux
23329 need_lib_prefix=no
23330 need_version=no
23331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23332 soname_spec='${libname}${release}${shared_ext}$major'
23333 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23334 shlibpath_var=LD_LIBRARY_PATH
23335 shlibpath_overrides_runpath=no
23336 hardcode_into_libs=yes
23337 ;;
23338
23339irix5* | irix6* | nonstopux*)
23340 case $host_os in
23341 nonstopux*) version_type=nonstopux ;;
23342 *)
23343 if test "$lt_cv_prog_gnu_ld" = yes; then
23344 version_type=linux
23345 else
23346 version_type=irix
23347 fi ;;
23348 esac
23349 need_lib_prefix=no
23350 need_version=no
23351 soname_spec='${libname}${release}${shared_ext}$major'
23352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23353 case $host_os in
23354 irix5* | nonstopux*)
23355 libsuff= shlibsuff=
23356 ;;
23357 *)
23358 case $LD in # libtool.m4 will add one of these switches to LD
23359 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23360 libsuff= shlibsuff= libmagic=32-bit;;
23361 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23362 libsuff=32 shlibsuff=N32 libmagic=N32;;
23363 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23364 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23365 *) libsuff= shlibsuff= libmagic=never-match;;
23366 esac
23367 ;;
23368 esac
23369 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23370 shlibpath_overrides_runpath=no
23371 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23372 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23373 hardcode_into_libs=yes
23374 ;;
23375
23376# No shared lib support for Linux oldld, aout, or coff.
23377linux*oldld* | linux*aout* | linux*coff*)
23378 dynamic_linker=no
23379 ;;
23380
23381# This must be Linux ELF.
23382linux*)
23383 version_type=linux
23384 need_lib_prefix=no
23385 need_version=no
23386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23387 soname_spec='${libname}${release}${shared_ext}$major'
23388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23389 shlibpath_var=LD_LIBRARY_PATH
23390 shlibpath_overrides_runpath=no
23391 # This implies no fast_install, which is unacceptable.
23392 # Some rework will be needed to allow for fast_install
23393 # before this can be enabled.
23394 hardcode_into_libs=yes
23395
23396 # Append ld.so.conf contents to the search path
23397 if test -f /etc/ld.so.conf; then
23398 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' ' '`
23399 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23400 fi
23401
23402 # We used to test for /lib/ld.so.1 and disable shared libraries on
23403 # powerpc, because MkLinux only supported shared libraries with the
23404 # GNU dynamic linker. Since this was broken with cross compilers,
23405 # most powerpc-linux boxes support dynamic linking these days and
23406 # people can always --disable-shared, the test was removed, and we
23407 # assume the GNU/Linux dynamic linker is in use.
23408 dynamic_linker='GNU/Linux ld.so'
23409 ;;
23410
23411knetbsd*-gnu)
23412 version_type=linux
23413 need_lib_prefix=no
23414 need_version=no
23415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23416 soname_spec='${libname}${release}${shared_ext}$major'
23417 shlibpath_var=LD_LIBRARY_PATH
23418 shlibpath_overrides_runpath=no
23419 hardcode_into_libs=yes
23420 dynamic_linker='GNU ld.so'
23421 ;;
23422
23423netbsd*)
23424 version_type=sunos
23425 need_lib_prefix=no
23426 need_version=no
23427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23430 dynamic_linker='NetBSD (a.out) ld.so'
23431 else
23432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23433 soname_spec='${libname}${release}${shared_ext}$major'
23434 dynamic_linker='NetBSD ld.elf_so'
23435 fi
23436 shlibpath_var=LD_LIBRARY_PATH
23437 shlibpath_overrides_runpath=yes
23438 hardcode_into_libs=yes
23439 ;;
23440
23441newsos6)
23442 version_type=linux
23443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23444 shlibpath_var=LD_LIBRARY_PATH
23445 shlibpath_overrides_runpath=yes
23446 ;;
23447
23448nto-qnx*)
23449 version_type=linux
23450 need_lib_prefix=no
23451 need_version=no
23452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23453 soname_spec='${libname}${release}${shared_ext}$major'
23454 shlibpath_var=LD_LIBRARY_PATH
23455 shlibpath_overrides_runpath=yes
23456 ;;
23457
23458openbsd*)
23459 version_type=sunos
23460 sys_lib_dlsearch_path_spec="/usr/lib"
23461 need_lib_prefix=no
23462 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23463 case $host_os in
23464 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23465 *) need_version=no ;;
23466 esac
23467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23469 shlibpath_var=LD_LIBRARY_PATH
23470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23471 case $host_os in
23472 openbsd2.[89] | openbsd2.[89].*)
23473 shlibpath_overrides_runpath=no
23474 ;;
23475 *)
23476 shlibpath_overrides_runpath=yes
23477 ;;
23478 esac
23479 else
23480 shlibpath_overrides_runpath=yes
23481 fi
23482 ;;
23483
23484os2*)
23485 libname_spec='$name'
23486 shrext_cmds=".dll"
23487 need_lib_prefix=no
23488 library_names_spec='$libname${shared_ext} $libname.a'
23489 dynamic_linker='OS/2 ld.exe'
23490 shlibpath_var=LIBPATH
23491 ;;
23492
23493osf3* | osf4* | osf5*)
23494 version_type=osf
23495 need_lib_prefix=no
23496 need_version=no
23497 soname_spec='${libname}${release}${shared_ext}$major'
23498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23499 shlibpath_var=LD_LIBRARY_PATH
23500 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23501 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23502 ;;
23503
23504solaris*)
23505 version_type=linux
23506 need_lib_prefix=no
23507 need_version=no
23508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23509 soname_spec='${libname}${release}${shared_ext}$major'
23510 shlibpath_var=LD_LIBRARY_PATH
23511 shlibpath_overrides_runpath=yes
23512 hardcode_into_libs=yes
23513 # ldd complains unless libraries are executable
23514 postinstall_cmds='chmod +x $lib'
23515 ;;
23516
23517sunos4*)
23518 version_type=sunos
23519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23521 shlibpath_var=LD_LIBRARY_PATH
23522 shlibpath_overrides_runpath=yes
23523 if test "$with_gnu_ld" = yes; then
23524 need_lib_prefix=no
23525 fi
23526 need_version=yes
23527 ;;
23528
23529sysv4 | sysv4.3*)
23530 version_type=linux
23531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23532 soname_spec='${libname}${release}${shared_ext}$major'
23533 shlibpath_var=LD_LIBRARY_PATH
23534 case $host_vendor in
23535 sni)
23536 shlibpath_overrides_runpath=no
23537 need_lib_prefix=no
23538 export_dynamic_flag_spec='${wl}-Blargedynsym'
23539 runpath_var=LD_RUN_PATH
23540 ;;
23541 siemens)
23542 need_lib_prefix=no
23543 ;;
23544 motorola)
23545 need_lib_prefix=no
23546 need_version=no
23547 shlibpath_overrides_runpath=no
23548 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23549 ;;
23550 esac
23551 ;;
23552
23553sysv4*MP*)
23554 if test -d /usr/nec ;then
23555 version_type=linux
23556 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23557 soname_spec='$libname${shared_ext}.$major'
23558 shlibpath_var=LD_LIBRARY_PATH
23559 fi
23560 ;;
23561
23562sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23563 version_type=freebsd-elf
23564 need_lib_prefix=no
23565 need_version=no
23566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23567 soname_spec='${libname}${release}${shared_ext}$major'
23568 shlibpath_var=LD_LIBRARY_PATH
23569 hardcode_into_libs=yes
23570 if test "$with_gnu_ld" = yes; then
23571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23572 shlibpath_overrides_runpath=no
23573 else
23574 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23575 shlibpath_overrides_runpath=yes
23576 case $host_os in
23577 sco3.2v5*)
23578 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23579 ;;
23580 esac
23581 fi
23582 sys_lib_dlsearch_path_spec='/usr/lib'
23583 ;;
23584
23585uts4*)
23586 version_type=linux
23587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23588 soname_spec='${libname}${release}${shared_ext}$major'
23589 shlibpath_var=LD_LIBRARY_PATH
23590 ;;
23591
23592*)
23593 dynamic_linker=no
23594 ;;
23595esac
23596{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23597echo "${ECHO_T}$dynamic_linker" >&6; }
23598test "$dynamic_linker" = no && can_build_shared=no
23599
23600variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23601if test "$GCC" = yes; then
23602 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23603fi
23604
23605{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23606echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23607hardcode_action_F77=
23608if test -n "$hardcode_libdir_flag_spec_F77" || \
23609 test -n "$runpath_var_F77" || \
23610 test "X$hardcode_automatic_F77" = "Xyes" ; then
23611
23612 # We can hardcode non-existant directories.
23613 if test "$hardcode_direct_F77" != no &&
23614 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23615 # have to relink, otherwise we might link with an installed library
23616 # when we should be linking with a yet-to-be-installed one
23617 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23618 test "$hardcode_minus_L_F77" != no; then
23619 # Linking always hardcodes the temporary library directory.
23620 hardcode_action_F77=relink
23621 else
23622 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23623 hardcode_action_F77=immediate
23624 fi
23625else
23626 # We cannot hardcode anything, or else we can only hardcode existing
23627 # directories.
23628 hardcode_action_F77=unsupported
23629fi
23630{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23631echo "${ECHO_T}$hardcode_action_F77" >&6; }
23632
23633if test "$hardcode_action_F77" = relink; then
23634 # Fast installation is not supported
23635 enable_fast_install=no
23636elif test "$shlibpath_overrides_runpath" = yes ||
23637 test "$enable_shared" = no; then
23638 # Fast installation is not necessary
23639 enable_fast_install=needless
23640fi
23641
23642
23643# The else clause should only fire when bootstrapping the
23644# libtool distribution, otherwise you forgot to ship ltmain.sh
23645# with your package, and you will get complaints that there are
23646# no rules to generate ltmain.sh.
23647if test -f "$ltmain"; then
23648 # See if we are running on zsh, and set the options which allow our commands through
23649 # without removal of \ escapes.
23650 if test -n "${ZSH_VERSION+set}" ; then
23651 setopt NO_GLOB_SUBST
23652 fi
23653 # Now quote all the things that may contain metacharacters while being
23654 # careful not to overquote the AC_SUBSTed values. We take copies of the
23655 # variables and quote the copies for generation of the libtool script.
23656 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23657 SED SHELL STRIP \
23658 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23659 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23660 deplibs_check_method reload_flag reload_cmds need_locks \
23661 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23662 lt_cv_sys_global_symbol_to_c_name_address \
23663 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23664 old_postinstall_cmds old_postuninstall_cmds \
23665 compiler_F77 \
23666 CC_F77 \
23667 LD_F77 \
23668 lt_prog_compiler_wl_F77 \
23669 lt_prog_compiler_pic_F77 \
23670 lt_prog_compiler_static_F77 \
23671 lt_prog_compiler_no_builtin_flag_F77 \
23672 export_dynamic_flag_spec_F77 \
23673 thread_safe_flag_spec_F77 \
23674 whole_archive_flag_spec_F77 \
23675 enable_shared_with_static_runtimes_F77 \
23676 old_archive_cmds_F77 \
23677 old_archive_from_new_cmds_F77 \
23678 predep_objects_F77 \
23679 postdep_objects_F77 \
23680 predeps_F77 \
23681 postdeps_F77 \
23682 compiler_lib_search_path_F77 \
23683 archive_cmds_F77 \
23684 archive_expsym_cmds_F77 \
23685 postinstall_cmds_F77 \
23686 postuninstall_cmds_F77 \
23687 old_archive_from_expsyms_cmds_F77 \
23688 allow_undefined_flag_F77 \
23689 no_undefined_flag_F77 \
23690 export_symbols_cmds_F77 \
23691 hardcode_libdir_flag_spec_F77 \
23692 hardcode_libdir_flag_spec_ld_F77 \
23693 hardcode_libdir_separator_F77 \
23694 hardcode_automatic_F77 \
23695 module_cmds_F77 \
23696 module_expsym_cmds_F77 \
23697 lt_cv_prog_compiler_c_o_F77 \
23698 exclude_expsyms_F77 \
23699 include_expsyms_F77; do
23700
23701 case $var in
23702 old_archive_cmds_F77 | \
23703 old_archive_from_new_cmds_F77 | \
23704 archive_cmds_F77 | \
23705 archive_expsym_cmds_F77 | \
23706 module_cmds_F77 | \
23707 module_expsym_cmds_F77 | \
23708 old_archive_from_expsyms_cmds_F77 | \
23709 export_symbols_cmds_F77 | \
23710 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23711 postinstall_cmds | postuninstall_cmds | \
23712 old_postinstall_cmds | old_postuninstall_cmds | \
23713 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23714 # Double-quote double-evaled strings.
23715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23716 ;;
23717 *)
23718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23719 ;;
23720 esac
23721 done
23722
23723 case $lt_echo in
23724 *'\$0 --fallback-echo"')
23725 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23726 ;;
23727 esac
23728
23729cfgfile="$ofile"
23730
23731 cat <<__EOF__ >> "$cfgfile"
23732# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23733
23734# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23735
23736# Shell to use when invoking shell scripts.
23737SHELL=$lt_SHELL
23738
23739# Whether or not to build shared libraries.
23740build_libtool_libs=$enable_shared
23741
23742# Whether or not to build static libraries.
23743build_old_libs=$enable_static
23744
23745# Whether or not to add -lc for building shared libraries.
23746build_libtool_need_lc=$archive_cmds_need_lc_F77
23747
23748# Whether or not to disallow shared libs when runtime libs are static
23749allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23750
23751# Whether or not to optimize for fast installation.
23752fast_install=$enable_fast_install
23753
23754# The host system.
23755host_alias=$host_alias
23756host=$host
23757host_os=$host_os
23758
23759# The build system.
23760build_alias=$build_alias
23761build=$build
23762build_os=$build_os
23763
23764# An echo program that does not interpret backslashes.
23765echo=$lt_echo
23766
23767# The archiver.
23768AR=$lt_AR
23769AR_FLAGS=$lt_AR_FLAGS
23770
23771# A C compiler.
23772LTCC=$lt_LTCC
23773
23774# LTCC compiler flags.
23775LTCFLAGS=$lt_LTCFLAGS
23776
23777# A language-specific compiler.
23778CC=$lt_compiler_F77
23779
23780# Is the compiler the GNU C compiler?
23781with_gcc=$GCC_F77
23782
23783# An ERE matcher.
23784EGREP=$lt_EGREP
23785
23786# The linker used to build libraries.
23787LD=$lt_LD_F77
23788
23789# Whether we need hard or soft links.
23790LN_S=$lt_LN_S
23791
23792# A BSD-compatible nm program.
23793NM=$lt_NM
23794
23795# A symbol stripping program
23796STRIP=$lt_STRIP
23797
23798# Used to examine libraries when file_magic_cmd begins "file"
23799MAGIC_CMD=$MAGIC_CMD
23800
23801# Used on cygwin: DLL creation program.
23802DLLTOOL="$DLLTOOL"
23803
23804# Used on cygwin: object dumper.
23805OBJDUMP="$OBJDUMP"
23806
23807# Used on cygwin: assembler.
23808AS="$AS"
23809
23810# The name of the directory that contains temporary libtool files.
23811objdir=$objdir
23812
23813# How to create reloadable object files.
23814reload_flag=$lt_reload_flag
23815reload_cmds=$lt_reload_cmds
23816
23817# How to pass a linker flag through the compiler.
23818wl=$lt_lt_prog_compiler_wl_F77
23819
23820# Object file suffix (normally "o").
23821objext="$ac_objext"
23822
23823# Old archive suffix (normally "a").
23824libext="$libext"
23825
23826# Shared library suffix (normally ".so").
23827shrext_cmds='$shrext_cmds'
23828
23829# Executable file suffix (normally "").
23830exeext="$exeext"
23831
23832# Additional compiler flags for building library objects.
23833pic_flag=$lt_lt_prog_compiler_pic_F77
23834pic_mode=$pic_mode
23835
23836# What is the maximum length of a command?
23837max_cmd_len=$lt_cv_sys_max_cmd_len
23838
23839# Does compiler simultaneously support -c and -o options?
23840compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23841
23842# Must we lock files when doing compilation?
23843need_locks=$lt_need_locks
23844
23845# Do we need the lib prefix for modules?
23846need_lib_prefix=$need_lib_prefix
23847
23848# Do we need a version for libraries?
23849need_version=$need_version
23850
23851# Whether dlopen is supported.
23852dlopen_support=$enable_dlopen
23853
23854# Whether dlopen of programs is supported.
23855dlopen_self=$enable_dlopen_self
23856
23857# Whether dlopen of statically linked programs is supported.
23858dlopen_self_static=$enable_dlopen_self_static
23859
23860# Compiler flag to prevent dynamic linking.
23861link_static_flag=$lt_lt_prog_compiler_static_F77
23862
23863# Compiler flag to turn off builtin functions.
23864no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23865
23866# Compiler flag to allow reflexive dlopens.
23867export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23868
23869# Compiler flag to generate shared objects directly from archives.
23870whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23871
23872# Compiler flag to generate thread-safe objects.
23873thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23874
23875# Library versioning type.
23876version_type=$version_type
23877
23878# Format of library name prefix.
23879libname_spec=$lt_libname_spec
23880
23881# List of archive names. First name is the real one, the rest are links.
23882# The last name is the one that the linker finds with -lNAME.
23883library_names_spec=$lt_library_names_spec
23884
23885# The coded name of the library, if different from the real name.
23886soname_spec=$lt_soname_spec
23887
23888# Commands used to build and install an old-style archive.
23889RANLIB=$lt_RANLIB
23890old_archive_cmds=$lt_old_archive_cmds_F77
23891old_postinstall_cmds=$lt_old_postinstall_cmds
23892old_postuninstall_cmds=$lt_old_postuninstall_cmds
23893
23894# Create an old-style archive from a shared archive.
23895old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23896
23897# Create a temporary old-style archive to link instead of a shared archive.
23898old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23899
23900# Commands used to build and install a shared archive.
23901archive_cmds=$lt_archive_cmds_F77
23902archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23903postinstall_cmds=$lt_postinstall_cmds
23904postuninstall_cmds=$lt_postuninstall_cmds
23905
23906# Commands used to build a loadable module (assumed same as above if empty)
23907module_cmds=$lt_module_cmds_F77
23908module_expsym_cmds=$lt_module_expsym_cmds_F77
23909
23910# Commands to strip libraries.
23911old_striplib=$lt_old_striplib
23912striplib=$lt_striplib
23913
23914# Dependencies to place before the objects being linked to create a
23915# shared library.
23916predep_objects=$lt_predep_objects_F77
23917
23918# Dependencies to place after the objects being linked to create a
23919# shared library.
23920postdep_objects=$lt_postdep_objects_F77
23921
23922# Dependencies to place before the objects being linked to create a
23923# shared library.
23924predeps=$lt_predeps_F77
23925
23926# Dependencies to place after the objects being linked to create a
23927# shared library.
23928postdeps=$lt_postdeps_F77
23929
23930# The library search path used internally by the compiler when linking
23931# a shared library.
23932compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23933
23934# Method to check whether dependent libraries are shared objects.
23935deplibs_check_method=$lt_deplibs_check_method
23936
23937# Command to use when deplibs_check_method == file_magic.
23938file_magic_cmd=$lt_file_magic_cmd
23939
23940# Flag that allows shared libraries with undefined symbols to be built.
23941allow_undefined_flag=$lt_allow_undefined_flag_F77
23942
23943# Flag that forces no undefined symbols.
23944no_undefined_flag=$lt_no_undefined_flag_F77
23945
23946# Commands used to finish a libtool library installation in a directory.
23947finish_cmds=$lt_finish_cmds
23948
23949# Same as above, but a single script fragment to be evaled but not shown.
23950finish_eval=$lt_finish_eval
23951
23952# Take the output of nm and produce a listing of raw symbols and C names.
23953global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23954
23955# Transform the output of nm in a proper C declaration
23956global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23957
23958# Transform the output of nm in a C name address pair
23959global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23960
23961# This is the shared library runtime path variable.
23962runpath_var=$runpath_var
23963
23964# This is the shared library path variable.
23965shlibpath_var=$shlibpath_var
23966
23967# Is shlibpath searched before the hard-coded library search path?
23968shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23969
23970# How to hardcode a shared library path into an executable.
23971hardcode_action=$hardcode_action_F77
23972
23973# Whether we should hardcode library paths into libraries.
23974hardcode_into_libs=$hardcode_into_libs
23975
23976# Flag to hardcode \$libdir into a binary during linking.
23977# This must work even if \$libdir does not exist.
23978hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23979
23980# If ld is used when linking, flag to hardcode \$libdir into
23981# a binary during linking. This must work even if \$libdir does
23982# not exist.
23983hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23984
23985# Whether we need a single -rpath flag with a separated argument.
23986hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23987
23988# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23989# resulting binary.
23990hardcode_direct=$hardcode_direct_F77
23991
23992# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23993# resulting binary.
23994hardcode_minus_L=$hardcode_minus_L_F77
23995
23996# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23997# the resulting binary.
23998hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23999
24000# Set to yes if building a shared library automatically hardcodes DIR into the library
24001# and all subsequent libraries and executables linked against it.
24002hardcode_automatic=$hardcode_automatic_F77
24003
24004# Variables whose values should be saved in libtool wrapper scripts and
24005# restored at relink time.
24006variables_saved_for_relink="$variables_saved_for_relink"
24007
24008# Whether libtool must link a program against all its dependency libraries.
24009link_all_deplibs=$link_all_deplibs_F77
24010
24011# Compile-time system search path for libraries
24012sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24013
24014# Run-time system search path for libraries
24015sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24016
24017# Fix the shell variable \$srcfile for the compiler.
24018fix_srcfile_path="$fix_srcfile_path_F77"
24019
24020# Set to yes if exported symbols are required.
24021always_export_symbols=$always_export_symbols_F77
24022
24023# The commands to list exported symbols.
24024export_symbols_cmds=$lt_export_symbols_cmds_F77
24025
24026# The commands to extract the exported symbol list from a shared archive.
24027extract_expsyms_cmds=$lt_extract_expsyms_cmds
24028
24029# Symbols that should not be listed in the preloaded symbols.
24030exclude_expsyms=$lt_exclude_expsyms_F77
24031
24032# Symbols that must always be exported.
24033include_expsyms=$lt_include_expsyms_F77
24034
24035# ### END LIBTOOL TAG CONFIG: $tagname
24036
24037__EOF__
24038
24039
24040else
24041 # If there is no Makefile yet, we rely on a make rule to execute
24042 # `config.status --recheck' to rerun these tests and create the
24043 # libtool script then.
24044 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24045 if test -f "$ltmain_in"; then
24046 test -f Makefile && make "$ltmain"
24047 fi
24048fi
24049
24050
24051ac_ext=c
24052ac_cpp='$CPP $CPPFLAGS'
24053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24055ac_compiler_gnu=$ac_cv_c_compiler_gnu
24056
24057CC="$lt_save_CC"
24058
24059 else
24060 tagname=""
24061 fi
24062 ;;
24063
24064 GCJ)
24065 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24066 ac_ext=c
24067ac_cpp='$CPP $CPPFLAGS'
24068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24070ac_compiler_gnu=$ac_cv_c_compiler_gnu
24071
24072
24073# Source file extension for Java test sources.
24074ac_ext=java
24075
24076# Object file extension for compiled Java test sources.
24077objext=o
24078objext_GCJ=$objext
24079
24080# Code to be used in simple compile tests
24081lt_simple_compile_test_code="class foo {}\n"
24082
24083# Code to be used in simple link tests
24084lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24085
24086# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24087
24088# If no C compiler was specified, use CC.
24089LTCC=${LTCC-"$CC"}
24090
24091# If no C compiler flags were specified, use CFLAGS.
24092LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24093
24094# Allow CC to be a program name with arguments.
24095compiler=$CC
24096
24097
24098# save warnings/boilerplate of simple test code
24099ac_outfile=conftest.$ac_objext
24100printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24101eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24102_lt_compiler_boilerplate=`cat conftest.err`
24103$rm conftest*
24104
24105ac_outfile=conftest.$ac_objext
24106printf "$lt_simple_link_test_code" >conftest.$ac_ext
24107eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24108_lt_linker_boilerplate=`cat conftest.err`
24109$rm conftest*
24110
24111
24112# Allow CC to be a program name with arguments.
24113lt_save_CC="$CC"
24114CC=${GCJ-"gcj"}
24115compiler=$CC
24116compiler_GCJ=$CC
24117for cc_temp in $compiler""; do
24118 case $cc_temp in
24119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24121 \-*) ;;
24122 *) break;;
24123 esac
24124done
24125cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24126
24127
24128# GCJ did not exist at the time GCC didn't implicitly link libc in.
24129archive_cmds_need_lc_GCJ=no
24130
24131old_archive_cmds_GCJ=$old_archive_cmds
24132
24133
24134lt_prog_compiler_no_builtin_flag_GCJ=
24135
24136if test "$GCC" = yes; then
24137 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24138
24139
24140{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24141echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
24142if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24144else
24145 lt_cv_prog_compiler_rtti_exceptions=no
24146 ac_outfile=conftest.$ac_objext
24147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24148 lt_compiler_flag="-fno-rtti -fno-exceptions"
24149 # Insert the option either (1) after the last *FLAGS variable, or
24150 # (2) before a word containing "conftest.", or (3) at the end.
24151 # Note that $ac_compile itself does not contain backslashes and begins
24152 # with a dollar sign (not a hyphen), so the echo should work correctly.
24153 # The option is referenced via a variable to avoid confusing sed.
24154 lt_compile=`echo "$ac_compile" | $SED \
24155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24157 -e 's:$: $lt_compiler_flag:'`
Anton Korobeynikov1207b902009-08-18 00:40:51 +000024158 (eval echo "\"\$as_me:24158: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024159 (eval "$lt_compile" 2>conftest.err)
24160 ac_status=$?
24161 cat conftest.err >&5
Anton Korobeynikov1207b902009-08-18 00:40:51 +000024162 echo "$as_me:24162: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024163 if (exit $ac_status) && test -s "$ac_outfile"; then
24164 # The compiler can only warn and ignore the option if not recognized
24165 # So say no if there are warnings other than the usual output.
24166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24169 lt_cv_prog_compiler_rtti_exceptions=yes
24170 fi
24171 fi
24172 $rm conftest*
24173
24174fi
24175{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24176echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
24177
24178if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24179 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24180else
24181 :
24182fi
24183
24184fi
24185
24186lt_prog_compiler_wl_GCJ=
24187lt_prog_compiler_pic_GCJ=
24188lt_prog_compiler_static_GCJ=
24189
24190{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24191echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
24192
24193 if test "$GCC" = yes; then
24194 lt_prog_compiler_wl_GCJ='-Wl,'
24195 lt_prog_compiler_static_GCJ='-static'
24196
24197 case $host_os in
24198 aix*)
24199 # All AIX code is PIC.
24200 if test "$host_cpu" = ia64; then
24201 # AIX 5 now supports IA64 processor
24202 lt_prog_compiler_static_GCJ='-Bstatic'
24203 fi
24204 ;;
24205
24206 amigaos*)
24207 # FIXME: we need at least 68020 code to build shared libraries, but
24208 # adding the `-m68020' flag to GCC prevents building anything better,
24209 # like `-m68040'.
24210 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24211 ;;
24212
24213 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24214 # PIC is the default for these OSes.
24215 ;;
24216
24217 mingw* | pw32* | os2*)
24218 # This hack is so that the source file can tell whether it is being
24219 # built for inclusion in a dll (and should export symbols for example).
24220 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24221 ;;
24222
24223 darwin* | rhapsody*)
24224 # PIC is the default on this platform
24225 # Common symbols not allowed in MH_DYLIB files
24226 lt_prog_compiler_pic_GCJ='-fno-common'
24227 ;;
24228
24229 interix3*)
24230 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24231 # Instead, we relocate shared libraries at runtime.
24232 ;;
24233
24234 msdosdjgpp*)
24235 # Just because we use GCC doesn't mean we suddenly get shared libraries
24236 # on systems that don't support them.
24237 lt_prog_compiler_can_build_shared_GCJ=no
24238 enable_shared=no
24239 ;;
24240
24241 sysv4*MP*)
24242 if test -d /usr/nec; then
24243 lt_prog_compiler_pic_GCJ=-Kconform_pic
24244 fi
24245 ;;
24246
24247 hpux*)
24248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24249 # not for PA HP-UX.
24250 case $host_cpu in
24251 hppa*64*|ia64*)
24252 # +Z the default
24253 ;;
24254 *)
24255 lt_prog_compiler_pic_GCJ='-fPIC'
24256 ;;
24257 esac
24258 ;;
24259
24260 *)
24261 lt_prog_compiler_pic_GCJ='-fPIC'
24262 ;;
24263 esac
24264 else
24265 # PORTME Check for flag to pass linker flags through the system compiler.
24266 case $host_os in
24267 aix*)
24268 lt_prog_compiler_wl_GCJ='-Wl,'
24269 if test "$host_cpu" = ia64; then
24270 # AIX 5 now supports IA64 processor
24271 lt_prog_compiler_static_GCJ='-Bstatic'
24272 else
24273 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24274 fi
24275 ;;
24276 darwin*)
24277 # PIC is the default on this platform
24278 # Common symbols not allowed in MH_DYLIB files
24279 case $cc_basename in
24280 xlc*)
24281 lt_prog_compiler_pic_GCJ='-qnocommon'
24282 lt_prog_compiler_wl_GCJ='-Wl,'
24283 ;;
24284 esac
24285 ;;
24286
24287 mingw* | pw32* | os2*)
24288 # This hack is so that the source file can tell whether it is being
24289 # built for inclusion in a dll (and should export symbols for example).
24290 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24291 ;;
24292
24293 hpux9* | hpux10* | hpux11*)
24294 lt_prog_compiler_wl_GCJ='-Wl,'
24295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24296 # not for PA HP-UX.
24297 case $host_cpu in
24298 hppa*64*|ia64*)
24299 # +Z the default
24300 ;;
24301 *)
24302 lt_prog_compiler_pic_GCJ='+Z'
24303 ;;
24304 esac
24305 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24306 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24307 ;;
24308
24309 irix5* | irix6* | nonstopux*)
24310 lt_prog_compiler_wl_GCJ='-Wl,'
24311 # PIC (with -KPIC) is the default.
24312 lt_prog_compiler_static_GCJ='-non_shared'
24313 ;;
24314
24315 newsos6)
24316 lt_prog_compiler_pic_GCJ='-KPIC'
24317 lt_prog_compiler_static_GCJ='-Bstatic'
24318 ;;
24319
24320 linux*)
24321 case $cc_basename in
24322 icc* | ecc*)
24323 lt_prog_compiler_wl_GCJ='-Wl,'
24324 lt_prog_compiler_pic_GCJ='-KPIC'
24325 lt_prog_compiler_static_GCJ='-static'
24326 ;;
24327 pgcc* | pgf77* | pgf90* | pgf95*)
24328 # Portland Group compilers (*not* the Pentium gcc compiler,
24329 # which looks to be a dead project)
24330 lt_prog_compiler_wl_GCJ='-Wl,'
24331 lt_prog_compiler_pic_GCJ='-fpic'
24332 lt_prog_compiler_static_GCJ='-Bstatic'
24333 ;;
24334 ccc*)
24335 lt_prog_compiler_wl_GCJ='-Wl,'
24336 # All Alpha code is PIC.
24337 lt_prog_compiler_static_GCJ='-non_shared'
24338 ;;
24339 esac
24340 ;;
24341
24342 osf3* | osf4* | osf5*)
24343 lt_prog_compiler_wl_GCJ='-Wl,'
24344 # All OSF/1 code is PIC.
24345 lt_prog_compiler_static_GCJ='-non_shared'
24346 ;;
24347
24348 solaris*)
24349 lt_prog_compiler_pic_GCJ='-KPIC'
24350 lt_prog_compiler_static_GCJ='-Bstatic'
24351 case $cc_basename in
24352 f77* | f90* | f95*)
24353 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24354 *)
24355 lt_prog_compiler_wl_GCJ='-Wl,';;
24356 esac
24357 ;;
24358
24359 sunos4*)
24360 lt_prog_compiler_wl_GCJ='-Qoption ld '
24361 lt_prog_compiler_pic_GCJ='-PIC'
24362 lt_prog_compiler_static_GCJ='-Bstatic'
24363 ;;
24364
24365 sysv4 | sysv4.2uw2* | sysv4.3*)
24366 lt_prog_compiler_wl_GCJ='-Wl,'
24367 lt_prog_compiler_pic_GCJ='-KPIC'
24368 lt_prog_compiler_static_GCJ='-Bstatic'
24369 ;;
24370
24371 sysv4*MP*)
24372 if test -d /usr/nec ;then
24373 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24374 lt_prog_compiler_static_GCJ='-Bstatic'
24375 fi
24376 ;;
24377
24378 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24379 lt_prog_compiler_wl_GCJ='-Wl,'
24380 lt_prog_compiler_pic_GCJ='-KPIC'
24381 lt_prog_compiler_static_GCJ='-Bstatic'
24382 ;;
24383
24384 unicos*)
24385 lt_prog_compiler_wl_GCJ='-Wl,'
24386 lt_prog_compiler_can_build_shared_GCJ=no
24387 ;;
24388
24389 uts4*)
24390 lt_prog_compiler_pic_GCJ='-pic'
24391 lt_prog_compiler_static_GCJ='-Bstatic'
24392 ;;
24393
24394 *)
24395 lt_prog_compiler_can_build_shared_GCJ=no
24396 ;;
24397 esac
24398 fi
24399
24400{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24401echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
24402
24403#
24404# Check to make sure the PIC flag actually works.
24405#
24406if test -n "$lt_prog_compiler_pic_GCJ"; then
24407
24408{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24409echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
24410if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24411 echo $ECHO_N "(cached) $ECHO_C" >&6
24412else
24413 lt_prog_compiler_pic_works_GCJ=no
24414 ac_outfile=conftest.$ac_objext
24415 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24416 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24417 # Insert the option either (1) after the last *FLAGS variable, or
24418 # (2) before a word containing "conftest.", or (3) at the end.
24419 # Note that $ac_compile itself does not contain backslashes and begins
24420 # with a dollar sign (not a hyphen), so the echo should work correctly.
24421 # The option is referenced via a variable to avoid confusing sed.
24422 lt_compile=`echo "$ac_compile" | $SED \
24423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24425 -e 's:$: $lt_compiler_flag:'`
Anton Korobeynikov1207b902009-08-18 00:40:51 +000024426 (eval echo "\"\$as_me:24426: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024427 (eval "$lt_compile" 2>conftest.err)
24428 ac_status=$?
24429 cat conftest.err >&5
Anton Korobeynikov1207b902009-08-18 00:40:51 +000024430 echo "$as_me:24430: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024431 if (exit $ac_status) && test -s "$ac_outfile"; then
24432 # The compiler can only warn and ignore the option if not recognized
24433 # So say no if there are warnings other than the usual output.
24434 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24436 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24437 lt_prog_compiler_pic_works_GCJ=yes
24438 fi
24439 fi
24440 $rm conftest*
24441
24442fi
24443{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24444echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24445
24446if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24447 case $lt_prog_compiler_pic_GCJ in
24448 "" | " "*) ;;
24449 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24450 esac
24451else
24452 lt_prog_compiler_pic_GCJ=
24453 lt_prog_compiler_can_build_shared_GCJ=no
24454fi
24455
24456fi
24457case $host_os in
24458 # For platforms which do not support PIC, -DPIC is meaningless:
24459 *djgpp*)
24460 lt_prog_compiler_pic_GCJ=
24461 ;;
24462 *)
24463 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24464 ;;
24465esac
24466
24467#
24468# Check to make sure the static flag actually works.
24469#
24470wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24471{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24472echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24473if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24474 echo $ECHO_N "(cached) $ECHO_C" >&6
24475else
24476 lt_prog_compiler_static_works_GCJ=no
24477 save_LDFLAGS="$LDFLAGS"
24478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24479 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24481 # The linker can only warn and ignore the option if not recognized
24482 # So say no if there are warnings
24483 if test -s conftest.err; then
24484 # Append any errors to the config.log.
24485 cat conftest.err 1>&5
24486 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24488 if diff conftest.exp conftest.er2 >/dev/null; then
24489 lt_prog_compiler_static_works_GCJ=yes
24490 fi
24491 else
24492 lt_prog_compiler_static_works_GCJ=yes
24493 fi
24494 fi
24495 $rm conftest*
24496 LDFLAGS="$save_LDFLAGS"
24497
24498fi
24499{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24500echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24501
24502if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24503 :
24504else
24505 lt_prog_compiler_static_GCJ=
24506fi
24507
24508
24509{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24510echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24511if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24512 echo $ECHO_N "(cached) $ECHO_C" >&6
24513else
24514 lt_cv_prog_compiler_c_o_GCJ=no
24515 $rm -r conftest 2>/dev/null
24516 mkdir conftest
24517 cd conftest
24518 mkdir out
24519 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24520
24521 lt_compiler_flag="-o out/conftest2.$ac_objext"
24522 # Insert the option either (1) after the last *FLAGS variable, or
24523 # (2) before a word containing "conftest.", or (3) at the end.
24524 # Note that $ac_compile itself does not contain backslashes and begins
24525 # with a dollar sign (not a hyphen), so the echo should work correctly.
24526 lt_compile=`echo "$ac_compile" | $SED \
24527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24529 -e 's:$: $lt_compiler_flag:'`
Anton Korobeynikov1207b902009-08-18 00:40:51 +000024530 (eval echo "\"\$as_me:24530: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024531 (eval "$lt_compile" 2>out/conftest.err)
24532 ac_status=$?
24533 cat out/conftest.err >&5
Anton Korobeynikov1207b902009-08-18 00:40:51 +000024534 echo "$as_me:24534: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24536 then
24537 # The compiler can only warn and ignore the option if not recognized
24538 # So say no if there are warnings
24539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24542 lt_cv_prog_compiler_c_o_GCJ=yes
24543 fi
24544 fi
24545 chmod u+w . 2>&5
24546 $rm conftest*
24547 # SGI C++ compiler will create directory out/ii_files/ for
24548 # template instantiation
24549 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24550 $rm out/* && rmdir out
24551 cd ..
24552 rmdir conftest
24553 $rm conftest*
24554
24555fi
24556{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24557echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24558
24559
24560hard_links="nottested"
24561if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24562 # do not overwrite the value of need_locks provided by the user
24563 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24564echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24565 hard_links=yes
24566 $rm conftest*
24567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24568 touch conftest.a
24569 ln conftest.a conftest.b 2>&5 || hard_links=no
24570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24571 { echo "$as_me:$LINENO: result: $hard_links" >&5
24572echo "${ECHO_T}$hard_links" >&6; }
24573 if test "$hard_links" = no; then
24574 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24575echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24576 need_locks=warn
24577 fi
24578else
24579 need_locks=no
24580fi
24581
24582{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24583echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24584
24585 runpath_var=
24586 allow_undefined_flag_GCJ=
24587 enable_shared_with_static_runtimes_GCJ=no
24588 archive_cmds_GCJ=
24589 archive_expsym_cmds_GCJ=
24590 old_archive_From_new_cmds_GCJ=
24591 old_archive_from_expsyms_cmds_GCJ=
24592 export_dynamic_flag_spec_GCJ=
24593 whole_archive_flag_spec_GCJ=
24594 thread_safe_flag_spec_GCJ=
24595 hardcode_libdir_flag_spec_GCJ=
24596 hardcode_libdir_flag_spec_ld_GCJ=
24597 hardcode_libdir_separator_GCJ=
24598 hardcode_direct_GCJ=no
24599 hardcode_minus_L_GCJ=no
24600 hardcode_shlibpath_var_GCJ=unsupported
24601 link_all_deplibs_GCJ=unknown
24602 hardcode_automatic_GCJ=no
24603 module_cmds_GCJ=
24604 module_expsym_cmds_GCJ=
24605 always_export_symbols_GCJ=no
24606 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24607 # include_expsyms should be a list of space-separated symbols to be *always*
24608 # included in the symbol list
24609 include_expsyms_GCJ=
24610 # exclude_expsyms can be an extended regexp of symbols to exclude
24611 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24612 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24613 # as well as any symbol that contains `d'.
24614 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24615 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24616 # platforms (ab)use it in PIC code, but their linkers get confused if
24617 # the symbol is explicitly referenced. Since portable code cannot
24618 # rely on this symbol name, it's probably fine to never include it in
24619 # preloaded symbol tables.
24620 extract_expsyms_cmds=
24621 # Just being paranoid about ensuring that cc_basename is set.
24622 for cc_temp in $compiler""; do
24623 case $cc_temp in
24624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24626 \-*) ;;
24627 *) break;;
24628 esac
24629done
24630cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24631
24632 case $host_os in
24633 cygwin* | mingw* | pw32*)
24634 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24635 # When not using gcc, we currently assume that we are using
24636 # Microsoft Visual C++.
24637 if test "$GCC" != yes; then
24638 with_gnu_ld=no
24639 fi
24640 ;;
24641 interix*)
24642 # we just hope/assume this is gcc and not c89 (= MSVC++)
24643 with_gnu_ld=yes
24644 ;;
24645 openbsd*)
24646 with_gnu_ld=no
24647 ;;
24648 esac
24649
24650 ld_shlibs_GCJ=yes
24651 if test "$with_gnu_ld" = yes; then
24652 # If archive_cmds runs LD, not CC, wlarc should be empty
24653 wlarc='${wl}'
24654
24655 # Set some defaults for GNU ld with shared library support. These
24656 # are reset later if shared libraries are not supported. Putting them
24657 # here allows them to be overridden if necessary.
24658 runpath_var=LD_RUN_PATH
24659 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24660 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24661 # ancient GNU ld didn't support --whole-archive et. al.
24662 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24663 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24664 else
24665 whole_archive_flag_spec_GCJ=
24666 fi
24667 supports_anon_versioning=no
24668 case `$LD -v 2>/dev/null` in
24669 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24670 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24671 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24672 *\ 2.11.*) ;; # other 2.11 versions
24673 *) supports_anon_versioning=yes ;;
24674 esac
24675
24676 # See if GNU ld supports shared libraries.
24677 case $host_os in
24678 aix3* | aix4* | aix5*)
24679 # On AIX/PPC, the GNU linker is very broken
24680 if test "$host_cpu" != ia64; then
24681 ld_shlibs_GCJ=no
24682 cat <<EOF 1>&2
24683
24684*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24685*** to be unable to reliably create shared libraries on AIX.
24686*** Therefore, libtool is disabling shared libraries support. If you
24687*** really care for shared libraries, you may want to modify your PATH
24688*** so that a non-GNU linker is found, and then restart.
24689
24690EOF
24691 fi
24692 ;;
24693
24694 amigaos*)
24695 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)'
24696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24697 hardcode_minus_L_GCJ=yes
24698
24699 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24700 # that the semantics of dynamic libraries on AmigaOS, at least up
24701 # to version 4, is to share data among multiple programs linked
24702 # with the same dynamic library. Since this doesn't match the
24703 # behavior of shared libraries on other platforms, we can't use
24704 # them.
24705 ld_shlibs_GCJ=no
24706 ;;
24707
24708 beos*)
24709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24710 allow_undefined_flag_GCJ=unsupported
24711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24712 # support --undefined. This deserves some investigation. FIXME
24713 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24714 else
24715 ld_shlibs_GCJ=no
24716 fi
24717 ;;
24718
24719 cygwin* | mingw* | pw32*)
24720 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24721 # as there is no search path for DLLs.
24722 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24723 allow_undefined_flag_GCJ=unsupported
24724 always_export_symbols_GCJ=no
24725 enable_shared_with_static_runtimes_GCJ=yes
24726 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24727
24728 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24729 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24730 # If the export-symbols file already is a .def file (1st line
24731 # is EXPORTS), use it as is; otherwise, prepend...
24732 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24733 cp $export_symbols $output_objdir/$soname.def;
24734 else
24735 echo EXPORTS > $output_objdir/$soname.def;
24736 cat $export_symbols >> $output_objdir/$soname.def;
24737 fi~
24738 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24739 else
24740 ld_shlibs_GCJ=no
24741 fi
24742 ;;
24743
24744 interix3*)
24745 hardcode_direct_GCJ=no
24746 hardcode_shlibpath_var_GCJ=no
24747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24748 export_dynamic_flag_spec_GCJ='${wl}-E'
24749 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24750 # Instead, shared libraries are loaded at an image base (0x10000000 by
24751 # default) and relocated if they conflict, which is a slow very memory
24752 # consuming and fragmenting process. To avoid this, we pick a random,
24753 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24754 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24755 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'
24756 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'
24757 ;;
24758
24759 linux*)
24760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24761 tmp_addflag=
24762 case $cc_basename,$host_cpu in
24763 pgcc*) # Portland Group C compiler
24764 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'
24765 tmp_addflag=' $pic_flag'
24766 ;;
24767 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24768 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'
24769 tmp_addflag=' $pic_flag -Mnomain' ;;
24770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24771 tmp_addflag=' -i_dynamic' ;;
24772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24773 tmp_addflag=' -i_dynamic -nofor_main' ;;
24774 ifc* | ifort*) # Intel Fortran compiler
24775 tmp_addflag=' -nofor_main' ;;
24776 esac
24777 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24778
24779 if test $supports_anon_versioning = yes; then
24780 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24782 $echo "local: *; };" >> $output_objdir/$libname.ver~
24783 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24784 fi
24785 else
24786 ld_shlibs_GCJ=no
24787 fi
24788 ;;
24789
24790 netbsd*)
24791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24792 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24793 wlarc=
24794 else
24795 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24796 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24797 fi
24798 ;;
24799
24800 solaris*)
24801 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24802 ld_shlibs_GCJ=no
24803 cat <<EOF 1>&2
24804
24805*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24806*** create shared libraries on Solaris systems. Therefore, libtool
24807*** is disabling shared libraries support. We urge you to upgrade GNU
24808*** binutils to release 2.9.1 or newer. Another option is to modify
24809*** your PATH or compiler configuration so that the native linker is
24810*** used, and then restart.
24811
24812EOF
24813 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24814 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24815 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24816 else
24817 ld_shlibs_GCJ=no
24818 fi
24819 ;;
24820
24821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24822 case `$LD -v 2>&1` in
24823 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24824 ld_shlibs_GCJ=no
24825 cat <<_LT_EOF 1>&2
24826
24827*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24828*** reliably create shared libraries on SCO systems. Therefore, libtool
24829*** is disabling shared libraries support. We urge you to upgrade GNU
24830*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24831*** your PATH or compiler configuration so that the native linker is
24832*** used, and then restart.
24833
24834_LT_EOF
24835 ;;
24836 *)
24837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24838 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24839 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24840 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24841 else
24842 ld_shlibs_GCJ=no
24843 fi
24844 ;;
24845 esac
24846 ;;
24847
24848 sunos4*)
24849 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24850 wlarc=
24851 hardcode_direct_GCJ=yes
24852 hardcode_shlibpath_var_GCJ=no
24853 ;;
24854
24855 *)
24856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24857 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24858 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24859 else
24860 ld_shlibs_GCJ=no
24861 fi
24862 ;;
24863 esac
24864
24865 if test "$ld_shlibs_GCJ" = no; then
24866 runpath_var=
24867 hardcode_libdir_flag_spec_GCJ=
24868 export_dynamic_flag_spec_GCJ=
24869 whole_archive_flag_spec_GCJ=
24870 fi
24871 else
24872 # PORTME fill in a description of your system's linker (not GNU ld)
24873 case $host_os in
24874 aix3*)
24875 allow_undefined_flag_GCJ=unsupported
24876 always_export_symbols_GCJ=yes
24877 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'
24878 # Note: this linker hardcodes the directories in LIBPATH if there
24879 # are no directories specified by -L.
24880 hardcode_minus_L_GCJ=yes
24881 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24882 # Neither direct hardcoding nor static linking is supported with a
24883 # broken collect2.
24884 hardcode_direct_GCJ=unsupported
24885 fi
24886 ;;
24887
24888 aix4* | aix5*)
24889 if test "$host_cpu" = ia64; then
24890 # On IA64, the linker does run time linking by default, so we don't
24891 # have to do anything special.
24892 aix_use_runtimelinking=no
24893 exp_sym_flag='-Bexport'
24894 no_entry_flag=""
24895 else
24896 # If we're using GNU nm, then we don't want the "-C" option.
24897 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24898 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24899 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'
24900 else
24901 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'
24902 fi
24903 aix_use_runtimelinking=no
24904
24905 # Test if we are trying to use run time linking or normal
24906 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24907 # need to do runtime linking.
24908 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24909 for ld_flag in $LDFLAGS; do
24910 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24911 aix_use_runtimelinking=yes
24912 break
24913 fi
24914 done
24915 ;;
24916 esac
24917
24918 exp_sym_flag='-bexport'
24919 no_entry_flag='-bnoentry'
24920 fi
24921
24922 # When large executables or shared objects are built, AIX ld can
24923 # have problems creating the table of contents. If linking a library
24924 # or program results in "error TOC overflow" add -mminimal-toc to
24925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24927
24928 archive_cmds_GCJ=''
24929 hardcode_direct_GCJ=yes
24930 hardcode_libdir_separator_GCJ=':'
24931 link_all_deplibs_GCJ=yes
24932
24933 if test "$GCC" = yes; then
24934 case $host_os in aix4.[012]|aix4.[012].*)
24935 # We only want to do this on AIX 4.2 and lower, the check
24936 # below for broken collect2 doesn't work under 4.3+
24937 collect2name=`${CC} -print-prog-name=collect2`
24938 if test -f "$collect2name" && \
24939 strings "$collect2name" | grep resolve_lib_name >/dev/null
24940 then
24941 # We have reworked collect2
24942 hardcode_direct_GCJ=yes
24943 else
24944 # We have old collect2
24945 hardcode_direct_GCJ=unsupported
24946 # It fails to find uninstalled libraries when the uninstalled
24947 # path is not listed in the libpath. Setting hardcode_minus_L
24948 # to unsupported forces relinking
24949 hardcode_minus_L_GCJ=yes
24950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24951 hardcode_libdir_separator_GCJ=
24952 fi
24953 ;;
24954 esac
24955 shared_flag='-shared'
24956 if test "$aix_use_runtimelinking" = yes; then
24957 shared_flag="$shared_flag "'${wl}-G'
24958 fi
24959 else
24960 # not using gcc
24961 if test "$host_cpu" = ia64; then
24962 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24963 # chokes on -Wl,-G. The following line is correct:
24964 shared_flag='-G'
24965 else
24966 if test "$aix_use_runtimelinking" = yes; then
24967 shared_flag='${wl}-G'
24968 else
24969 shared_flag='${wl}-bM:SRE'
24970 fi
24971 fi
24972 fi
24973
24974 # It seems that -bexpall does not export symbols beginning with
24975 # underscore (_), so it is better to generate a list of symbols to export.
24976 always_export_symbols_GCJ=yes
24977 if test "$aix_use_runtimelinking" = yes; then
24978 # Warning - without using the other runtime loading flags (-brtl),
24979 # -berok will link without error, but may produce a broken library.
24980 allow_undefined_flag_GCJ='-berok'
24981 # Determine the default libpath from the value encoded in an empty executable.
24982 cat >conftest.$ac_ext <<_ACEOF
24983/* confdefs.h. */
24984_ACEOF
24985cat confdefs.h >>conftest.$ac_ext
24986cat >>conftest.$ac_ext <<_ACEOF
24987/* end confdefs.h. */
24988
24989int
24990main ()
24991{
24992
24993 ;
24994 return 0;
24995}
24996_ACEOF
24997rm -f conftest.$ac_objext conftest$ac_exeext
24998if { (ac_try="$ac_link"
24999case "(($ac_try" in
25000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25002esac
25003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_link") 2>conftest.er1
25005 ac_status=$?
25006 grep -v '^ *+' conftest.er1 >conftest.err
25007 rm -f conftest.er1
25008 cat conftest.err >&5
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025010 (exit $ac_status); } &&
25011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25012 { (case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25015esac
25016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017 (eval "$ac_try") 2>&5
25018 ac_status=$?
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); }; } &&
25021 { ac_try='test -s conftest$ac_exeext'
25022 { (case "(($ac_try" in
25023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024 *) ac_try_echo=$ac_try;;
25025esac
25026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027 (eval "$ac_try") 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025031
25032aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25033}'`
25034# Check for a 64-bit object if we didn't find anything.
25035if 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; }
25036}'`; fi
25037else
25038 echo "$as_me: failed program was:" >&5
25039sed 's/^/| /' conftest.$ac_ext >&5
25040
25041
25042fi
25043
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025044rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025045 conftest$ac_exeext conftest.$ac_ext
25046if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25047
25048 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25049 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"
25050 else
25051 if test "$host_cpu" = ia64; then
25052 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25053 allow_undefined_flag_GCJ="-z nodefs"
25054 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"
25055 else
25056 # Determine the default libpath from the value encoded in an empty executable.
25057 cat >conftest.$ac_ext <<_ACEOF
25058/* confdefs.h. */
25059_ACEOF
25060cat confdefs.h >>conftest.$ac_ext
25061cat >>conftest.$ac_ext <<_ACEOF
25062/* end confdefs.h. */
25063
25064int
25065main ()
25066{
25067
25068 ;
25069 return 0;
25070}
25071_ACEOF
25072rm -f conftest.$ac_objext conftest$ac_exeext
25073if { (ac_try="$ac_link"
25074case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25077esac
25078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_link") 2>conftest.er1
25080 ac_status=$?
25081 grep -v '^ *+' conftest.er1 >conftest.err
25082 rm -f conftest.er1
25083 cat conftest.err >&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025085 (exit $ac_status); } &&
25086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25087 { (case "(($ac_try" in
25088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25089 *) ac_try_echo=$ac_try;;
25090esac
25091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25092 (eval "$ac_try") 2>&5
25093 ac_status=$?
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; } &&
25096 { ac_try='test -s conftest$ac_exeext'
25097 { (case "(($ac_try" in
25098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099 *) ac_try_echo=$ac_try;;
25100esac
25101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102 (eval "$ac_try") 2>&5
25103 ac_status=$?
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025106
25107aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25108}'`
25109# Check for a 64-bit object if we didn't find anything.
25110if 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; }
25111}'`; fi
25112else
25113 echo "$as_me: failed program was:" >&5
25114sed 's/^/| /' conftest.$ac_ext >&5
25115
25116
25117fi
25118
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000025119rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025120 conftest$ac_exeext conftest.$ac_ext
25121if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25122
25123 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25124 # Warning - without using the other run time loading flags,
25125 # -berok will link without error, but may produce a broken library.
25126 no_undefined_flag_GCJ=' ${wl}-bernotok'
25127 allow_undefined_flag_GCJ=' ${wl}-berok'
25128 # Exported symbols can be pulled into shared objects from archives
25129 whole_archive_flag_spec_GCJ='$convenience'
25130 archive_cmds_need_lc_GCJ=yes
25131 # This is similar to how AIX traditionally builds its shared libraries.
25132 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'
25133 fi
25134 fi
25135 ;;
25136
25137 amigaos*)
25138 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)'
25139 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25140 hardcode_minus_L_GCJ=yes
25141 # see comment about different semantics on the GNU ld section
25142 ld_shlibs_GCJ=no
25143 ;;
25144
25145 bsdi[45]*)
25146 export_dynamic_flag_spec_GCJ=-rdynamic
25147 ;;
25148
25149 cygwin* | mingw* | pw32*)
25150 # When not using gcc, we currently assume that we are using
25151 # Microsoft Visual C++.
25152 # hardcode_libdir_flag_spec is actually meaningless, as there is
25153 # no search path for DLLs.
25154 hardcode_libdir_flag_spec_GCJ=' '
25155 allow_undefined_flag_GCJ=unsupported
25156 # Tell ltmain to make .lib files, not .a files.
25157 libext=lib
25158 # Tell ltmain to make .dll files, not .so files.
25159 shrext_cmds=".dll"
25160 # FIXME: Setting linknames here is a bad hack.
25161 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25162 # The linker will automatically build a .lib file if we build a DLL.
25163 old_archive_From_new_cmds_GCJ='true'
25164 # FIXME: Should let the user specify the lib program.
25165 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25166 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25167 enable_shared_with_static_runtimes_GCJ=yes
25168 ;;
25169
25170 darwin* | rhapsody*)
25171 case $host_os in
25172 rhapsody* | darwin1.[012])
25173 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25174 ;;
25175 *) # Darwin 1.3 on
25176 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25177 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25178 else
25179 case ${MACOSX_DEPLOYMENT_TARGET} in
25180 10.[012])
25181 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25182 ;;
25183 10.*)
25184 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25185 ;;
25186 esac
25187 fi
25188 ;;
25189 esac
25190 archive_cmds_need_lc_GCJ=no
25191 hardcode_direct_GCJ=no
25192 hardcode_automatic_GCJ=yes
25193 hardcode_shlibpath_var_GCJ=unsupported
25194 whole_archive_flag_spec_GCJ=''
25195 link_all_deplibs_GCJ=yes
25196 if test "$GCC" = yes ; then
25197 output_verbose_link_cmd='echo'
25198 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25199 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25200 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25201 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}'
25202 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}'
25203 else
25204 case $cc_basename in
25205 xlc*)
25206 output_verbose_link_cmd='echo'
25207 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25208 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25209 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25210 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}'
25211 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}'
25212 ;;
25213 *)
25214 ld_shlibs_GCJ=no
25215 ;;
25216 esac
25217 fi
25218 ;;
25219
25220 dgux*)
25221 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25222 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25223 hardcode_shlibpath_var_GCJ=no
25224 ;;
25225
25226 freebsd1*)
25227 ld_shlibs_GCJ=no
25228 ;;
25229
25230 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25231 # support. Future versions do this automatically, but an explicit c++rt0.o
25232 # does not break anything, and helps significantly (at the cost of a little
25233 # extra space).
25234 freebsd2.2*)
25235 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25236 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25237 hardcode_direct_GCJ=yes
25238 hardcode_shlibpath_var_GCJ=no
25239 ;;
25240
25241 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25242 freebsd2*)
25243 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25244 hardcode_direct_GCJ=yes
25245 hardcode_minus_L_GCJ=yes
25246 hardcode_shlibpath_var_GCJ=no
25247 ;;
25248
25249 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25250 freebsd* | kfreebsd*-gnu | dragonfly*)
25251 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25252 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25253 hardcode_direct_GCJ=yes
25254 hardcode_shlibpath_var_GCJ=no
25255 ;;
25256
25257 hpux9*)
25258 if test "$GCC" = yes; then
25259 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'
25260 else
25261 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'
25262 fi
25263 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25264 hardcode_libdir_separator_GCJ=:
25265 hardcode_direct_GCJ=yes
25266
25267 # hardcode_minus_L: Not really in the search PATH,
25268 # but as the default location of the library.
25269 hardcode_minus_L_GCJ=yes
25270 export_dynamic_flag_spec_GCJ='${wl}-E'
25271 ;;
25272
25273 hpux10*)
25274 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25275 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25276 else
25277 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25278 fi
25279 if test "$with_gnu_ld" = no; then
25280 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25281 hardcode_libdir_separator_GCJ=:
25282
25283 hardcode_direct_GCJ=yes
25284 export_dynamic_flag_spec_GCJ='${wl}-E'
25285
25286 # hardcode_minus_L: Not really in the search PATH,
25287 # but as the default location of the library.
25288 hardcode_minus_L_GCJ=yes
25289 fi
25290 ;;
25291
25292 hpux11*)
25293 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25294 case $host_cpu in
25295 hppa*64*)
25296 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25297 ;;
25298 ia64*)
25299 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25300 ;;
25301 *)
25302 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25303 ;;
25304 esac
25305 else
25306 case $host_cpu in
25307 hppa*64*)
25308 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25309 ;;
25310 ia64*)
25311 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25312 ;;
25313 *)
25314 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25315 ;;
25316 esac
25317 fi
25318 if test "$with_gnu_ld" = no; then
25319 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25320 hardcode_libdir_separator_GCJ=:
25321
25322 case $host_cpu in
25323 hppa*64*|ia64*)
25324 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25325 hardcode_direct_GCJ=no
25326 hardcode_shlibpath_var_GCJ=no
25327 ;;
25328 *)
25329 hardcode_direct_GCJ=yes
25330 export_dynamic_flag_spec_GCJ='${wl}-E'
25331
25332 # hardcode_minus_L: Not really in the search PATH,
25333 # but as the default location of the library.
25334 hardcode_minus_L_GCJ=yes
25335 ;;
25336 esac
25337 fi
25338 ;;
25339
25340 irix5* | irix6* | nonstopux*)
25341 if test "$GCC" = yes; then
25342 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'
25343 else
25344 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'
25345 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25346 fi
25347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25348 hardcode_libdir_separator_GCJ=:
25349 link_all_deplibs_GCJ=yes
25350 ;;
25351
25352 netbsd*)
25353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25354 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25355 else
25356 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25357 fi
25358 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25359 hardcode_direct_GCJ=yes
25360 hardcode_shlibpath_var_GCJ=no
25361 ;;
25362
25363 newsos6)
25364 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25365 hardcode_direct_GCJ=yes
25366 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25367 hardcode_libdir_separator_GCJ=:
25368 hardcode_shlibpath_var_GCJ=no
25369 ;;
25370
25371 openbsd*)
25372 hardcode_direct_GCJ=yes
25373 hardcode_shlibpath_var_GCJ=no
25374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25375 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25376 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25377 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25378 export_dynamic_flag_spec_GCJ='${wl}-E'
25379 else
25380 case $host_os in
25381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25382 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25383 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25384 ;;
25385 *)
25386 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25387 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25388 ;;
25389 esac
25390 fi
25391 ;;
25392
25393 os2*)
25394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25395 hardcode_minus_L_GCJ=yes
25396 allow_undefined_flag_GCJ=unsupported
25397 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'
25398 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25399 ;;
25400
25401 osf3*)
25402 if test "$GCC" = yes; then
25403 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25404 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'
25405 else
25406 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25407 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'
25408 fi
25409 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25410 hardcode_libdir_separator_GCJ=:
25411 ;;
25412
25413 osf4* | osf5*) # as osf3* with the addition of -msym flag
25414 if test "$GCC" = yes; then
25415 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25416 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'
25417 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25418 else
25419 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25420 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'
25421 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~
25422 $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'
25423
25424 # Both c and cxx compiler support -rpath directly
25425 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25426 fi
25427 hardcode_libdir_separator_GCJ=:
25428 ;;
25429
25430 solaris*)
25431 no_undefined_flag_GCJ=' -z text'
25432 if test "$GCC" = yes; then
25433 wlarc='${wl}'
25434 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25435 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25436 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25437 else
25438 wlarc=''
25439 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25440 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25441 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25442 fi
25443 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25444 hardcode_shlibpath_var_GCJ=no
25445 case $host_os in
25446 solaris2.[0-5] | solaris2.[0-5].*) ;;
25447 *)
25448 # The compiler driver will combine linker options so we
25449 # cannot just pass the convience library names through
25450 # without $wl, iff we do not link with $LD.
25451 # Luckily, gcc supports the same syntax we need for Sun Studio.
25452 # Supported since Solaris 2.6 (maybe 2.5.1?)
25453 case $wlarc in
25454 '')
25455 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25456 *)
25457 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' ;;
25458 esac ;;
25459 esac
25460 link_all_deplibs_GCJ=yes
25461 ;;
25462
25463 sunos4*)
25464 if test "x$host_vendor" = xsequent; then
25465 # Use $CC to link under sequent, because it throws in some extra .o
25466 # files that make .init and .fini sections work.
25467 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25468 else
25469 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25470 fi
25471 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25472 hardcode_direct_GCJ=yes
25473 hardcode_minus_L_GCJ=yes
25474 hardcode_shlibpath_var_GCJ=no
25475 ;;
25476
25477 sysv4)
25478 case $host_vendor in
25479 sni)
25480 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25481 hardcode_direct_GCJ=yes # is this really true???
25482 ;;
25483 siemens)
25484 ## LD is ld it makes a PLAMLIB
25485 ## CC just makes a GrossModule.
25486 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25487 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25488 hardcode_direct_GCJ=no
25489 ;;
25490 motorola)
25491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25492 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25493 ;;
25494 esac
25495 runpath_var='LD_RUN_PATH'
25496 hardcode_shlibpath_var_GCJ=no
25497 ;;
25498
25499 sysv4.3*)
25500 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25501 hardcode_shlibpath_var_GCJ=no
25502 export_dynamic_flag_spec_GCJ='-Bexport'
25503 ;;
25504
25505 sysv4*MP*)
25506 if test -d /usr/nec; then
25507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25508 hardcode_shlibpath_var_GCJ=no
25509 runpath_var=LD_RUN_PATH
25510 hardcode_runpath_var=yes
25511 ld_shlibs_GCJ=yes
25512 fi
25513 ;;
25514
25515 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25516 no_undefined_flag_GCJ='${wl}-z,text'
25517 archive_cmds_need_lc_GCJ=no
25518 hardcode_shlibpath_var_GCJ=no
25519 runpath_var='LD_RUN_PATH'
25520
25521 if test "$GCC" = yes; then
25522 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25523 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25524 else
25525 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25526 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25527 fi
25528 ;;
25529
25530 sysv5* | sco3.2v5* | sco5v6*)
25531 # Note: We can NOT use -z defs as we might desire, because we do not
25532 # link with -lc, and that would cause any symbols used from libc to
25533 # always be unresolved, which means just about no library would
25534 # ever link correctly. If we're not using GNU ld we use -z text
25535 # though, which does catch some bad symbols but isn't as heavy-handed
25536 # as -z defs.
25537 no_undefined_flag_GCJ='${wl}-z,text'
25538 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25539 archive_cmds_need_lc_GCJ=no
25540 hardcode_shlibpath_var_GCJ=no
25541 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25542 hardcode_libdir_separator_GCJ=':'
25543 link_all_deplibs_GCJ=yes
25544 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25545 runpath_var='LD_RUN_PATH'
25546
25547 if test "$GCC" = yes; then
25548 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25549 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25550 else
25551 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25552 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25553 fi
25554 ;;
25555
25556 uts4*)
25557 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25558 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25559 hardcode_shlibpath_var_GCJ=no
25560 ;;
25561
25562 *)
25563 ld_shlibs_GCJ=no
25564 ;;
25565 esac
25566 fi
25567
25568{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25569echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25570test "$ld_shlibs_GCJ" = no && can_build_shared=no
25571
25572#
25573# Do we need to explicitly link libc?
25574#
25575case "x$archive_cmds_need_lc_GCJ" in
25576x|xyes)
25577 # Assume -lc should be added
25578 archive_cmds_need_lc_GCJ=yes
25579
25580 if test "$enable_shared" = yes && test "$GCC" = yes; then
25581 case $archive_cmds_GCJ in
25582 *'~'*)
25583 # FIXME: we may have to deal with multi-command sequences.
25584 ;;
25585 '$CC '*)
25586 # Test whether the compiler implicitly links with -lc since on some
25587 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25588 # to ld, don't add -lc before -lgcc.
25589 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25590echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25591 $rm conftest*
25592 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25593
25594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25595 (eval $ac_compile) 2>&5
25596 ac_status=$?
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); } 2>conftest.err; then
25599 soname=conftest
25600 lib=conftest
25601 libobjs=conftest.$ac_objext
25602 deplibs=
25603 wl=$lt_prog_compiler_wl_GCJ
25604 pic_flag=$lt_prog_compiler_pic_GCJ
25605 compiler_flags=-v
25606 linker_flags=-v
25607 verstring=
25608 output_objdir=.
25609 libname=conftest
25610 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25611 allow_undefined_flag_GCJ=
25612 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25613 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25614 ac_status=$?
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }
25617 then
25618 archive_cmds_need_lc_GCJ=no
25619 else
25620 archive_cmds_need_lc_GCJ=yes
25621 fi
25622 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25623 else
25624 cat conftest.err 1>&5
25625 fi
25626 $rm conftest*
25627 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25628echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25629 ;;
25630 esac
25631 fi
25632 ;;
25633esac
25634
25635{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25636echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25637library_names_spec=
25638libname_spec='lib$name'
25639soname_spec=
25640shrext_cmds=".so"
25641postinstall_cmds=
25642postuninstall_cmds=
25643finish_cmds=
25644finish_eval=
25645shlibpath_var=
25646shlibpath_overrides_runpath=unknown
25647version_type=none
25648dynamic_linker="$host_os ld.so"
25649sys_lib_dlsearch_path_spec="/lib /usr/lib"
25650if test "$GCC" = yes; then
25651 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25652 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25653 # if the path contains ";" then we assume it to be the separator
25654 # otherwise default to the standard path separator (i.e. ":") - it is
25655 # assumed that no part of a normal pathname contains ";" but that should
25656 # okay in the real world where ";" in dirpaths is itself problematic.
25657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25658 else
25659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25660 fi
25661else
25662 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25663fi
25664need_lib_prefix=unknown
25665hardcode_into_libs=no
25666
25667# when you set need_version to no, make sure it does not cause -set_version
25668# flags to be left without arguments
25669need_version=unknown
25670
25671case $host_os in
25672aix3*)
25673 version_type=linux
25674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25675 shlibpath_var=LIBPATH
25676
25677 # AIX 3 has no versioning support, so we append a major version to the name.
25678 soname_spec='${libname}${release}${shared_ext}$major'
25679 ;;
25680
25681aix4* | aix5*)
25682 version_type=linux
25683 need_lib_prefix=no
25684 need_version=no
25685 hardcode_into_libs=yes
25686 if test "$host_cpu" = ia64; then
25687 # AIX 5 supports IA64
25688 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25689 shlibpath_var=LD_LIBRARY_PATH
25690 else
25691 # With GCC up to 2.95.x, collect2 would create an import file
25692 # for dependence libraries. The import file would start with
25693 # the line `#! .'. This would cause the generated library to
25694 # depend on `.', always an invalid library. This was fixed in
25695 # development snapshots of GCC prior to 3.0.
25696 case $host_os in
25697 aix4 | aix4.[01] | aix4.[01].*)
25698 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25699 echo ' yes '
25700 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25701 :
25702 else
25703 can_build_shared=no
25704 fi
25705 ;;
25706 esac
25707 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25708 # soname into executable. Probably we can add versioning support to
25709 # collect2, so additional links can be useful in future.
25710 if test "$aix_use_runtimelinking" = yes; then
25711 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25712 # instead of lib<name>.a to let people know that these are not
25713 # typical AIX shared libraries.
25714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715 else
25716 # We preserve .a as extension for shared libraries through AIX4.2
25717 # and later when we are not doing run time linking.
25718 library_names_spec='${libname}${release}.a $libname.a'
25719 soname_spec='${libname}${release}${shared_ext}$major'
25720 fi
25721 shlibpath_var=LIBPATH
25722 fi
25723 ;;
25724
25725amigaos*)
25726 library_names_spec='$libname.ixlibrary $libname.a'
25727 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25728 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'
25729 ;;
25730
25731beos*)
25732 library_names_spec='${libname}${shared_ext}'
25733 dynamic_linker="$host_os ld.so"
25734 shlibpath_var=LIBRARY_PATH
25735 ;;
25736
25737bsdi[45]*)
25738 version_type=linux
25739 need_version=no
25740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25741 soname_spec='${libname}${release}${shared_ext}$major'
25742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25743 shlibpath_var=LD_LIBRARY_PATH
25744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25746 # the default ld.so.conf also contains /usr/contrib/lib and
25747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25748 # libtool to hard-code these into programs
25749 ;;
25750
25751cygwin* | mingw* | pw32*)
25752 version_type=windows
25753 shrext_cmds=".dll"
25754 need_version=no
25755 need_lib_prefix=no
25756
25757 case $GCC,$host_os in
25758 yes,cygwin* | yes,mingw* | yes,pw32*)
25759 library_names_spec='$libname.dll.a'
25760 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25761 postinstall_cmds='base_file=`basename \${file}`~
25762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25763 dldir=$destdir/`dirname \$dlpath`~
25764 test -d \$dldir || mkdir -p \$dldir~
25765 $install_prog $dir/$dlname \$dldir/$dlname~
25766 chmod a+x \$dldir/$dlname'
25767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25768 dlpath=$dir/\$dldll~
25769 $rm \$dlpath'
25770 shlibpath_overrides_runpath=yes
25771
25772 case $host_os in
25773 cygwin*)
25774 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25776 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25777 ;;
25778 mingw*)
25779 # MinGW DLLs use traditional 'lib' prefix
25780 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25781 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25782 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25783 # It is most probably a Windows format PATH printed by
25784 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25785 # path with ; separators, and with drive letters. We can handle the
25786 # drive letters (cygwin fileutils understands them), so leave them,
25787 # especially as we might pass files found there to a mingw objdump,
25788 # which wouldn't understand a cygwinified path. Ahh.
25789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25790 else
25791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25792 fi
25793 ;;
25794 pw32*)
25795 # pw32 DLLs use 'pw' prefix rather than 'lib'
25796 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25797 ;;
25798 esac
25799 ;;
25800
25801 *)
25802 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25803 ;;
25804 esac
25805 dynamic_linker='Win32 ld.exe'
25806 # FIXME: first we should search . and the directory the executable is in
25807 shlibpath_var=PATH
25808 ;;
25809
25810darwin* | rhapsody*)
25811 dynamic_linker="$host_os dyld"
25812 version_type=darwin
25813 need_lib_prefix=no
25814 need_version=no
25815 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25816 soname_spec='${libname}${release}${major}$shared_ext'
25817 shlibpath_overrides_runpath=yes
25818 shlibpath_var=DYLD_LIBRARY_PATH
25819 shrext_cmds='.dylib'
25820 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25821 if test "$GCC" = yes; then
25822 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"`
25823 else
25824 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25825 fi
25826 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25827 ;;
25828
25829dgux*)
25830 version_type=linux
25831 need_lib_prefix=no
25832 need_version=no
25833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25834 soname_spec='${libname}${release}${shared_ext}$major'
25835 shlibpath_var=LD_LIBRARY_PATH
25836 ;;
25837
25838freebsd1*)
25839 dynamic_linker=no
25840 ;;
25841
25842kfreebsd*-gnu)
25843 version_type=linux
25844 need_lib_prefix=no
25845 need_version=no
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25847 soname_spec='${libname}${release}${shared_ext}$major'
25848 shlibpath_var=LD_LIBRARY_PATH
25849 shlibpath_overrides_runpath=no
25850 hardcode_into_libs=yes
25851 dynamic_linker='GNU ld.so'
25852 ;;
25853
25854freebsd* | dragonfly*)
25855 # DragonFly does not have aout. When/if they implement a new
25856 # versioning mechanism, adjust this.
25857 if test -x /usr/bin/objformat; then
25858 objformat=`/usr/bin/objformat`
25859 else
25860 case $host_os in
25861 freebsd[123]*) objformat=aout ;;
25862 *) objformat=elf ;;
25863 esac
25864 fi
25865 version_type=freebsd-$objformat
25866 case $version_type in
25867 freebsd-elf*)
25868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25869 need_version=no
25870 need_lib_prefix=no
25871 ;;
25872 freebsd-*)
25873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25874 need_version=yes
25875 ;;
25876 esac
25877 shlibpath_var=LD_LIBRARY_PATH
25878 case $host_os in
25879 freebsd2*)
25880 shlibpath_overrides_runpath=yes
25881 ;;
25882 freebsd3.[01]* | freebsdelf3.[01]*)
25883 shlibpath_overrides_runpath=yes
25884 hardcode_into_libs=yes
25885 ;;
25886 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25887 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25888 shlibpath_overrides_runpath=no
25889 hardcode_into_libs=yes
25890 ;;
25891 freebsd*) # from 4.6 on
25892 shlibpath_overrides_runpath=yes
25893 hardcode_into_libs=yes
25894 ;;
25895 esac
25896 ;;
25897
25898gnu*)
25899 version_type=linux
25900 need_lib_prefix=no
25901 need_version=no
25902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25903 soname_spec='${libname}${release}${shared_ext}$major'
25904 shlibpath_var=LD_LIBRARY_PATH
25905 hardcode_into_libs=yes
25906 ;;
25907
25908hpux9* | hpux10* | hpux11*)
25909 # Give a soname corresponding to the major version so that dld.sl refuses to
25910 # link against other versions.
25911 version_type=sunos
25912 need_lib_prefix=no
25913 need_version=no
25914 case $host_cpu in
25915 ia64*)
25916 shrext_cmds='.so'
25917 hardcode_into_libs=yes
25918 dynamic_linker="$host_os dld.so"
25919 shlibpath_var=LD_LIBRARY_PATH
25920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25922 soname_spec='${libname}${release}${shared_ext}$major'
25923 if test "X$HPUX_IA64_MODE" = X32; then
25924 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25925 else
25926 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25927 fi
25928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25929 ;;
25930 hppa*64*)
25931 shrext_cmds='.sl'
25932 hardcode_into_libs=yes
25933 dynamic_linker="$host_os dld.sl"
25934 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25937 soname_spec='${libname}${release}${shared_ext}$major'
25938 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25940 ;;
25941 *)
25942 shrext_cmds='.sl'
25943 dynamic_linker="$host_os dld.sl"
25944 shlibpath_var=SHLIB_PATH
25945 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25947 soname_spec='${libname}${release}${shared_ext}$major'
25948 ;;
25949 esac
25950 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25951 postinstall_cmds='chmod 555 $lib'
25952 ;;
25953
25954interix3*)
25955 version_type=linux
25956 need_lib_prefix=no
25957 need_version=no
25958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25959 soname_spec='${libname}${release}${shared_ext}$major'
25960 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25961 shlibpath_var=LD_LIBRARY_PATH
25962 shlibpath_overrides_runpath=no
25963 hardcode_into_libs=yes
25964 ;;
25965
25966irix5* | irix6* | nonstopux*)
25967 case $host_os in
25968 nonstopux*) version_type=nonstopux ;;
25969 *)
25970 if test "$lt_cv_prog_gnu_ld" = yes; then
25971 version_type=linux
25972 else
25973 version_type=irix
25974 fi ;;
25975 esac
25976 need_lib_prefix=no
25977 need_version=no
25978 soname_spec='${libname}${release}${shared_ext}$major'
25979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25980 case $host_os in
25981 irix5* | nonstopux*)
25982 libsuff= shlibsuff=
25983 ;;
25984 *)
25985 case $LD in # libtool.m4 will add one of these switches to LD
25986 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25987 libsuff= shlibsuff= libmagic=32-bit;;
25988 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25989 libsuff=32 shlibsuff=N32 libmagic=N32;;
25990 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25991 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25992 *) libsuff= shlibsuff= libmagic=never-match;;
25993 esac
25994 ;;
25995 esac
25996 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25997 shlibpath_overrides_runpath=no
25998 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25999 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26000 hardcode_into_libs=yes
26001 ;;
26002
26003# No shared lib support for Linux oldld, aout, or coff.
26004linux*oldld* | linux*aout* | linux*coff*)
26005 dynamic_linker=no
26006 ;;
26007
26008# This must be Linux ELF.
26009linux*)
26010 version_type=linux
26011 need_lib_prefix=no
26012 need_version=no
26013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26014 soname_spec='${libname}${release}${shared_ext}$major'
26015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26016 shlibpath_var=LD_LIBRARY_PATH
26017 shlibpath_overrides_runpath=no
26018 # This implies no fast_install, which is unacceptable.
26019 # Some rework will be needed to allow for fast_install
26020 # before this can be enabled.
26021 hardcode_into_libs=yes
26022
26023 # Append ld.so.conf contents to the search path
26024 if test -f /etc/ld.so.conf; then
26025 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' ' '`
26026 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26027 fi
26028
26029 # We used to test for /lib/ld.so.1 and disable shared libraries on
26030 # powerpc, because MkLinux only supported shared libraries with the
26031 # GNU dynamic linker. Since this was broken with cross compilers,
26032 # most powerpc-linux boxes support dynamic linking these days and
26033 # people can always --disable-shared, the test was removed, and we
26034 # assume the GNU/Linux dynamic linker is in use.
26035 dynamic_linker='GNU/Linux ld.so'
26036 ;;
26037
26038knetbsd*-gnu)
26039 version_type=linux
26040 need_lib_prefix=no
26041 need_version=no
26042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26043 soname_spec='${libname}${release}${shared_ext}$major'
26044 shlibpath_var=LD_LIBRARY_PATH
26045 shlibpath_overrides_runpath=no
26046 hardcode_into_libs=yes
26047 dynamic_linker='GNU ld.so'
26048 ;;
26049
26050netbsd*)
26051 version_type=sunos
26052 need_lib_prefix=no
26053 need_version=no
26054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26057 dynamic_linker='NetBSD (a.out) ld.so'
26058 else
26059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26060 soname_spec='${libname}${release}${shared_ext}$major'
26061 dynamic_linker='NetBSD ld.elf_so'
26062 fi
26063 shlibpath_var=LD_LIBRARY_PATH
26064 shlibpath_overrides_runpath=yes
26065 hardcode_into_libs=yes
26066 ;;
26067
26068newsos6)
26069 version_type=linux
26070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26071 shlibpath_var=LD_LIBRARY_PATH
26072 shlibpath_overrides_runpath=yes
26073 ;;
26074
26075nto-qnx*)
26076 version_type=linux
26077 need_lib_prefix=no
26078 need_version=no
26079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26080 soname_spec='${libname}${release}${shared_ext}$major'
26081 shlibpath_var=LD_LIBRARY_PATH
26082 shlibpath_overrides_runpath=yes
26083 ;;
26084
26085openbsd*)
26086 version_type=sunos
26087 sys_lib_dlsearch_path_spec="/usr/lib"
26088 need_lib_prefix=no
26089 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26090 case $host_os in
26091 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26092 *) need_version=no ;;
26093 esac
26094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26096 shlibpath_var=LD_LIBRARY_PATH
26097 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26098 case $host_os in
26099 openbsd2.[89] | openbsd2.[89].*)
26100 shlibpath_overrides_runpath=no
26101 ;;
26102 *)
26103 shlibpath_overrides_runpath=yes
26104 ;;
26105 esac
26106 else
26107 shlibpath_overrides_runpath=yes
26108 fi
26109 ;;
26110
26111os2*)
26112 libname_spec='$name'
26113 shrext_cmds=".dll"
26114 need_lib_prefix=no
26115 library_names_spec='$libname${shared_ext} $libname.a'
26116 dynamic_linker='OS/2 ld.exe'
26117 shlibpath_var=LIBPATH
26118 ;;
26119
26120osf3* | osf4* | osf5*)
26121 version_type=osf
26122 need_lib_prefix=no
26123 need_version=no
26124 soname_spec='${libname}${release}${shared_ext}$major'
26125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26126 shlibpath_var=LD_LIBRARY_PATH
26127 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26128 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26129 ;;
26130
26131solaris*)
26132 version_type=linux
26133 need_lib_prefix=no
26134 need_version=no
26135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26136 soname_spec='${libname}${release}${shared_ext}$major'
26137 shlibpath_var=LD_LIBRARY_PATH
26138 shlibpath_overrides_runpath=yes
26139 hardcode_into_libs=yes
26140 # ldd complains unless libraries are executable
26141 postinstall_cmds='chmod +x $lib'
26142 ;;
26143
26144sunos4*)
26145 version_type=sunos
26146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26147 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26148 shlibpath_var=LD_LIBRARY_PATH
26149 shlibpath_overrides_runpath=yes
26150 if test "$with_gnu_ld" = yes; then
26151 need_lib_prefix=no
26152 fi
26153 need_version=yes
26154 ;;
26155
26156sysv4 | sysv4.3*)
26157 version_type=linux
26158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26159 soname_spec='${libname}${release}${shared_ext}$major'
26160 shlibpath_var=LD_LIBRARY_PATH
26161 case $host_vendor in
26162 sni)
26163 shlibpath_overrides_runpath=no
26164 need_lib_prefix=no
26165 export_dynamic_flag_spec='${wl}-Blargedynsym'
26166 runpath_var=LD_RUN_PATH
26167 ;;
26168 siemens)
26169 need_lib_prefix=no
26170 ;;
26171 motorola)
26172 need_lib_prefix=no
26173 need_version=no
26174 shlibpath_overrides_runpath=no
26175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26176 ;;
26177 esac
26178 ;;
26179
26180sysv4*MP*)
26181 if test -d /usr/nec ;then
26182 version_type=linux
26183 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26184 soname_spec='$libname${shared_ext}.$major'
26185 shlibpath_var=LD_LIBRARY_PATH
26186 fi
26187 ;;
26188
26189sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26190 version_type=freebsd-elf
26191 need_lib_prefix=no
26192 need_version=no
26193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26194 soname_spec='${libname}${release}${shared_ext}$major'
26195 shlibpath_var=LD_LIBRARY_PATH
26196 hardcode_into_libs=yes
26197 if test "$with_gnu_ld" = yes; then
26198 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26199 shlibpath_overrides_runpath=no
26200 else
26201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26202 shlibpath_overrides_runpath=yes
26203 case $host_os in
26204 sco3.2v5*)
26205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26206 ;;
26207 esac
26208 fi
26209 sys_lib_dlsearch_path_spec='/usr/lib'
26210 ;;
26211
26212uts4*)
26213 version_type=linux
26214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26215 soname_spec='${libname}${release}${shared_ext}$major'
26216 shlibpath_var=LD_LIBRARY_PATH
26217 ;;
26218
26219*)
26220 dynamic_linker=no
26221 ;;
26222esac
26223{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26224echo "${ECHO_T}$dynamic_linker" >&6; }
26225test "$dynamic_linker" = no && can_build_shared=no
26226
26227variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26228if test "$GCC" = yes; then
26229 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26230fi
26231
26232{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26233echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
26234hardcode_action_GCJ=
26235if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26236 test -n "$runpath_var_GCJ" || \
26237 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26238
26239 # We can hardcode non-existant directories.
26240 if test "$hardcode_direct_GCJ" != no &&
26241 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26242 # have to relink, otherwise we might link with an installed library
26243 # when we should be linking with a yet-to-be-installed one
26244 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26245 test "$hardcode_minus_L_GCJ" != no; then
26246 # Linking always hardcodes the temporary library directory.
26247 hardcode_action_GCJ=relink
26248 else
26249 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26250 hardcode_action_GCJ=immediate
26251 fi
26252else
26253 # We cannot hardcode anything, or else we can only hardcode existing
26254 # directories.
26255 hardcode_action_GCJ=unsupported
26256fi
26257{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26258echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
26259
26260if test "$hardcode_action_GCJ" = relink; then
26261 # Fast installation is not supported
26262 enable_fast_install=no
26263elif test "$shlibpath_overrides_runpath" = yes ||
26264 test "$enable_shared" = no; then
26265 # Fast installation is not necessary
26266 enable_fast_install=needless
26267fi
26268
26269
26270# The else clause should only fire when bootstrapping the
26271# libtool distribution, otherwise you forgot to ship ltmain.sh
26272# with your package, and you will get complaints that there are
26273# no rules to generate ltmain.sh.
26274if test -f "$ltmain"; then
26275 # See if we are running on zsh, and set the options which allow our commands through
26276 # without removal of \ escapes.
26277 if test -n "${ZSH_VERSION+set}" ; then
26278 setopt NO_GLOB_SUBST
26279 fi
26280 # Now quote all the things that may contain metacharacters while being
26281 # careful not to overquote the AC_SUBSTed values. We take copies of the
26282 # variables and quote the copies for generation of the libtool script.
26283 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26284 SED SHELL STRIP \
26285 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26286 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26287 deplibs_check_method reload_flag reload_cmds need_locks \
26288 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26289 lt_cv_sys_global_symbol_to_c_name_address \
26290 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26291 old_postinstall_cmds old_postuninstall_cmds \
26292 compiler_GCJ \
26293 CC_GCJ \
26294 LD_GCJ \
26295 lt_prog_compiler_wl_GCJ \
26296 lt_prog_compiler_pic_GCJ \
26297 lt_prog_compiler_static_GCJ \
26298 lt_prog_compiler_no_builtin_flag_GCJ \
26299 export_dynamic_flag_spec_GCJ \
26300 thread_safe_flag_spec_GCJ \
26301 whole_archive_flag_spec_GCJ \
26302 enable_shared_with_static_runtimes_GCJ \
26303 old_archive_cmds_GCJ \
26304 old_archive_from_new_cmds_GCJ \
26305 predep_objects_GCJ \
26306 postdep_objects_GCJ \
26307 predeps_GCJ \
26308 postdeps_GCJ \
26309 compiler_lib_search_path_GCJ \
26310 archive_cmds_GCJ \
26311 archive_expsym_cmds_GCJ \
26312 postinstall_cmds_GCJ \
26313 postuninstall_cmds_GCJ \
26314 old_archive_from_expsyms_cmds_GCJ \
26315 allow_undefined_flag_GCJ \
26316 no_undefined_flag_GCJ \
26317 export_symbols_cmds_GCJ \
26318 hardcode_libdir_flag_spec_GCJ \
26319 hardcode_libdir_flag_spec_ld_GCJ \
26320 hardcode_libdir_separator_GCJ \
26321 hardcode_automatic_GCJ \
26322 module_cmds_GCJ \
26323 module_expsym_cmds_GCJ \
26324 lt_cv_prog_compiler_c_o_GCJ \
26325 exclude_expsyms_GCJ \
26326 include_expsyms_GCJ; do
26327
26328 case $var in
26329 old_archive_cmds_GCJ | \
26330 old_archive_from_new_cmds_GCJ | \
26331 archive_cmds_GCJ | \
26332 archive_expsym_cmds_GCJ | \
26333 module_cmds_GCJ | \
26334 module_expsym_cmds_GCJ | \
26335 old_archive_from_expsyms_cmds_GCJ | \
26336 export_symbols_cmds_GCJ | \
26337 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26338 postinstall_cmds | postuninstall_cmds | \
26339 old_postinstall_cmds | old_postuninstall_cmds | \
26340 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26341 # Double-quote double-evaled strings.
26342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26343 ;;
26344 *)
26345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26346 ;;
26347 esac
26348 done
26349
26350 case $lt_echo in
26351 *'\$0 --fallback-echo"')
26352 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26353 ;;
26354 esac
26355
26356cfgfile="$ofile"
26357
26358 cat <<__EOF__ >> "$cfgfile"
26359# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26360
26361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26362
26363# Shell to use when invoking shell scripts.
26364SHELL=$lt_SHELL
26365
26366# Whether or not to build shared libraries.
26367build_libtool_libs=$enable_shared
26368
26369# Whether or not to build static libraries.
26370build_old_libs=$enable_static
26371
26372# Whether or not to add -lc for building shared libraries.
26373build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26374
26375# Whether or not to disallow shared libs when runtime libs are static
26376allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26377
26378# Whether or not to optimize for fast installation.
26379fast_install=$enable_fast_install
26380
26381# The host system.
26382host_alias=$host_alias
26383host=$host
26384host_os=$host_os
26385
26386# The build system.
26387build_alias=$build_alias
26388build=$build
26389build_os=$build_os
26390
26391# An echo program that does not interpret backslashes.
26392echo=$lt_echo
26393
26394# The archiver.
26395AR=$lt_AR
26396AR_FLAGS=$lt_AR_FLAGS
26397
26398# A C compiler.
26399LTCC=$lt_LTCC
26400
26401# LTCC compiler flags.
26402LTCFLAGS=$lt_LTCFLAGS
26403
26404# A language-specific compiler.
26405CC=$lt_compiler_GCJ
26406
26407# Is the compiler the GNU C compiler?
26408with_gcc=$GCC_GCJ
26409
26410# An ERE matcher.
26411EGREP=$lt_EGREP
26412
26413# The linker used to build libraries.
26414LD=$lt_LD_GCJ
26415
26416# Whether we need hard or soft links.
26417LN_S=$lt_LN_S
26418
26419# A BSD-compatible nm program.
26420NM=$lt_NM
26421
26422# A symbol stripping program
26423STRIP=$lt_STRIP
26424
26425# Used to examine libraries when file_magic_cmd begins "file"
26426MAGIC_CMD=$MAGIC_CMD
26427
26428# Used on cygwin: DLL creation program.
26429DLLTOOL="$DLLTOOL"
26430
26431# Used on cygwin: object dumper.
26432OBJDUMP="$OBJDUMP"
26433
26434# Used on cygwin: assembler.
26435AS="$AS"
26436
26437# The name of the directory that contains temporary libtool files.
26438objdir=$objdir
26439
26440# How to create reloadable object files.
26441reload_flag=$lt_reload_flag
26442reload_cmds=$lt_reload_cmds
26443
26444# How to pass a linker flag through the compiler.
26445wl=$lt_lt_prog_compiler_wl_GCJ
26446
26447# Object file suffix (normally "o").
26448objext="$ac_objext"
26449
26450# Old archive suffix (normally "a").
26451libext="$libext"
26452
26453# Shared library suffix (normally ".so").
26454shrext_cmds='$shrext_cmds'
26455
26456# Executable file suffix (normally "").
26457exeext="$exeext"
26458
26459# Additional compiler flags for building library objects.
26460pic_flag=$lt_lt_prog_compiler_pic_GCJ
26461pic_mode=$pic_mode
26462
26463# What is the maximum length of a command?
26464max_cmd_len=$lt_cv_sys_max_cmd_len
26465
26466# Does compiler simultaneously support -c and -o options?
26467compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26468
26469# Must we lock files when doing compilation?
26470need_locks=$lt_need_locks
26471
26472# Do we need the lib prefix for modules?
26473need_lib_prefix=$need_lib_prefix
26474
26475# Do we need a version for libraries?
26476need_version=$need_version
26477
26478# Whether dlopen is supported.
26479dlopen_support=$enable_dlopen
26480
26481# Whether dlopen of programs is supported.
26482dlopen_self=$enable_dlopen_self
26483
26484# Whether dlopen of statically linked programs is supported.
26485dlopen_self_static=$enable_dlopen_self_static
26486
26487# Compiler flag to prevent dynamic linking.
26488link_static_flag=$lt_lt_prog_compiler_static_GCJ
26489
26490# Compiler flag to turn off builtin functions.
26491no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26492
26493# Compiler flag to allow reflexive dlopens.
26494export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26495
26496# Compiler flag to generate shared objects directly from archives.
26497whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26498
26499# Compiler flag to generate thread-safe objects.
26500thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26501
26502# Library versioning type.
26503version_type=$version_type
26504
26505# Format of library name prefix.
26506libname_spec=$lt_libname_spec
26507
26508# List of archive names. First name is the real one, the rest are links.
26509# The last name is the one that the linker finds with -lNAME.
26510library_names_spec=$lt_library_names_spec
26511
26512# The coded name of the library, if different from the real name.
26513soname_spec=$lt_soname_spec
26514
26515# Commands used to build and install an old-style archive.
26516RANLIB=$lt_RANLIB
26517old_archive_cmds=$lt_old_archive_cmds_GCJ
26518old_postinstall_cmds=$lt_old_postinstall_cmds
26519old_postuninstall_cmds=$lt_old_postuninstall_cmds
26520
26521# Create an old-style archive from a shared archive.
26522old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26523
26524# Create a temporary old-style archive to link instead of a shared archive.
26525old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26526
26527# Commands used to build and install a shared archive.
26528archive_cmds=$lt_archive_cmds_GCJ
26529archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26530postinstall_cmds=$lt_postinstall_cmds
26531postuninstall_cmds=$lt_postuninstall_cmds
26532
26533# Commands used to build a loadable module (assumed same as above if empty)
26534module_cmds=$lt_module_cmds_GCJ
26535module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26536
26537# Commands to strip libraries.
26538old_striplib=$lt_old_striplib
26539striplib=$lt_striplib
26540
26541# Dependencies to place before the objects being linked to create a
26542# shared library.
26543predep_objects=$lt_predep_objects_GCJ
26544
26545# Dependencies to place after the objects being linked to create a
26546# shared library.
26547postdep_objects=$lt_postdep_objects_GCJ
26548
26549# Dependencies to place before the objects being linked to create a
26550# shared library.
26551predeps=$lt_predeps_GCJ
26552
26553# Dependencies to place after the objects being linked to create a
26554# shared library.
26555postdeps=$lt_postdeps_GCJ
26556
26557# The library search path used internally by the compiler when linking
26558# a shared library.
26559compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26560
26561# Method to check whether dependent libraries are shared objects.
26562deplibs_check_method=$lt_deplibs_check_method
26563
26564# Command to use when deplibs_check_method == file_magic.
26565file_magic_cmd=$lt_file_magic_cmd
26566
26567# Flag that allows shared libraries with undefined symbols to be built.
26568allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26569
26570# Flag that forces no undefined symbols.
26571no_undefined_flag=$lt_no_undefined_flag_GCJ
26572
26573# Commands used to finish a libtool library installation in a directory.
26574finish_cmds=$lt_finish_cmds
26575
26576# Same as above, but a single script fragment to be evaled but not shown.
26577finish_eval=$lt_finish_eval
26578
26579# Take the output of nm and produce a listing of raw symbols and C names.
26580global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26581
26582# Transform the output of nm in a proper C declaration
26583global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26584
26585# Transform the output of nm in a C name address pair
26586global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26587
26588# This is the shared library runtime path variable.
26589runpath_var=$runpath_var
26590
26591# This is the shared library path variable.
26592shlibpath_var=$shlibpath_var
26593
26594# Is shlibpath searched before the hard-coded library search path?
26595shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26596
26597# How to hardcode a shared library path into an executable.
26598hardcode_action=$hardcode_action_GCJ
26599
26600# Whether we should hardcode library paths into libraries.
26601hardcode_into_libs=$hardcode_into_libs
26602
26603# Flag to hardcode \$libdir into a binary during linking.
26604# This must work even if \$libdir does not exist.
26605hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26606
26607# If ld is used when linking, flag to hardcode \$libdir into
26608# a binary during linking. This must work even if \$libdir does
26609# not exist.
26610hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26611
26612# Whether we need a single -rpath flag with a separated argument.
26613hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26614
26615# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26616# resulting binary.
26617hardcode_direct=$hardcode_direct_GCJ
26618
26619# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26620# resulting binary.
26621hardcode_minus_L=$hardcode_minus_L_GCJ
26622
26623# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26624# the resulting binary.
26625hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26626
26627# Set to yes if building a shared library automatically hardcodes DIR into the library
26628# and all subsequent libraries and executables linked against it.
26629hardcode_automatic=$hardcode_automatic_GCJ
26630
26631# Variables whose values should be saved in libtool wrapper scripts and
26632# restored at relink time.
26633variables_saved_for_relink="$variables_saved_for_relink"
26634
26635# Whether libtool must link a program against all its dependency libraries.
26636link_all_deplibs=$link_all_deplibs_GCJ
26637
26638# Compile-time system search path for libraries
26639sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26640
26641# Run-time system search path for libraries
26642sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26643
26644# Fix the shell variable \$srcfile for the compiler.
26645fix_srcfile_path="$fix_srcfile_path_GCJ"
26646
26647# Set to yes if exported symbols are required.
26648always_export_symbols=$always_export_symbols_GCJ
26649
26650# The commands to list exported symbols.
26651export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26652
26653# The commands to extract the exported symbol list from a shared archive.
26654extract_expsyms_cmds=$lt_extract_expsyms_cmds
26655
26656# Symbols that should not be listed in the preloaded symbols.
26657exclude_expsyms=$lt_exclude_expsyms_GCJ
26658
26659# Symbols that must always be exported.
26660include_expsyms=$lt_include_expsyms_GCJ
26661
26662# ### END LIBTOOL TAG CONFIG: $tagname
26663
26664__EOF__
26665
26666
26667else
26668 # If there is no Makefile yet, we rely on a make rule to execute
26669 # `config.status --recheck' to rerun these tests and create the
26670 # libtool script then.
26671 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26672 if test -f "$ltmain_in"; then
26673 test -f Makefile && make "$ltmain"
26674 fi
26675fi
26676
26677
26678ac_ext=c
26679ac_cpp='$CPP $CPPFLAGS'
26680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26682ac_compiler_gnu=$ac_cv_c_compiler_gnu
26683
26684CC="$lt_save_CC"
26685
26686 else
26687 tagname=""
26688 fi
26689 ;;
26690
26691 RC)
26692 ac_ext=c
26693ac_cpp='$CPP $CPPFLAGS'
26694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26696ac_compiler_gnu=$ac_cv_c_compiler_gnu
26697
26698
26699# Source file extension for RC test sources.
26700ac_ext=rc
26701
26702# Object file extension for compiled RC test sources.
26703objext=o
26704objext_RC=$objext
26705
26706# Code to be used in simple compile tests
26707lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26708
26709# Code to be used in simple link tests
26710lt_simple_link_test_code="$lt_simple_compile_test_code"
26711
26712# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26713
26714# If no C compiler was specified, use CC.
26715LTCC=${LTCC-"$CC"}
26716
26717# If no C compiler flags were specified, use CFLAGS.
26718LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26719
26720# Allow CC to be a program name with arguments.
26721compiler=$CC
26722
26723
26724# save warnings/boilerplate of simple test code
26725ac_outfile=conftest.$ac_objext
26726printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26727eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26728_lt_compiler_boilerplate=`cat conftest.err`
26729$rm conftest*
26730
26731ac_outfile=conftest.$ac_objext
26732printf "$lt_simple_link_test_code" >conftest.$ac_ext
26733eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26734_lt_linker_boilerplate=`cat conftest.err`
26735$rm conftest*
26736
26737
26738# Allow CC to be a program name with arguments.
26739lt_save_CC="$CC"
26740CC=${RC-"windres"}
26741compiler=$CC
26742compiler_RC=$CC
26743for cc_temp in $compiler""; do
26744 case $cc_temp in
26745 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26746 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26747 \-*) ;;
26748 *) break;;
26749 esac
26750done
26751cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26752
26753lt_cv_prog_compiler_c_o_RC=yes
26754
26755# The else clause should only fire when bootstrapping the
26756# libtool distribution, otherwise you forgot to ship ltmain.sh
26757# with your package, and you will get complaints that there are
26758# no rules to generate ltmain.sh.
26759if test -f "$ltmain"; then
26760 # See if we are running on zsh, and set the options which allow our commands through
26761 # without removal of \ escapes.
26762 if test -n "${ZSH_VERSION+set}" ; then
26763 setopt NO_GLOB_SUBST
26764 fi
26765 # Now quote all the things that may contain metacharacters while being
26766 # careful not to overquote the AC_SUBSTed values. We take copies of the
26767 # variables and quote the copies for generation of the libtool script.
26768 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26769 SED SHELL STRIP \
26770 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26771 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26772 deplibs_check_method reload_flag reload_cmds need_locks \
26773 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26774 lt_cv_sys_global_symbol_to_c_name_address \
26775 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26776 old_postinstall_cmds old_postuninstall_cmds \
26777 compiler_RC \
26778 CC_RC \
26779 LD_RC \
26780 lt_prog_compiler_wl_RC \
26781 lt_prog_compiler_pic_RC \
26782 lt_prog_compiler_static_RC \
26783 lt_prog_compiler_no_builtin_flag_RC \
26784 export_dynamic_flag_spec_RC \
26785 thread_safe_flag_spec_RC \
26786 whole_archive_flag_spec_RC \
26787 enable_shared_with_static_runtimes_RC \
26788 old_archive_cmds_RC \
26789 old_archive_from_new_cmds_RC \
26790 predep_objects_RC \
26791 postdep_objects_RC \
26792 predeps_RC \
26793 postdeps_RC \
26794 compiler_lib_search_path_RC \
26795 archive_cmds_RC \
26796 archive_expsym_cmds_RC \
26797 postinstall_cmds_RC \
26798 postuninstall_cmds_RC \
26799 old_archive_from_expsyms_cmds_RC \
26800 allow_undefined_flag_RC \
26801 no_undefined_flag_RC \
26802 export_symbols_cmds_RC \
26803 hardcode_libdir_flag_spec_RC \
26804 hardcode_libdir_flag_spec_ld_RC \
26805 hardcode_libdir_separator_RC \
26806 hardcode_automatic_RC \
26807 module_cmds_RC \
26808 module_expsym_cmds_RC \
26809 lt_cv_prog_compiler_c_o_RC \
26810 exclude_expsyms_RC \
26811 include_expsyms_RC; do
26812
26813 case $var in
26814 old_archive_cmds_RC | \
26815 old_archive_from_new_cmds_RC | \
26816 archive_cmds_RC | \
26817 archive_expsym_cmds_RC | \
26818 module_cmds_RC | \
26819 module_expsym_cmds_RC | \
26820 old_archive_from_expsyms_cmds_RC | \
26821 export_symbols_cmds_RC | \
26822 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26823 postinstall_cmds | postuninstall_cmds | \
26824 old_postinstall_cmds | old_postuninstall_cmds | \
26825 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26826 # Double-quote double-evaled strings.
26827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26828 ;;
26829 *)
26830 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26831 ;;
26832 esac
26833 done
26834
26835 case $lt_echo in
26836 *'\$0 --fallback-echo"')
26837 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26838 ;;
26839 esac
26840
26841cfgfile="$ofile"
26842
26843 cat <<__EOF__ >> "$cfgfile"
26844# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26845
26846# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26847
26848# Shell to use when invoking shell scripts.
26849SHELL=$lt_SHELL
26850
26851# Whether or not to build shared libraries.
26852build_libtool_libs=$enable_shared
26853
26854# Whether or not to build static libraries.
26855build_old_libs=$enable_static
26856
26857# Whether or not to add -lc for building shared libraries.
26858build_libtool_need_lc=$archive_cmds_need_lc_RC
26859
26860# Whether or not to disallow shared libs when runtime libs are static
26861allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26862
26863# Whether or not to optimize for fast installation.
26864fast_install=$enable_fast_install
26865
26866# The host system.
26867host_alias=$host_alias
26868host=$host
26869host_os=$host_os
26870
26871# The build system.
26872build_alias=$build_alias
26873build=$build
26874build_os=$build_os
26875
26876# An echo program that does not interpret backslashes.
26877echo=$lt_echo
26878
26879# The archiver.
26880AR=$lt_AR
26881AR_FLAGS=$lt_AR_FLAGS
26882
26883# A C compiler.
26884LTCC=$lt_LTCC
26885
26886# LTCC compiler flags.
26887LTCFLAGS=$lt_LTCFLAGS
26888
26889# A language-specific compiler.
26890CC=$lt_compiler_RC
26891
26892# Is the compiler the GNU C compiler?
26893with_gcc=$GCC_RC
26894
26895# An ERE matcher.
26896EGREP=$lt_EGREP
26897
26898# The linker used to build libraries.
26899LD=$lt_LD_RC
26900
26901# Whether we need hard or soft links.
26902LN_S=$lt_LN_S
26903
26904# A BSD-compatible nm program.
26905NM=$lt_NM
26906
26907# A symbol stripping program
26908STRIP=$lt_STRIP
26909
26910# Used to examine libraries when file_magic_cmd begins "file"
26911MAGIC_CMD=$MAGIC_CMD
26912
26913# Used on cygwin: DLL creation program.
26914DLLTOOL="$DLLTOOL"
26915
26916# Used on cygwin: object dumper.
26917OBJDUMP="$OBJDUMP"
26918
26919# Used on cygwin: assembler.
26920AS="$AS"
26921
26922# The name of the directory that contains temporary libtool files.
26923objdir=$objdir
26924
26925# How to create reloadable object files.
26926reload_flag=$lt_reload_flag
26927reload_cmds=$lt_reload_cmds
26928
26929# How to pass a linker flag through the compiler.
26930wl=$lt_lt_prog_compiler_wl_RC
26931
26932# Object file suffix (normally "o").
26933objext="$ac_objext"
26934
26935# Old archive suffix (normally "a").
26936libext="$libext"
26937
26938# Shared library suffix (normally ".so").
26939shrext_cmds='$shrext_cmds'
26940
26941# Executable file suffix (normally "").
26942exeext="$exeext"
26943
26944# Additional compiler flags for building library objects.
26945pic_flag=$lt_lt_prog_compiler_pic_RC
26946pic_mode=$pic_mode
26947
26948# What is the maximum length of a command?
26949max_cmd_len=$lt_cv_sys_max_cmd_len
26950
26951# Does compiler simultaneously support -c and -o options?
26952compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26953
26954# Must we lock files when doing compilation?
26955need_locks=$lt_need_locks
26956
26957# Do we need the lib prefix for modules?
26958need_lib_prefix=$need_lib_prefix
26959
26960# Do we need a version for libraries?
26961need_version=$need_version
26962
26963# Whether dlopen is supported.
26964dlopen_support=$enable_dlopen
26965
26966# Whether dlopen of programs is supported.
26967dlopen_self=$enable_dlopen_self
26968
26969# Whether dlopen of statically linked programs is supported.
26970dlopen_self_static=$enable_dlopen_self_static
26971
26972# Compiler flag to prevent dynamic linking.
26973link_static_flag=$lt_lt_prog_compiler_static_RC
26974
26975# Compiler flag to turn off builtin functions.
26976no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26977
26978# Compiler flag to allow reflexive dlopens.
26979export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26980
26981# Compiler flag to generate shared objects directly from archives.
26982whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26983
26984# Compiler flag to generate thread-safe objects.
26985thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26986
26987# Library versioning type.
26988version_type=$version_type
26989
26990# Format of library name prefix.
26991libname_spec=$lt_libname_spec
26992
26993# List of archive names. First name is the real one, the rest are links.
26994# The last name is the one that the linker finds with -lNAME.
26995library_names_spec=$lt_library_names_spec
26996
26997# The coded name of the library, if different from the real name.
26998soname_spec=$lt_soname_spec
26999
27000# Commands used to build and install an old-style archive.
27001RANLIB=$lt_RANLIB
27002old_archive_cmds=$lt_old_archive_cmds_RC
27003old_postinstall_cmds=$lt_old_postinstall_cmds
27004old_postuninstall_cmds=$lt_old_postuninstall_cmds
27005
27006# Create an old-style archive from a shared archive.
27007old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
27008
27009# Create a temporary old-style archive to link instead of a shared archive.
27010old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
27011
27012# Commands used to build and install a shared archive.
27013archive_cmds=$lt_archive_cmds_RC
27014archive_expsym_cmds=$lt_archive_expsym_cmds_RC
27015postinstall_cmds=$lt_postinstall_cmds
27016postuninstall_cmds=$lt_postuninstall_cmds
27017
27018# Commands used to build a loadable module (assumed same as above if empty)
27019module_cmds=$lt_module_cmds_RC
27020module_expsym_cmds=$lt_module_expsym_cmds_RC
27021
27022# Commands to strip libraries.
27023old_striplib=$lt_old_striplib
27024striplib=$lt_striplib
27025
27026# Dependencies to place before the objects being linked to create a
27027# shared library.
27028predep_objects=$lt_predep_objects_RC
27029
27030# Dependencies to place after the objects being linked to create a
27031# shared library.
27032postdep_objects=$lt_postdep_objects_RC
27033
27034# Dependencies to place before the objects being linked to create a
27035# shared library.
27036predeps=$lt_predeps_RC
27037
27038# Dependencies to place after the objects being linked to create a
27039# shared library.
27040postdeps=$lt_postdeps_RC
27041
27042# The library search path used internally by the compiler when linking
27043# a shared library.
27044compiler_lib_search_path=$lt_compiler_lib_search_path_RC
27045
27046# Method to check whether dependent libraries are shared objects.
27047deplibs_check_method=$lt_deplibs_check_method
27048
27049# Command to use when deplibs_check_method == file_magic.
27050file_magic_cmd=$lt_file_magic_cmd
27051
27052# Flag that allows shared libraries with undefined symbols to be built.
27053allow_undefined_flag=$lt_allow_undefined_flag_RC
27054
27055# Flag that forces no undefined symbols.
27056no_undefined_flag=$lt_no_undefined_flag_RC
27057
27058# Commands used to finish a libtool library installation in a directory.
27059finish_cmds=$lt_finish_cmds
27060
27061# Same as above, but a single script fragment to be evaled but not shown.
27062finish_eval=$lt_finish_eval
27063
27064# Take the output of nm and produce a listing of raw symbols and C names.
27065global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27066
27067# Transform the output of nm in a proper C declaration
27068global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27069
27070# Transform the output of nm in a C name address pair
27071global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27072
27073# This is the shared library runtime path variable.
27074runpath_var=$runpath_var
27075
27076# This is the shared library path variable.
27077shlibpath_var=$shlibpath_var
27078
27079# Is shlibpath searched before the hard-coded library search path?
27080shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27081
27082# How to hardcode a shared library path into an executable.
27083hardcode_action=$hardcode_action_RC
27084
27085# Whether we should hardcode library paths into libraries.
27086hardcode_into_libs=$hardcode_into_libs
27087
27088# Flag to hardcode \$libdir into a binary during linking.
27089# This must work even if \$libdir does not exist.
27090hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27091
27092# If ld is used when linking, flag to hardcode \$libdir into
27093# a binary during linking. This must work even if \$libdir does
27094# not exist.
27095hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27096
27097# Whether we need a single -rpath flag with a separated argument.
27098hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27099
27100# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27101# resulting binary.
27102hardcode_direct=$hardcode_direct_RC
27103
27104# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27105# resulting binary.
27106hardcode_minus_L=$hardcode_minus_L_RC
27107
27108# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27109# the resulting binary.
27110hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27111
27112# Set to yes if building a shared library automatically hardcodes DIR into the library
27113# and all subsequent libraries and executables linked against it.
27114hardcode_automatic=$hardcode_automatic_RC
27115
27116# Variables whose values should be saved in libtool wrapper scripts and
27117# restored at relink time.
27118variables_saved_for_relink="$variables_saved_for_relink"
27119
27120# Whether libtool must link a program against all its dependency libraries.
27121link_all_deplibs=$link_all_deplibs_RC
27122
27123# Compile-time system search path for libraries
27124sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27125
27126# Run-time system search path for libraries
27127sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27128
27129# Fix the shell variable \$srcfile for the compiler.
27130fix_srcfile_path="$fix_srcfile_path_RC"
27131
27132# Set to yes if exported symbols are required.
27133always_export_symbols=$always_export_symbols_RC
27134
27135# The commands to list exported symbols.
27136export_symbols_cmds=$lt_export_symbols_cmds_RC
27137
27138# The commands to extract the exported symbol list from a shared archive.
27139extract_expsyms_cmds=$lt_extract_expsyms_cmds
27140
27141# Symbols that should not be listed in the preloaded symbols.
27142exclude_expsyms=$lt_exclude_expsyms_RC
27143
27144# Symbols that must always be exported.
27145include_expsyms=$lt_include_expsyms_RC
27146
27147# ### END LIBTOOL TAG CONFIG: $tagname
27148
27149__EOF__
27150
27151
27152else
27153 # If there is no Makefile yet, we rely on a make rule to execute
27154 # `config.status --recheck' to rerun these tests and create the
27155 # libtool script then.
27156 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27157 if test -f "$ltmain_in"; then
27158 test -f Makefile && make "$ltmain"
27159 fi
27160fi
27161
27162
27163ac_ext=c
27164ac_cpp='$CPP $CPPFLAGS'
27165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27167ac_compiler_gnu=$ac_cv_c_compiler_gnu
27168
27169CC="$lt_save_CC"
27170
27171 ;;
27172
27173 *)
27174 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27175echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27176 { (exit 1); exit 1; }; }
27177 ;;
27178 esac
27179
27180 # Append the new tag name to the list of available tags.
27181 if test -n "$tagname" ; then
27182 available_tags="$available_tags $tagname"
27183 fi
27184 fi
27185 done
27186 IFS="$lt_save_ifs"
27187
27188 # Now substitute the updated list of available tags.
27189 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27190 mv "${ofile}T" "$ofile"
27191 chmod +x "$ofile"
27192 else
27193 rm -f "${ofile}T"
27194 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27195echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27196 { (exit 1); exit 1; }; }
27197 fi
27198fi
27199
27200
27201
27202# This can be used to rebuild libtool when needed
27203LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27204
27205# Always use our own libtool.
27206LIBTOOL='$(SHELL) $(top_builddir)/mklib'
27207
27208# Prevent multiple expansion
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230if test "$lt_cv_dlopen_self" = "yes" ; then
27231
27232cat >>confdefs.h <<\_ACEOF
27233#define CAN_DLOPEN_SELF 1
27234_ACEOF
27235
27236fi
27237
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000027238
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027239if test "$WITH_LLVMGCCDIR" = "default" ; then
27240 LLVMGCC="llvm-gcc${EXEEXT}"
27241 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027242 LLVMGCCCOMMAND="$LLVMGCC"
27243 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027244 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27245
27246 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27247
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027248 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27249set dummy $LLVMGCC; ac_word=$2
27250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27252if test "${ac_cv_path_LLVMGCC+set}" = set; then
27253 echo $ECHO_N "(cached) $ECHO_C" >&6
27254else
27255 case $LLVMGCC in
27256 [\\/]* | ?:[\\/]*)
27257 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27258 ;;
27259 *)
27260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27261for as_dir in $PATH
27262do
27263 IFS=$as_save_IFS
27264 test -z "$as_dir" && as_dir=.
27265 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027266 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 +000027267 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27269 break 2
27270 fi
27271done
27272done
27273IFS=$as_save_IFS
27274
27275 ;;
27276esac
27277fi
27278LLVMGCC=$ac_cv_path_LLVMGCC
27279if test -n "$LLVMGCC"; then
27280 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27281echo "${ECHO_T}$LLVMGCC" >&6; }
27282else
27283 { echo "$as_me:$LINENO: result: no" >&5
27284echo "${ECHO_T}no" >&6; }
27285fi
27286
27287
27288 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27289set dummy $LLVMGXX; ac_word=$2
27290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27292if test "${ac_cv_path_LLVMGXX+set}" = set; then
27293 echo $ECHO_N "(cached) $ECHO_C" >&6
27294else
27295 case $LLVMGXX in
27296 [\\/]* | ?:[\\/]*)
27297 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27298 ;;
27299 *)
27300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27301for as_dir in $PATH
27302do
27303 IFS=$as_save_IFS
27304 test -z "$as_dir" && as_dir=.
27305 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027306 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 +000027307 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27309 break 2
27310 fi
27311done
27312done
27313IFS=$as_save_IFS
27314
27315 ;;
27316esac
27317fi
27318LLVMGXX=$ac_cv_path_LLVMGXX
27319if test -n "$LLVMGXX"; then
27320 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27321echo "${ECHO_T}$LLVMGXX" >&6; }
27322else
27323 { echo "$as_me:$LINENO: result: no" >&5
27324echo "${ECHO_T}no" >&6; }
27325fi
27326
27327
27328else
Devang Pateld84ba7b2007-12-04 22:54:47 +000027329 if test -z "$LLVMGCC"; then
27330 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027331 LLVMGCCCOMMAND="$LLVMGCC"
Devang Pateld84ba7b2007-12-04 22:54:47 +000027332 fi
27333 if test -z "$LLVMGXX"; then
27334 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027335 LLVMGXXCOMMAND="$LLVMGXX"
Devang Pateld84ba7b2007-12-04 22:54:47 +000027336 fi
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027337
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027338 LLVMGCC=$LLVMGCC
27339
27340 LLVMGXX=$LLVMGXX
27341
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027342 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27343
27344 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27345
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027346fi
27347
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000027348
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027349{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27350echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
27351
27352ICC=no
27353IXX=no
27354case $CC in
27355 icc*|icpc*)
27356 ICC=yes
27357 IXX=yes
27358 ;;
27359 *)
27360 ;;
27361esac
27362
27363if test "$GCC" != "yes" && test "$ICC" != "yes"
27364then
27365 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27366echo "$as_me: error: gcc|icc required but not found" >&2;}
27367 { (exit 1); exit 1; }; }
27368fi
27369
27370if test "$GXX" != "yes" && test "$IXX" != "yes"
27371then
27372 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27373echo "$as_me: error: g++|icc required but not found" >&2;}
27374 { (exit 1); exit 1; }; }
27375fi
27376
27377if test "$GCC" = "yes"
27378then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027379 cat >conftest.$ac_ext <<_ACEOF
27380#if !defined(__GNUC__) || __GNUC__ < 3
27381#error Unsupported GCC version
27382#endif
27383
27384_ACEOF
27385rm -f conftest.$ac_objext
27386if { (ac_try="$ac_compile"
27387case "(($ac_try" in
27388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389 *) ac_try_echo=$ac_try;;
27390esac
27391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392 (eval "$ac_compile") 2>conftest.er1
27393 ac_status=$?
27394 grep -v '^ *+' conftest.er1 >conftest.err
27395 rm -f conftest.er1
27396 cat conftest.err >&5
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027398 (exit $ac_status); } &&
27399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27400 { (case "(($ac_try" in
27401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402 *) ac_try_echo=$ac_try;;
27403esac
27404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405 (eval "$ac_try") 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; } &&
27409 { ac_try='test -s conftest.$ac_objext'
27410 { (case "(($ac_try" in
27411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27412 *) ac_try_echo=$ac_try;;
27413esac
27414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27415 (eval "$ac_try") 2>&5
27416 ac_status=$?
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; }; then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027419 :
27420else
27421 echo "$as_me: failed program was:" >&5
27422sed 's/^/| /' conftest.$ac_ext >&5
27423
27424 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027425echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27426 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027427fi
27428
27429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027430fi
27431
27432if test -z "$llvm_cv_gnu_make_command"
27433then
27434 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27435echo "$as_me: error: GNU Make required but not found" >&2;}
27436 { (exit 1); exit 1; }; }
27437fi
27438
27439{ echo "$as_me:$LINENO: result: ok" >&5
27440echo "${ECHO_T}ok" >&6; }
27441
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000027442
27443
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027444{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27445echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27446if test "${ac_cv_lib_m_sin+set}" = set; then
27447 echo $ECHO_N "(cached) $ECHO_C" >&6
27448else
27449 ac_check_lib_save_LIBS=$LIBS
27450LIBS="-lm $LIBS"
27451cat >conftest.$ac_ext <<_ACEOF
27452/* confdefs.h. */
27453_ACEOF
27454cat confdefs.h >>conftest.$ac_ext
27455cat >>conftest.$ac_ext <<_ACEOF
27456/* end confdefs.h. */
27457
27458/* Override any GCC internal prototype to avoid an error.
27459 Use char because int might match the return type of a GCC
27460 builtin and then its argument prototype would still apply. */
27461#ifdef __cplusplus
27462extern "C"
27463#endif
27464char sin ();
27465int
27466main ()
27467{
27468return sin ();
27469 ;
27470 return 0;
27471}
27472_ACEOF
27473rm -f conftest.$ac_objext conftest$ac_exeext
27474if { (ac_try="$ac_link"
27475case "(($ac_try" in
27476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27477 *) ac_try_echo=$ac_try;;
27478esac
27479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480 (eval "$ac_link") 2>conftest.er1
27481 ac_status=$?
27482 grep -v '^ *+' conftest.er1 >conftest.err
27483 rm -f conftest.er1
27484 cat conftest.err >&5
27485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027486 (exit $ac_status); } &&
27487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27488 { (case "(($ac_try" in
27489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27490 *) ac_try_echo=$ac_try;;
27491esac
27492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27493 (eval "$ac_try") 2>&5
27494 ac_status=$?
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); }; } &&
27497 { ac_try='test -s conftest$ac_exeext'
27498 { (case "(($ac_try" in
27499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27500 *) ac_try_echo=$ac_try;;
27501esac
27502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27503 (eval "$ac_try") 2>&5
27504 ac_status=$?
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027507 ac_cv_lib_m_sin=yes
27508else
27509 echo "$as_me: failed program was:" >&5
27510sed 's/^/| /' conftest.$ac_ext >&5
27511
27512 ac_cv_lib_m_sin=no
27513fi
27514
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027515rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027516 conftest$ac_exeext conftest.$ac_ext
27517LIBS=$ac_check_lib_save_LIBS
27518fi
27519{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27520echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27521if test $ac_cv_lib_m_sin = yes; then
27522 cat >>confdefs.h <<_ACEOF
27523#define HAVE_LIBM 1
27524_ACEOF
27525
27526 LIBS="-lm $LIBS"
27527
27528fi
27529
27530if test "$llvm_cv_os_type" = "MingW" ; then
27531
27532{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27533echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27534if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27536else
27537 ac_check_lib_save_LIBS=$LIBS
27538LIBS="-limagehlp $LIBS"
27539cat >conftest.$ac_ext <<_ACEOF
27540/* confdefs.h. */
27541_ACEOF
27542cat confdefs.h >>conftest.$ac_ext
27543cat >>conftest.$ac_ext <<_ACEOF
27544/* end confdefs.h. */
27545
27546
27547int
27548main ()
27549{
27550return main ();
27551 ;
27552 return 0;
27553}
27554_ACEOF
27555rm -f conftest.$ac_objext conftest$ac_exeext
27556if { (ac_try="$ac_link"
27557case "(($ac_try" in
27558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27559 *) ac_try_echo=$ac_try;;
27560esac
27561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27562 (eval "$ac_link") 2>conftest.er1
27563 ac_status=$?
27564 grep -v '^ *+' conftest.er1 >conftest.err
27565 rm -f conftest.er1
27566 cat conftest.err >&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027568 (exit $ac_status); } &&
27569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27570 { (case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27573esac
27574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575 (eval "$ac_try") 2>&5
27576 ac_status=$?
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); }; } &&
27579 { ac_try='test -s conftest$ac_exeext'
27580 { (case "(($ac_try" in
27581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582 *) ac_try_echo=$ac_try;;
27583esac
27584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585 (eval "$ac_try") 2>&5
27586 ac_status=$?
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027589 ac_cv_lib_imagehlp_main=yes
27590else
27591 echo "$as_me: failed program was:" >&5
27592sed 's/^/| /' conftest.$ac_ext >&5
27593
27594 ac_cv_lib_imagehlp_main=no
27595fi
27596
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027597rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027598 conftest$ac_exeext conftest.$ac_ext
27599LIBS=$ac_check_lib_save_LIBS
27600fi
27601{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27602echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27603if test $ac_cv_lib_imagehlp_main = yes; then
27604 cat >>confdefs.h <<_ACEOF
27605#define HAVE_LIBIMAGEHLP 1
27606_ACEOF
27607
27608 LIBS="-limagehlp $LIBS"
27609
27610fi
27611
27612
27613{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27614echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27615if test "${ac_cv_lib_psapi_main+set}" = set; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27617else
27618 ac_check_lib_save_LIBS=$LIBS
27619LIBS="-lpsapi $LIBS"
27620cat >conftest.$ac_ext <<_ACEOF
27621/* confdefs.h. */
27622_ACEOF
27623cat confdefs.h >>conftest.$ac_ext
27624cat >>conftest.$ac_ext <<_ACEOF
27625/* end confdefs.h. */
27626
27627
27628int
27629main ()
27630{
27631return main ();
27632 ;
27633 return 0;
27634}
27635_ACEOF
27636rm -f conftest.$ac_objext conftest$ac_exeext
27637if { (ac_try="$ac_link"
27638case "(($ac_try" in
27639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27640 *) ac_try_echo=$ac_try;;
27641esac
27642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27643 (eval "$ac_link") 2>conftest.er1
27644 ac_status=$?
27645 grep -v '^ *+' conftest.er1 >conftest.err
27646 rm -f conftest.er1
27647 cat conftest.err >&5
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027649 (exit $ac_status); } &&
27650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27651 { (case "(($ac_try" in
27652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653 *) ac_try_echo=$ac_try;;
27654esac
27655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656 (eval "$ac_try") 2>&5
27657 ac_status=$?
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); }; } &&
27660 { ac_try='test -s conftest$ac_exeext'
27661 { (case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27664esac
27665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_try") 2>&5
27667 ac_status=$?
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027670 ac_cv_lib_psapi_main=yes
27671else
27672 echo "$as_me: failed program was:" >&5
27673sed 's/^/| /' conftest.$ac_ext >&5
27674
27675 ac_cv_lib_psapi_main=no
27676fi
27677
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027678rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027679 conftest$ac_exeext conftest.$ac_ext
27680LIBS=$ac_check_lib_save_LIBS
27681fi
27682{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27683echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27684if test $ac_cv_lib_psapi_main = yes; then
27685 cat >>confdefs.h <<_ACEOF
27686#define HAVE_LIBPSAPI 1
27687_ACEOF
27688
27689 LIBS="-lpsapi $LIBS"
27690
27691fi
27692
27693fi
27694
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027695{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27696echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27697if test "${ac_cv_search_dlopen+set}" = set; then
27698 echo $ECHO_N "(cached) $ECHO_C" >&6
27699else
27700 ac_func_search_save_LIBS=$LIBS
27701cat >conftest.$ac_ext <<_ACEOF
27702/* confdefs.h. */
27703_ACEOF
27704cat confdefs.h >>conftest.$ac_ext
27705cat >>conftest.$ac_ext <<_ACEOF
27706/* end confdefs.h. */
27707
27708/* Override any GCC internal prototype to avoid an error.
27709 Use char because int might match the return type of a GCC
27710 builtin and then its argument prototype would still apply. */
27711#ifdef __cplusplus
27712extern "C"
27713#endif
27714char dlopen ();
27715int
27716main ()
27717{
27718return dlopen ();
27719 ;
27720 return 0;
27721}
27722_ACEOF
27723for ac_lib in '' dl; do
27724 if test -z "$ac_lib"; then
27725 ac_res="none required"
27726 else
27727 ac_res=-l$ac_lib
27728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27729 fi
27730 rm -f conftest.$ac_objext conftest$ac_exeext
27731if { (ac_try="$ac_link"
27732case "(($ac_try" in
27733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734 *) ac_try_echo=$ac_try;;
27735esac
27736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27737 (eval "$ac_link") 2>conftest.er1
27738 ac_status=$?
27739 grep -v '^ *+' conftest.er1 >conftest.err
27740 rm -f conftest.er1
27741 cat conftest.err >&5
27742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027743 (exit $ac_status); } &&
27744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27745 { (case "(($ac_try" in
27746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747 *) ac_try_echo=$ac_try;;
27748esac
27749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750 (eval "$ac_try") 2>&5
27751 ac_status=$?
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; } &&
27754 { ac_try='test -s conftest$ac_exeext'
27755 { (case "(($ac_try" in
27756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27757 *) ac_try_echo=$ac_try;;
27758esac
27759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760 (eval "$ac_try") 2>&5
27761 ac_status=$?
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027764 ac_cv_search_dlopen=$ac_res
27765else
27766 echo "$as_me: failed program was:" >&5
27767sed 's/^/| /' conftest.$ac_ext >&5
27768
27769
27770fi
27771
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027772rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027773 conftest$ac_exeext
27774 if test "${ac_cv_search_dlopen+set}" = set; then
27775 break
27776fi
27777done
27778if test "${ac_cv_search_dlopen+set}" = set; then
27779 :
27780else
27781 ac_cv_search_dlopen=no
27782fi
27783rm conftest.$ac_ext
27784LIBS=$ac_func_search_save_LIBS
27785fi
27786{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27787echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27788ac_res=$ac_cv_search_dlopen
27789if test "$ac_res" != no; then
27790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27791
27792cat >>confdefs.h <<\_ACEOF
27793#define HAVE_DLOPEN 1
27794_ACEOF
27795
27796else
27797 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27798echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27799fi
27800
27801
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000027802if test "$llvm_cv_enable_libffi" = "yes" ; then
27803 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky6c58a402009-04-13 04:26:27 +000027804echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27805if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky0235b622009-02-04 06:27:44 +000027806 echo $ECHO_N "(cached) $ECHO_C" >&6
27807else
Nick Lewycky6c58a402009-04-13 04:26:27 +000027808 ac_func_search_save_LIBS=$LIBS
Nick Lewycky0235b622009-02-04 06:27:44 +000027809cat >conftest.$ac_ext <<_ACEOF
27810/* confdefs.h. */
27811_ACEOF
27812cat confdefs.h >>conftest.$ac_ext
27813cat >>conftest.$ac_ext <<_ACEOF
27814/* end confdefs.h. */
27815
27816/* Override any GCC internal prototype to avoid an error.
27817 Use char because int might match the return type of a GCC
27818 builtin and then its argument prototype would still apply. */
27819#ifdef __cplusplus
27820extern "C"
27821#endif
27822char ffi_call ();
27823int
27824main ()
27825{
27826return ffi_call ();
27827 ;
27828 return 0;
27829}
27830_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000027831for ac_lib in '' ffi; do
27832 if test -z "$ac_lib"; then
27833 ac_res="none required"
27834 else
27835 ac_res=-l$ac_lib
27836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27837 fi
27838 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewycky0235b622009-02-04 06:27:44 +000027839if { (ac_try="$ac_link"
27840case "(($ac_try" in
27841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842 *) ac_try_echo=$ac_try;;
27843esac
27844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27845 (eval "$ac_link") 2>conftest.er1
27846 ac_status=$?
27847 grep -v '^ *+' conftest.er1 >conftest.err
27848 rm -f conftest.er1
27849 cat conftest.err >&5
27850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027851 (exit $ac_status); } &&
27852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27853 { (case "(($ac_try" in
27854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27856esac
27857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858 (eval "$ac_try") 2>&5
27859 ac_status=$?
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); }; } &&
27862 { ac_try='test -s conftest$ac_exeext'
27863 { (case "(($ac_try" in
27864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27865 *) ac_try_echo=$ac_try;;
27866esac
27867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27868 (eval "$ac_try") 2>&5
27869 ac_status=$?
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000027872 ac_cv_search_ffi_call=$ac_res
Nick Lewycky0235b622009-02-04 06:27:44 +000027873else
27874 echo "$as_me: failed program was:" >&5
27875sed 's/^/| /' conftest.$ac_ext >&5
27876
Nick Lewycky6c58a402009-04-13 04:26:27 +000027877
Nick Lewycky0235b622009-02-04 06:27:44 +000027878fi
27879
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027880rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky6c58a402009-04-13 04:26:27 +000027881 conftest$ac_exeext
27882 if test "${ac_cv_search_ffi_call+set}" = set; then
27883 break
Nick Lewycky0235b622009-02-04 06:27:44 +000027884fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000027885done
27886if test "${ac_cv_search_ffi_call+set}" = set; then
27887 :
27888else
27889 ac_cv_search_ffi_call=no
27890fi
27891rm conftest.$ac_ext
27892LIBS=$ac_func_search_save_LIBS
27893fi
27894{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27895echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27896ac_res=$ac_cv_search_ffi_call
27897if test "$ac_res" != no; then
27898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27899
27900cat >>confdefs.h <<\_ACEOF
27901#define HAVE_FFI_CALL 1
27902_ACEOF
27903
Nick Lewycky0235b622009-02-04 06:27:44 +000027904else
27905 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27906echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27907fi
27908
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000027909fi
Nick Lewycky0235b622009-02-04 06:27:44 +000027910
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027911{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27912echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27913if test "${ac_cv_search_mallinfo+set}" = set; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
27915else
27916 ac_func_search_save_LIBS=$LIBS
27917cat >conftest.$ac_ext <<_ACEOF
27918/* confdefs.h. */
27919_ACEOF
27920cat confdefs.h >>conftest.$ac_ext
27921cat >>conftest.$ac_ext <<_ACEOF
27922/* end confdefs.h. */
27923
27924/* Override any GCC internal prototype to avoid an error.
27925 Use char because int might match the return type of a GCC
27926 builtin and then its argument prototype would still apply. */
27927#ifdef __cplusplus
27928extern "C"
27929#endif
27930char mallinfo ();
27931int
27932main ()
27933{
27934return mallinfo ();
27935 ;
27936 return 0;
27937}
27938_ACEOF
27939for ac_lib in '' malloc; do
27940 if test -z "$ac_lib"; then
27941 ac_res="none required"
27942 else
27943 ac_res=-l$ac_lib
27944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27945 fi
27946 rm -f conftest.$ac_objext conftest$ac_exeext
27947if { (ac_try="$ac_link"
27948case "(($ac_try" in
27949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950 *) ac_try_echo=$ac_try;;
27951esac
27952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953 (eval "$ac_link") 2>conftest.er1
27954 ac_status=$?
27955 grep -v '^ *+' conftest.er1 >conftest.err
27956 rm -f conftest.er1
27957 cat conftest.err >&5
27958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027959 (exit $ac_status); } &&
27960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27961 { (case "(($ac_try" in
27962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963 *) ac_try_echo=$ac_try;;
27964esac
27965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966 (eval "$ac_try") 2>&5
27967 ac_status=$?
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; } &&
27970 { ac_try='test -s conftest$ac_exeext'
27971 { (case "(($ac_try" in
27972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973 *) ac_try_echo=$ac_try;;
27974esac
27975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976 (eval "$ac_try") 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027980 ac_cv_search_mallinfo=$ac_res
27981else
27982 echo "$as_me: failed program was:" >&5
27983sed 's/^/| /' conftest.$ac_ext >&5
27984
27985
27986fi
27987
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027988rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027989 conftest$ac_exeext
27990 if test "${ac_cv_search_mallinfo+set}" = set; then
27991 break
27992fi
27993done
27994if test "${ac_cv_search_mallinfo+set}" = set; then
27995 :
27996else
27997 ac_cv_search_mallinfo=no
27998fi
27999rm conftest.$ac_ext
28000LIBS=$ac_func_search_save_LIBS
28001fi
28002{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
28003echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
28004ac_res=$ac_cv_search_mallinfo
28005if test "$ac_res" != no; then
28006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28007
28008cat >>confdefs.h <<\_ACEOF
28009#define HAVE_MALLINFO 1
28010_ACEOF
28011
28012fi
28013
28014
28015if test "$ENABLE_THREADS" -eq 1 ; then
28016
28017{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
28018echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
28019if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28021else
28022 ac_check_lib_save_LIBS=$LIBS
28023LIBS="-lpthread $LIBS"
28024cat >conftest.$ac_ext <<_ACEOF
28025/* confdefs.h. */
28026_ACEOF
28027cat confdefs.h >>conftest.$ac_ext
28028cat >>conftest.$ac_ext <<_ACEOF
28029/* end confdefs.h. */
28030
28031/* Override any GCC internal prototype to avoid an error.
28032 Use char because int might match the return type of a GCC
28033 builtin and then its argument prototype would still apply. */
28034#ifdef __cplusplus
28035extern "C"
28036#endif
28037char pthread_mutex_init ();
28038int
28039main ()
28040{
28041return pthread_mutex_init ();
28042 ;
28043 return 0;
28044}
28045_ACEOF
28046rm -f conftest.$ac_objext conftest$ac_exeext
28047if { (ac_try="$ac_link"
28048case "(($ac_try" in
28049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28050 *) ac_try_echo=$ac_try;;
28051esac
28052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28053 (eval "$ac_link") 2>conftest.er1
28054 ac_status=$?
28055 grep -v '^ *+' conftest.er1 >conftest.err
28056 rm -f conftest.er1
28057 cat conftest.err >&5
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028059 (exit $ac_status); } &&
28060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28061 { (case "(($ac_try" in
28062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28063 *) ac_try_echo=$ac_try;;
28064esac
28065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066 (eval "$ac_try") 2>&5
28067 ac_status=$?
28068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069 (exit $ac_status); }; } &&
28070 { ac_try='test -s conftest$ac_exeext'
28071 { (case "(($ac_try" in
28072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28073 *) ac_try_echo=$ac_try;;
28074esac
28075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28076 (eval "$ac_try") 2>&5
28077 ac_status=$?
28078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28079 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028080 ac_cv_lib_pthread_pthread_mutex_init=yes
28081else
28082 echo "$as_me: failed program was:" >&5
28083sed 's/^/| /' conftest.$ac_ext >&5
28084
28085 ac_cv_lib_pthread_pthread_mutex_init=no
28086fi
28087
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028088rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028089 conftest$ac_exeext conftest.$ac_ext
28090LIBS=$ac_check_lib_save_LIBS
28091fi
28092{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28093echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
28094if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28095 cat >>confdefs.h <<_ACEOF
28096#define HAVE_LIBPTHREAD 1
28097_ACEOF
28098
28099 LIBS="-lpthread $LIBS"
28100
28101fi
28102
28103 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28104echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
28105if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28106 echo $ECHO_N "(cached) $ECHO_C" >&6
28107else
28108 ac_func_search_save_LIBS=$LIBS
28109cat >conftest.$ac_ext <<_ACEOF
28110/* confdefs.h. */
28111_ACEOF
28112cat confdefs.h >>conftest.$ac_ext
28113cat >>conftest.$ac_ext <<_ACEOF
28114/* end confdefs.h. */
28115
28116/* Override any GCC internal prototype to avoid an error.
28117 Use char because int might match the return type of a GCC
28118 builtin and then its argument prototype would still apply. */
28119#ifdef __cplusplus
28120extern "C"
28121#endif
28122char pthread_mutex_lock ();
28123int
28124main ()
28125{
28126return pthread_mutex_lock ();
28127 ;
28128 return 0;
28129}
28130_ACEOF
28131for ac_lib in '' pthread; do
28132 if test -z "$ac_lib"; then
28133 ac_res="none required"
28134 else
28135 ac_res=-l$ac_lib
28136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28137 fi
28138 rm -f conftest.$ac_objext conftest$ac_exeext
28139if { (ac_try="$ac_link"
28140case "(($ac_try" in
28141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142 *) ac_try_echo=$ac_try;;
28143esac
28144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28145 (eval "$ac_link") 2>conftest.er1
28146 ac_status=$?
28147 grep -v '^ *+' conftest.er1 >conftest.err
28148 rm -f conftest.er1
28149 cat conftest.err >&5
28150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028151 (exit $ac_status); } &&
28152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28153 { (case "(($ac_try" in
28154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28156esac
28157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_try") 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; } &&
28162 { ac_try='test -s conftest$ac_exeext'
28163 { (case "(($ac_try" in
28164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28165 *) ac_try_echo=$ac_try;;
28166esac
28167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28168 (eval "$ac_try") 2>&5
28169 ac_status=$?
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028172 ac_cv_search_pthread_mutex_lock=$ac_res
28173else
28174 echo "$as_me: failed program was:" >&5
28175sed 's/^/| /' conftest.$ac_ext >&5
28176
28177
28178fi
28179
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028180rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028181 conftest$ac_exeext
28182 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28183 break
28184fi
28185done
28186if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28187 :
28188else
28189 ac_cv_search_pthread_mutex_lock=no
28190fi
28191rm conftest.$ac_ext
28192LIBS=$ac_func_search_save_LIBS
28193fi
28194{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28195echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28196ac_res=$ac_cv_search_pthread_mutex_lock
28197if test "$ac_res" != no; then
28198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28199
28200cat >>confdefs.h <<\_ACEOF
28201#define HAVE_PTHREAD_MUTEX_LOCK 1
28202_ACEOF
28203
28204fi
28205
Owen Anderson23c36602009-06-16 18:20:20 +000028206 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28207echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28208if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28210else
28211 ac_func_search_save_LIBS=$LIBS
28212cat >conftest.$ac_ext <<_ACEOF
28213/* confdefs.h. */
28214_ACEOF
28215cat confdefs.h >>conftest.$ac_ext
28216cat >>conftest.$ac_ext <<_ACEOF
28217/* end confdefs.h. */
28218
28219/* Override any GCC internal prototype to avoid an error.
28220 Use char because int might match the return type of a GCC
28221 builtin and then its argument prototype would still apply. */
28222#ifdef __cplusplus
28223extern "C"
28224#endif
28225char pthread_rwlock_init ();
28226int
28227main ()
28228{
28229return pthread_rwlock_init ();
28230 ;
28231 return 0;
28232}
28233_ACEOF
28234for ac_lib in '' pthread; do
28235 if test -z "$ac_lib"; then
28236 ac_res="none required"
28237 else
28238 ac_res=-l$ac_lib
28239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28240 fi
28241 rm -f conftest.$ac_objext conftest$ac_exeext
28242if { (ac_try="$ac_link"
28243case "(($ac_try" in
28244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28245 *) ac_try_echo=$ac_try;;
28246esac
28247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28248 (eval "$ac_link") 2>conftest.er1
28249 ac_status=$?
28250 grep -v '^ *+' conftest.er1 >conftest.err
28251 rm -f conftest.er1
28252 cat conftest.err >&5
28253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254 (exit $ac_status); } &&
28255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28256 { (case "(($ac_try" in
28257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28258 *) ac_try_echo=$ac_try;;
28259esac
28260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28261 (eval "$ac_try") 2>&5
28262 ac_status=$?
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; } &&
28265 { ac_try='test -s conftest$ac_exeext'
28266 { (case "(($ac_try" in
28267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28268 *) ac_try_echo=$ac_try;;
28269esac
28270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28271 (eval "$ac_try") 2>&5
28272 ac_status=$?
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); }; }; then
28275 ac_cv_search_pthread_rwlock_init=$ac_res
28276else
28277 echo "$as_me: failed program was:" >&5
28278sed 's/^/| /' conftest.$ac_ext >&5
28279
28280
28281fi
28282
28283rm -f core conftest.err conftest.$ac_objext \
28284 conftest$ac_exeext
28285 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28286 break
28287fi
28288done
28289if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28290 :
28291else
28292 ac_cv_search_pthread_rwlock_init=no
28293fi
28294rm conftest.$ac_ext
28295LIBS=$ac_func_search_save_LIBS
28296fi
28297{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28298echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28299ac_res=$ac_cv_search_pthread_rwlock_init
28300if test "$ac_res" != no; then
28301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28302
28303cat >>confdefs.h <<\_ACEOF
28304#define HAVE_PTHREAD_RWLOCK_INIT 1
28305_ACEOF
28306
28307fi
28308
Owen Andersoncc135af2009-06-25 23:10:26 +000028309 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28310echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28311if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28312 echo $ECHO_N "(cached) $ECHO_C" >&6
28313else
28314 ac_func_search_save_LIBS=$LIBS
28315cat >conftest.$ac_ext <<_ACEOF
28316/* confdefs.h. */
28317_ACEOF
28318cat confdefs.h >>conftest.$ac_ext
28319cat >>conftest.$ac_ext <<_ACEOF
28320/* end confdefs.h. */
28321
28322/* Override any GCC internal prototype to avoid an error.
28323 Use char because int might match the return type of a GCC
28324 builtin and then its argument prototype would still apply. */
28325#ifdef __cplusplus
28326extern "C"
28327#endif
28328char pthread_getspecific ();
28329int
28330main ()
28331{
28332return pthread_getspecific ();
28333 ;
28334 return 0;
28335}
28336_ACEOF
28337for ac_lib in '' pthread; do
28338 if test -z "$ac_lib"; then
28339 ac_res="none required"
28340 else
28341 ac_res=-l$ac_lib
28342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28343 fi
28344 rm -f conftest.$ac_objext conftest$ac_exeext
28345if { (ac_try="$ac_link"
28346case "(($ac_try" in
28347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28348 *) ac_try_echo=$ac_try;;
28349esac
28350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28351 (eval "$ac_link") 2>conftest.er1
28352 ac_status=$?
28353 grep -v '^ *+' conftest.er1 >conftest.err
28354 rm -f conftest.er1
28355 cat conftest.err >&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } &&
28358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28359 { (case "(($ac_try" in
28360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28362esac
28363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_try") 2>&5
28365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest$ac_exeext'
28369 { (case "(($ac_try" in
28370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371 *) ac_try_echo=$ac_try;;
28372esac
28373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374 (eval "$ac_try") 2>&5
28375 ac_status=$?
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; }; then
28378 ac_cv_search_pthread_getspecific=$ac_res
28379else
28380 echo "$as_me: failed program was:" >&5
28381sed 's/^/| /' conftest.$ac_ext >&5
28382
28383
28384fi
28385
28386rm -f core conftest.err conftest.$ac_objext \
28387 conftest$ac_exeext
28388 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28389 break
28390fi
28391done
28392if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28393 :
28394else
28395 ac_cv_search_pthread_getspecific=no
28396fi
28397rm conftest.$ac_ext
28398LIBS=$ac_func_search_save_LIBS
28399fi
28400{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28401echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28402ac_res=$ac_cv_search_pthread_getspecific
28403if test "$ac_res" != no; then
28404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28405
28406cat >>confdefs.h <<\_ACEOF
28407#define HAVE_PTHREAD_GETSPECIFIC 1
28408_ACEOF
28409
28410fi
28411
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028412fi
28413
28414
28415# Check whether --with-udis86 was given.
28416if test "${with_udis86+set}" = set; then
28417 withval=$with_udis86;
28418 USE_UDIS86=1
28419
28420 case "$withval" in
28421 /usr/lib|yes) ;;
28422 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28423 esac
28424
28425{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28426echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28427if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28428 echo $ECHO_N "(cached) $ECHO_C" >&6
28429else
28430 ac_check_lib_save_LIBS=$LIBS
28431LIBS="-ludis86 $LIBS"
28432cat >conftest.$ac_ext <<_ACEOF
28433/* confdefs.h. */
28434_ACEOF
28435cat confdefs.h >>conftest.$ac_ext
28436cat >>conftest.$ac_ext <<_ACEOF
28437/* end confdefs.h. */
28438
28439/* Override any GCC internal prototype to avoid an error.
28440 Use char because int might match the return type of a GCC
28441 builtin and then its argument prototype would still apply. */
28442#ifdef __cplusplus
28443extern "C"
28444#endif
28445char ud_init ();
28446int
28447main ()
28448{
28449return ud_init ();
28450 ;
28451 return 0;
28452}
28453_ACEOF
28454rm -f conftest.$ac_objext conftest$ac_exeext
28455if { (ac_try="$ac_link"
28456case "(($ac_try" in
28457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28458 *) ac_try_echo=$ac_try;;
28459esac
28460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28461 (eval "$ac_link") 2>conftest.er1
28462 ac_status=$?
28463 grep -v '^ *+' conftest.er1 >conftest.err
28464 rm -f conftest.er1
28465 cat conftest.err >&5
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028467 (exit $ac_status); } &&
28468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28469 { (case "(($ac_try" in
28470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28471 *) ac_try_echo=$ac_try;;
28472esac
28473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28474 (eval "$ac_try") 2>&5
28475 ac_status=$?
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); }; } &&
28478 { ac_try='test -s conftest$ac_exeext'
28479 { (case "(($ac_try" in
28480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481 *) ac_try_echo=$ac_try;;
28482esac
28483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484 (eval "$ac_try") 2>&5
28485 ac_status=$?
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028488 ac_cv_lib_udis86_ud_init=yes
28489else
28490 echo "$as_me: failed program was:" >&5
28491sed 's/^/| /' conftest.$ac_ext >&5
28492
28493 ac_cv_lib_udis86_ud_init=no
28494fi
28495
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028496rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028497 conftest$ac_exeext conftest.$ac_ext
28498LIBS=$ac_check_lib_save_LIBS
28499fi
28500{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28501echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28502if test $ac_cv_lib_udis86_ud_init = yes; then
28503 cat >>confdefs.h <<_ACEOF
28504#define HAVE_LIBUDIS86 1
28505_ACEOF
28506
28507 LIBS="-ludis86 $LIBS"
28508
28509else
28510
28511 echo "Error! You need to have libudis86 around."
28512 exit -1
28513
28514fi
28515
28516
28517else
28518 USE_UDIS86=0
28519
28520fi
28521
28522
28523cat >>confdefs.h <<_ACEOF
28524#define USE_UDIS86 $USE_UDIS86
28525_ACEOF
28526
28527
28528
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000028529# Check whether --with-oprofile was given.
28530if test "${with_oprofile+set}" = set; then
28531 withval=$with_oprofile;
28532 USE_OPROFILE=1
28533
28534 case "$withval" in
28535 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28536 *) llvm_cv_oppath="${withval}/lib/oprofile"
28537 CPPFLAGS="-I${withval}/include";;
28538 esac
28539 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28540 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28541echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28542if test "${ac_cv_search_op_open_agent+set}" = set; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28544else
28545 ac_func_search_save_LIBS=$LIBS
28546cat >conftest.$ac_ext <<_ACEOF
28547/* confdefs.h. */
28548_ACEOF
28549cat confdefs.h >>conftest.$ac_ext
28550cat >>conftest.$ac_ext <<_ACEOF
28551/* end confdefs.h. */
28552
28553/* Override any GCC internal prototype to avoid an error.
28554 Use char because int might match the return type of a GCC
28555 builtin and then its argument prototype would still apply. */
28556#ifdef __cplusplus
28557extern "C"
28558#endif
28559char op_open_agent ();
28560int
28561main ()
28562{
28563return op_open_agent ();
28564 ;
28565 return 0;
28566}
28567_ACEOF
28568for ac_lib in '' opagent; do
28569 if test -z "$ac_lib"; then
28570 ac_res="none required"
28571 else
28572 ac_res=-l$ac_lib
28573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28574 fi
28575 rm -f conftest.$ac_objext conftest$ac_exeext
28576if { (ac_try="$ac_link"
28577case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28580esac
28581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_link") 2>conftest.er1
28583 ac_status=$?
28584 grep -v '^ *+' conftest.er1 >conftest.err
28585 rm -f conftest.er1
28586 cat conftest.err >&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } &&
28589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28590 { (case "(($ac_try" in
28591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28592 *) ac_try_echo=$ac_try;;
28593esac
28594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28595 (eval "$ac_try") 2>&5
28596 ac_status=$?
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); }; } &&
28599 { ac_try='test -s conftest$ac_exeext'
28600 { (case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28603esac
28604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; }; then
28609 ac_cv_search_op_open_agent=$ac_res
28610else
28611 echo "$as_me: failed program was:" >&5
28612sed 's/^/| /' conftest.$ac_ext >&5
28613
28614
28615fi
28616
28617rm -f core conftest.err conftest.$ac_objext \
28618 conftest$ac_exeext
28619 if test "${ac_cv_search_op_open_agent+set}" = set; then
28620 break
28621fi
28622done
28623if test "${ac_cv_search_op_open_agent+set}" = set; then
28624 :
28625else
28626 ac_cv_search_op_open_agent=no
28627fi
28628rm conftest.$ac_ext
28629LIBS=$ac_func_search_save_LIBS
28630fi
28631{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28632echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28633ac_res=$ac_cv_search_op_open_agent
28634if test "$ac_res" != no; then
28635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28636
28637else
28638
28639 echo "Error! You need to have libopagent around."
28640 exit -1
28641
28642fi
28643
28644 if test "${ac_cv_header_opagent_h+set}" = set; then
28645 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28646echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28647if test "${ac_cv_header_opagent_h+set}" = set; then
28648 echo $ECHO_N "(cached) $ECHO_C" >&6
28649fi
28650{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28651echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28652else
28653 # Is the header compilable?
28654{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28655echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28656cat >conftest.$ac_ext <<_ACEOF
28657/* confdefs.h. */
28658_ACEOF
28659cat confdefs.h >>conftest.$ac_ext
28660cat >>conftest.$ac_ext <<_ACEOF
28661/* end confdefs.h. */
28662$ac_includes_default
28663#include <opagent.h>
28664_ACEOF
28665rm -f conftest.$ac_objext
28666if { (ac_try="$ac_compile"
28667case "(($ac_try" in
28668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669 *) ac_try_echo=$ac_try;;
28670esac
28671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28672 (eval "$ac_compile") 2>conftest.er1
28673 ac_status=$?
28674 grep -v '^ *+' conftest.er1 >conftest.err
28675 rm -f conftest.er1
28676 cat conftest.err >&5
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); } &&
28679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28680 { (case "(($ac_try" in
28681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682 *) ac_try_echo=$ac_try;;
28683esac
28684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28685 (eval "$ac_try") 2>&5
28686 ac_status=$?
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; } &&
28689 { ac_try='test -s conftest.$ac_objext'
28690 { (case "(($ac_try" in
28691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28692 *) ac_try_echo=$ac_try;;
28693esac
28694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28695 (eval "$ac_try") 2>&5
28696 ac_status=$?
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); }; }; then
28699 ac_header_compiler=yes
28700else
28701 echo "$as_me: failed program was:" >&5
28702sed 's/^/| /' conftest.$ac_ext >&5
28703
28704 ac_header_compiler=no
28705fi
28706
28707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28708{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28709echo "${ECHO_T}$ac_header_compiler" >&6; }
28710
28711# Is the header present?
28712{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28713echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28714cat >conftest.$ac_ext <<_ACEOF
28715/* confdefs.h. */
28716_ACEOF
28717cat confdefs.h >>conftest.$ac_ext
28718cat >>conftest.$ac_ext <<_ACEOF
28719/* end confdefs.h. */
28720#include <opagent.h>
28721_ACEOF
28722if { (ac_try="$ac_cpp conftest.$ac_ext"
28723case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28726esac
28727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28729 ac_status=$?
28730 grep -v '^ *+' conftest.er1 >conftest.err
28731 rm -f conftest.er1
28732 cat conftest.err >&5
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } >/dev/null; then
28735 if test -s conftest.err; then
28736 ac_cpp_err=$ac_c_preproc_warn_flag
28737 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28738 else
28739 ac_cpp_err=
28740 fi
28741else
28742 ac_cpp_err=yes
28743fi
28744if test -z "$ac_cpp_err"; then
28745 ac_header_preproc=yes
28746else
28747 echo "$as_me: failed program was:" >&5
28748sed 's/^/| /' conftest.$ac_ext >&5
28749
28750 ac_header_preproc=no
28751fi
28752
28753rm -f conftest.err conftest.$ac_ext
28754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28755echo "${ECHO_T}$ac_header_preproc" >&6; }
28756
28757# So? What about this header?
28758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28759 yes:no: )
28760 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28761echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28762 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28763echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28764 ac_header_preproc=yes
28765 ;;
28766 no:yes:* )
28767 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28768echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28769 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28770echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28771 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28772echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28773 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28774echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28775 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28776echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28777 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28778echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28779 ( cat <<\_ASBOX
28780## ----------------------------------- ##
28781## Report this to llvmbugs@cs.uiuc.edu ##
28782## ----------------------------------- ##
28783_ASBOX
28784 ) | sed "s/^/$as_me: WARNING: /" >&2
28785 ;;
28786esac
28787{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28788echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28789if test "${ac_cv_header_opagent_h+set}" = set; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28791else
28792 ac_cv_header_opagent_h=$ac_header_preproc
28793fi
28794{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28795echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28796
28797fi
28798if test $ac_cv_header_opagent_h = yes; then
28799 :
28800else
28801
28802 echo "Error! You need to have opagent.h around."
28803 exit -1
28804
28805fi
28806
28807
28808
28809else
28810
28811 llvm_cv_old_LIBS="$LIBS"
28812 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28813 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28814echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28815if test "${ac_cv_search_op_open_agent+set}" = set; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28817else
28818 ac_func_search_save_LIBS=$LIBS
28819cat >conftest.$ac_ext <<_ACEOF
28820/* confdefs.h. */
28821_ACEOF
28822cat confdefs.h >>conftest.$ac_ext
28823cat >>conftest.$ac_ext <<_ACEOF
28824/* end confdefs.h. */
28825
28826/* Override any GCC internal prototype to avoid an error.
28827 Use char because int might match the return type of a GCC
28828 builtin and then its argument prototype would still apply. */
28829#ifdef __cplusplus
28830extern "C"
28831#endif
28832char op_open_agent ();
28833int
28834main ()
28835{
28836return op_open_agent ();
28837 ;
28838 return 0;
28839}
28840_ACEOF
28841for ac_lib in '' opagent; do
28842 if test -z "$ac_lib"; then
28843 ac_res="none required"
28844 else
28845 ac_res=-l$ac_lib
28846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28847 fi
28848 rm -f conftest.$ac_objext conftest$ac_exeext
28849if { (ac_try="$ac_link"
28850case "(($ac_try" in
28851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28852 *) ac_try_echo=$ac_try;;
28853esac
28854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28855 (eval "$ac_link") 2>conftest.er1
28856 ac_status=$?
28857 grep -v '^ *+' conftest.er1 >conftest.err
28858 rm -f conftest.er1
28859 cat conftest.err >&5
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); } &&
28862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28863 { (case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28866esac
28867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868 (eval "$ac_try") 2>&5
28869 ac_status=$?
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; } &&
28872 { ac_try='test -s conftest$ac_exeext'
28873 { (case "(($ac_try" in
28874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28875 *) ac_try_echo=$ac_try;;
28876esac
28877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28878 (eval "$ac_try") 2>&5
28879 ac_status=$?
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881 (exit $ac_status); }; }; then
28882 ac_cv_search_op_open_agent=$ac_res
28883else
28884 echo "$as_me: failed program was:" >&5
28885sed 's/^/| /' conftest.$ac_ext >&5
28886
28887
28888fi
28889
28890rm -f core conftest.err conftest.$ac_objext \
28891 conftest$ac_exeext
28892 if test "${ac_cv_search_op_open_agent+set}" = set; then
28893 break
28894fi
28895done
28896if test "${ac_cv_search_op_open_agent+set}" = set; then
28897 :
28898else
28899 ac_cv_search_op_open_agent=no
28900fi
28901rm conftest.$ac_ext
28902LIBS=$ac_func_search_save_LIBS
28903fi
28904{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28905echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28906ac_res=$ac_cv_search_op_open_agent
28907if test "$ac_res" != no; then
28908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28909 USE_OPROFILE=1
28910
28911else
28912 LIBS="$llvm_cv_old_LIBS"
28913 USE_OPROFILE=0
28914
28915fi
28916
28917 if test "${ac_cv_header_opagent_h+set}" = set; then
28918 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28919echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28920if test "${ac_cv_header_opagent_h+set}" = set; then
28921 echo $ECHO_N "(cached) $ECHO_C" >&6
28922fi
28923{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28924echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28925else
28926 # Is the header compilable?
28927{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28928echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28929cat >conftest.$ac_ext <<_ACEOF
28930/* confdefs.h. */
28931_ACEOF
28932cat confdefs.h >>conftest.$ac_ext
28933cat >>conftest.$ac_ext <<_ACEOF
28934/* end confdefs.h. */
28935$ac_includes_default
28936#include <opagent.h>
28937_ACEOF
28938rm -f conftest.$ac_objext
28939if { (ac_try="$ac_compile"
28940case "(($ac_try" in
28941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28942 *) ac_try_echo=$ac_try;;
28943esac
28944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28945 (eval "$ac_compile") 2>conftest.er1
28946 ac_status=$?
28947 grep -v '^ *+' conftest.er1 >conftest.err
28948 rm -f conftest.er1
28949 cat conftest.err >&5
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); } &&
28952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28953 { (case "(($ac_try" in
28954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28955 *) ac_try_echo=$ac_try;;
28956esac
28957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28958 (eval "$ac_try") 2>&5
28959 ac_status=$?
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); }; } &&
28962 { ac_try='test -s conftest.$ac_objext'
28963 { (case "(($ac_try" in
28964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965 *) ac_try_echo=$ac_try;;
28966esac
28967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28968 (eval "$ac_try") 2>&5
28969 ac_status=$?
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); }; }; then
28972 ac_header_compiler=yes
28973else
28974 echo "$as_me: failed program was:" >&5
28975sed 's/^/| /' conftest.$ac_ext >&5
28976
28977 ac_header_compiler=no
28978fi
28979
28980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28981{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28982echo "${ECHO_T}$ac_header_compiler" >&6; }
28983
28984# Is the header present?
28985{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28986echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28987cat >conftest.$ac_ext <<_ACEOF
28988/* confdefs.h. */
28989_ACEOF
28990cat confdefs.h >>conftest.$ac_ext
28991cat >>conftest.$ac_ext <<_ACEOF
28992/* end confdefs.h. */
28993#include <opagent.h>
28994_ACEOF
28995if { (ac_try="$ac_cpp conftest.$ac_ext"
28996case "(($ac_try" in
28997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998 *) ac_try_echo=$ac_try;;
28999esac
29000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29002 ac_status=$?
29003 grep -v '^ *+' conftest.er1 >conftest.err
29004 rm -f conftest.er1
29005 cat conftest.err >&5
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); } >/dev/null; then
29008 if test -s conftest.err; then
29009 ac_cpp_err=$ac_c_preproc_warn_flag
29010 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29011 else
29012 ac_cpp_err=
29013 fi
29014else
29015 ac_cpp_err=yes
29016fi
29017if test -z "$ac_cpp_err"; then
29018 ac_header_preproc=yes
29019else
29020 echo "$as_me: failed program was:" >&5
29021sed 's/^/| /' conftest.$ac_ext >&5
29022
29023 ac_header_preproc=no
29024fi
29025
29026rm -f conftest.err conftest.$ac_ext
29027{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29028echo "${ECHO_T}$ac_header_preproc" >&6; }
29029
29030# So? What about this header?
29031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29032 yes:no: )
29033 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
29034echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29035 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
29036echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
29037 ac_header_preproc=yes
29038 ;;
29039 no:yes:* )
29040 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
29041echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
29042 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
29043echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
29044 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
29045echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
29046 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
29047echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
29048 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
29049echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
29050 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
29051echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
29052 ( cat <<\_ASBOX
29053## ----------------------------------- ##
29054## Report this to llvmbugs@cs.uiuc.edu ##
29055## ----------------------------------- ##
29056_ASBOX
29057 ) | sed "s/^/$as_me: WARNING: /" >&2
29058 ;;
29059esac
29060{ echo "$as_me:$LINENO: checking for opagent.h" >&5
29061echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
29062if test "${ac_cv_header_opagent_h+set}" = set; then
29063 echo $ECHO_N "(cached) $ECHO_C" >&6
29064else
29065 ac_cv_header_opagent_h=$ac_header_preproc
29066fi
29067{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
29068echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
29069
29070fi
29071if test $ac_cv_header_opagent_h = yes; then
29072 :
29073else
29074
29075 LIBS="$llvm_cv_old_LIBS"
29076 USE_OPROFILE=0
29077
29078
29079fi
29080
29081
29082
29083fi
29084
29085
29086cat >>confdefs.h <<_ACEOF
29087#define USE_OPROFILE $USE_OPROFILE
29088_ACEOF
29089
29090
29091
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029092
29093
29094
29095
29096
29097ac_header_dirent=no
29098for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29099 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29100{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29101echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103 echo $ECHO_N "(cached) $ECHO_C" >&6
29104else
29105 cat >conftest.$ac_ext <<_ACEOF
29106/* confdefs.h. */
29107_ACEOF
29108cat confdefs.h >>conftest.$ac_ext
29109cat >>conftest.$ac_ext <<_ACEOF
29110/* end confdefs.h. */
29111#include <sys/types.h>
29112#include <$ac_hdr>
29113
29114int
29115main ()
29116{
29117if ((DIR *) 0)
29118return 0;
29119 ;
29120 return 0;
29121}
29122_ACEOF
29123rm -f conftest.$ac_objext
29124if { (ac_try="$ac_compile"
29125case "(($ac_try" in
29126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29127 *) ac_try_echo=$ac_try;;
29128esac
29129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29130 (eval "$ac_compile") 2>conftest.er1
29131 ac_status=$?
29132 grep -v '^ *+' conftest.er1 >conftest.err
29133 rm -f conftest.er1
29134 cat conftest.err >&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029136 (exit $ac_status); } &&
29137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29138 { (case "(($ac_try" in
29139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140 *) ac_try_echo=$ac_try;;
29141esac
29142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143 (eval "$ac_try") 2>&5
29144 ac_status=$?
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); }; } &&
29147 { ac_try='test -s conftest.$ac_objext'
29148 { (case "(($ac_try" in
29149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29150 *) ac_try_echo=$ac_try;;
29151esac
29152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29153 (eval "$ac_try") 2>&5
29154 ac_status=$?
29155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029157 eval "$as_ac_Header=yes"
29158else
29159 echo "$as_me: failed program was:" >&5
29160sed 's/^/| /' conftest.$ac_ext >&5
29161
29162 eval "$as_ac_Header=no"
29163fi
29164
29165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29166fi
29167ac_res=`eval echo '${'$as_ac_Header'}'`
29168 { echo "$as_me:$LINENO: result: $ac_res" >&5
29169echo "${ECHO_T}$ac_res" >&6; }
29170if test `eval echo '${'$as_ac_Header'}'` = yes; then
29171 cat >>confdefs.h <<_ACEOF
29172#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29173_ACEOF
29174
29175ac_header_dirent=$ac_hdr; break
29176fi
29177
29178done
29179# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29180if test $ac_header_dirent = dirent.h; then
29181 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29182echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29183if test "${ac_cv_search_opendir+set}" = set; then
29184 echo $ECHO_N "(cached) $ECHO_C" >&6
29185else
29186 ac_func_search_save_LIBS=$LIBS
29187cat >conftest.$ac_ext <<_ACEOF
29188/* confdefs.h. */
29189_ACEOF
29190cat confdefs.h >>conftest.$ac_ext
29191cat >>conftest.$ac_ext <<_ACEOF
29192/* end confdefs.h. */
29193
29194/* Override any GCC internal prototype to avoid an error.
29195 Use char because int might match the return type of a GCC
29196 builtin and then its argument prototype would still apply. */
29197#ifdef __cplusplus
29198extern "C"
29199#endif
29200char opendir ();
29201int
29202main ()
29203{
29204return opendir ();
29205 ;
29206 return 0;
29207}
29208_ACEOF
29209for ac_lib in '' dir; do
29210 if test -z "$ac_lib"; then
29211 ac_res="none required"
29212 else
29213 ac_res=-l$ac_lib
29214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29215 fi
29216 rm -f conftest.$ac_objext conftest$ac_exeext
29217if { (ac_try="$ac_link"
29218case "(($ac_try" in
29219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220 *) ac_try_echo=$ac_try;;
29221esac
29222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223 (eval "$ac_link") 2>conftest.er1
29224 ac_status=$?
29225 grep -v '^ *+' conftest.er1 >conftest.err
29226 rm -f conftest.er1
29227 cat conftest.err >&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029229 (exit $ac_status); } &&
29230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29231 { (case "(($ac_try" in
29232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233 *) ac_try_echo=$ac_try;;
29234esac
29235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236 (eval "$ac_try") 2>&5
29237 ac_status=$?
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; } &&
29240 { ac_try='test -s conftest$ac_exeext'
29241 { (case "(($ac_try" in
29242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243 *) ac_try_echo=$ac_try;;
29244esac
29245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246 (eval "$ac_try") 2>&5
29247 ac_status=$?
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029250 ac_cv_search_opendir=$ac_res
29251else
29252 echo "$as_me: failed program was:" >&5
29253sed 's/^/| /' conftest.$ac_ext >&5
29254
29255
29256fi
29257
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029258rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029259 conftest$ac_exeext
29260 if test "${ac_cv_search_opendir+set}" = set; then
29261 break
29262fi
29263done
29264if test "${ac_cv_search_opendir+set}" = set; then
29265 :
29266else
29267 ac_cv_search_opendir=no
29268fi
29269rm conftest.$ac_ext
29270LIBS=$ac_func_search_save_LIBS
29271fi
29272{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29273echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29274ac_res=$ac_cv_search_opendir
29275if test "$ac_res" != no; then
29276 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29277
29278fi
29279
29280else
29281 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29282echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
29283if test "${ac_cv_search_opendir+set}" = set; then
29284 echo $ECHO_N "(cached) $ECHO_C" >&6
29285else
29286 ac_func_search_save_LIBS=$LIBS
29287cat >conftest.$ac_ext <<_ACEOF
29288/* confdefs.h. */
29289_ACEOF
29290cat confdefs.h >>conftest.$ac_ext
29291cat >>conftest.$ac_ext <<_ACEOF
29292/* end confdefs.h. */
29293
29294/* Override any GCC internal prototype to avoid an error.
29295 Use char because int might match the return type of a GCC
29296 builtin and then its argument prototype would still apply. */
29297#ifdef __cplusplus
29298extern "C"
29299#endif
29300char opendir ();
29301int
29302main ()
29303{
29304return opendir ();
29305 ;
29306 return 0;
29307}
29308_ACEOF
29309for ac_lib in '' x; do
29310 if test -z "$ac_lib"; then
29311 ac_res="none required"
29312 else
29313 ac_res=-l$ac_lib
29314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29315 fi
29316 rm -f conftest.$ac_objext conftest$ac_exeext
29317if { (ac_try="$ac_link"
29318case "(($ac_try" in
29319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29320 *) ac_try_echo=$ac_try;;
29321esac
29322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29323 (eval "$ac_link") 2>conftest.er1
29324 ac_status=$?
29325 grep -v '^ *+' conftest.er1 >conftest.err
29326 rm -f conftest.er1
29327 cat conftest.err >&5
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029329 (exit $ac_status); } &&
29330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29331 { (case "(($ac_try" in
29332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29333 *) ac_try_echo=$ac_try;;
29334esac
29335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29336 (eval "$ac_try") 2>&5
29337 ac_status=$?
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; } &&
29340 { ac_try='test -s conftest$ac_exeext'
29341 { (case "(($ac_try" in
29342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29343 *) ac_try_echo=$ac_try;;
29344esac
29345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29346 (eval "$ac_try") 2>&5
29347 ac_status=$?
29348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029350 ac_cv_search_opendir=$ac_res
29351else
29352 echo "$as_me: failed program was:" >&5
29353sed 's/^/| /' conftest.$ac_ext >&5
29354
29355
29356fi
29357
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029358rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029359 conftest$ac_exeext
29360 if test "${ac_cv_search_opendir+set}" = set; then
29361 break
29362fi
29363done
29364if test "${ac_cv_search_opendir+set}" = set; then
29365 :
29366else
29367 ac_cv_search_opendir=no
29368fi
29369rm conftest.$ac_ext
29370LIBS=$ac_func_search_save_LIBS
29371fi
29372{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29373echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29374ac_res=$ac_cv_search_opendir
29375if test "$ac_res" != no; then
29376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29377
29378fi
29379
29380fi
29381
29382{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29383echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
29384if test "${ac_cv_header_mmap_anon+set}" = set; then
29385 echo $ECHO_N "(cached) $ECHO_C" >&6
29386else
29387 ac_ext=c
29388ac_cpp='$CPP $CPPFLAGS'
29389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29391ac_compiler_gnu=$ac_cv_c_compiler_gnu
29392
29393 cat >conftest.$ac_ext <<_ACEOF
29394/* confdefs.h. */
29395_ACEOF
29396cat confdefs.h >>conftest.$ac_ext
29397cat >>conftest.$ac_ext <<_ACEOF
29398/* end confdefs.h. */
29399#include <sys/mman.h>
29400#include <unistd.h>
29401#include <fcntl.h>
29402int
29403main ()
29404{
29405mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29406 ;
29407 return 0;
29408}
29409_ACEOF
29410rm -f conftest.$ac_objext
29411if { (ac_try="$ac_compile"
29412case "(($ac_try" in
29413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414 *) ac_try_echo=$ac_try;;
29415esac
29416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417 (eval "$ac_compile") 2>conftest.er1
29418 ac_status=$?
29419 grep -v '^ *+' conftest.er1 >conftest.err
29420 rm -f conftest.er1
29421 cat conftest.err >&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029423 (exit $ac_status); } &&
29424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29425 { (case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29428esac
29429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_try") 2>&5
29431 ac_status=$?
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); }; } &&
29434 { ac_try='test -s conftest.$ac_objext'
29435 { (case "(($ac_try" in
29436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437 *) ac_try_echo=$ac_try;;
29438esac
29439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440 (eval "$ac_try") 2>&5
29441 ac_status=$?
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029444 ac_cv_header_mmap_anon=yes
29445else
29446 echo "$as_me: failed program was:" >&5
29447sed 's/^/| /' conftest.$ac_ext >&5
29448
29449 ac_cv_header_mmap_anon=no
29450fi
29451
29452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29453 ac_ext=c
29454ac_cpp='$CPP $CPPFLAGS'
29455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29457ac_compiler_gnu=$ac_cv_c_compiler_gnu
29458
29459
29460fi
29461{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29462echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
29463if test "$ac_cv_header_mmap_anon" = yes; then
29464
29465cat >>confdefs.h <<\_ACEOF
29466#define HAVE_MMAP_ANONYMOUS 1
29467_ACEOF
29468
29469fi
29470
29471{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29472echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29473if test "${ac_cv_header_stat_broken+set}" = set; then
29474 echo $ECHO_N "(cached) $ECHO_C" >&6
29475else
29476 cat >conftest.$ac_ext <<_ACEOF
29477/* confdefs.h. */
29478_ACEOF
29479cat confdefs.h >>conftest.$ac_ext
29480cat >>conftest.$ac_ext <<_ACEOF
29481/* end confdefs.h. */
29482#include <sys/types.h>
29483#include <sys/stat.h>
29484
29485#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029486# if S_ISBLK (S_IFDIR)
29487You lose.
29488# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029489#endif
29490
29491#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029492# if S_ISBLK (S_IFCHR)
29493You lose.
29494# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029495#endif
29496
29497#if defined S_ISLNK && defined S_IFREG
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029498# if S_ISLNK (S_IFREG)
29499You lose.
29500# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029501#endif
29502
29503#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029504# if S_ISSOCK (S_IFREG)
29505You lose.
29506# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029507#endif
29508
29509_ACEOF
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29511 $EGREP "You lose" >/dev/null 2>&1; then
29512 ac_cv_header_stat_broken=yes
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029513else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029514 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029515fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029516rm -f conftest*
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000029517
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029518fi
29519{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29520echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29521if test $ac_cv_header_stat_broken = yes; then
29522
29523cat >>confdefs.h <<\_ACEOF
29524#define STAT_MACROS_BROKEN 1
29525_ACEOF
29526
29527fi
29528
29529{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29530echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
29531if test "${ac_cv_header_stdc+set}" = set; then
29532 echo $ECHO_N "(cached) $ECHO_C" >&6
29533else
29534 cat >conftest.$ac_ext <<_ACEOF
29535/* confdefs.h. */
29536_ACEOF
29537cat confdefs.h >>conftest.$ac_ext
29538cat >>conftest.$ac_ext <<_ACEOF
29539/* end confdefs.h. */
29540#include <stdlib.h>
29541#include <stdarg.h>
29542#include <string.h>
29543#include <float.h>
29544
29545int
29546main ()
29547{
29548
29549 ;
29550 return 0;
29551}
29552_ACEOF
29553rm -f conftest.$ac_objext
29554if { (ac_try="$ac_compile"
29555case "(($ac_try" in
29556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557 *) ac_try_echo=$ac_try;;
29558esac
29559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560 (eval "$ac_compile") 2>conftest.er1
29561 ac_status=$?
29562 grep -v '^ *+' conftest.er1 >conftest.err
29563 rm -f conftest.er1
29564 cat conftest.err >&5
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029566 (exit $ac_status); } &&
29567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29568 { (case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29571esac
29572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_try") 2>&5
29574 ac_status=$?
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; } &&
29577 { ac_try='test -s conftest.$ac_objext'
29578 { (case "(($ac_try" in
29579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580 *) ac_try_echo=$ac_try;;
29581esac
29582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583 (eval "$ac_try") 2>&5
29584 ac_status=$?
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029587 ac_cv_header_stdc=yes
29588else
29589 echo "$as_me: failed program was:" >&5
29590sed 's/^/| /' conftest.$ac_ext >&5
29591
29592 ac_cv_header_stdc=no
29593fi
29594
29595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29596
29597if test $ac_cv_header_stdc = yes; then
29598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29599 cat >conftest.$ac_ext <<_ACEOF
29600/* confdefs.h. */
29601_ACEOF
29602cat confdefs.h >>conftest.$ac_ext
29603cat >>conftest.$ac_ext <<_ACEOF
29604/* end confdefs.h. */
29605#include <string.h>
29606
29607_ACEOF
29608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29609 $EGREP "memchr" >/dev/null 2>&1; then
29610 :
29611else
29612 ac_cv_header_stdc=no
29613fi
29614rm -f conftest*
29615
29616fi
29617
29618if test $ac_cv_header_stdc = yes; then
29619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29620 cat >conftest.$ac_ext <<_ACEOF
29621/* confdefs.h. */
29622_ACEOF
29623cat confdefs.h >>conftest.$ac_ext
29624cat >>conftest.$ac_ext <<_ACEOF
29625/* end confdefs.h. */
29626#include <stdlib.h>
29627
29628_ACEOF
29629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29630 $EGREP "free" >/dev/null 2>&1; then
29631 :
29632else
29633 ac_cv_header_stdc=no
29634fi
29635rm -f conftest*
29636
29637fi
29638
29639if test $ac_cv_header_stdc = yes; then
29640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29641 if test "$cross_compiling" = yes; then
29642 :
29643else
29644 cat >conftest.$ac_ext <<_ACEOF
29645/* confdefs.h. */
29646_ACEOF
29647cat confdefs.h >>conftest.$ac_ext
29648cat >>conftest.$ac_ext <<_ACEOF
29649/* end confdefs.h. */
29650#include <ctype.h>
29651#include <stdlib.h>
29652#if ((' ' & 0x0FF) == 0x020)
29653# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29654# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29655#else
29656# define ISLOWER(c) \
29657 (('a' <= (c) && (c) <= 'i') \
29658 || ('j' <= (c) && (c) <= 'r') \
29659 || ('s' <= (c) && (c) <= 'z'))
29660# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29661#endif
29662
29663#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29664int
29665main ()
29666{
29667 int i;
29668 for (i = 0; i < 256; i++)
29669 if (XOR (islower (i), ISLOWER (i))
29670 || toupper (i) != TOUPPER (i))
29671 return 2;
29672 return 0;
29673}
29674_ACEOF
29675rm -f conftest$ac_exeext
29676if { (ac_try="$ac_link"
29677case "(($ac_try" in
29678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679 *) ac_try_echo=$ac_try;;
29680esac
29681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682 (eval "$ac_link") 2>&5
29683 ac_status=$?
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29686 { (case "(($ac_try" in
29687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29688 *) ac_try_echo=$ac_try;;
29689esac
29690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29691 (eval "$ac_try") 2>&5
29692 ac_status=$?
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); }; }; then
29695 :
29696else
29697 echo "$as_me: program exited with status $ac_status" >&5
29698echo "$as_me: failed program was:" >&5
29699sed 's/^/| /' conftest.$ac_ext >&5
29700
29701( exit $ac_status )
29702ac_cv_header_stdc=no
29703fi
29704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29705fi
29706
29707
29708fi
29709fi
29710{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29711echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
29712if test $ac_cv_header_stdc = yes; then
29713
29714cat >>confdefs.h <<\_ACEOF
29715#define STDC_HEADERS 1
29716_ACEOF
29717
29718fi
29719
29720{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29721echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
29722if test "${ac_cv_header_sys_wait_h+set}" = set; then
29723 echo $ECHO_N "(cached) $ECHO_C" >&6
29724else
29725 cat >conftest.$ac_ext <<_ACEOF
29726/* confdefs.h. */
29727_ACEOF
29728cat confdefs.h >>conftest.$ac_ext
29729cat >>conftest.$ac_ext <<_ACEOF
29730/* end confdefs.h. */
29731#include <sys/types.h>
29732#include <sys/wait.h>
29733#ifndef WEXITSTATUS
29734# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
29735#endif
29736#ifndef WIFEXITED
29737# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29738#endif
29739
29740int
29741main ()
29742{
29743 int s;
29744 wait (&s);
29745 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29746 ;
29747 return 0;
29748}
29749_ACEOF
29750rm -f conftest.$ac_objext
29751if { (ac_try="$ac_compile"
29752case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29755esac
29756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_compile") 2>conftest.er1
29758 ac_status=$?
29759 grep -v '^ *+' conftest.er1 >conftest.err
29760 rm -f conftest.er1
29761 cat conftest.err >&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029763 (exit $ac_status); } &&
29764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29765 { (case "(($ac_try" in
29766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29767 *) ac_try_echo=$ac_try;;
29768esac
29769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29770 (eval "$ac_try") 2>&5
29771 ac_status=$?
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; } &&
29774 { ac_try='test -s conftest.$ac_objext'
29775 { (case "(($ac_try" in
29776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777 *) ac_try_echo=$ac_try;;
29778esac
29779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780 (eval "$ac_try") 2>&5
29781 ac_status=$?
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029784 ac_cv_header_sys_wait_h=yes
29785else
29786 echo "$as_me: failed program was:" >&5
29787sed 's/^/| /' conftest.$ac_ext >&5
29788
29789 ac_cv_header_sys_wait_h=no
29790fi
29791
29792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29793fi
29794{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29795echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
29796if test $ac_cv_header_sys_wait_h = yes; then
29797
29798cat >>confdefs.h <<\_ACEOF
29799#define HAVE_SYS_WAIT_H 1
29800_ACEOF
29801
29802fi
29803
29804{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29805echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
29806if test "${ac_cv_header_time+set}" = set; then
29807 echo $ECHO_N "(cached) $ECHO_C" >&6
29808else
29809 cat >conftest.$ac_ext <<_ACEOF
29810/* confdefs.h. */
29811_ACEOF
29812cat confdefs.h >>conftest.$ac_ext
29813cat >>conftest.$ac_ext <<_ACEOF
29814/* end confdefs.h. */
29815#include <sys/types.h>
29816#include <sys/time.h>
29817#include <time.h>
29818
29819int
29820main ()
29821{
29822if ((struct tm *) 0)
29823return 0;
29824 ;
29825 return 0;
29826}
29827_ACEOF
29828rm -f conftest.$ac_objext
29829if { (ac_try="$ac_compile"
29830case "(($ac_try" in
29831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832 *) ac_try_echo=$ac_try;;
29833esac
29834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835 (eval "$ac_compile") 2>conftest.er1
29836 ac_status=$?
29837 grep -v '^ *+' conftest.er1 >conftest.err
29838 rm -f conftest.er1
29839 cat conftest.err >&5
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029841 (exit $ac_status); } &&
29842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29843 { (case "(($ac_try" in
29844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845 *) ac_try_echo=$ac_try;;
29846esac
29847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_try") 2>&5
29849 ac_status=$?
29850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); }; } &&
29852 { ac_try='test -s conftest.$ac_objext'
29853 { (case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29856esac
29857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858 (eval "$ac_try") 2>&5
29859 ac_status=$?
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029862 ac_cv_header_time=yes
29863else
29864 echo "$as_me: failed program was:" >&5
29865sed 's/^/| /' conftest.$ac_ext >&5
29866
29867 ac_cv_header_time=no
29868fi
29869
29870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29871fi
29872{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29873echo "${ECHO_T}$ac_cv_header_time" >&6; }
29874if test $ac_cv_header_time = yes; then
29875
29876cat >>confdefs.h <<\_ACEOF
29877#define TIME_WITH_SYS_TIME 1
29878_ACEOF
29879
29880fi
29881
29882
29883
29884
29885
29886
29887
29888
29889for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29890do
29891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29897fi
29898ac_res=`eval echo '${'$as_ac_Header'}'`
29899 { echo "$as_me:$LINENO: result: $ac_res" >&5
29900echo "${ECHO_T}$ac_res" >&6; }
29901else
29902 # Is the header compilable?
29903{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29904echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29905cat >conftest.$ac_ext <<_ACEOF
29906/* confdefs.h. */
29907_ACEOF
29908cat confdefs.h >>conftest.$ac_ext
29909cat >>conftest.$ac_ext <<_ACEOF
29910/* end confdefs.h. */
29911$ac_includes_default
29912#include <$ac_header>
29913_ACEOF
29914rm -f conftest.$ac_objext
29915if { (ac_try="$ac_compile"
29916case "(($ac_try" in
29917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29918 *) ac_try_echo=$ac_try;;
29919esac
29920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29921 (eval "$ac_compile") 2>conftest.er1
29922 ac_status=$?
29923 grep -v '^ *+' conftest.er1 >conftest.err
29924 rm -f conftest.er1
29925 cat conftest.err >&5
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029927 (exit $ac_status); } &&
29928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29929 { (case "(($ac_try" in
29930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29931 *) ac_try_echo=$ac_try;;
29932esac
29933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29934 (eval "$ac_try") 2>&5
29935 ac_status=$?
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; } &&
29938 { ac_try='test -s conftest.$ac_objext'
29939 { (case "(($ac_try" in
29940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941 *) ac_try_echo=$ac_try;;
29942esac
29943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944 (eval "$ac_try") 2>&5
29945 ac_status=$?
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029948 ac_header_compiler=yes
29949else
29950 echo "$as_me: failed program was:" >&5
29951sed 's/^/| /' conftest.$ac_ext >&5
29952
29953 ac_header_compiler=no
29954fi
29955
29956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29957{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29958echo "${ECHO_T}$ac_header_compiler" >&6; }
29959
29960# Is the header present?
29961{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29962echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29963cat >conftest.$ac_ext <<_ACEOF
29964/* confdefs.h. */
29965_ACEOF
29966cat confdefs.h >>conftest.$ac_ext
29967cat >>conftest.$ac_ext <<_ACEOF
29968/* end confdefs.h. */
29969#include <$ac_header>
29970_ACEOF
29971if { (ac_try="$ac_cpp conftest.$ac_ext"
29972case "(($ac_try" in
29973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29975esac
29976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29978 ac_status=$?
29979 grep -v '^ *+' conftest.er1 >conftest.err
29980 rm -f conftest.er1
29981 cat conftest.err >&5
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029983 (exit $ac_status); } >/dev/null; then
29984 if test -s conftest.err; then
29985 ac_cpp_err=$ac_c_preproc_warn_flag
29986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29987 else
29988 ac_cpp_err=
29989 fi
29990else
29991 ac_cpp_err=yes
29992fi
29993if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029994 ac_header_preproc=yes
29995else
29996 echo "$as_me: failed program was:" >&5
29997sed 's/^/| /' conftest.$ac_ext >&5
29998
29999 ac_header_preproc=no
30000fi
30001
30002rm -f conftest.err conftest.$ac_ext
30003{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30004echo "${ECHO_T}$ac_header_preproc" >&6; }
30005
30006# So? What about this header?
30007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30008 yes:no: )
30009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30010echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30012echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30013 ac_header_preproc=yes
30014 ;;
30015 no:yes:* )
30016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30017echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30019echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30021echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30023echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30025echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30027echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30028 ( cat <<\_ASBOX
30029## ----------------------------------- ##
30030## Report this to llvmbugs@cs.uiuc.edu ##
30031## ----------------------------------- ##
30032_ASBOX
30033 ) | sed "s/^/$as_me: WARNING: /" >&2
30034 ;;
30035esac
30036{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30039 echo $ECHO_N "(cached) $ECHO_C" >&6
30040else
30041 eval "$as_ac_Header=\$ac_header_preproc"
30042fi
30043ac_res=`eval echo '${'$as_ac_Header'}'`
30044 { echo "$as_me:$LINENO: result: $ac_res" >&5
30045echo "${ECHO_T}$ac_res" >&6; }
30046
30047fi
30048if test `eval echo '${'$as_ac_Header'}'` = yes; then
30049 cat >>confdefs.h <<_ACEOF
30050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30051_ACEOF
30052
30053fi
30054
30055done
30056
30057
30058
30059
30060
30061
30062
Douglas Gregor6230bee2009-05-18 17:21:34 +000030063for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030064do
30065as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30067 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30069if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30070 echo $ECHO_N "(cached) $ECHO_C" >&6
30071fi
30072ac_res=`eval echo '${'$as_ac_Header'}'`
30073 { echo "$as_me:$LINENO: result: $ac_res" >&5
30074echo "${ECHO_T}$ac_res" >&6; }
30075else
30076 # Is the header compilable?
30077{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30079cat >conftest.$ac_ext <<_ACEOF
30080/* confdefs.h. */
30081_ACEOF
30082cat confdefs.h >>conftest.$ac_ext
30083cat >>conftest.$ac_ext <<_ACEOF
30084/* end confdefs.h. */
30085$ac_includes_default
30086#include <$ac_header>
30087_ACEOF
30088rm -f conftest.$ac_objext
30089if { (ac_try="$ac_compile"
30090case "(($ac_try" in
30091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30092 *) ac_try_echo=$ac_try;;
30093esac
30094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30095 (eval "$ac_compile") 2>conftest.er1
30096 ac_status=$?
30097 grep -v '^ *+' conftest.er1 >conftest.err
30098 rm -f conftest.er1
30099 cat conftest.err >&5
30100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030101 (exit $ac_status); } &&
30102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30103 { (case "(($ac_try" in
30104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30106esac
30107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_try") 2>&5
30109 ac_status=$?
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); }; } &&
30112 { ac_try='test -s conftest.$ac_objext'
30113 { (case "(($ac_try" in
30114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115 *) ac_try_echo=$ac_try;;
30116esac
30117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118 (eval "$ac_try") 2>&5
30119 ac_status=$?
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030122 ac_header_compiler=yes
30123else
30124 echo "$as_me: failed program was:" >&5
30125sed 's/^/| /' conftest.$ac_ext >&5
30126
30127 ac_header_compiler=no
30128fi
30129
30130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30131{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30132echo "${ECHO_T}$ac_header_compiler" >&6; }
30133
30134# Is the header present?
30135{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30137cat >conftest.$ac_ext <<_ACEOF
30138/* confdefs.h. */
30139_ACEOF
30140cat confdefs.h >>conftest.$ac_ext
30141cat >>conftest.$ac_ext <<_ACEOF
30142/* end confdefs.h. */
30143#include <$ac_header>
30144_ACEOF
30145if { (ac_try="$ac_cpp conftest.$ac_ext"
30146case "(($ac_try" in
30147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30148 *) ac_try_echo=$ac_try;;
30149esac
30150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30152 ac_status=$?
30153 grep -v '^ *+' conftest.er1 >conftest.err
30154 rm -f conftest.er1
30155 cat conftest.err >&5
30156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030157 (exit $ac_status); } >/dev/null; then
30158 if test -s conftest.err; then
30159 ac_cpp_err=$ac_c_preproc_warn_flag
30160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30161 else
30162 ac_cpp_err=
30163 fi
30164else
30165 ac_cpp_err=yes
30166fi
30167if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030168 ac_header_preproc=yes
30169else
30170 echo "$as_me: failed program was:" >&5
30171sed 's/^/| /' conftest.$ac_ext >&5
30172
30173 ac_header_preproc=no
30174fi
30175
30176rm -f conftest.err conftest.$ac_ext
30177{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30178echo "${ECHO_T}$ac_header_preproc" >&6; }
30179
30180# So? What about this header?
30181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30182 yes:no: )
30183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30187 ac_header_preproc=yes
30188 ;;
30189 no:yes:* )
30190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30202 ( cat <<\_ASBOX
30203## ----------------------------------- ##
30204## Report this to llvmbugs@cs.uiuc.edu ##
30205## ----------------------------------- ##
30206_ASBOX
30207 ) | sed "s/^/$as_me: WARNING: /" >&2
30208 ;;
30209esac
30210{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30213 echo $ECHO_N "(cached) $ECHO_C" >&6
30214else
30215 eval "$as_ac_Header=\$ac_header_preproc"
30216fi
30217ac_res=`eval echo '${'$as_ac_Header'}'`
30218 { echo "$as_me:$LINENO: result: $ac_res" >&5
30219echo "${ECHO_T}$ac_res" >&6; }
30220
30221fi
30222if test `eval echo '${'$as_ac_Header'}'` = yes; then
30223 cat >>confdefs.h <<_ACEOF
30224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30225_ACEOF
30226
30227fi
30228
30229done
30230
30231
Douglas Gregor6230bee2009-05-18 17:21:34 +000030232
30233for ac_header in utime.h windows.h
Reid Spencer096a8142007-08-17 05:45:26 +000030234do
30235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30240 echo $ECHO_N "(cached) $ECHO_C" >&6
30241fi
30242ac_res=`eval echo '${'$as_ac_Header'}'`
30243 { echo "$as_me:$LINENO: result: $ac_res" >&5
30244echo "${ECHO_T}$ac_res" >&6; }
30245else
30246 # Is the header compilable?
30247{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30249cat >conftest.$ac_ext <<_ACEOF
30250/* confdefs.h. */
30251_ACEOF
30252cat confdefs.h >>conftest.$ac_ext
30253cat >>conftest.$ac_ext <<_ACEOF
30254/* end confdefs.h. */
30255$ac_includes_default
30256#include <$ac_header>
30257_ACEOF
30258rm -f conftest.$ac_objext
30259if { (ac_try="$ac_compile"
30260case "(($ac_try" in
30261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30262 *) ac_try_echo=$ac_try;;
30263esac
30264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30265 (eval "$ac_compile") 2>conftest.er1
30266 ac_status=$?
30267 grep -v '^ *+' conftest.er1 >conftest.err
30268 rm -f conftest.er1
30269 cat conftest.err >&5
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030271 (exit $ac_status); } &&
30272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30273 { (case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30276esac
30277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_try") 2>&5
30279 ac_status=$?
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; } &&
30282 { ac_try='test -s conftest.$ac_objext'
30283 { (case "(($ac_try" in
30284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30285 *) ac_try_echo=$ac_try;;
30286esac
30287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30288 (eval "$ac_try") 2>&5
30289 ac_status=$?
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); }; }; then
Reid Spencer096a8142007-08-17 05:45:26 +000030292 ac_header_compiler=yes
30293else
30294 echo "$as_me: failed program was:" >&5
30295sed 's/^/| /' conftest.$ac_ext >&5
30296
30297 ac_header_compiler=no
30298fi
30299
30300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30301{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30302echo "${ECHO_T}$ac_header_compiler" >&6; }
30303
30304# Is the header present?
30305{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30307cat >conftest.$ac_ext <<_ACEOF
30308/* confdefs.h. */
30309_ACEOF
30310cat confdefs.h >>conftest.$ac_ext
30311cat >>conftest.$ac_ext <<_ACEOF
30312/* end confdefs.h. */
30313#include <$ac_header>
30314_ACEOF
30315if { (ac_try="$ac_cpp conftest.$ac_ext"
30316case "(($ac_try" in
30317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318 *) ac_try_echo=$ac_try;;
30319esac
30320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30322 ac_status=$?
30323 grep -v '^ *+' conftest.er1 >conftest.err
30324 rm -f conftest.er1
30325 cat conftest.err >&5
30326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030327 (exit $ac_status); } >/dev/null; then
30328 if test -s conftest.err; then
30329 ac_cpp_err=$ac_c_preproc_warn_flag
30330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30331 else
30332 ac_cpp_err=
30333 fi
30334else
30335 ac_cpp_err=yes
30336fi
30337if test -z "$ac_cpp_err"; then
Reid Spencer096a8142007-08-17 05:45:26 +000030338 ac_header_preproc=yes
30339else
30340 echo "$as_me: failed program was:" >&5
30341sed 's/^/| /' conftest.$ac_ext >&5
30342
30343 ac_header_preproc=no
30344fi
30345
30346rm -f conftest.err conftest.$ac_ext
30347{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30348echo "${ECHO_T}$ac_header_preproc" >&6; }
30349
30350# So? What about this header?
30351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30352 yes:no: )
30353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30357 ac_header_preproc=yes
30358 ;;
30359 no:yes:* )
30360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30372 ( cat <<\_ASBOX
30373## ----------------------------------- ##
30374## Report this to llvmbugs@cs.uiuc.edu ##
30375## ----------------------------------- ##
30376_ASBOX
30377 ) | sed "s/^/$as_me: WARNING: /" >&2
30378 ;;
30379esac
30380{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30383 echo $ECHO_N "(cached) $ECHO_C" >&6
30384else
30385 eval "$as_ac_Header=\$ac_header_preproc"
30386fi
30387ac_res=`eval echo '${'$as_ac_Header'}'`
30388 { echo "$as_me:$LINENO: result: $ac_res" >&5
30389echo "${ECHO_T}$ac_res" >&6; }
30390
30391fi
30392if test `eval echo '${'$as_ac_Header'}'` = yes; then
30393 cat >>confdefs.h <<_ACEOF
30394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30395_ACEOF
30396
30397fi
30398
30399done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030400
30401
30402
30403
Reid Spencer096a8142007-08-17 05:45:26 +000030404
30405for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030406do
30407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30408if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30412 echo $ECHO_N "(cached) $ECHO_C" >&6
30413fi
30414ac_res=`eval echo '${'$as_ac_Header'}'`
30415 { echo "$as_me:$LINENO: result: $ac_res" >&5
30416echo "${ECHO_T}$ac_res" >&6; }
30417else
30418 # Is the header compilable?
30419{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30420echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30421cat >conftest.$ac_ext <<_ACEOF
30422/* confdefs.h. */
30423_ACEOF
30424cat confdefs.h >>conftest.$ac_ext
30425cat >>conftest.$ac_ext <<_ACEOF
30426/* end confdefs.h. */
30427$ac_includes_default
30428#include <$ac_header>
30429_ACEOF
30430rm -f conftest.$ac_objext
30431if { (ac_try="$ac_compile"
30432case "(($ac_try" in
30433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30434 *) ac_try_echo=$ac_try;;
30435esac
30436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437 (eval "$ac_compile") 2>conftest.er1
30438 ac_status=$?
30439 grep -v '^ *+' conftest.er1 >conftest.err
30440 rm -f conftest.er1
30441 cat conftest.err >&5
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030443 (exit $ac_status); } &&
30444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30445 { (case "(($ac_try" in
30446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30448esac
30449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_try") 2>&5
30451 ac_status=$?
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); }; } &&
30454 { ac_try='test -s conftest.$ac_objext'
30455 { (case "(($ac_try" in
30456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30457 *) ac_try_echo=$ac_try;;
30458esac
30459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30460 (eval "$ac_try") 2>&5
30461 ac_status=$?
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030464 ac_header_compiler=yes
30465else
30466 echo "$as_me: failed program was:" >&5
30467sed 's/^/| /' conftest.$ac_ext >&5
30468
30469 ac_header_compiler=no
30470fi
30471
30472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30473{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30474echo "${ECHO_T}$ac_header_compiler" >&6; }
30475
30476# Is the header present?
30477{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30478echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30479cat >conftest.$ac_ext <<_ACEOF
30480/* confdefs.h. */
30481_ACEOF
30482cat confdefs.h >>conftest.$ac_ext
30483cat >>conftest.$ac_ext <<_ACEOF
30484/* end confdefs.h. */
30485#include <$ac_header>
30486_ACEOF
30487if { (ac_try="$ac_cpp conftest.$ac_ext"
30488case "(($ac_try" in
30489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490 *) ac_try_echo=$ac_try;;
30491esac
30492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30494 ac_status=$?
30495 grep -v '^ *+' conftest.er1 >conftest.err
30496 rm -f conftest.er1
30497 cat conftest.err >&5
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030499 (exit $ac_status); } >/dev/null; then
30500 if test -s conftest.err; then
30501 ac_cpp_err=$ac_c_preproc_warn_flag
30502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30503 else
30504 ac_cpp_err=
30505 fi
30506else
30507 ac_cpp_err=yes
30508fi
30509if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030510 ac_header_preproc=yes
30511else
30512 echo "$as_me: failed program was:" >&5
30513sed 's/^/| /' conftest.$ac_ext >&5
30514
30515 ac_header_preproc=no
30516fi
30517
30518rm -f conftest.err conftest.$ac_ext
30519{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30520echo "${ECHO_T}$ac_header_preproc" >&6; }
30521
30522# So? What about this header?
30523case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30524 yes:no: )
30525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30526echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30528echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30529 ac_header_preproc=yes
30530 ;;
30531 no:yes:* )
30532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30533echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30535echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30537echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30539echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30541echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30543echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30544 ( cat <<\_ASBOX
30545## ----------------------------------- ##
30546## Report this to llvmbugs@cs.uiuc.edu ##
30547## ----------------------------------- ##
30548_ASBOX
30549 ) | sed "s/^/$as_me: WARNING: /" >&2
30550 ;;
30551esac
30552{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30555 echo $ECHO_N "(cached) $ECHO_C" >&6
30556else
30557 eval "$as_ac_Header=\$ac_header_preproc"
30558fi
30559ac_res=`eval echo '${'$as_ac_Header'}'`
30560 { echo "$as_me:$LINENO: result: $ac_res" >&5
30561echo "${ECHO_T}$ac_res" >&6; }
30562
30563fi
30564if test `eval echo '${'$as_ac_Header'}'` = yes; then
30565 cat >>confdefs.h <<_ACEOF
30566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30567_ACEOF
30568
30569fi
30570
30571done
30572
30573
30574
30575
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000030576
30577for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030578do
30579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30584 echo $ECHO_N "(cached) $ECHO_C" >&6
30585fi
30586ac_res=`eval echo '${'$as_ac_Header'}'`
30587 { echo "$as_me:$LINENO: result: $ac_res" >&5
30588echo "${ECHO_T}$ac_res" >&6; }
30589else
30590 # Is the header compilable?
30591{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30593cat >conftest.$ac_ext <<_ACEOF
30594/* confdefs.h. */
30595_ACEOF
30596cat confdefs.h >>conftest.$ac_ext
30597cat >>conftest.$ac_ext <<_ACEOF
30598/* end confdefs.h. */
30599$ac_includes_default
30600#include <$ac_header>
30601_ACEOF
30602rm -f conftest.$ac_objext
30603if { (ac_try="$ac_compile"
30604case "(($ac_try" in
30605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30606 *) ac_try_echo=$ac_try;;
30607esac
30608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30609 (eval "$ac_compile") 2>conftest.er1
30610 ac_status=$?
30611 grep -v '^ *+' conftest.er1 >conftest.err
30612 rm -f conftest.er1
30613 cat conftest.err >&5
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030615 (exit $ac_status); } &&
30616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30617 { (case "(($ac_try" in
30618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619 *) ac_try_echo=$ac_try;;
30620esac
30621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622 (eval "$ac_try") 2>&5
30623 ac_status=$?
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); }; } &&
30626 { ac_try='test -s conftest.$ac_objext'
30627 { (case "(($ac_try" in
30628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629 *) ac_try_echo=$ac_try;;
30630esac
30631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632 (eval "$ac_try") 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030636 ac_header_compiler=yes
30637else
30638 echo "$as_me: failed program was:" >&5
30639sed 's/^/| /' conftest.$ac_ext >&5
30640
30641 ac_header_compiler=no
30642fi
30643
30644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30645{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30646echo "${ECHO_T}$ac_header_compiler" >&6; }
30647
30648# Is the header present?
30649{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30651cat >conftest.$ac_ext <<_ACEOF
30652/* confdefs.h. */
30653_ACEOF
30654cat confdefs.h >>conftest.$ac_ext
30655cat >>conftest.$ac_ext <<_ACEOF
30656/* end confdefs.h. */
30657#include <$ac_header>
30658_ACEOF
30659if { (ac_try="$ac_cpp conftest.$ac_ext"
30660case "(($ac_try" in
30661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662 *) ac_try_echo=$ac_try;;
30663esac
30664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30666 ac_status=$?
30667 grep -v '^ *+' conftest.er1 >conftest.err
30668 rm -f conftest.er1
30669 cat conftest.err >&5
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030671 (exit $ac_status); } >/dev/null; then
30672 if test -s conftest.err; then
30673 ac_cpp_err=$ac_c_preproc_warn_flag
30674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30675 else
30676 ac_cpp_err=
30677 fi
30678else
30679 ac_cpp_err=yes
30680fi
30681if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030682 ac_header_preproc=yes
30683else
30684 echo "$as_me: failed program was:" >&5
30685sed 's/^/| /' conftest.$ac_ext >&5
30686
30687 ac_header_preproc=no
30688fi
30689
30690rm -f conftest.err conftest.$ac_ext
30691{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30692echo "${ECHO_T}$ac_header_preproc" >&6; }
30693
30694# So? What about this header?
30695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30696 yes:no: )
30697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30698echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30700echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30701 ac_header_preproc=yes
30702 ;;
30703 no:yes:* )
30704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30705echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30707echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30709echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30711echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30713echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30715echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30716 ( cat <<\_ASBOX
30717## ----------------------------------- ##
30718## Report this to llvmbugs@cs.uiuc.edu ##
30719## ----------------------------------- ##
30720_ASBOX
30721 ) | sed "s/^/$as_me: WARNING: /" >&2
30722 ;;
30723esac
30724{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30727 echo $ECHO_N "(cached) $ECHO_C" >&6
30728else
30729 eval "$as_ac_Header=\$ac_header_preproc"
30730fi
30731ac_res=`eval echo '${'$as_ac_Header'}'`
30732 { echo "$as_me:$LINENO: result: $ac_res" >&5
30733echo "${ECHO_T}$ac_res" >&6; }
30734
30735fi
30736if test `eval echo '${'$as_ac_Header'}'` = yes; then
30737 cat >>confdefs.h <<_ACEOF
30738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30739_ACEOF
30740
30741fi
30742
30743done
30744
30745if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000030746
30747for ac_header in pthread.h
30748do
30749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030754 echo $ECHO_N "(cached) $ECHO_C" >&6
30755fi
Reid Spencer096a8142007-08-17 05:45:26 +000030756ac_res=`eval echo '${'$as_ac_Header'}'`
30757 { echo "$as_me:$LINENO: result: $ac_res" >&5
30758echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030759else
30760 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000030761{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030763cat >conftest.$ac_ext <<_ACEOF
30764/* confdefs.h. */
30765_ACEOF
30766cat confdefs.h >>conftest.$ac_ext
30767cat >>conftest.$ac_ext <<_ACEOF
30768/* end confdefs.h. */
30769$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000030770#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030771_ACEOF
30772rm -f conftest.$ac_objext
30773if { (ac_try="$ac_compile"
30774case "(($ac_try" in
30775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776 *) ac_try_echo=$ac_try;;
30777esac
30778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779 (eval "$ac_compile") 2>conftest.er1
30780 ac_status=$?
30781 grep -v '^ *+' conftest.er1 >conftest.err
30782 rm -f conftest.er1
30783 cat conftest.err >&5
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030785 (exit $ac_status); } &&
30786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30787 { (case "(($ac_try" in
30788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789 *) ac_try_echo=$ac_try;;
30790esac
30791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792 (eval "$ac_try") 2>&5
30793 ac_status=$?
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; } &&
30796 { ac_try='test -s conftest.$ac_objext'
30797 { (case "(($ac_try" in
30798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799 *) ac_try_echo=$ac_try;;
30800esac
30801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802 (eval "$ac_try") 2>&5
30803 ac_status=$?
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030806 ac_header_compiler=yes
30807else
30808 echo "$as_me: failed program was:" >&5
30809sed 's/^/| /' conftest.$ac_ext >&5
30810
30811 ac_header_compiler=no
30812fi
30813
30814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30815{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30816echo "${ECHO_T}$ac_header_compiler" >&6; }
30817
30818# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000030819{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30820echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030821cat >conftest.$ac_ext <<_ACEOF
30822/* confdefs.h. */
30823_ACEOF
30824cat confdefs.h >>conftest.$ac_ext
30825cat >>conftest.$ac_ext <<_ACEOF
30826/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000030827#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030828_ACEOF
30829if { (ac_try="$ac_cpp conftest.$ac_ext"
30830case "(($ac_try" in
30831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30832 *) ac_try_echo=$ac_try;;
30833esac
30834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30836 ac_status=$?
30837 grep -v '^ *+' conftest.er1 >conftest.err
30838 rm -f conftest.er1
30839 cat conftest.err >&5
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030841 (exit $ac_status); } >/dev/null; then
30842 if test -s conftest.err; then
30843 ac_cpp_err=$ac_c_preproc_warn_flag
30844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30845 else
30846 ac_cpp_err=
30847 fi
30848else
30849 ac_cpp_err=yes
30850fi
30851if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030852 ac_header_preproc=yes
30853else
30854 echo "$as_me: failed program was:" >&5
30855sed 's/^/| /' conftest.$ac_ext >&5
30856
30857 ac_header_preproc=no
30858fi
30859
30860rm -f conftest.err conftest.$ac_ext
30861{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30862echo "${ECHO_T}$ac_header_preproc" >&6; }
30863
30864# So? What about this header?
30865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30866 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000030867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30868echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30870echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030871 ac_header_preproc=yes
30872 ;;
30873 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000030874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30875echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30877echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30879echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30881echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30885echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030886 ( cat <<\_ASBOX
30887## ----------------------------------- ##
30888## Report this to llvmbugs@cs.uiuc.edu ##
30889## ----------------------------------- ##
30890_ASBOX
30891 ) | sed "s/^/$as_me: WARNING: /" >&2
30892 ;;
30893esac
Reid Spencer096a8142007-08-17 05:45:26 +000030894{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030897 echo $ECHO_N "(cached) $ECHO_C" >&6
30898else
Reid Spencer096a8142007-08-17 05:45:26 +000030899 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030900fi
Reid Spencer096a8142007-08-17 05:45:26 +000030901ac_res=`eval echo '${'$as_ac_Header'}'`
30902 { echo "$as_me:$LINENO: result: $ac_res" >&5
30903echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030904
30905fi
Reid Spencer096a8142007-08-17 05:45:26 +000030906if test `eval echo '${'$as_ac_Header'}'` = yes; then
30907 cat >>confdefs.h <<_ACEOF
30908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30909_ACEOF
30910 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030911
30912else
30913 HAVE_PTHREAD=0
30914
30915fi
30916
Reid Spencer096a8142007-08-17 05:45:26 +000030917done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030918
30919else
30920 HAVE_PTHREAD=0
30921
30922fi
30923
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000030924if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewycky0235b622009-02-04 06:27:44 +000030925
30926
30927for ac_header in ffi.h ffi/ffi.h
30928do
30929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30934 echo $ECHO_N "(cached) $ECHO_C" >&6
30935fi
30936ac_res=`eval echo '${'$as_ac_Header'}'`
30937 { echo "$as_me:$LINENO: result: $ac_res" >&5
30938echo "${ECHO_T}$ac_res" >&6; }
30939else
30940 # Is the header compilable?
30941{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30942echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30943cat >conftest.$ac_ext <<_ACEOF
30944/* confdefs.h. */
30945_ACEOF
30946cat confdefs.h >>conftest.$ac_ext
30947cat >>conftest.$ac_ext <<_ACEOF
30948/* end confdefs.h. */
30949$ac_includes_default
30950#include <$ac_header>
30951_ACEOF
30952rm -f conftest.$ac_objext
30953if { (ac_try="$ac_compile"
30954case "(($ac_try" in
30955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956 *) ac_try_echo=$ac_try;;
30957esac
30958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30959 (eval "$ac_compile") 2>conftest.er1
30960 ac_status=$?
30961 grep -v '^ *+' conftest.er1 >conftest.err
30962 rm -f conftest.er1
30963 cat conftest.err >&5
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030965 (exit $ac_status); } &&
30966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30967 { (case "(($ac_try" in
30968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30969 *) ac_try_echo=$ac_try;;
30970esac
30971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30972 (eval "$ac_try") 2>&5
30973 ac_status=$?
30974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975 (exit $ac_status); }; } &&
30976 { ac_try='test -s conftest.$ac_objext'
30977 { (case "(($ac_try" in
30978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30979 *) ac_try_echo=$ac_try;;
30980esac
30981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30982 (eval "$ac_try") 2>&5
30983 ac_status=$?
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); }; }; then
Nick Lewycky0235b622009-02-04 06:27:44 +000030986 ac_header_compiler=yes
30987else
30988 echo "$as_me: failed program was:" >&5
30989sed 's/^/| /' conftest.$ac_ext >&5
30990
30991 ac_header_compiler=no
30992fi
30993
30994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30995{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30996echo "${ECHO_T}$ac_header_compiler" >&6; }
30997
30998# Is the header present?
30999{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31001cat >conftest.$ac_ext <<_ACEOF
31002/* confdefs.h. */
31003_ACEOF
31004cat confdefs.h >>conftest.$ac_ext
31005cat >>conftest.$ac_ext <<_ACEOF
31006/* end confdefs.h. */
31007#include <$ac_header>
31008_ACEOF
31009if { (ac_try="$ac_cpp conftest.$ac_ext"
31010case "(($ac_try" in
31011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31012 *) ac_try_echo=$ac_try;;
31013esac
31014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31016 ac_status=$?
31017 grep -v '^ *+' conftest.er1 >conftest.err
31018 rm -f conftest.er1
31019 cat conftest.err >&5
31020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031021 (exit $ac_status); } >/dev/null; then
31022 if test -s conftest.err; then
31023 ac_cpp_err=$ac_c_preproc_warn_flag
31024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31025 else
31026 ac_cpp_err=
31027 fi
31028else
31029 ac_cpp_err=yes
31030fi
31031if test -z "$ac_cpp_err"; then
Nick Lewycky0235b622009-02-04 06:27:44 +000031032 ac_header_preproc=yes
31033else
31034 echo "$as_me: failed program was:" >&5
31035sed 's/^/| /' conftest.$ac_ext >&5
31036
31037 ac_header_preproc=no
31038fi
31039
31040rm -f conftest.err conftest.$ac_ext
31041{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31042echo "${ECHO_T}$ac_header_preproc" >&6; }
31043
31044# So? What about this header?
31045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31046 yes:no: )
31047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31050echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31051 ac_header_preproc=yes
31052 ;;
31053 no:yes:* )
31054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31055echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31057echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31059echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31061echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31065echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31066 ( cat <<\_ASBOX
31067## ----------------------------------- ##
31068## Report this to llvmbugs@cs.uiuc.edu ##
31069## ----------------------------------- ##
31070_ASBOX
31071 ) | sed "s/^/$as_me: WARNING: /" >&2
31072 ;;
31073esac
31074{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31077 echo $ECHO_N "(cached) $ECHO_C" >&6
31078else
31079 eval "$as_ac_Header=\$ac_header_preproc"
31080fi
31081ac_res=`eval echo '${'$as_ac_Header'}'`
31082 { echo "$as_me:$LINENO: result: $ac_res" >&5
31083echo "${ECHO_T}$ac_res" >&6; }
31084
31085fi
31086if test `eval echo '${'$as_ac_Header'}'` = yes; then
31087 cat >>confdefs.h <<_ACEOF
31088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31089_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000031090
31091fi
31092
31093done
31094
Nick Lewyckyfec9bd32009-06-06 06:25:09 +000031095fi
Nick Lewycky0235b622009-02-04 06:27:44 +000031096
Nick Lewycky5d713ec2009-01-20 00:52:24 +000031097
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031098
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031099 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31100echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31101if test "${ac_cv_huge_val_sanity+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31103else
31104
31105 ac_ext=cpp
31106ac_cpp='$CXXCPP $CPPFLAGS'
31107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31110
31111 CXXFLAGS=-pedantic
31112 if test "$cross_compiling" = yes; then
31113 ac_cv_huge_val_sanity=yes
31114else
31115 cat >conftest.$ac_ext <<_ACEOF
31116/* confdefs.h. */
31117_ACEOF
31118cat confdefs.h >>conftest.$ac_ext
31119cat >>conftest.$ac_ext <<_ACEOF
31120/* end confdefs.h. */
31121#include <math.h>
31122int
31123main ()
31124{
31125double x = HUGE_VAL; return x != x;
31126 ;
31127 return 0;
31128}
31129_ACEOF
31130rm -f conftest$ac_exeext
31131if { (ac_try="$ac_link"
31132case "(($ac_try" in
31133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31134 *) ac_try_echo=$ac_try;;
31135esac
31136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31137 (eval "$ac_link") 2>&5
31138 ac_status=$?
31139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31141 { (case "(($ac_try" in
31142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31143 *) ac_try_echo=$ac_try;;
31144esac
31145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31146 (eval "$ac_try") 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; }; then
31150 ac_cv_huge_val_sanity=yes
31151else
31152 echo "$as_me: program exited with status $ac_status" >&5
31153echo "$as_me: failed program was:" >&5
31154sed 's/^/| /' conftest.$ac_ext >&5
31155
31156( exit $ac_status )
31157ac_cv_huge_val_sanity=no
31158fi
31159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31160fi
31161
31162
31163 ac_ext=c
31164ac_cpp='$CPP $CPPFLAGS'
31165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31167ac_compiler_gnu=$ac_cv_c_compiler_gnu
31168
31169
31170fi
31171{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31172echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31173 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31174
31175
31176{ echo "$as_me:$LINENO: checking for pid_t" >&5
31177echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31178if test "${ac_cv_type_pid_t+set}" = set; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31180else
31181 cat >conftest.$ac_ext <<_ACEOF
31182/* confdefs.h. */
31183_ACEOF
31184cat confdefs.h >>conftest.$ac_ext
31185cat >>conftest.$ac_ext <<_ACEOF
31186/* end confdefs.h. */
31187$ac_includes_default
31188typedef pid_t ac__type_new_;
31189int
31190main ()
31191{
31192if ((ac__type_new_ *) 0)
31193 return 0;
31194if (sizeof (ac__type_new_))
31195 return 0;
31196 ;
31197 return 0;
31198}
31199_ACEOF
31200rm -f conftest.$ac_objext
31201if { (ac_try="$ac_compile"
31202case "(($ac_try" in
31203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31204 *) ac_try_echo=$ac_try;;
31205esac
31206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31207 (eval "$ac_compile") 2>conftest.er1
31208 ac_status=$?
31209 grep -v '^ *+' conftest.er1 >conftest.err
31210 rm -f conftest.er1
31211 cat conftest.err >&5
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031213 (exit $ac_status); } &&
31214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31215 { (case "(($ac_try" in
31216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31217 *) ac_try_echo=$ac_try;;
31218esac
31219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31220 (eval "$ac_try") 2>&5
31221 ac_status=$?
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); }; } &&
31224 { ac_try='test -s conftest.$ac_objext'
31225 { (case "(($ac_try" in
31226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31227 *) ac_try_echo=$ac_try;;
31228esac
31229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230 (eval "$ac_try") 2>&5
31231 ac_status=$?
31232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031234 ac_cv_type_pid_t=yes
31235else
31236 echo "$as_me: failed program was:" >&5
31237sed 's/^/| /' conftest.$ac_ext >&5
31238
31239 ac_cv_type_pid_t=no
31240fi
31241
31242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31243fi
31244{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31245echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31246if test $ac_cv_type_pid_t = yes; then
31247 :
31248else
31249
31250cat >>confdefs.h <<_ACEOF
31251#define pid_t int
31252_ACEOF
31253
31254fi
31255
31256{ echo "$as_me:$LINENO: checking for size_t" >&5
31257echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31258if test "${ac_cv_type_size_t+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31260else
31261 cat >conftest.$ac_ext <<_ACEOF
31262/* confdefs.h. */
31263_ACEOF
31264cat confdefs.h >>conftest.$ac_ext
31265cat >>conftest.$ac_ext <<_ACEOF
31266/* end confdefs.h. */
31267$ac_includes_default
31268typedef size_t ac__type_new_;
31269int
31270main ()
31271{
31272if ((ac__type_new_ *) 0)
31273 return 0;
31274if (sizeof (ac__type_new_))
31275 return 0;
31276 ;
31277 return 0;
31278}
31279_ACEOF
31280rm -f conftest.$ac_objext
31281if { (ac_try="$ac_compile"
31282case "(($ac_try" in
31283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31284 *) ac_try_echo=$ac_try;;
31285esac
31286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31287 (eval "$ac_compile") 2>conftest.er1
31288 ac_status=$?
31289 grep -v '^ *+' conftest.er1 >conftest.err
31290 rm -f conftest.er1
31291 cat conftest.err >&5
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031293 (exit $ac_status); } &&
31294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31295 { (case "(($ac_try" in
31296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31297 *) ac_try_echo=$ac_try;;
31298esac
31299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31300 (eval "$ac_try") 2>&5
31301 ac_status=$?
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; } &&
31304 { ac_try='test -s conftest.$ac_objext'
31305 { (case "(($ac_try" in
31306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31307 *) ac_try_echo=$ac_try;;
31308esac
31309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31310 (eval "$ac_try") 2>&5
31311 ac_status=$?
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031314 ac_cv_type_size_t=yes
31315else
31316 echo "$as_me: failed program was:" >&5
31317sed 's/^/| /' conftest.$ac_ext >&5
31318
31319 ac_cv_type_size_t=no
31320fi
31321
31322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31323fi
31324{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31325echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31326if test $ac_cv_type_size_t = yes; then
31327 :
31328else
31329
31330cat >>confdefs.h <<_ACEOF
31331#define size_t unsigned int
31332_ACEOF
31333
31334fi
31335
31336{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31337echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
31338if test "${ac_cv_type_signal+set}" = set; then
31339 echo $ECHO_N "(cached) $ECHO_C" >&6
31340else
31341 cat >conftest.$ac_ext <<_ACEOF
31342/* confdefs.h. */
31343_ACEOF
31344cat confdefs.h >>conftest.$ac_ext
31345cat >>conftest.$ac_ext <<_ACEOF
31346/* end confdefs.h. */
31347#include <sys/types.h>
31348#include <signal.h>
31349
31350int
31351main ()
31352{
31353return *(signal (0, 0)) (0) == 1;
31354 ;
31355 return 0;
31356}
31357_ACEOF
31358rm -f conftest.$ac_objext
31359if { (ac_try="$ac_compile"
31360case "(($ac_try" in
31361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362 *) ac_try_echo=$ac_try;;
31363esac
31364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365 (eval "$ac_compile") 2>conftest.er1
31366 ac_status=$?
31367 grep -v '^ *+' conftest.er1 >conftest.err
31368 rm -f conftest.er1
31369 cat conftest.err >&5
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031371 (exit $ac_status); } &&
31372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31373 { (case "(($ac_try" in
31374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375 *) ac_try_echo=$ac_try;;
31376esac
31377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31378 (eval "$ac_try") 2>&5
31379 ac_status=$?
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); }; } &&
31382 { ac_try='test -s conftest.$ac_objext'
31383 { (case "(($ac_try" in
31384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385 *) ac_try_echo=$ac_try;;
31386esac
31387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_try") 2>&5
31389 ac_status=$?
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031392 ac_cv_type_signal=int
31393else
31394 echo "$as_me: failed program was:" >&5
31395sed 's/^/| /' conftest.$ac_ext >&5
31396
31397 ac_cv_type_signal=void
31398fi
31399
31400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31401fi
31402{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31403echo "${ECHO_T}$ac_cv_type_signal" >&6; }
31404
31405cat >>confdefs.h <<_ACEOF
31406#define RETSIGTYPE $ac_cv_type_signal
31407_ACEOF
31408
31409
31410{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31411echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
31412if test "${ac_cv_struct_tm+set}" = set; then
31413 echo $ECHO_N "(cached) $ECHO_C" >&6
31414else
31415 cat >conftest.$ac_ext <<_ACEOF
31416/* confdefs.h. */
31417_ACEOF
31418cat confdefs.h >>conftest.$ac_ext
31419cat >>conftest.$ac_ext <<_ACEOF
31420/* end confdefs.h. */
31421#include <sys/types.h>
31422#include <time.h>
31423
31424int
31425main ()
31426{
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031427struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031428 ;
31429 return 0;
31430}
31431_ACEOF
31432rm -f conftest.$ac_objext
31433if { (ac_try="$ac_compile"
31434case "(($ac_try" in
31435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31436 *) ac_try_echo=$ac_try;;
31437esac
31438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31439 (eval "$ac_compile") 2>conftest.er1
31440 ac_status=$?
31441 grep -v '^ *+' conftest.er1 >conftest.err
31442 rm -f conftest.er1
31443 cat conftest.err >&5
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031445 (exit $ac_status); } &&
31446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31447 { (case "(($ac_try" in
31448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31449 *) ac_try_echo=$ac_try;;
31450esac
31451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452 (eval "$ac_try") 2>&5
31453 ac_status=$?
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; } &&
31456 { ac_try='test -s conftest.$ac_objext'
31457 { (case "(($ac_try" in
31458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31459 *) ac_try_echo=$ac_try;;
31460esac
31461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31462 (eval "$ac_try") 2>&5
31463 ac_status=$?
31464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031466 ac_cv_struct_tm=time.h
31467else
31468 echo "$as_me: failed program was:" >&5
31469sed 's/^/| /' conftest.$ac_ext >&5
31470
31471 ac_cv_struct_tm=sys/time.h
31472fi
31473
31474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31475fi
31476{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31477echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
31478if test $ac_cv_struct_tm = sys/time.h; then
31479
31480cat >>confdefs.h <<\_ACEOF
31481#define TM_IN_SYS_TIME 1
31482_ACEOF
31483
31484fi
31485
31486{ echo "$as_me:$LINENO: checking for int64_t" >&5
31487echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
31488if test "${ac_cv_type_int64_t+set}" = set; then
31489 echo $ECHO_N "(cached) $ECHO_C" >&6
31490else
31491 cat >conftest.$ac_ext <<_ACEOF
31492/* confdefs.h. */
31493_ACEOF
31494cat confdefs.h >>conftest.$ac_ext
31495cat >>conftest.$ac_ext <<_ACEOF
31496/* end confdefs.h. */
31497$ac_includes_default
31498typedef int64_t ac__type_new_;
31499int
31500main ()
31501{
31502if ((ac__type_new_ *) 0)
31503 return 0;
31504if (sizeof (ac__type_new_))
31505 return 0;
31506 ;
31507 return 0;
31508}
31509_ACEOF
31510rm -f conftest.$ac_objext
31511if { (ac_try="$ac_compile"
31512case "(($ac_try" in
31513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31514 *) ac_try_echo=$ac_try;;
31515esac
31516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31517 (eval "$ac_compile") 2>conftest.er1
31518 ac_status=$?
31519 grep -v '^ *+' conftest.er1 >conftest.err
31520 rm -f conftest.er1
31521 cat conftest.err >&5
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031523 (exit $ac_status); } &&
31524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31525 { (case "(($ac_try" in
31526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31527 *) ac_try_echo=$ac_try;;
31528esac
31529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31530 (eval "$ac_try") 2>&5
31531 ac_status=$?
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); }; } &&
31534 { ac_try='test -s conftest.$ac_objext'
31535 { (case "(($ac_try" in
31536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31537 *) ac_try_echo=$ac_try;;
31538esac
31539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31540 (eval "$ac_try") 2>&5
31541 ac_status=$?
31542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31543 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031544 ac_cv_type_int64_t=yes
31545else
31546 echo "$as_me: failed program was:" >&5
31547sed 's/^/| /' conftest.$ac_ext >&5
31548
31549 ac_cv_type_int64_t=no
31550fi
31551
31552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31553fi
31554{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31555echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
31556if test $ac_cv_type_int64_t = yes; then
31557
31558cat >>confdefs.h <<_ACEOF
31559#define HAVE_INT64_T 1
31560_ACEOF
31561
31562
31563else
31564 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31565echo "$as_me: error: Type int64_t required but not found" >&2;}
31566 { (exit 1); exit 1; }; }
31567fi
31568
31569{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31570echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
31571if test "${ac_cv_type_uint64_t+set}" = set; then
31572 echo $ECHO_N "(cached) $ECHO_C" >&6
31573else
31574 cat >conftest.$ac_ext <<_ACEOF
31575/* confdefs.h. */
31576_ACEOF
31577cat confdefs.h >>conftest.$ac_ext
31578cat >>conftest.$ac_ext <<_ACEOF
31579/* end confdefs.h. */
31580$ac_includes_default
31581typedef uint64_t ac__type_new_;
31582int
31583main ()
31584{
31585if ((ac__type_new_ *) 0)
31586 return 0;
31587if (sizeof (ac__type_new_))
31588 return 0;
31589 ;
31590 return 0;
31591}
31592_ACEOF
31593rm -f conftest.$ac_objext
31594if { (ac_try="$ac_compile"
31595case "(($ac_try" in
31596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31597 *) ac_try_echo=$ac_try;;
31598esac
31599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600 (eval "$ac_compile") 2>conftest.er1
31601 ac_status=$?
31602 grep -v '^ *+' conftest.er1 >conftest.err
31603 rm -f conftest.er1
31604 cat conftest.err >&5
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031606 (exit $ac_status); } &&
31607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31608 { (case "(($ac_try" in
31609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610 *) ac_try_echo=$ac_try;;
31611esac
31612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613 (eval "$ac_try") 2>&5
31614 ac_status=$?
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); }; } &&
31617 { ac_try='test -s conftest.$ac_objext'
31618 { (case "(($ac_try" in
31619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31620 *) ac_try_echo=$ac_try;;
31621esac
31622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31623 (eval "$ac_try") 2>&5
31624 ac_status=$?
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031627 ac_cv_type_uint64_t=yes
31628else
31629 echo "$as_me: failed program was:" >&5
31630sed 's/^/| /' conftest.$ac_ext >&5
31631
31632 ac_cv_type_uint64_t=no
31633fi
31634
31635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31636fi
31637{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31638echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
31639if test $ac_cv_type_uint64_t = yes; then
31640
31641cat >>confdefs.h <<_ACEOF
31642#define HAVE_UINT64_T 1
31643_ACEOF
31644
31645
31646else
31647 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31648echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
31649if test "${ac_cv_type_u_int64_t+set}" = set; then
31650 echo $ECHO_N "(cached) $ECHO_C" >&6
31651else
31652 cat >conftest.$ac_ext <<_ACEOF
31653/* confdefs.h. */
31654_ACEOF
31655cat confdefs.h >>conftest.$ac_ext
31656cat >>conftest.$ac_ext <<_ACEOF
31657/* end confdefs.h. */
31658$ac_includes_default
31659typedef u_int64_t ac__type_new_;
31660int
31661main ()
31662{
31663if ((ac__type_new_ *) 0)
31664 return 0;
31665if (sizeof (ac__type_new_))
31666 return 0;
31667 ;
31668 return 0;
31669}
31670_ACEOF
31671rm -f conftest.$ac_objext
31672if { (ac_try="$ac_compile"
31673case "(($ac_try" in
31674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31675 *) ac_try_echo=$ac_try;;
31676esac
31677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31678 (eval "$ac_compile") 2>conftest.er1
31679 ac_status=$?
31680 grep -v '^ *+' conftest.er1 >conftest.err
31681 rm -f conftest.er1
31682 cat conftest.err >&5
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031684 (exit $ac_status); } &&
31685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31686 { (case "(($ac_try" in
31687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31688 *) ac_try_echo=$ac_try;;
31689esac
31690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31691 (eval "$ac_try") 2>&5
31692 ac_status=$?
31693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694 (exit $ac_status); }; } &&
31695 { ac_try='test -s conftest.$ac_objext'
31696 { (case "(($ac_try" in
31697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31698 *) ac_try_echo=$ac_try;;
31699esac
31700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31701 (eval "$ac_try") 2>&5
31702 ac_status=$?
31703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31704 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031705 ac_cv_type_u_int64_t=yes
31706else
31707 echo "$as_me: failed program was:" >&5
31708sed 's/^/| /' conftest.$ac_ext >&5
31709
31710 ac_cv_type_u_int64_t=no
31711fi
31712
31713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31714fi
31715{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31716echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
31717if test $ac_cv_type_u_int64_t = yes; then
31718
31719cat >>confdefs.h <<_ACEOF
31720#define HAVE_U_INT64_T 1
31721_ACEOF
31722
31723
31724else
31725 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31726echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31727 { (exit 1); exit 1; }; }
31728fi
31729
31730fi
31731
31732
31733
31734
31735
31736
31737
31738
31739
31740
31741for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
31742do
31743as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31744{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31746if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31747 echo $ECHO_N "(cached) $ECHO_C" >&6
31748else
31749 cat >conftest.$ac_ext <<_ACEOF
31750/* confdefs.h. */
31751_ACEOF
31752cat confdefs.h >>conftest.$ac_ext
31753cat >>conftest.$ac_ext <<_ACEOF
31754/* end confdefs.h. */
31755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31757#define $ac_func innocuous_$ac_func
31758
31759/* System header to define __stub macros and hopefully few prototypes,
31760 which can conflict with char $ac_func (); below.
31761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31762 <limits.h> exists even on freestanding compilers. */
31763
31764#ifdef __STDC__
31765# include <limits.h>
31766#else
31767# include <assert.h>
31768#endif
31769
31770#undef $ac_func
31771
31772/* Override any GCC internal prototype to avoid an error.
31773 Use char because int might match the return type of a GCC
31774 builtin and then its argument prototype would still apply. */
31775#ifdef __cplusplus
31776extern "C"
31777#endif
31778char $ac_func ();
31779/* The GNU C library defines this for functions which it implements
31780 to always fail with ENOSYS. Some functions are actually named
31781 something starting with __ and the normal name is an alias. */
31782#if defined __stub_$ac_func || defined __stub___$ac_func
31783choke me
31784#endif
31785
31786int
31787main ()
31788{
31789return $ac_func ();
31790 ;
31791 return 0;
31792}
31793_ACEOF
31794rm -f conftest.$ac_objext conftest$ac_exeext
31795if { (ac_try="$ac_link"
31796case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31799esac
31800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_link") 2>conftest.er1
31802 ac_status=$?
31803 grep -v '^ *+' conftest.er1 >conftest.err
31804 rm -f conftest.er1
31805 cat conftest.err >&5
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031807 (exit $ac_status); } &&
31808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31809 { (case "(($ac_try" in
31810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811 *) ac_try_echo=$ac_try;;
31812esac
31813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814 (eval "$ac_try") 2>&5
31815 ac_status=$?
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; } &&
31818 { ac_try='test -s conftest$ac_exeext'
31819 { (case "(($ac_try" in
31820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821 *) ac_try_echo=$ac_try;;
31822esac
31823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824 (eval "$ac_try") 2>&5
31825 ac_status=$?
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031828 eval "$as_ac_var=yes"
31829else
31830 echo "$as_me: failed program was:" >&5
31831sed 's/^/| /' conftest.$ac_ext >&5
31832
31833 eval "$as_ac_var=no"
31834fi
31835
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031836rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031837 conftest$ac_exeext conftest.$ac_ext
31838fi
31839ac_res=`eval echo '${'$as_ac_var'}'`
31840 { echo "$as_me:$LINENO: result: $ac_res" >&5
31841echo "${ECHO_T}$ac_res" >&6; }
31842if test `eval echo '${'$as_ac_var'}'` = yes; then
31843 cat >>confdefs.h <<_ACEOF
31844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31845_ACEOF
31846
31847fi
31848done
31849
31850
31851
31852
31853
31854for ac_func in powf fmodf strtof round
31855do
31856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31857{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31859if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31860 echo $ECHO_N "(cached) $ECHO_C" >&6
31861else
31862 cat >conftest.$ac_ext <<_ACEOF
31863/* confdefs.h. */
31864_ACEOF
31865cat confdefs.h >>conftest.$ac_ext
31866cat >>conftest.$ac_ext <<_ACEOF
31867/* end confdefs.h. */
31868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31870#define $ac_func innocuous_$ac_func
31871
31872/* System header to define __stub macros and hopefully few prototypes,
31873 which can conflict with char $ac_func (); below.
31874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31875 <limits.h> exists even on freestanding compilers. */
31876
31877#ifdef __STDC__
31878# include <limits.h>
31879#else
31880# include <assert.h>
31881#endif
31882
31883#undef $ac_func
31884
31885/* Override any GCC internal prototype to avoid an error.
31886 Use char because int might match the return type of a GCC
31887 builtin and then its argument prototype would still apply. */
31888#ifdef __cplusplus
31889extern "C"
31890#endif
31891char $ac_func ();
31892/* The GNU C library defines this for functions which it implements
31893 to always fail with ENOSYS. Some functions are actually named
31894 something starting with __ and the normal name is an alias. */
31895#if defined __stub_$ac_func || defined __stub___$ac_func
31896choke me
31897#endif
31898
31899int
31900main ()
31901{
31902return $ac_func ();
31903 ;
31904 return 0;
31905}
31906_ACEOF
31907rm -f conftest.$ac_objext conftest$ac_exeext
31908if { (ac_try="$ac_link"
31909case "(($ac_try" in
31910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911 *) ac_try_echo=$ac_try;;
31912esac
31913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914 (eval "$ac_link") 2>conftest.er1
31915 ac_status=$?
31916 grep -v '^ *+' conftest.er1 >conftest.err
31917 rm -f conftest.er1
31918 cat conftest.err >&5
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031920 (exit $ac_status); } &&
31921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31922 { (case "(($ac_try" in
31923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924 *) ac_try_echo=$ac_try;;
31925esac
31926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927 (eval "$ac_try") 2>&5
31928 ac_status=$?
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); }; } &&
31931 { ac_try='test -s conftest$ac_exeext'
31932 { (case "(($ac_try" in
31933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31934 *) ac_try_echo=$ac_try;;
31935esac
31936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31937 (eval "$ac_try") 2>&5
31938 ac_status=$?
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031941 eval "$as_ac_var=yes"
31942else
31943 echo "$as_me: failed program was:" >&5
31944sed 's/^/| /' conftest.$ac_ext >&5
31945
31946 eval "$as_ac_var=no"
31947fi
31948
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031949rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031950 conftest$ac_exeext conftest.$ac_ext
31951fi
31952ac_res=`eval echo '${'$as_ac_var'}'`
31953 { echo "$as_me:$LINENO: result: $ac_res" >&5
31954echo "${ECHO_T}$ac_res" >&6; }
31955if test `eval echo '${'$as_ac_var'}'` = yes; then
31956 cat >>confdefs.h <<_ACEOF
31957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31958_ACEOF
31959
31960fi
31961done
31962
31963
31964
31965
31966
31967
31968for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31969do
31970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31971{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31973if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31974 echo $ECHO_N "(cached) $ECHO_C" >&6
31975else
31976 cat >conftest.$ac_ext <<_ACEOF
31977/* confdefs.h. */
31978_ACEOF
31979cat confdefs.h >>conftest.$ac_ext
31980cat >>conftest.$ac_ext <<_ACEOF
31981/* end confdefs.h. */
31982/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31984#define $ac_func innocuous_$ac_func
31985
31986/* System header to define __stub macros and hopefully few prototypes,
31987 which can conflict with char $ac_func (); below.
31988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31989 <limits.h> exists even on freestanding compilers. */
31990
31991#ifdef __STDC__
31992# include <limits.h>
31993#else
31994# include <assert.h>
31995#endif
31996
31997#undef $ac_func
31998
31999/* Override any GCC internal prototype to avoid an error.
32000 Use char because int might match the return type of a GCC
32001 builtin and then its argument prototype would still apply. */
32002#ifdef __cplusplus
32003extern "C"
32004#endif
32005char $ac_func ();
32006/* The GNU C library defines this for functions which it implements
32007 to always fail with ENOSYS. Some functions are actually named
32008 something starting with __ and the normal name is an alias. */
32009#if defined __stub_$ac_func || defined __stub___$ac_func
32010choke me
32011#endif
32012
32013int
32014main ()
32015{
32016return $ac_func ();
32017 ;
32018 return 0;
32019}
32020_ACEOF
32021rm -f conftest.$ac_objext conftest$ac_exeext
32022if { (ac_try="$ac_link"
32023case "(($ac_try" in
32024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32025 *) ac_try_echo=$ac_try;;
32026esac
32027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32028 (eval "$ac_link") 2>conftest.er1
32029 ac_status=$?
32030 grep -v '^ *+' conftest.er1 >conftest.err
32031 rm -f conftest.er1
32032 cat conftest.err >&5
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032034 (exit $ac_status); } &&
32035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32036 { (case "(($ac_try" in
32037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32038 *) ac_try_echo=$ac_try;;
32039esac
32040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32041 (eval "$ac_try") 2>&5
32042 ac_status=$?
32043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044 (exit $ac_status); }; } &&
32045 { ac_try='test -s conftest$ac_exeext'
32046 { (case "(($ac_try" in
32047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32048 *) ac_try_echo=$ac_try;;
32049esac
32050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32051 (eval "$ac_try") 2>&5
32052 ac_status=$?
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032055 eval "$as_ac_var=yes"
32056else
32057 echo "$as_me: failed program was:" >&5
32058sed 's/^/| /' conftest.$ac_ext >&5
32059
32060 eval "$as_ac_var=no"
32061fi
32062
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032063rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032064 conftest$ac_exeext conftest.$ac_ext
32065fi
32066ac_res=`eval echo '${'$as_ac_var'}'`
32067 { echo "$as_me:$LINENO: result: $ac_res" >&5
32068echo "${ECHO_T}$ac_res" >&6; }
32069if test `eval echo '${'$as_ac_var'}'` = yes; then
32070 cat >>confdefs.h <<_ACEOF
32071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32072_ACEOF
32073
32074fi
32075done
32076
32077
32078
32079
32080for ac_func in isatty mkdtemp mkstemp
32081do
32082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32083{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32085if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32086 echo $ECHO_N "(cached) $ECHO_C" >&6
32087else
32088 cat >conftest.$ac_ext <<_ACEOF
32089/* confdefs.h. */
32090_ACEOF
32091cat confdefs.h >>conftest.$ac_ext
32092cat >>conftest.$ac_ext <<_ACEOF
32093/* end confdefs.h. */
32094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32096#define $ac_func innocuous_$ac_func
32097
32098/* System header to define __stub macros and hopefully few prototypes,
32099 which can conflict with char $ac_func (); below.
32100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32101 <limits.h> exists even on freestanding compilers. */
32102
32103#ifdef __STDC__
32104# include <limits.h>
32105#else
32106# include <assert.h>
32107#endif
32108
32109#undef $ac_func
32110
32111/* Override any GCC internal prototype to avoid an error.
32112 Use char because int might match the return type of a GCC
32113 builtin and then its argument prototype would still apply. */
32114#ifdef __cplusplus
32115extern "C"
32116#endif
32117char $ac_func ();
32118/* The GNU C library defines this for functions which it implements
32119 to always fail with ENOSYS. Some functions are actually named
32120 something starting with __ and the normal name is an alias. */
32121#if defined __stub_$ac_func || defined __stub___$ac_func
32122choke me
32123#endif
32124
32125int
32126main ()
32127{
32128return $ac_func ();
32129 ;
32130 return 0;
32131}
32132_ACEOF
32133rm -f conftest.$ac_objext conftest$ac_exeext
32134if { (ac_try="$ac_link"
32135case "(($ac_try" in
32136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137 *) ac_try_echo=$ac_try;;
32138esac
32139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140 (eval "$ac_link") 2>conftest.er1
32141 ac_status=$?
32142 grep -v '^ *+' conftest.er1 >conftest.err
32143 rm -f conftest.er1
32144 cat conftest.err >&5
32145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032146 (exit $ac_status); } &&
32147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32148 { (case "(($ac_try" in
32149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32150 *) ac_try_echo=$ac_try;;
32151esac
32152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32153 (eval "$ac_try") 2>&5
32154 ac_status=$?
32155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 (exit $ac_status); }; } &&
32157 { ac_try='test -s conftest$ac_exeext'
32158 { (case "(($ac_try" in
32159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32160 *) ac_try_echo=$ac_try;;
32161esac
32162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32163 (eval "$ac_try") 2>&5
32164 ac_status=$?
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032167 eval "$as_ac_var=yes"
32168else
32169 echo "$as_me: failed program was:" >&5
32170sed 's/^/| /' conftest.$ac_ext >&5
32171
32172 eval "$as_ac_var=no"
32173fi
32174
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032175rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032176 conftest$ac_exeext conftest.$ac_ext
32177fi
32178ac_res=`eval echo '${'$as_ac_var'}'`
32179 { echo "$as_me:$LINENO: result: $ac_res" >&5
32180echo "${ECHO_T}$ac_res" >&6; }
32181if test `eval echo '${'$as_ac_var'}'` = yes; then
32182 cat >>confdefs.h <<_ACEOF
32183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32184_ACEOF
32185
32186fi
32187done
32188
32189
32190
32191
32192
32193
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000032194for ac_func in mktemp realpath sbrk setrlimit strdup
32195do
32196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32197{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32199if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32200 echo $ECHO_N "(cached) $ECHO_C" >&6
32201else
32202 cat >conftest.$ac_ext <<_ACEOF
32203/* confdefs.h. */
32204_ACEOF
32205cat confdefs.h >>conftest.$ac_ext
32206cat >>conftest.$ac_ext <<_ACEOF
32207/* end confdefs.h. */
32208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32210#define $ac_func innocuous_$ac_func
32211
32212/* System header to define __stub macros and hopefully few prototypes,
32213 which can conflict with char $ac_func (); below.
32214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32215 <limits.h> exists even on freestanding compilers. */
32216
32217#ifdef __STDC__
32218# include <limits.h>
32219#else
32220# include <assert.h>
32221#endif
32222
32223#undef $ac_func
32224
32225/* Override any GCC internal prototype to avoid an error.
32226 Use char because int might match the return type of a GCC
32227 builtin and then its argument prototype would still apply. */
32228#ifdef __cplusplus
32229extern "C"
32230#endif
32231char $ac_func ();
32232/* The GNU C library defines this for functions which it implements
32233 to always fail with ENOSYS. Some functions are actually named
32234 something starting with __ and the normal name is an alias. */
32235#if defined __stub_$ac_func || defined __stub___$ac_func
32236choke me
32237#endif
32238
32239int
32240main ()
32241{
32242return $ac_func ();
32243 ;
32244 return 0;
32245}
32246_ACEOF
32247rm -f conftest.$ac_objext conftest$ac_exeext
32248if { (ac_try="$ac_link"
32249case "(($ac_try" in
32250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32251 *) ac_try_echo=$ac_try;;
32252esac
32253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32254 (eval "$ac_link") 2>conftest.er1
32255 ac_status=$?
32256 grep -v '^ *+' conftest.er1 >conftest.err
32257 rm -f conftest.er1
32258 cat conftest.err >&5
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); } &&
32261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32262 { (case "(($ac_try" in
32263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264 *) ac_try_echo=$ac_try;;
32265esac
32266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_try") 2>&5
32268 ac_status=$?
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); }; } &&
32271 { ac_try='test -s conftest$ac_exeext'
32272 { (case "(($ac_try" in
32273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274 *) ac_try_echo=$ac_try;;
32275esac
32276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32277 (eval "$ac_try") 2>&5
32278 ac_status=$?
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; }; then
32281 eval "$as_ac_var=yes"
32282else
32283 echo "$as_me: failed program was:" >&5
32284sed 's/^/| /' conftest.$ac_ext >&5
32285
32286 eval "$as_ac_var=no"
32287fi
32288
32289rm -f core conftest.err conftest.$ac_objext \
32290 conftest$ac_exeext conftest.$ac_ext
32291fi
32292ac_res=`eval echo '${'$as_ac_var'}'`
32293 { echo "$as_me:$LINENO: result: $ac_res" >&5
32294echo "${ECHO_T}$ac_res" >&6; }
32295if test `eval echo '${'$as_ac_var'}'` = yes; then
32296 cat >>confdefs.h <<_ACEOF
32297#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32298_ACEOF
32299
32300fi
32301done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032302
32303
Jeffrey Yasskinf99c0642009-07-01 18:30:10 +000032304
32305
32306for ac_func in strerror strerror_r strerror_s
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032307do
32308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32309{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32311if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32312 echo $ECHO_N "(cached) $ECHO_C" >&6
32313else
32314 cat >conftest.$ac_ext <<_ACEOF
32315/* confdefs.h. */
32316_ACEOF
32317cat confdefs.h >>conftest.$ac_ext
32318cat >>conftest.$ac_ext <<_ACEOF
32319/* end confdefs.h. */
32320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32322#define $ac_func innocuous_$ac_func
32323
32324/* System header to define __stub macros and hopefully few prototypes,
32325 which can conflict with char $ac_func (); below.
32326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32327 <limits.h> exists even on freestanding compilers. */
32328
32329#ifdef __STDC__
32330# include <limits.h>
32331#else
32332# include <assert.h>
32333#endif
32334
32335#undef $ac_func
32336
32337/* Override any GCC internal prototype to avoid an error.
32338 Use char because int might match the return type of a GCC
32339 builtin and then its argument prototype would still apply. */
32340#ifdef __cplusplus
32341extern "C"
32342#endif
32343char $ac_func ();
32344/* The GNU C library defines this for functions which it implements
32345 to always fail with ENOSYS. Some functions are actually named
32346 something starting with __ and the normal name is an alias. */
32347#if defined __stub_$ac_func || defined __stub___$ac_func
32348choke me
32349#endif
32350
32351int
32352main ()
32353{
32354return $ac_func ();
32355 ;
32356 return 0;
32357}
32358_ACEOF
32359rm -f conftest.$ac_objext conftest$ac_exeext
32360if { (ac_try="$ac_link"
32361case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32364esac
32365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_link") 2>conftest.er1
32367 ac_status=$?
32368 grep -v '^ *+' conftest.er1 >conftest.err
32369 rm -f conftest.er1
32370 cat conftest.err >&5
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032372 (exit $ac_status); } &&
32373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32374 { (case "(($ac_try" in
32375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32376 *) ac_try_echo=$ac_try;;
32377esac
32378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32379 (eval "$ac_try") 2>&5
32380 ac_status=$?
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); }; } &&
32383 { ac_try='test -s conftest$ac_exeext'
32384 { (case "(($ac_try" in
32385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32386 *) ac_try_echo=$ac_try;;
32387esac
32388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32389 (eval "$ac_try") 2>&5
32390 ac_status=$?
32391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032393 eval "$as_ac_var=yes"
32394else
32395 echo "$as_me: failed program was:" >&5
32396sed 's/^/| /' conftest.$ac_ext >&5
32397
32398 eval "$as_ac_var=no"
32399fi
32400
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032401rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032402 conftest$ac_exeext conftest.$ac_ext
32403fi
32404ac_res=`eval echo '${'$as_ac_var'}'`
32405 { echo "$as_me:$LINENO: result: $ac_res" >&5
32406echo "${ECHO_T}$ac_res" >&6; }
32407if test `eval echo '${'$as_ac_var'}'` = yes; then
32408 cat >>confdefs.h <<_ACEOF
32409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32410_ACEOF
32411
32412fi
32413done
32414
32415
32416
32417
32418
32419for ac_func in strtoll strtoq sysconf malloc_zone_statistics
32420do
32421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32422{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32424if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32425 echo $ECHO_N "(cached) $ECHO_C" >&6
32426else
32427 cat >conftest.$ac_ext <<_ACEOF
32428/* confdefs.h. */
32429_ACEOF
32430cat confdefs.h >>conftest.$ac_ext
32431cat >>conftest.$ac_ext <<_ACEOF
32432/* end confdefs.h. */
32433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32435#define $ac_func innocuous_$ac_func
32436
32437/* System header to define __stub macros and hopefully few prototypes,
32438 which can conflict with char $ac_func (); below.
32439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32440 <limits.h> exists even on freestanding compilers. */
32441
32442#ifdef __STDC__
32443# include <limits.h>
32444#else
32445# include <assert.h>
32446#endif
32447
32448#undef $ac_func
32449
32450/* Override any GCC internal prototype to avoid an error.
32451 Use char because int might match the return type of a GCC
32452 builtin and then its argument prototype would still apply. */
32453#ifdef __cplusplus
32454extern "C"
32455#endif
32456char $ac_func ();
32457/* The GNU C library defines this for functions which it implements
32458 to always fail with ENOSYS. Some functions are actually named
32459 something starting with __ and the normal name is an alias. */
32460#if defined __stub_$ac_func || defined __stub___$ac_func
32461choke me
32462#endif
32463
32464int
32465main ()
32466{
32467return $ac_func ();
32468 ;
32469 return 0;
32470}
32471_ACEOF
32472rm -f conftest.$ac_objext conftest$ac_exeext
32473if { (ac_try="$ac_link"
32474case "(($ac_try" in
32475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476 *) ac_try_echo=$ac_try;;
32477esac
32478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479 (eval "$ac_link") 2>conftest.er1
32480 ac_status=$?
32481 grep -v '^ *+' conftest.er1 >conftest.err
32482 rm -f conftest.er1
32483 cat conftest.err >&5
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032485 (exit $ac_status); } &&
32486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32487 { (case "(($ac_try" in
32488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32489 *) ac_try_echo=$ac_try;;
32490esac
32491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32492 (eval "$ac_try") 2>&5
32493 ac_status=$?
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); }; } &&
32496 { ac_try='test -s conftest$ac_exeext'
32497 { (case "(($ac_try" in
32498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32499 *) ac_try_echo=$ac_try;;
32500esac
32501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32502 (eval "$ac_try") 2>&5
32503 ac_status=$?
32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032506 eval "$as_ac_var=yes"
32507else
32508 echo "$as_me: failed program was:" >&5
32509sed 's/^/| /' conftest.$ac_ext >&5
32510
32511 eval "$as_ac_var=no"
32512fi
32513
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032514rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032515 conftest$ac_exeext conftest.$ac_ext
32516fi
32517ac_res=`eval echo '${'$as_ac_var'}'`
32518 { echo "$as_me:$LINENO: result: $ac_res" >&5
32519echo "${ECHO_T}$ac_res" >&6; }
32520if test `eval echo '${'$as_ac_var'}'` = yes; then
32521 cat >>confdefs.h <<_ACEOF
32522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32523_ACEOF
32524
32525fi
32526done
32527
32528
32529
32530
32531
32532for ac_func in setjmp longjmp sigsetjmp siglongjmp
32533do
32534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32535{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32537if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32538 echo $ECHO_N "(cached) $ECHO_C" >&6
32539else
32540 cat >conftest.$ac_ext <<_ACEOF
32541/* confdefs.h. */
32542_ACEOF
32543cat confdefs.h >>conftest.$ac_ext
32544cat >>conftest.$ac_ext <<_ACEOF
32545/* end confdefs.h. */
32546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32548#define $ac_func innocuous_$ac_func
32549
32550/* System header to define __stub macros and hopefully few prototypes,
32551 which can conflict with char $ac_func (); below.
32552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32553 <limits.h> exists even on freestanding compilers. */
32554
32555#ifdef __STDC__
32556# include <limits.h>
32557#else
32558# include <assert.h>
32559#endif
32560
32561#undef $ac_func
32562
32563/* Override any GCC internal prototype to avoid an error.
32564 Use char because int might match the return type of a GCC
32565 builtin and then its argument prototype would still apply. */
32566#ifdef __cplusplus
32567extern "C"
32568#endif
32569char $ac_func ();
32570/* The GNU C library defines this for functions which it implements
32571 to always fail with ENOSYS. Some functions are actually named
32572 something starting with __ and the normal name is an alias. */
32573#if defined __stub_$ac_func || defined __stub___$ac_func
32574choke me
32575#endif
32576
32577int
32578main ()
32579{
32580return $ac_func ();
32581 ;
32582 return 0;
32583}
32584_ACEOF
32585rm -f conftest.$ac_objext conftest$ac_exeext
32586if { (ac_try="$ac_link"
32587case "(($ac_try" in
32588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589 *) ac_try_echo=$ac_try;;
32590esac
32591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592 (eval "$ac_link") 2>conftest.er1
32593 ac_status=$?
32594 grep -v '^ *+' conftest.er1 >conftest.err
32595 rm -f conftest.er1
32596 cat conftest.err >&5
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032598 (exit $ac_status); } &&
32599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32600 { (case "(($ac_try" in
32601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32602 *) ac_try_echo=$ac_try;;
32603esac
32604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32605 (eval "$ac_try") 2>&5
32606 ac_status=$?
32607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); }; } &&
32609 { ac_try='test -s conftest$ac_exeext'
32610 { (case "(($ac_try" in
32611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32612 *) ac_try_echo=$ac_try;;
32613esac
32614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32615 (eval "$ac_try") 2>&5
32616 ac_status=$?
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032619 eval "$as_ac_var=yes"
32620else
32621 echo "$as_me: failed program was:" >&5
32622sed 's/^/| /' conftest.$ac_ext >&5
32623
32624 eval "$as_ac_var=no"
32625fi
32626
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032627rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032628 conftest$ac_exeext conftest.$ac_ext
32629fi
32630ac_res=`eval echo '${'$as_ac_var'}'`
32631 { echo "$as_me:$LINENO: result: $ac_res" >&5
32632echo "${ECHO_T}$ac_res" >&6; }
32633if test `eval echo '${'$as_ac_var'}'` = yes; then
32634 cat >>confdefs.h <<_ACEOF
32635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32636_ACEOF
32637
32638fi
32639done
32640
32641{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32642echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
32643if test "${llvm_cv_c_printf_a+set}" = set; then
32644 echo $ECHO_N "(cached) $ECHO_C" >&6
32645else
32646 ac_ext=c
32647ac_cpp='$CPP $CPPFLAGS'
32648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32650ac_compiler_gnu=$ac_cv_c_compiler_gnu
32651
32652 if test "$cross_compiling" = yes; then
32653 llvmac_cv_c_printf_a=no
32654else
32655 cat >conftest.$ac_ext <<_ACEOF
32656
32657 /* confdefs.h. */
32658_ACEOF
32659cat confdefs.h >>conftest.$ac_ext
32660cat >>conftest.$ac_ext <<_ACEOF
32661/* end confdefs.h. */
32662
32663#include <stdio.h>
32664#include <stdlib.h>
32665
32666int
32667main ()
32668{
32669
32670volatile double A, B;
32671char Buffer[100];
32672A = 1;
32673A /= 10.0;
32674sprintf(Buffer, "%a", A);
32675B = atof(Buffer);
32676if (A != B)
32677 return (1);
32678if (A != 0x1.999999999999ap-4)
32679 return (1);
32680return (0);
32681 ;
32682 return 0;
32683}
32684_ACEOF
32685rm -f conftest$ac_exeext
32686if { (ac_try="$ac_link"
32687case "(($ac_try" in
32688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32689 *) ac_try_echo=$ac_try;;
32690esac
32691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32692 (eval "$ac_link") 2>&5
32693 ac_status=$?
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32696 { (case "(($ac_try" in
32697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32698 *) ac_try_echo=$ac_try;;
32699esac
32700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32701 (eval "$ac_try") 2>&5
32702 ac_status=$?
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; }; then
32705 llvm_cv_c_printf_a=yes
32706else
32707 echo "$as_me: program exited with status $ac_status" >&5
32708echo "$as_me: failed program was:" >&5
32709sed 's/^/| /' conftest.$ac_ext >&5
32710
32711( exit $ac_status )
32712llvmac_cv_c_printf_a=no
32713fi
32714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32715fi
32716
32717
32718 ac_ext=c
32719ac_cpp='$CPP $CPPFLAGS'
32720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32722ac_compiler_gnu=$ac_cv_c_compiler_gnu
32723
32724fi
32725{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32726echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
32727 if test "$llvm_cv_c_printf_a" = "yes"; then
32728
32729cat >>confdefs.h <<\_ACEOF
32730#define HAVE_PRINTF_A 1
32731_ACEOF
32732
32733 fi
32734
32735# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32736# for constant arguments. Useless!
32737{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32738echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
32739if test "${ac_cv_working_alloca_h+set}" = set; then
32740 echo $ECHO_N "(cached) $ECHO_C" >&6
32741else
32742 cat >conftest.$ac_ext <<_ACEOF
32743/* confdefs.h. */
32744_ACEOF
32745cat confdefs.h >>conftest.$ac_ext
32746cat >>conftest.$ac_ext <<_ACEOF
32747/* end confdefs.h. */
32748#include <alloca.h>
32749int
32750main ()
32751{
32752char *p = (char *) alloca (2 * sizeof (int));
32753 if (p) return 0;
32754 ;
32755 return 0;
32756}
32757_ACEOF
32758rm -f conftest.$ac_objext conftest$ac_exeext
32759if { (ac_try="$ac_link"
32760case "(($ac_try" in
32761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32762 *) ac_try_echo=$ac_try;;
32763esac
32764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32765 (eval "$ac_link") 2>conftest.er1
32766 ac_status=$?
32767 grep -v '^ *+' conftest.er1 >conftest.err
32768 rm -f conftest.er1
32769 cat conftest.err >&5
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032771 (exit $ac_status); } &&
32772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32773 { (case "(($ac_try" in
32774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32775 *) ac_try_echo=$ac_try;;
32776esac
32777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32778 (eval "$ac_try") 2>&5
32779 ac_status=$?
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; } &&
32782 { ac_try='test -s conftest$ac_exeext'
32783 { (case "(($ac_try" in
32784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32785 *) ac_try_echo=$ac_try;;
32786esac
32787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32788 (eval "$ac_try") 2>&5
32789 ac_status=$?
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032792 ac_cv_working_alloca_h=yes
32793else
32794 echo "$as_me: failed program was:" >&5
32795sed 's/^/| /' conftest.$ac_ext >&5
32796
32797 ac_cv_working_alloca_h=no
32798fi
32799
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032800rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032801 conftest$ac_exeext conftest.$ac_ext
32802fi
32803{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32804echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32805if test $ac_cv_working_alloca_h = yes; then
32806
32807cat >>confdefs.h <<\_ACEOF
32808#define HAVE_ALLOCA_H 1
32809_ACEOF
32810
32811fi
32812
32813{ echo "$as_me:$LINENO: checking for alloca" >&5
32814echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32815if test "${ac_cv_func_alloca_works+set}" = set; then
32816 echo $ECHO_N "(cached) $ECHO_C" >&6
32817else
32818 cat >conftest.$ac_ext <<_ACEOF
32819/* confdefs.h. */
32820_ACEOF
32821cat confdefs.h >>conftest.$ac_ext
32822cat >>conftest.$ac_ext <<_ACEOF
32823/* end confdefs.h. */
32824#ifdef __GNUC__
32825# define alloca __builtin_alloca
32826#else
32827# ifdef _MSC_VER
32828# include <malloc.h>
32829# define alloca _alloca
32830# else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032831# if HAVE_ALLOCA_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032832# include <alloca.h>
32833# else
32834# ifdef _AIX
32835 #pragma alloca
32836# else
32837# ifndef alloca /* predefined by HP cc +Olibcalls */
32838char *alloca ();
32839# endif
32840# endif
32841# endif
32842# endif
32843#endif
32844
32845int
32846main ()
32847{
32848char *p = (char *) alloca (1);
32849 if (p) return 0;
32850 ;
32851 return 0;
32852}
32853_ACEOF
32854rm -f conftest.$ac_objext conftest$ac_exeext
32855if { (ac_try="$ac_link"
32856case "(($ac_try" in
32857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858 *) ac_try_echo=$ac_try;;
32859esac
32860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861 (eval "$ac_link") 2>conftest.er1
32862 ac_status=$?
32863 grep -v '^ *+' conftest.er1 >conftest.err
32864 rm -f conftest.er1
32865 cat conftest.err >&5
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032867 (exit $ac_status); } &&
32868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32869 { (case "(($ac_try" in
32870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32871 *) ac_try_echo=$ac_try;;
32872esac
32873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874 (eval "$ac_try") 2>&5
32875 ac_status=$?
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); }; } &&
32878 { ac_try='test -s conftest$ac_exeext'
32879 { (case "(($ac_try" in
32880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32881 *) ac_try_echo=$ac_try;;
32882esac
32883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884 (eval "$ac_try") 2>&5
32885 ac_status=$?
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032888 ac_cv_func_alloca_works=yes
32889else
32890 echo "$as_me: failed program was:" >&5
32891sed 's/^/| /' conftest.$ac_ext >&5
32892
32893 ac_cv_func_alloca_works=no
32894fi
32895
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032896rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032897 conftest$ac_exeext conftest.$ac_ext
32898fi
32899{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32900echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32901
32902if test $ac_cv_func_alloca_works = yes; then
32903
32904cat >>confdefs.h <<\_ACEOF
32905#define HAVE_ALLOCA 1
32906_ACEOF
32907
32908else
32909 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32910# that cause trouble. Some versions do not even contain alloca or
32911# contain a buggy version. If you still want to use their alloca,
32912# use ar to extract alloca.o from them instead of compiling alloca.c.
32913
32914ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32915
32916cat >>confdefs.h <<\_ACEOF
32917#define C_ALLOCA 1
32918_ACEOF
32919
32920
32921{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32922echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32923if test "${ac_cv_os_cray+set}" = set; then
32924 echo $ECHO_N "(cached) $ECHO_C" >&6
32925else
32926 cat >conftest.$ac_ext <<_ACEOF
32927/* confdefs.h. */
32928_ACEOF
32929cat confdefs.h >>conftest.$ac_ext
32930cat >>conftest.$ac_ext <<_ACEOF
32931/* end confdefs.h. */
32932#if defined CRAY && ! defined CRAY2
32933webecray
32934#else
32935wenotbecray
32936#endif
32937
32938_ACEOF
32939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32940 $EGREP "webecray" >/dev/null 2>&1; then
32941 ac_cv_os_cray=yes
32942else
32943 ac_cv_os_cray=no
32944fi
32945rm -f conftest*
32946
32947fi
32948{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32949echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32950if test $ac_cv_os_cray = yes; then
32951 for ac_func in _getb67 GETB67 getb67; do
32952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32953{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32955if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32956 echo $ECHO_N "(cached) $ECHO_C" >&6
32957else
32958 cat >conftest.$ac_ext <<_ACEOF
32959/* confdefs.h. */
32960_ACEOF
32961cat confdefs.h >>conftest.$ac_ext
32962cat >>conftest.$ac_ext <<_ACEOF
32963/* end confdefs.h. */
32964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32966#define $ac_func innocuous_$ac_func
32967
32968/* System header to define __stub macros and hopefully few prototypes,
32969 which can conflict with char $ac_func (); below.
32970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32971 <limits.h> exists even on freestanding compilers. */
32972
32973#ifdef __STDC__
32974# include <limits.h>
32975#else
32976# include <assert.h>
32977#endif
32978
32979#undef $ac_func
32980
32981/* Override any GCC internal prototype to avoid an error.
32982 Use char because int might match the return type of a GCC
32983 builtin and then its argument prototype would still apply. */
32984#ifdef __cplusplus
32985extern "C"
32986#endif
32987char $ac_func ();
32988/* The GNU C library defines this for functions which it implements
32989 to always fail with ENOSYS. Some functions are actually named
32990 something starting with __ and the normal name is an alias. */
32991#if defined __stub_$ac_func || defined __stub___$ac_func
32992choke me
32993#endif
32994
32995int
32996main ()
32997{
32998return $ac_func ();
32999 ;
33000 return 0;
33001}
33002_ACEOF
33003rm -f conftest.$ac_objext conftest$ac_exeext
33004if { (ac_try="$ac_link"
33005case "(($ac_try" in
33006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33007 *) ac_try_echo=$ac_try;;
33008esac
33009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33010 (eval "$ac_link") 2>conftest.er1
33011 ac_status=$?
33012 grep -v '^ *+' conftest.er1 >conftest.err
33013 rm -f conftest.er1
33014 cat conftest.err >&5
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033016 (exit $ac_status); } &&
33017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33018 { (case "(($ac_try" in
33019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33020 *) ac_try_echo=$ac_try;;
33021esac
33022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33023 (eval "$ac_try") 2>&5
33024 ac_status=$?
33025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026 (exit $ac_status); }; } &&
33027 { ac_try='test -s conftest$ac_exeext'
33028 { (case "(($ac_try" in
33029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33030 *) ac_try_echo=$ac_try;;
33031esac
33032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33033 (eval "$ac_try") 2>&5
33034 ac_status=$?
33035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033037 eval "$as_ac_var=yes"
33038else
33039 echo "$as_me: failed program was:" >&5
33040sed 's/^/| /' conftest.$ac_ext >&5
33041
33042 eval "$as_ac_var=no"
33043fi
33044
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033045rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033046 conftest$ac_exeext conftest.$ac_ext
33047fi
33048ac_res=`eval echo '${'$as_ac_var'}'`
33049 { echo "$as_me:$LINENO: result: $ac_res" >&5
33050echo "${ECHO_T}$ac_res" >&6; }
33051if test `eval echo '${'$as_ac_var'}'` = yes; then
33052
33053cat >>confdefs.h <<_ACEOF
33054#define CRAY_STACKSEG_END $ac_func
33055_ACEOF
33056
33057 break
33058fi
33059
33060 done
33061fi
33062
33063{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
33064echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
33065if test "${ac_cv_c_stack_direction+set}" = set; then
33066 echo $ECHO_N "(cached) $ECHO_C" >&6
33067else
33068 if test "$cross_compiling" = yes; then
33069 ac_cv_c_stack_direction=0
33070else
33071 cat >conftest.$ac_ext <<_ACEOF
33072/* confdefs.h. */
33073_ACEOF
33074cat confdefs.h >>conftest.$ac_ext
33075cat >>conftest.$ac_ext <<_ACEOF
33076/* end confdefs.h. */
33077$ac_includes_default
33078int
33079find_stack_direction ()
33080{
33081 static char *addr = 0;
33082 auto char dummy;
33083 if (addr == 0)
33084 {
33085 addr = &dummy;
33086 return find_stack_direction ();
33087 }
33088 else
33089 return (&dummy > addr) ? 1 : -1;
33090}
33091
33092int
33093main ()
33094{
33095 return find_stack_direction () < 0;
33096}
33097_ACEOF
33098rm -f conftest$ac_exeext
33099if { (ac_try="$ac_link"
33100case "(($ac_try" in
33101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33102 *) ac_try_echo=$ac_try;;
33103esac
33104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33105 (eval "$ac_link") 2>&5
33106 ac_status=$?
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33109 { (case "(($ac_try" in
33110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33111 *) ac_try_echo=$ac_try;;
33112esac
33113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33114 (eval "$ac_try") 2>&5
33115 ac_status=$?
33116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); }; }; then
33118 ac_cv_c_stack_direction=1
33119else
33120 echo "$as_me: program exited with status $ac_status" >&5
33121echo "$as_me: failed program was:" >&5
33122sed 's/^/| /' conftest.$ac_ext >&5
33123
33124( exit $ac_status )
33125ac_cv_c_stack_direction=-1
33126fi
33127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33128fi
33129
33130
33131fi
33132{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33133echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
33134
33135cat >>confdefs.h <<_ACEOF
33136#define STACK_DIRECTION $ac_cv_c_stack_direction
33137_ACEOF
33138
33139
33140fi
33141
33142
33143{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33144echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
33145if test "${ac_cv_func_rand48+set}" = set; then
33146 echo $ECHO_N "(cached) $ECHO_C" >&6
33147else
33148 ac_ext=cpp
33149ac_cpp='$CXXCPP $CPPFLAGS'
33150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33153
33154 cat >conftest.$ac_ext <<_ACEOF
33155/* confdefs.h. */
33156_ACEOF
33157cat confdefs.h >>conftest.$ac_ext
33158cat >>conftest.$ac_ext <<_ACEOF
33159/* end confdefs.h. */
33160#include <stdlib.h>
33161int
33162main ()
33163{
33164srand48(0);lrand48();drand48();
33165 ;
33166 return 0;
33167}
33168_ACEOF
33169rm -f conftest.$ac_objext
33170if { (ac_try="$ac_compile"
33171case "(($ac_try" in
33172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33173 *) ac_try_echo=$ac_try;;
33174esac
33175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33176 (eval "$ac_compile") 2>conftest.er1
33177 ac_status=$?
33178 grep -v '^ *+' conftest.er1 >conftest.err
33179 rm -f conftest.er1
33180 cat conftest.err >&5
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033182 (exit $ac_status); } &&
33183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33184 { (case "(($ac_try" in
33185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33186 *) ac_try_echo=$ac_try;;
33187esac
33188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33189 (eval "$ac_try") 2>&5
33190 ac_status=$?
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); }; } &&
33193 { ac_try='test -s conftest.$ac_objext'
33194 { (case "(($ac_try" in
33195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33196 *) ac_try_echo=$ac_try;;
33197esac
33198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199 (eval "$ac_try") 2>&5
33200 ac_status=$?
33201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033203 ac_cv_func_rand48=yes
33204else
33205 echo "$as_me: failed program was:" >&5
33206sed 's/^/| /' conftest.$ac_ext >&5
33207
33208 ac_cv_func_rand48=no
33209fi
33210
33211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33212 ac_ext=c
33213ac_cpp='$CPP $CPPFLAGS'
33214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33216ac_compiler_gnu=$ac_cv_c_compiler_gnu
33217
33218fi
33219{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33220echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
33221
33222if test "$ac_cv_func_rand48" = "yes" ; then
33223
33224cat >>confdefs.h <<\_ACEOF
33225#define HAVE_RAND48 1
33226_ACEOF
33227
33228fi
33229
33230
33231{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33232echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
33233if test "${ac_cv_cxx_namespaces+set}" = set; then
33234 echo $ECHO_N "(cached) $ECHO_C" >&6
33235else
33236 ac_ext=cpp
33237ac_cpp='$CXXCPP $CPPFLAGS'
33238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33241
33242 cat >conftest.$ac_ext <<_ACEOF
33243/* confdefs.h. */
33244_ACEOF
33245cat confdefs.h >>conftest.$ac_ext
33246cat >>conftest.$ac_ext <<_ACEOF
33247/* end confdefs.h. */
33248namespace Outer { namespace Inner { int i = 0; }}
33249int
33250main ()
33251{
33252using namespace Outer::Inner; return i;
33253 ;
33254 return 0;
33255}
33256_ACEOF
33257rm -f conftest.$ac_objext
33258if { (ac_try="$ac_compile"
33259case "(($ac_try" in
33260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33262esac
33263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_compile") 2>conftest.er1
33265 ac_status=$?
33266 grep -v '^ *+' conftest.er1 >conftest.err
33267 rm -f conftest.er1
33268 cat conftest.err >&5
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033270 (exit $ac_status); } &&
33271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33272 { (case "(($ac_try" in
33273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274 *) ac_try_echo=$ac_try;;
33275esac
33276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277 (eval "$ac_try") 2>&5
33278 ac_status=$?
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; } &&
33281 { ac_try='test -s conftest.$ac_objext'
33282 { (case "(($ac_try" in
33283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33285esac
33286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_try") 2>&5
33288 ac_status=$?
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033291 ac_cv_cxx_namespaces=yes
33292else
33293 echo "$as_me: failed program was:" >&5
33294sed 's/^/| /' conftest.$ac_ext >&5
33295
33296 ac_cv_cxx_namespaces=no
33297fi
33298
33299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33300 ac_ext=c
33301ac_cpp='$CPP $CPPFLAGS'
33302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33304ac_compiler_gnu=$ac_cv_c_compiler_gnu
33305
33306
33307fi
33308{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33309echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
33310if test "$ac_cv_cxx_namespaces" = yes; then
33311
33312cat >>confdefs.h <<\_ACEOF
33313#define HAVE_NAMESPACES
33314_ACEOF
33315
33316fi
33317
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033318{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33319echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
33320if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33321 echo $ECHO_N "(cached) $ECHO_C" >&6
33322else
33323
33324 ac_ext=cpp
33325ac_cpp='$CXXCPP $CPPFLAGS'
33326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33329
33330 cat >conftest.$ac_ext <<_ACEOF
33331/* confdefs.h. */
33332_ACEOF
33333cat confdefs.h >>conftest.$ac_ext
33334cat >>conftest.$ac_ext <<_ACEOF
33335/* end confdefs.h. */
33336#include <iterator>
33337#ifdef HAVE_NAMESPACES
33338using namespace std;
33339#endif
33340int
33341main ()
33342{
33343iterator<int,int,int> t; return 0;
33344 ;
33345 return 0;
33346}
33347_ACEOF
33348rm -f conftest.$ac_objext
33349if { (ac_try="$ac_compile"
33350case "(($ac_try" in
33351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352 *) ac_try_echo=$ac_try;;
33353esac
33354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355 (eval "$ac_compile") 2>conftest.er1
33356 ac_status=$?
33357 grep -v '^ *+' conftest.er1 >conftest.err
33358 rm -f conftest.er1
33359 cat conftest.err >&5
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033361 (exit $ac_status); } &&
33362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33363 { (case "(($ac_try" in
33364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33365 *) ac_try_echo=$ac_try;;
33366esac
33367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33368 (eval "$ac_try") 2>&5
33369 ac_status=$?
33370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33371 (exit $ac_status); }; } &&
33372 { ac_try='test -s conftest.$ac_objext'
33373 { (case "(($ac_try" in
33374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375 *) ac_try_echo=$ac_try;;
33376esac
33377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378 (eval "$ac_try") 2>&5
33379 ac_status=$?
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033382 ac_cv_cxx_have_std_iterator=yes
33383else
33384 echo "$as_me: failed program was:" >&5
33385sed 's/^/| /' conftest.$ac_ext >&5
33386
33387 ac_cv_cxx_have_std_iterator=no
33388fi
33389
33390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33391 ac_ext=c
33392ac_cpp='$CPP $CPPFLAGS'
33393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33395ac_compiler_gnu=$ac_cv_c_compiler_gnu
33396
33397
33398fi
33399{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33400echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
33401if test "$ac_cv_cxx_have_std_iterator" = yes
33402then
33403
33404cat >>confdefs.h <<\_ACEOF
33405#define HAVE_STD_ITERATOR 1
33406_ACEOF
33407
33408else
33409
33410cat >>confdefs.h <<\_ACEOF
33411#define HAVE_STD_ITERATOR 0
33412_ACEOF
33413
33414fi
33415
33416{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33417echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
33418if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33419 echo $ECHO_N "(cached) $ECHO_C" >&6
33420else
33421
33422 ac_ext=cpp
33423ac_cpp='$CXXCPP $CPPFLAGS'
33424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33427
33428 cat >conftest.$ac_ext <<_ACEOF
33429/* confdefs.h. */
33430_ACEOF
33431cat confdefs.h >>conftest.$ac_ext
33432cat >>conftest.$ac_ext <<_ACEOF
33433/* end confdefs.h. */
33434#include <iterator>
33435#ifdef HAVE_NAMESPACES
33436using namespace std;
33437#endif
33438int
33439main ()
33440{
33441bidirectional_iterator<int,int> t; return 0;
33442 ;
33443 return 0;
33444}
33445_ACEOF
33446rm -f conftest.$ac_objext
33447if { (ac_try="$ac_compile"
33448case "(($ac_try" in
33449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450 *) ac_try_echo=$ac_try;;
33451esac
33452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453 (eval "$ac_compile") 2>conftest.er1
33454 ac_status=$?
33455 grep -v '^ *+' conftest.er1 >conftest.err
33456 rm -f conftest.er1
33457 cat conftest.err >&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033459 (exit $ac_status); } &&
33460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33461 { (case "(($ac_try" in
33462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33463 *) ac_try_echo=$ac_try;;
33464esac
33465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33466 (eval "$ac_try") 2>&5
33467 ac_status=$?
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469 (exit $ac_status); }; } &&
33470 { ac_try='test -s conftest.$ac_objext'
33471 { (case "(($ac_try" in
33472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473 *) ac_try_echo=$ac_try;;
33474esac
33475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476 (eval "$ac_try") 2>&5
33477 ac_status=$?
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033480 ac_cv_cxx_have_bi_iterator=yes
33481else
33482 echo "$as_me: failed program was:" >&5
33483sed 's/^/| /' conftest.$ac_ext >&5
33484
33485 ac_cv_cxx_have_bi_iterator=no
33486fi
33487
33488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33489 ac_ext=c
33490ac_cpp='$CPP $CPPFLAGS'
33491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33493ac_compiler_gnu=$ac_cv_c_compiler_gnu
33494
33495
33496fi
33497{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33498echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
33499if test "$ac_cv_cxx_have_bi_iterator" = yes
33500then
33501
33502cat >>confdefs.h <<\_ACEOF
33503#define HAVE_BI_ITERATOR 1
33504_ACEOF
33505
33506else
33507
33508cat >>confdefs.h <<\_ACEOF
33509#define HAVE_BI_ITERATOR 0
33510_ACEOF
33511
33512fi
33513
33514{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33515echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
33516if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33517 echo $ECHO_N "(cached) $ECHO_C" >&6
33518else
33519
33520 ac_ext=cpp
33521ac_cpp='$CXXCPP $CPPFLAGS'
33522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33525
33526 cat >conftest.$ac_ext <<_ACEOF
33527/* confdefs.h. */
33528_ACEOF
33529cat confdefs.h >>conftest.$ac_ext
33530cat >>conftest.$ac_ext <<_ACEOF
33531/* end confdefs.h. */
33532#include <iterator>
33533#ifdef HAVE_NAMESPACES
33534using namespace std;
33535#endif
33536int
33537main ()
33538{
33539forward_iterator<int,int> t; return 0;
33540 ;
33541 return 0;
33542}
33543_ACEOF
33544rm -f conftest.$ac_objext
33545if { (ac_try="$ac_compile"
33546case "(($ac_try" in
33547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33548 *) ac_try_echo=$ac_try;;
33549esac
33550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33551 (eval "$ac_compile") 2>conftest.er1
33552 ac_status=$?
33553 grep -v '^ *+' conftest.er1 >conftest.err
33554 rm -f conftest.er1
33555 cat conftest.err >&5
33556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033557 (exit $ac_status); } &&
33558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33559 { (case "(($ac_try" in
33560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33561 *) ac_try_echo=$ac_try;;
33562esac
33563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33564 (eval "$ac_try") 2>&5
33565 ac_status=$?
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); }; } &&
33568 { ac_try='test -s conftest.$ac_objext'
33569 { (case "(($ac_try" in
33570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33571 *) ac_try_echo=$ac_try;;
33572esac
33573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33574 (eval "$ac_try") 2>&5
33575 ac_status=$?
33576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33577 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033578 ac_cv_cxx_have_fwd_iterator=yes
33579else
33580 echo "$as_me: failed program was:" >&5
33581sed 's/^/| /' conftest.$ac_ext >&5
33582
33583 ac_cv_cxx_have_fwd_iterator=no
33584fi
33585
33586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33587 ac_ext=c
33588ac_cpp='$CPP $CPPFLAGS'
33589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33591ac_compiler_gnu=$ac_cv_c_compiler_gnu
33592
33593
33594fi
33595{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33596echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
33597if test "$ac_cv_cxx_have_fwd_iterator" = yes
33598then
33599
33600cat >>confdefs.h <<\_ACEOF
33601#define HAVE_FWD_ITERATOR 1
33602_ACEOF
33603
33604else
33605
33606cat >>confdefs.h <<\_ACEOF
33607#define HAVE_FWD_ITERATOR 0
33608_ACEOF
33609
33610fi
33611
33612
33613{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33614echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
33615if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33616 echo $ECHO_N "(cached) $ECHO_C" >&6
33617else
33618 ac_ext=cpp
33619ac_cpp='$CXXCPP $CPPFLAGS'
33620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33623
33624 cat >conftest.$ac_ext <<_ACEOF
33625/* confdefs.h. */
33626_ACEOF
33627cat confdefs.h >>conftest.$ac_ext
33628cat >>conftest.$ac_ext <<_ACEOF
33629/* end confdefs.h. */
33630#include <math.h>
33631int
33632main ()
33633{
33634float f; isnan(f);
33635 ;
33636 return 0;
33637}
33638_ACEOF
33639rm -f conftest.$ac_objext
33640if { (ac_try="$ac_compile"
33641case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644esac
33645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_compile") 2>conftest.er1
33647 ac_status=$?
33648 grep -v '^ *+' conftest.er1 >conftest.err
33649 rm -f conftest.er1
33650 cat conftest.err >&5
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033652 (exit $ac_status); } &&
33653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33654 { (case "(($ac_try" in
33655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33656 *) ac_try_echo=$ac_try;;
33657esac
33658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33659 (eval "$ac_try") 2>&5
33660 ac_status=$?
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); }; } &&
33663 { ac_try='test -s conftest.$ac_objext'
33664 { (case "(($ac_try" in
33665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33666 *) ac_try_echo=$ac_try;;
33667esac
33668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33669 (eval "$ac_try") 2>&5
33670 ac_status=$?
33671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33672 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033673 ac_cv_func_isnan_in_math_h=yes
33674else
33675 echo "$as_me: failed program was:" >&5
33676sed 's/^/| /' conftest.$ac_ext >&5
33677
33678 ac_cv_func_isnan_in_math_h=no
33679fi
33680
33681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33682 ac_ext=c
33683ac_cpp='$CPP $CPPFLAGS'
33684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33686ac_compiler_gnu=$ac_cv_c_compiler_gnu
33687
33688fi
33689{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33690echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
33691
33692
33693if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
33694
33695cat >>confdefs.h <<\_ACEOF
33696#define HAVE_ISNAN_IN_MATH_H 1
33697_ACEOF
33698
33699fi
33700
33701{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33702echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
33703if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33704 echo $ECHO_N "(cached) $ECHO_C" >&6
33705else
33706 ac_ext=cpp
33707ac_cpp='$CXXCPP $CPPFLAGS'
33708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33711
33712 cat >conftest.$ac_ext <<_ACEOF
33713/* confdefs.h. */
33714_ACEOF
33715cat confdefs.h >>conftest.$ac_ext
33716cat >>conftest.$ac_ext <<_ACEOF
33717/* end confdefs.h. */
33718#include <cmath>
33719int
33720main ()
33721{
33722float f; isnan(f);
33723 ;
33724 return 0;
33725}
33726_ACEOF
33727rm -f conftest.$ac_objext
33728if { (ac_try="$ac_compile"
33729case "(($ac_try" in
33730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33731 *) ac_try_echo=$ac_try;;
33732esac
33733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33734 (eval "$ac_compile") 2>conftest.er1
33735 ac_status=$?
33736 grep -v '^ *+' conftest.er1 >conftest.err
33737 rm -f conftest.er1
33738 cat conftest.err >&5
33739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033740 (exit $ac_status); } &&
33741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33742 { (case "(($ac_try" in
33743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33744 *) ac_try_echo=$ac_try;;
33745esac
33746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33747 (eval "$ac_try") 2>&5
33748 ac_status=$?
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); }; } &&
33751 { ac_try='test -s conftest.$ac_objext'
33752 { (case "(($ac_try" in
33753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33754 *) ac_try_echo=$ac_try;;
33755esac
33756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33757 (eval "$ac_try") 2>&5
33758 ac_status=$?
33759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033761 ac_cv_func_isnan_in_cmath=yes
33762else
33763 echo "$as_me: failed program was:" >&5
33764sed 's/^/| /' conftest.$ac_ext >&5
33765
33766 ac_cv_func_isnan_in_cmath=no
33767fi
33768
33769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33770 ac_ext=c
33771ac_cpp='$CPP $CPPFLAGS'
33772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33774ac_compiler_gnu=$ac_cv_c_compiler_gnu
33775
33776fi
33777{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33778echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
33779
33780if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
33781
33782cat >>confdefs.h <<\_ACEOF
33783#define HAVE_ISNAN_IN_CMATH 1
33784_ACEOF
33785
33786fi
33787
33788{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33789echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
33790if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33791 echo $ECHO_N "(cached) $ECHO_C" >&6
33792else
33793 ac_ext=cpp
33794ac_cpp='$CXXCPP $CPPFLAGS'
33795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33798
33799 cat >conftest.$ac_ext <<_ACEOF
33800/* confdefs.h. */
33801_ACEOF
33802cat confdefs.h >>conftest.$ac_ext
33803cat >>conftest.$ac_ext <<_ACEOF
33804/* end confdefs.h. */
33805#include <cmath>
33806int
33807main ()
33808{
33809float f; std::isnan(f);
33810 ;
33811 return 0;
33812}
33813_ACEOF
33814rm -f conftest.$ac_objext
33815if { (ac_try="$ac_compile"
33816case "(($ac_try" in
33817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818 *) ac_try_echo=$ac_try;;
33819esac
33820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_compile") 2>conftest.er1
33822 ac_status=$?
33823 grep -v '^ *+' conftest.er1 >conftest.err
33824 rm -f conftest.er1
33825 cat conftest.err >&5
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033827 (exit $ac_status); } &&
33828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33829 { (case "(($ac_try" in
33830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33831 *) ac_try_echo=$ac_try;;
33832esac
33833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834 (eval "$ac_try") 2>&5
33835 ac_status=$?
33836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837 (exit $ac_status); }; } &&
33838 { ac_try='test -s conftest.$ac_objext'
33839 { (case "(($ac_try" in
33840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33841 *) ac_try_echo=$ac_try;;
33842esac
33843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33844 (eval "$ac_try") 2>&5
33845 ac_status=$?
33846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033848 ac_cv_func_std_isnan_in_cmath=yes
33849else
33850 echo "$as_me: failed program was:" >&5
33851sed 's/^/| /' conftest.$ac_ext >&5
33852
33853 ac_cv_func_std_isnan_in_cmath=no
33854fi
33855
33856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33857 ac_ext=c
33858ac_cpp='$CPP $CPPFLAGS'
33859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33861ac_compiler_gnu=$ac_cv_c_compiler_gnu
33862
33863fi
33864{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33865echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
33866
33867if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
33868
33869cat >>confdefs.h <<\_ACEOF
33870#define HAVE_STD_ISNAN_IN_CMATH 1
33871_ACEOF
33872
33873fi
33874
33875
33876{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33877echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
33878if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33879 echo $ECHO_N "(cached) $ECHO_C" >&6
33880else
33881 ac_ext=cpp
33882ac_cpp='$CXXCPP $CPPFLAGS'
33883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33886
33887 cat >conftest.$ac_ext <<_ACEOF
33888/* confdefs.h. */
33889_ACEOF
33890cat confdefs.h >>conftest.$ac_ext
33891cat >>conftest.$ac_ext <<_ACEOF
33892/* end confdefs.h. */
33893#include <math.h>
33894int
33895main ()
33896{
33897float f; isinf(f);
33898 ;
33899 return 0;
33900}
33901_ACEOF
33902rm -f conftest.$ac_objext
33903if { (ac_try="$ac_compile"
33904case "(($ac_try" in
33905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33906 *) ac_try_echo=$ac_try;;
33907esac
33908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33909 (eval "$ac_compile") 2>conftest.er1
33910 ac_status=$?
33911 grep -v '^ *+' conftest.er1 >conftest.err
33912 rm -f conftest.er1
33913 cat conftest.err >&5
33914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033915 (exit $ac_status); } &&
33916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33917 { (case "(($ac_try" in
33918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33919 *) ac_try_echo=$ac_try;;
33920esac
33921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33922 (eval "$ac_try") 2>&5
33923 ac_status=$?
33924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925 (exit $ac_status); }; } &&
33926 { ac_try='test -s conftest.$ac_objext'
33927 { (case "(($ac_try" in
33928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33929 *) ac_try_echo=$ac_try;;
33930esac
33931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33932 (eval "$ac_try") 2>&5
33933 ac_status=$?
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033936 ac_cv_func_isinf_in_math_h=yes
33937else
33938 echo "$as_me: failed program was:" >&5
33939sed 's/^/| /' conftest.$ac_ext >&5
33940
33941 ac_cv_func_isinf_in_math_h=no
33942fi
33943
33944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33945 ac_ext=c
33946ac_cpp='$CPP $CPPFLAGS'
33947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33949ac_compiler_gnu=$ac_cv_c_compiler_gnu
33950
33951fi
33952{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33953echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
33954
33955if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
33956
33957cat >>confdefs.h <<\_ACEOF
33958#define HAVE_ISINF_IN_MATH_H 1
33959_ACEOF
33960
33961fi
33962
33963{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33964echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
33965if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33967else
33968 ac_ext=cpp
33969ac_cpp='$CXXCPP $CPPFLAGS'
33970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33973
33974 cat >conftest.$ac_ext <<_ACEOF
33975/* confdefs.h. */
33976_ACEOF
33977cat confdefs.h >>conftest.$ac_ext
33978cat >>conftest.$ac_ext <<_ACEOF
33979/* end confdefs.h. */
33980#include <cmath>
33981int
33982main ()
33983{
33984float f; isinf(f);
33985 ;
33986 return 0;
33987}
33988_ACEOF
33989rm -f conftest.$ac_objext
33990if { (ac_try="$ac_compile"
33991case "(($ac_try" in
33992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993 *) ac_try_echo=$ac_try;;
33994esac
33995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996 (eval "$ac_compile") 2>conftest.er1
33997 ac_status=$?
33998 grep -v '^ *+' conftest.er1 >conftest.err
33999 rm -f conftest.er1
34000 cat conftest.err >&5
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034002 (exit $ac_status); } &&
34003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34004 { (case "(($ac_try" in
34005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34006 *) ac_try_echo=$ac_try;;
34007esac
34008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34009 (eval "$ac_try") 2>&5
34010 ac_status=$?
34011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012 (exit $ac_status); }; } &&
34013 { ac_try='test -s conftest.$ac_objext'
34014 { (case "(($ac_try" in
34015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34016 *) ac_try_echo=$ac_try;;
34017esac
34018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34019 (eval "$ac_try") 2>&5
34020 ac_status=$?
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034023 ac_cv_func_isinf_in_cmath=yes
34024else
34025 echo "$as_me: failed program was:" >&5
34026sed 's/^/| /' conftest.$ac_ext >&5
34027
34028 ac_cv_func_isinf_in_cmath=no
34029fi
34030
34031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34032 ac_ext=c
34033ac_cpp='$CPP $CPPFLAGS'
34034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036ac_compiler_gnu=$ac_cv_c_compiler_gnu
34037
34038fi
34039{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
34040echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
34041
34042if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
34043
34044cat >>confdefs.h <<\_ACEOF
34045#define HAVE_ISINF_IN_CMATH 1
34046_ACEOF
34047
34048fi
34049
34050{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
34051echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
34052if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
34053 echo $ECHO_N "(cached) $ECHO_C" >&6
34054else
34055 ac_ext=cpp
34056ac_cpp='$CXXCPP $CPPFLAGS'
34057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34060
34061 cat >conftest.$ac_ext <<_ACEOF
34062/* confdefs.h. */
34063_ACEOF
34064cat confdefs.h >>conftest.$ac_ext
34065cat >>conftest.$ac_ext <<_ACEOF
34066/* end confdefs.h. */
34067#include <cmath>
34068int
34069main ()
34070{
34071float f; std::isinf(f)}
34072 ;
34073 return 0;
34074}
34075_ACEOF
34076rm -f conftest.$ac_objext
34077if { (ac_try="$ac_compile"
34078case "(($ac_try" in
34079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34080 *) ac_try_echo=$ac_try;;
34081esac
34082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34083 (eval "$ac_compile") 2>conftest.er1
34084 ac_status=$?
34085 grep -v '^ *+' conftest.er1 >conftest.err
34086 rm -f conftest.er1
34087 cat conftest.err >&5
34088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034089 (exit $ac_status); } &&
34090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34091 { (case "(($ac_try" in
34092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34093 *) ac_try_echo=$ac_try;;
34094esac
34095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34096 (eval "$ac_try") 2>&5
34097 ac_status=$?
34098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34099 (exit $ac_status); }; } &&
34100 { ac_try='test -s conftest.$ac_objext'
34101 { (case "(($ac_try" in
34102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34103 *) ac_try_echo=$ac_try;;
34104esac
34105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34106 (eval "$ac_try") 2>&5
34107 ac_status=$?
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034110 ac_cv_func_std_isinf_in_cmath=yes
34111else
34112 echo "$as_me: failed program was:" >&5
34113sed 's/^/| /' conftest.$ac_ext >&5
34114
34115 ac_cv_func_std_isinf_in_cmath=no
34116fi
34117
34118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34119 ac_ext=c
34120ac_cpp='$CPP $CPPFLAGS'
34121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34123ac_compiler_gnu=$ac_cv_c_compiler_gnu
34124
34125fi
34126{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34127echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
34128
34129if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
34130
34131cat >>confdefs.h <<\_ACEOF
34132#define HAVE_STD_ISINF_IN_CMATH 1
34133_ACEOF
34134
34135fi
34136
34137{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34138echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
34139if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34140 echo $ECHO_N "(cached) $ECHO_C" >&6
34141else
34142 ac_ext=cpp
34143ac_cpp='$CXXCPP $CPPFLAGS'
34144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34147
34148 cat >conftest.$ac_ext <<_ACEOF
34149/* confdefs.h. */
34150_ACEOF
34151cat confdefs.h >>conftest.$ac_ext
34152cat >>conftest.$ac_ext <<_ACEOF
34153/* end confdefs.h. */
34154#include <ieeefp.h>
34155int
34156main ()
34157{
34158float f; finite(f);
34159 ;
34160 return 0;
34161}
34162_ACEOF
34163rm -f conftest.$ac_objext
34164if { (ac_try="$ac_compile"
34165case "(($ac_try" in
34166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34167 *) ac_try_echo=$ac_try;;
34168esac
34169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34170 (eval "$ac_compile") 2>conftest.er1
34171 ac_status=$?
34172 grep -v '^ *+' conftest.er1 >conftest.err
34173 rm -f conftest.er1
34174 cat conftest.err >&5
34175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034176 (exit $ac_status); } &&
34177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34178 { (case "(($ac_try" in
34179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34180 *) ac_try_echo=$ac_try;;
34181esac
34182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34183 (eval "$ac_try") 2>&5
34184 ac_status=$?
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); }; } &&
34187 { ac_try='test -s conftest.$ac_objext'
34188 { (case "(($ac_try" in
34189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34190 *) ac_try_echo=$ac_try;;
34191esac
34192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34193 (eval "$ac_try") 2>&5
34194 ac_status=$?
34195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034197 ac_cv_func_finite_in_ieeefp_h=yes
34198else
34199 echo "$as_me: failed program was:" >&5
34200sed 's/^/| /' conftest.$ac_ext >&5
34201
34202 ac_cv_func_finite_in_ieeefp_h=no
34203fi
34204
34205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34206 ac_ext=c
34207ac_cpp='$CPP $CPPFLAGS'
34208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34210ac_compiler_gnu=$ac_cv_c_compiler_gnu
34211
34212fi
34213{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34214echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
34215
34216if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
34217
34218cat >>confdefs.h <<\_ACEOF
34219#define HAVE_FINITE_IN_IEEEFP_H 1
34220_ACEOF
34221
34222fi
34223
34224
34225
34226if test "$llvm_cv_platform_type" = "Unix" ; then
34227
34228
34229for ac_header in stdlib.h unistd.h
34230do
34231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34236 echo $ECHO_N "(cached) $ECHO_C" >&6
34237fi
34238ac_res=`eval echo '${'$as_ac_Header'}'`
34239 { echo "$as_me:$LINENO: result: $ac_res" >&5
34240echo "${ECHO_T}$ac_res" >&6; }
34241else
34242 # Is the header compilable?
34243{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34245cat >conftest.$ac_ext <<_ACEOF
34246/* confdefs.h. */
34247_ACEOF
34248cat confdefs.h >>conftest.$ac_ext
34249cat >>conftest.$ac_ext <<_ACEOF
34250/* end confdefs.h. */
34251$ac_includes_default
34252#include <$ac_header>
34253_ACEOF
34254rm -f conftest.$ac_objext
34255if { (ac_try="$ac_compile"
34256case "(($ac_try" in
34257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34258 *) ac_try_echo=$ac_try;;
34259esac
34260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34261 (eval "$ac_compile") 2>conftest.er1
34262 ac_status=$?
34263 grep -v '^ *+' conftest.er1 >conftest.err
34264 rm -f conftest.er1
34265 cat conftest.err >&5
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034267 (exit $ac_status); } &&
34268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34269 { (case "(($ac_try" in
34270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34271 *) ac_try_echo=$ac_try;;
34272esac
34273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34274 (eval "$ac_try") 2>&5
34275 ac_status=$?
34276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34277 (exit $ac_status); }; } &&
34278 { ac_try='test -s conftest.$ac_objext'
34279 { (case "(($ac_try" in
34280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34281 *) ac_try_echo=$ac_try;;
34282esac
34283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34284 (eval "$ac_try") 2>&5
34285 ac_status=$?
34286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034288 ac_header_compiler=yes
34289else
34290 echo "$as_me: failed program was:" >&5
34291sed 's/^/| /' conftest.$ac_ext >&5
34292
34293 ac_header_compiler=no
34294fi
34295
34296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34297{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34298echo "${ECHO_T}$ac_header_compiler" >&6; }
34299
34300# Is the header present?
34301{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34303cat >conftest.$ac_ext <<_ACEOF
34304/* confdefs.h. */
34305_ACEOF
34306cat confdefs.h >>conftest.$ac_ext
34307cat >>conftest.$ac_ext <<_ACEOF
34308/* end confdefs.h. */
34309#include <$ac_header>
34310_ACEOF
34311if { (ac_try="$ac_cpp conftest.$ac_ext"
34312case "(($ac_try" in
34313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34314 *) ac_try_echo=$ac_try;;
34315esac
34316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34318 ac_status=$?
34319 grep -v '^ *+' conftest.er1 >conftest.err
34320 rm -f conftest.er1
34321 cat conftest.err >&5
34322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034323 (exit $ac_status); } >/dev/null; then
34324 if test -s conftest.err; then
34325 ac_cpp_err=$ac_c_preproc_warn_flag
34326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34327 else
34328 ac_cpp_err=
34329 fi
34330else
34331 ac_cpp_err=yes
34332fi
34333if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034334 ac_header_preproc=yes
34335else
34336 echo "$as_me: failed program was:" >&5
34337sed 's/^/| /' conftest.$ac_ext >&5
34338
34339 ac_header_preproc=no
34340fi
34341
34342rm -f conftest.err conftest.$ac_ext
34343{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34344echo "${ECHO_T}$ac_header_preproc" >&6; }
34345
34346# So? What about this header?
34347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34348 yes:no: )
34349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34353 ac_header_preproc=yes
34354 ;;
34355 no:yes:* )
34356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34368 ( cat <<\_ASBOX
34369## ----------------------------------- ##
34370## Report this to llvmbugs@cs.uiuc.edu ##
34371## ----------------------------------- ##
34372_ASBOX
34373 ) | sed "s/^/$as_me: WARNING: /" >&2
34374 ;;
34375esac
34376{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34379 echo $ECHO_N "(cached) $ECHO_C" >&6
34380else
34381 eval "$as_ac_Header=\$ac_header_preproc"
34382fi
34383ac_res=`eval echo '${'$as_ac_Header'}'`
34384 { echo "$as_me:$LINENO: result: $ac_res" >&5
34385echo "${ECHO_T}$ac_res" >&6; }
34386
34387fi
34388if test `eval echo '${'$as_ac_Header'}'` = yes; then
34389 cat >>confdefs.h <<_ACEOF
34390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34391_ACEOF
34392
34393fi
34394
34395done
34396
34397
34398for ac_func in getpagesize
34399do
34400as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34401{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34402echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34403if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34404 echo $ECHO_N "(cached) $ECHO_C" >&6
34405else
34406 cat >conftest.$ac_ext <<_ACEOF
34407/* confdefs.h. */
34408_ACEOF
34409cat confdefs.h >>conftest.$ac_ext
34410cat >>conftest.$ac_ext <<_ACEOF
34411/* end confdefs.h. */
34412/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34414#define $ac_func innocuous_$ac_func
34415
34416/* System header to define __stub macros and hopefully few prototypes,
34417 which can conflict with char $ac_func (); below.
34418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34419 <limits.h> exists even on freestanding compilers. */
34420
34421#ifdef __STDC__
34422# include <limits.h>
34423#else
34424# include <assert.h>
34425#endif
34426
34427#undef $ac_func
34428
34429/* Override any GCC internal prototype to avoid an error.
34430 Use char because int might match the return type of a GCC
34431 builtin and then its argument prototype would still apply. */
34432#ifdef __cplusplus
34433extern "C"
34434#endif
34435char $ac_func ();
34436/* The GNU C library defines this for functions which it implements
34437 to always fail with ENOSYS. Some functions are actually named
34438 something starting with __ and the normal name is an alias. */
34439#if defined __stub_$ac_func || defined __stub___$ac_func
34440choke me
34441#endif
34442
34443int
34444main ()
34445{
34446return $ac_func ();
34447 ;
34448 return 0;
34449}
34450_ACEOF
34451rm -f conftest.$ac_objext conftest$ac_exeext
34452if { (ac_try="$ac_link"
34453case "(($ac_try" in
34454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34455 *) ac_try_echo=$ac_try;;
34456esac
34457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34458 (eval "$ac_link") 2>conftest.er1
34459 ac_status=$?
34460 grep -v '^ *+' conftest.er1 >conftest.err
34461 rm -f conftest.er1
34462 cat conftest.err >&5
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034464 (exit $ac_status); } &&
34465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34466 { (case "(($ac_try" in
34467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34468 *) ac_try_echo=$ac_try;;
34469esac
34470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34471 (eval "$ac_try") 2>&5
34472 ac_status=$?
34473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474 (exit $ac_status); }; } &&
34475 { ac_try='test -s conftest$ac_exeext'
34476 { (case "(($ac_try" in
34477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34478 *) ac_try_echo=$ac_try;;
34479esac
34480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34481 (eval "$ac_try") 2>&5
34482 ac_status=$?
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034485 eval "$as_ac_var=yes"
34486else
34487 echo "$as_me: failed program was:" >&5
34488sed 's/^/| /' conftest.$ac_ext >&5
34489
34490 eval "$as_ac_var=no"
34491fi
34492
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034493rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034494 conftest$ac_exeext conftest.$ac_ext
34495fi
34496ac_res=`eval echo '${'$as_ac_var'}'`
34497 { echo "$as_me:$LINENO: result: $ac_res" >&5
34498echo "${ECHO_T}$ac_res" >&6; }
34499if test `eval echo '${'$as_ac_var'}'` = yes; then
34500 cat >>confdefs.h <<_ACEOF
34501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34502_ACEOF
34503
34504fi
34505done
34506
34507{ echo "$as_me:$LINENO: checking for working mmap" >&5
34508echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
34509if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34510 echo $ECHO_N "(cached) $ECHO_C" >&6
34511else
34512 if test "$cross_compiling" = yes; then
34513 ac_cv_func_mmap_fixed_mapped=no
34514else
34515 cat >conftest.$ac_ext <<_ACEOF
34516/* confdefs.h. */
34517_ACEOF
34518cat confdefs.h >>conftest.$ac_ext
34519cat >>conftest.$ac_ext <<_ACEOF
34520/* end confdefs.h. */
34521$ac_includes_default
34522/* malloc might have been renamed as rpl_malloc. */
34523#undef malloc
34524
34525/* Thanks to Mike Haertel and Jim Avera for this test.
34526 Here is a matrix of mmap possibilities:
34527 mmap private not fixed
34528 mmap private fixed at somewhere currently unmapped
34529 mmap private fixed at somewhere already mapped
34530 mmap shared not fixed
34531 mmap shared fixed at somewhere currently unmapped
34532 mmap shared fixed at somewhere already mapped
34533 For private mappings, we should verify that changes cannot be read()
34534 back from the file, nor mmap's back from the file at a different
34535 address. (There have been systems where private was not correctly
34536 implemented like the infamous i386 svr4.0, and systems where the
34537 VM page cache was not coherent with the file system buffer cache
34538 like early versions of FreeBSD and possibly contemporary NetBSD.)
34539 For shared mappings, we should conversely verify that changes get
34540 propagated back to all the places they're supposed to be.
34541
34542 Grep wants private fixed already mapped.
34543 The main things grep needs to know about mmap are:
34544 * does it exist and is it safe to write into the mmap'd area
34545 * how to use it (BSD variants) */
34546
34547#include <fcntl.h>
34548#include <sys/mman.h>
34549
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034550#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034551char *malloc ();
34552#endif
34553
34554/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034555#if !HAVE_GETPAGESIZE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034556/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034557# if !HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034558# define HAVE_SYS_PARAM_H 1
34559# endif
34560
34561# ifdef _SC_PAGESIZE
34562# define getpagesize() sysconf(_SC_PAGESIZE)
34563# else /* no _SC_PAGESIZE */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034564# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034565# include <sys/param.h>
34566# ifdef EXEC_PAGESIZE
34567# define getpagesize() EXEC_PAGESIZE
34568# else /* no EXEC_PAGESIZE */
34569# ifdef NBPG
34570# define getpagesize() NBPG * CLSIZE
34571# ifndef CLSIZE
34572# define CLSIZE 1
34573# endif /* no CLSIZE */
34574# else /* no NBPG */
34575# ifdef NBPC
34576# define getpagesize() NBPC
34577# else /* no NBPC */
34578# ifdef PAGESIZE
34579# define getpagesize() PAGESIZE
34580# endif /* PAGESIZE */
34581# endif /* no NBPC */
34582# endif /* no NBPG */
34583# endif /* no EXEC_PAGESIZE */
34584# else /* no HAVE_SYS_PARAM_H */
34585# define getpagesize() 8192 /* punt totally */
34586# endif /* no HAVE_SYS_PARAM_H */
34587# endif /* no _SC_PAGESIZE */
34588
34589#endif /* no HAVE_GETPAGESIZE */
34590
34591int
34592main ()
34593{
34594 char *data, *data2, *data3;
34595 int i, pagesize;
34596 int fd;
34597
34598 pagesize = getpagesize ();
34599
34600 /* First, make a file with some known garbage in it. */
34601 data = (char *) malloc (pagesize);
34602 if (!data)
34603 return 1;
34604 for (i = 0; i < pagesize; ++i)
34605 *(data + i) = rand ();
34606 umask (0);
34607 fd = creat ("conftest.mmap", 0600);
34608 if (fd < 0)
34609 return 1;
34610 if (write (fd, data, pagesize) != pagesize)
34611 return 1;
34612 close (fd);
34613
34614 /* Next, try to mmap the file at a fixed address which already has
34615 something else allocated at it. If we can, also make sure that
34616 we see the same garbage. */
34617 fd = open ("conftest.mmap", O_RDWR);
34618 if (fd < 0)
34619 return 1;
34620 data2 = (char *) malloc (2 * pagesize);
34621 if (!data2)
34622 return 1;
34623 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
34624 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
34625 MAP_PRIVATE | MAP_FIXED, fd, 0L))
34626 return 1;
34627 for (i = 0; i < pagesize; ++i)
34628 if (*(data + i) != *(data2 + i))
34629 return 1;
34630
34631 /* Finally, make sure that changes to the mapped area do not
34632 percolate back to the file as seen by read(). (This is a bug on
34633 some variants of i386 svr4.0.) */
34634 for (i = 0; i < pagesize; ++i)
34635 *(data2 + i) = *(data2 + i) + 1;
34636 data3 = (char *) malloc (pagesize);
34637 if (!data3)
34638 return 1;
34639 if (read (fd, data3, pagesize) != pagesize)
34640 return 1;
34641 for (i = 0; i < pagesize; ++i)
34642 if (*(data + i) != *(data3 + i))
34643 return 1;
34644 close (fd);
34645 return 0;
34646}
34647_ACEOF
34648rm -f conftest$ac_exeext
34649if { (ac_try="$ac_link"
34650case "(($ac_try" in
34651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34652 *) ac_try_echo=$ac_try;;
34653esac
34654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34655 (eval "$ac_link") 2>&5
34656 ac_status=$?
34657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34659 { (case "(($ac_try" in
34660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34661 *) ac_try_echo=$ac_try;;
34662esac
34663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34664 (eval "$ac_try") 2>&5
34665 ac_status=$?
34666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667 (exit $ac_status); }; }; then
34668 ac_cv_func_mmap_fixed_mapped=yes
34669else
34670 echo "$as_me: program exited with status $ac_status" >&5
34671echo "$as_me: failed program was:" >&5
34672sed 's/^/| /' conftest.$ac_ext >&5
34673
34674( exit $ac_status )
34675ac_cv_func_mmap_fixed_mapped=no
34676fi
34677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34678fi
34679
34680
34681fi
34682{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34683echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
34684if test $ac_cv_func_mmap_fixed_mapped = yes; then
34685
34686cat >>confdefs.h <<\_ACEOF
34687#define HAVE_MMAP 1
34688_ACEOF
34689
34690fi
34691rm -f conftest.mmap
34692
34693 { echo "$as_me:$LINENO: checking for mmap of files" >&5
34694echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
34695if test "${ac_cv_func_mmap_file+set}" = set; then
34696 echo $ECHO_N "(cached) $ECHO_C" >&6
34697else
34698 ac_ext=c
34699ac_cpp='$CPP $CPPFLAGS'
34700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34702ac_compiler_gnu=$ac_cv_c_compiler_gnu
34703
34704 if test "$cross_compiling" = yes; then
34705 ac_cv_func_mmap_file=no
34706else
34707 cat >conftest.$ac_ext <<_ACEOF
34708
34709 /* confdefs.h. */
34710_ACEOF
34711cat confdefs.h >>conftest.$ac_ext
34712cat >>conftest.$ac_ext <<_ACEOF
34713/* end confdefs.h. */
34714
34715#include <sys/types.h>
34716#include <sys/mman.h>
34717#include <fcntl.h>
34718
34719int
34720main ()
34721{
34722
34723 int fd;
34724 fd = creat ("foo",0777);
34725 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34726 unlink ("foo");
34727 return (fd != (int) MAP_FAILED);
34728 ;
34729 return 0;
34730}
34731_ACEOF
34732rm -f conftest$ac_exeext
34733if { (ac_try="$ac_link"
34734case "(($ac_try" in
34735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34736 *) ac_try_echo=$ac_try;;
34737esac
34738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34739 (eval "$ac_link") 2>&5
34740 ac_status=$?
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34743 { (case "(($ac_try" in
34744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34745 *) ac_try_echo=$ac_try;;
34746esac
34747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34748 (eval "$ac_try") 2>&5
34749 ac_status=$?
34750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); }; }; then
34752 ac_cv_func_mmap_file=yes
34753else
34754 echo "$as_me: program exited with status $ac_status" >&5
34755echo "$as_me: failed program was:" >&5
34756sed 's/^/| /' conftest.$ac_ext >&5
34757
34758( exit $ac_status )
34759ac_cv_func_mmap_file=no
34760fi
34761rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34762fi
34763
34764
34765 ac_ext=c
34766ac_cpp='$CPP $CPPFLAGS'
34767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34769ac_compiler_gnu=$ac_cv_c_compiler_gnu
34770
34771
34772fi
34773{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34774echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
34775if test "$ac_cv_func_mmap_file" = yes; then
34776
34777cat >>confdefs.h <<\_ACEOF
34778#define HAVE_MMAP_FILE
34779_ACEOF
34780
34781 MMAP_FILE=yes
34782
34783fi
34784
34785 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
34786echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
34787if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34788 echo $ECHO_N "(cached) $ECHO_C" >&6
34789else
34790 if test "$llvm_cv_os_type" = "Interix" ; then
34791 ac_cv_need_dev_zero_for_mmap=yes
34792 else
34793 ac_cv_need_dev_zero_for_mmap=no
34794 fi
34795
34796fi
34797{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34798echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
34799if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34800
34801cat >>confdefs.h <<\_ACEOF
34802#define NEED_DEV_ZERO_FOR_MMAP 1
34803_ACEOF
34804
34805fi
34806
34807 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34808 then
34809 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
34810echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
34811 fi
34812 if test "$ac_cv_func_mmap_file" = "no"
34813 then
34814 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
34815echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
34816 fi
34817fi
34818
Owen Anderson96237ec2009-05-19 22:18:56 +000034819{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000034820echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000034821cat >conftest.$ac_ext <<_ACEOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000034822/* confdefs.h. */
34823_ACEOF
34824cat confdefs.h >>conftest.$ac_ext
34825cat >>conftest.$ac_ext <<_ACEOF
34826/* end confdefs.h. */
34827int main() {
Owen Anderson96237ec2009-05-19 22:18:56 +000034828 volatile unsigned long val = 1;
34829 __sync_synchronize();
34830 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson465fa532009-06-17 00:13:00 +000034831 __sync_add_and_fetch(&val, 1);
34832 __sync_sub_and_fetch(&val, 1);
Owen Anderson96237ec2009-05-19 22:18:56 +000034833 return 0;
34834 }
Owen Andersonff0f88e2009-05-18 23:58:51 +000034835
34836_ACEOF
34837rm -f conftest.$ac_objext conftest$ac_exeext
34838if { (ac_try="$ac_link"
34839case "(($ac_try" in
34840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841 *) ac_try_echo=$ac_try;;
34842esac
34843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844 (eval "$ac_link") 2>conftest.er1
34845 ac_status=$?
34846 grep -v '^ *+' conftest.er1 >conftest.err
34847 rm -f conftest.er1
34848 cat conftest.err >&5
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); } &&
34851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34852 { (case "(($ac_try" in
34853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854 *) ac_try_echo=$ac_try;;
34855esac
34856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857 (eval "$ac_try") 2>&5
34858 ac_status=$?
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); }; } &&
34861 { ac_try='test -s conftest$ac_exeext'
34862 { (case "(($ac_try" in
34863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34864 *) ac_try_echo=$ac_try;;
34865esac
34866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34867 (eval "$ac_try") 2>&5
34868 ac_status=$?
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); }; }; then
34871 { echo "$as_me:$LINENO: result: yes" >&5
34872echo "${ECHO_T}yes" >&6; }
Owen Anderson96237ec2009-05-19 22:18:56 +000034873
34874cat >>confdefs.h <<\_ACEOF
34875#define LLVM_MULTITHREADED 1
34876_ACEOF
34877
Owen Andersonff0f88e2009-05-18 23:58:51 +000034878else
34879 echo "$as_me: failed program was:" >&5
34880sed 's/^/| /' conftest.$ac_ext >&5
34881
34882 { echo "$as_me:$LINENO: result: no" >&5
34883echo "${ECHO_T}no" >&6; }
Owen Andersonff0f88e2009-05-18 23:58:51 +000034884
Owen Anderson96237ec2009-05-19 22:18:56 +000034885cat >>confdefs.h <<\_ACEOF
34886#define LLVM_MULTITHREADED 0
34887_ACEOF
34888
34889 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34890echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersonff0f88e2009-05-18 23:58:51 +000034891fi
34892
34893rm -f core conftest.err conftest.$ac_objext \
34894 conftest$ac_exeext conftest.$ac_ext
Owen Andersonff0f88e2009-05-18 23:58:51 +000034895
34896
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034897
Reid Spencer59c09b32007-07-30 20:13:24 +000034898
34899for ac_func in __dso_handle
34900do
34901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34902{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34904if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34905 echo $ECHO_N "(cached) $ECHO_C" >&6
34906else
34907 cat >conftest.$ac_ext <<_ACEOF
34908/* confdefs.h. */
34909_ACEOF
34910cat confdefs.h >>conftest.$ac_ext
34911cat >>conftest.$ac_ext <<_ACEOF
34912/* end confdefs.h. */
34913/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34915#define $ac_func innocuous_$ac_func
34916
34917/* System header to define __stub macros and hopefully few prototypes,
34918 which can conflict with char $ac_func (); below.
34919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34920 <limits.h> exists even on freestanding compilers. */
34921
34922#ifdef __STDC__
34923# include <limits.h>
34924#else
34925# include <assert.h>
34926#endif
34927
34928#undef $ac_func
34929
34930/* Override any GCC internal prototype to avoid an error.
34931 Use char because int might match the return type of a GCC
34932 builtin and then its argument prototype would still apply. */
34933#ifdef __cplusplus
34934extern "C"
34935#endif
34936char $ac_func ();
34937/* The GNU C library defines this for functions which it implements
34938 to always fail with ENOSYS. Some functions are actually named
34939 something starting with __ and the normal name is an alias. */
34940#if defined __stub_$ac_func || defined __stub___$ac_func
34941choke me
34942#endif
34943
34944int
34945main ()
34946{
34947return $ac_func ();
34948 ;
34949 return 0;
34950}
34951_ACEOF
34952rm -f conftest.$ac_objext conftest$ac_exeext
34953if { (ac_try="$ac_link"
34954case "(($ac_try" in
34955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34956 *) ac_try_echo=$ac_try;;
34957esac
34958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34959 (eval "$ac_link") 2>conftest.er1
34960 ac_status=$?
34961 grep -v '^ *+' conftest.er1 >conftest.err
34962 rm -f conftest.er1
34963 cat conftest.err >&5
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034965 (exit $ac_status); } &&
34966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34967 { (case "(($ac_try" in
34968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34969 *) ac_try_echo=$ac_try;;
34970esac
34971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34972 (eval "$ac_try") 2>&5
34973 ac_status=$?
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); }; } &&
34976 { ac_try='test -s conftest$ac_exeext'
34977 { (case "(($ac_try" in
34978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34979 *) ac_try_echo=$ac_try;;
34980esac
34981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34982 (eval "$ac_try") 2>&5
34983 ac_status=$?
34984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34985 (exit $ac_status); }; }; then
Reid Spencer59c09b32007-07-30 20:13:24 +000034986 eval "$as_ac_var=yes"
34987else
34988 echo "$as_me: failed program was:" >&5
34989sed 's/^/| /' conftest.$ac_ext >&5
34990
34991 eval "$as_ac_var=no"
34992fi
34993
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034994rm -f core conftest.err conftest.$ac_objext \
Reid Spencer59c09b32007-07-30 20:13:24 +000034995 conftest$ac_exeext conftest.$ac_ext
34996fi
34997ac_res=`eval echo '${'$as_ac_var'}'`
34998 { echo "$as_me:$LINENO: result: $ac_res" >&5
34999echo "${ECHO_T}$ac_res" >&6; }
35000if test `eval echo '${'$as_ac_var'}'` = yes; then
35001 cat >>confdefs.h <<_ACEOF
35002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35003_ACEOF
35004
35005fi
35006done
35007
35008
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035009{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
35010echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
35011if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
35012 echo $ECHO_N "(cached) $ECHO_C" >&6
35013else
35014 llvm_cv_llvmgcc_sanity="no"
35015if test -x "$LLVMGCC" ; then
35016 cp /dev/null conftest.c
35017 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
35018 grep 'target datalayout =' > /dev/null 2>&1
35019 if test $? -eq 0 ; then
35020 llvm_cv_llvmgcc_sanity="yes"
35021 fi
35022 rm conftest.c
35023fi
35024fi
35025{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
35026echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
35027
35028if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
35029 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
35030echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
35031 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
35032 LLVMCC1=$llvmcc1path
35033
35034 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
35035 LLVMCC1PLUS=$llvmcc1pluspath
35036
35037 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
35038 LLVMGCCDIR=$llvmgccdir
35039
35040 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
35041 LLVMGCCLIBEXEC=$llvmgcclibexec
35042
35043 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
35044 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
35045 LLVMGCC_VERSION=$llvmgccversion
35046
35047 LLVMGCC_MAJVERS=$llvmgccmajvers
35048
Tanya Lattner9894c2c2008-10-07 22:21:03 +000035049 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035050 LLVMGCC_LANGS=$llvmgcclangs
35051
35052 { echo "$as_me:$LINENO: result: ok" >&5
35053echo "${ECHO_T}ok" >&6; }
35054fi
35055
35056SHLIBEXT=$libltdl_cv_shlibext
35057
35058
35059# Translate the various configuration directories and other basic
35060# information into substitutions that will end up in Makefile.config.in
35061# that these configured values can be used by the makefiles
35062if test "${prefix}" = "NONE" ; then
35063 prefix="/usr/local"
35064fi
35065eval LLVM_PREFIX="${prefix}";
35066eval LLVM_BINDIR="${prefix}/bin";
35067eval LLVM_LIBDIR="${prefix}/lib";
35068eval LLVM_DATADIR="${prefix}/share/llvm";
35069eval LLVM_DOCSDIR="${prefix}/docs/llvm";
35070eval LLVM_ETCDIR="${prefix}/etc/llvm";
35071eval LLVM_INCLUDEDIR="${prefix}/include";
35072eval LLVM_INFODIR="${prefix}/info";
35073eval LLVM_MANDIR="${prefix}/man";
35074LLVM_CONFIGTIME=`date`
35075
35076
35077
35078
35079
35080
35081
35082
35083
35084
35085
35086# Place the various directores into the config.h file as #defines so that we
35087# can know about the installation paths within LLVM.
35088
35089cat >>confdefs.h <<_ACEOF
35090#define LLVM_PREFIX "$LLVM_PREFIX"
35091_ACEOF
35092
35093
35094cat >>confdefs.h <<_ACEOF
35095#define LLVM_BINDIR "$LLVM_BINDIR"
35096_ACEOF
35097
35098
35099cat >>confdefs.h <<_ACEOF
35100#define LLVM_LIBDIR "$LLVM_LIBDIR"
35101_ACEOF
35102
35103
35104cat >>confdefs.h <<_ACEOF
35105#define LLVM_DATADIR "$LLVM_DATADIR"
35106_ACEOF
35107
35108
35109cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000035110#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035111_ACEOF
35112
35113
35114cat >>confdefs.h <<_ACEOF
35115#define LLVM_ETCDIR "$LLVM_ETCDIR"
35116_ACEOF
35117
35118
35119cat >>confdefs.h <<_ACEOF
35120#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35121_ACEOF
35122
35123
35124cat >>confdefs.h <<_ACEOF
35125#define LLVM_INFODIR "$LLVM_INFODIR"
35126_ACEOF
35127
35128
35129cat >>confdefs.h <<_ACEOF
35130#define LLVM_MANDIR "$LLVM_MANDIR"
35131_ACEOF
35132
35133
35134cat >>confdefs.h <<_ACEOF
35135#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35136_ACEOF
35137
35138
Eric Christopher8b274472007-12-01 00:34:39 +000035139cat >>confdefs.h <<_ACEOF
35140#define LLVM_HOSTTRIPLE "$host"
35141_ACEOF
35142
35143
Gordon Henriksen016ec472007-10-02 09:50:32 +000035144# Determine which bindings to build.
35145if test "$BINDINGS_TO_BUILD" = auto ; then
35146 BINDINGS_TO_BUILD=""
35147 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35148 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35149 fi
35150fi
35151BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35152
35153
35154# This isn't really configurey, but it avoids having to repeat the list in
35155# other files.
35156ALL_BINDINGS=ocaml
35157
35158
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035159# Do any work necessary to ensure that bindings have what they need.
35160binding_prereqs_failed=0
35161for a_binding in $BINDINGS_TO_BUILD ; do
35162 case "$a_binding" in
35163 ocaml)
35164 if test "x$OCAMLC" = x ; then
35165 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35166echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35167 binding_prereqs_failed=1
35168 fi
35169 if test "x$OCAMLDEP" = x ; then
35170 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35171echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35172 binding_prereqs_failed=1
35173 fi
35174 if test "x$OCAMLOPT" = x ; then
35175 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35176echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35177 fi
35178 if test "x$with_ocaml_libdir" != xauto ; then
35179 OCAML_LIBDIR=$with_ocaml_libdir
35180
35181 else
35182 ocaml_stdlib="`"$OCAMLC" -where`"
35183 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35184 then
35185 # ocaml stdlib is beneath our prefix; use stdlib
35186 OCAML_LIBDIR=$ocaml_stdlib
35187
35188 else
35189 # ocaml stdlib is outside our prefix; use libdir/ocaml
35190 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35191
35192 fi
35193 fi
35194 ;;
35195 esac
35196done
35197if test "$binding_prereqs_failed" = 1 ; then
35198 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35199echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35200 { (exit 1); exit 1; }; }
35201fi
35202
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000035203{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35204echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35205if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35206 echo $ECHO_N "(cached) $ECHO_C" >&6
35207else
35208 ac_ext=cpp
35209ac_cpp='$CXXCPP $CPPFLAGS'
35210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35213
35214 oldcxxflags="$CXXFLAGS"
35215 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35216 cat >conftest.$ac_ext <<_ACEOF
35217/* confdefs.h. */
35218_ACEOF
35219cat confdefs.h >>conftest.$ac_ext
35220cat >>conftest.$ac_ext <<_ACEOF
35221/* end confdefs.h. */
35222
35223int
35224main ()
35225{
35226
35227 ;
35228 return 0;
35229}
35230_ACEOF
35231rm -f conftest.$ac_objext
35232if { (ac_try="$ac_compile"
35233case "(($ac_try" in
35234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35235 *) ac_try_echo=$ac_try;;
35236esac
35237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35238 (eval "$ac_compile") 2>conftest.er1
35239 ac_status=$?
35240 grep -v '^ *+' conftest.er1 >conftest.err
35241 rm -f conftest.er1
35242 cat conftest.err >&5
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035244 (exit $ac_status); } &&
35245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35246 { (case "(($ac_try" in
35247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35248 *) ac_try_echo=$ac_try;;
35249esac
35250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35251 (eval "$ac_try") 2>&5
35252 ac_status=$?
35253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 (exit $ac_status); }; } &&
35255 { ac_try='test -s conftest.$ac_objext'
35256 { (case "(($ac_try" in
35257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35258 *) ac_try_echo=$ac_try;;
35259esac
35260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35261 (eval "$ac_try") 2>&5
35262 ac_status=$?
35263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35264 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000035265 llvm_cv_cxx_visibility_inlines_hidden=yes
35266else
35267 echo "$as_me: failed program was:" >&5
35268sed 's/^/| /' conftest.$ac_ext >&5
35269
35270 llvm_cv_cxx_visibility_inlines_hidden=no
35271fi
35272
35273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35274 CXXFLAGS="$oldcxxflags"
35275 ac_ext=c
35276ac_cpp='$CPP $CPPFLAGS'
35277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35279ac_compiler_gnu=$ac_cv_c_compiler_gnu
35280
35281
35282fi
35283{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35284echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35285if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35286 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35287
35288else
35289 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35290
35291fi
35292
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035293
Nick Lewycky6eab6652009-03-05 08:20:44 +000035294if test "$llvm_cv_link_use_r" = "yes" ; then
35295 RPATH="-Wl,-R"
35296else
35297 RPATH="-Wl,-rpath"
35298fi
35299
35300
35301if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35302 RDYNAMIC="-Wl,-export-dynamic"
35303else
35304 RDYNAMIC=""
35305fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000035306
35307
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035308
35309ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
35310
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000035311ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35312
35313ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35314
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000035315ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35316
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035317ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
35318
Anton Korobeynikov5124f282008-05-29 17:41:34 +000035319ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035320
35321
35322ac_config_files="$ac_config_files Makefile.config"
35323
35324
35325ac_config_files="$ac_config_files llvm.spec"
35326
35327
35328ac_config_files="$ac_config_files docs/doxygen.cfg"
35329
35330
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000035331ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35332
35333
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035334ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
35335
35336
35337ac_config_commands="$ac_config_commands setup"
35338
35339ac_config_commands="$ac_config_commands Makefile"
35340
35341
35342ac_config_commands="$ac_config_commands Makefile.common"
35343
35344
35345ac_config_commands="$ac_config_commands examples/Makefile"
35346
35347
35348ac_config_commands="$ac_config_commands lib/Makefile"
35349
35350
35351ac_config_commands="$ac_config_commands runtime/Makefile"
35352
35353
35354ac_config_commands="$ac_config_commands test/Makefile"
35355
35356
35357ac_config_commands="$ac_config_commands test/Makefile.tests"
35358
35359
Bill Wendling9b9833f2009-01-04 23:12:30 +000035360ac_config_commands="$ac_config_commands unittests/Makefile"
35361
35362
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035363ac_config_commands="$ac_config_commands tools/Makefile"
35364
35365
35366ac_config_commands="$ac_config_commands utils/Makefile"
35367
35368
35369ac_config_commands="$ac_config_commands projects/Makefile"
35370
35371
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035372ac_config_commands="$ac_config_commands bindings/Makefile"
35373
35374
35375ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35376
35377
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035378
35379cat >confcache <<\_ACEOF
35380# This file is a shell script that caches the results of configure
35381# tests run on this system so they can be shared between configure
35382# scripts and configure runs, see configure's option --config-cache.
35383# It is not useful on other systems. If it contains results you don't
35384# want to keep, you may remove or edit it.
35385#
35386# config.status only pays attention to the cache file if you give it
35387# the --recheck option to rerun configure.
35388#
35389# `ac_cv_env_foo' variables (set or unset) will be overridden when
35390# loading this file, other *unset* `ac_cv_foo' will be assigned the
35391# following values.
35392
35393_ACEOF
35394
35395# The following way of writing the cache mishandles newlines in values,
35396# but we know of no workaround that is simple, portable, and efficient.
35397# So, we kill variables containing newlines.
35398# Ultrix sh set writes to stderr and can't be redirected directly,
35399# and sets the high bit in the cache file unless we assign to the vars.
35400(
35401 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35402 eval ac_val=\$$ac_var
35403 case $ac_val in #(
35404 *${as_nl}*)
35405 case $ac_var in #(
35406 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35407echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35408 esac
35409 case $ac_var in #(
35410 _ | IFS | as_nl) ;; #(
35411 *) $as_unset $ac_var ;;
35412 esac ;;
35413 esac
35414 done
35415
35416 (set) 2>&1 |
35417 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35418 *${as_nl}ac_space=\ *)
35419 # `set' does not quote correctly, so add quotes (double-quote
35420 # substitution turns \\\\ into \\, and sed turns \\ into \).
35421 sed -n \
35422 "s/'/'\\\\''/g;
35423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35424 ;; #(
35425 *)
35426 # `set' quotes correctly as required by POSIX, so do not add quotes.
35427 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35428 ;;
35429 esac |
35430 sort
35431) |
35432 sed '
35433 /^ac_cv_env_/b end
35434 t clear
35435 :clear
35436 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35437 t end
35438 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35439 :end' >>confcache
35440if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35441 if test -w "$cache_file"; then
35442 test "x$cache_file" != "x/dev/null" &&
35443 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35444echo "$as_me: updating cache $cache_file" >&6;}
35445 cat confcache >$cache_file
35446 else
35447 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35448echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35449 fi
35450fi
35451rm -f confcache
35452
35453test "x$prefix" = xNONE && prefix=$ac_default_prefix
35454# Let make expand exec_prefix.
35455test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35456
35457DEFS=-DHAVE_CONFIG_H
35458
35459ac_libobjs=
35460ac_ltlibobjs=
35461for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35462 # 1. Remove the extension, and $U if already installed.
35463 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35464 ac_i=`echo "$ac_i" | sed "$ac_script"`
35465 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35466 # will be set to the directory where LIBOBJS objects are built.
35467 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35468 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35469done
35470LIBOBJS=$ac_libobjs
35471
35472LTLIBOBJS=$ac_ltlibobjs
35473
35474
35475if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35476 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35477Usually this means the macro was only invoked conditionally." >&5
35478echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35479Usually this means the macro was only invoked conditionally." >&2;}
35480 { (exit 1); exit 1; }; }
35481fi
35482if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35483 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35484Usually this means the macro was only invoked conditionally." >&5
35485echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35486Usually this means the macro was only invoked conditionally." >&2;}
35487 { (exit 1); exit 1; }; }
35488fi
35489
35490: ${CONFIG_STATUS=./config.status}
35491ac_clean_files_save=$ac_clean_files
35492ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35493{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35494echo "$as_me: creating $CONFIG_STATUS" >&6;}
35495cat >$CONFIG_STATUS <<_ACEOF
35496#! $SHELL
35497# Generated by $as_me.
35498# Run this file to recreate the current configuration.
35499# Compiler output produced by configure, useful for debugging
35500# configure, is in config.log if it exists.
35501
35502debug=false
35503ac_cs_recheck=false
35504ac_cs_silent=false
35505SHELL=\${CONFIG_SHELL-$SHELL}
35506_ACEOF
35507
35508cat >>$CONFIG_STATUS <<\_ACEOF
35509## --------------------- ##
35510## M4sh Initialization. ##
35511## --------------------- ##
35512
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035513# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035514if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35515 emulate sh
35516 NULLCMD=:
35517 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35518 # is contrary to our usage. Disable this feature.
35519 alias -g '${1+"$@"}'='"$@"'
35520 setopt NO_GLOB_SUBST
35521else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035522 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035523fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035524BIN_SH=xpg4; export BIN_SH # for Tru64
35525DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035526
35527
35528# PATH needs CR
35529# Avoid depending upon Character Ranges.
35530as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35531as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35532as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35533as_cr_digits='0123456789'
35534as_cr_alnum=$as_cr_Letters$as_cr_digits
35535
35536# The user is always right.
35537if test "${PATH_SEPARATOR+set}" != set; then
35538 echo "#! /bin/sh" >conf$$.sh
35539 echo "exit 0" >>conf$$.sh
35540 chmod +x conf$$.sh
35541 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35542 PATH_SEPARATOR=';'
35543 else
35544 PATH_SEPARATOR=:
35545 fi
35546 rm -f conf$$.sh
35547fi
35548
35549# Support unset when possible.
35550if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35551 as_unset=unset
35552else
35553 as_unset=false
35554fi
35555
35556
35557# IFS
35558# We need space, tab and new line, in precisely that order. Quoting is
35559# there to prevent editors from complaining about space-tab.
35560# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35561# splitting by setting IFS to empty value.)
35562as_nl='
35563'
35564IFS=" "" $as_nl"
35565
35566# Find who we are. Look in the path if we contain no directory separator.
35567case $0 in
35568 *[\\/]* ) as_myself=$0 ;;
35569 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35570for as_dir in $PATH
35571do
35572 IFS=$as_save_IFS
35573 test -z "$as_dir" && as_dir=.
35574 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35575done
35576IFS=$as_save_IFS
35577
35578 ;;
35579esac
35580# We did not find ourselves, most probably we were run as `sh COMMAND'
35581# in which case we are not to be found in the path.
35582if test "x$as_myself" = x; then
35583 as_myself=$0
35584fi
35585if test ! -f "$as_myself"; then
35586 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35587 { (exit 1); exit 1; }
35588fi
35589
35590# Work around bugs in pre-3.0 UWIN ksh.
35591for as_var in ENV MAIL MAILPATH
35592do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35593done
35594PS1='$ '
35595PS2='> '
35596PS4='+ '
35597
35598# NLS nuisances.
35599for as_var in \
35600 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35601 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35602 LC_TELEPHONE LC_TIME
35603do
35604 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35605 eval $as_var=C; export $as_var
35606 else
35607 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35608 fi
35609done
35610
35611# Required to use basename.
35612if expr a : '\(a\)' >/dev/null 2>&1 &&
35613 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35614 as_expr=expr
35615else
35616 as_expr=false
35617fi
35618
35619if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35620 as_basename=basename
35621else
35622 as_basename=false
35623fi
35624
35625
35626# Name of the executable.
35627as_me=`$as_basename -- "$0" ||
35628$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35629 X"$0" : 'X\(//\)$' \| \
35630 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35631echo X/"$0" |
35632 sed '/^.*\/\([^/][^/]*\)\/*$/{
35633 s//\1/
35634 q
35635 }
35636 /^X\/\(\/\/\)$/{
35637 s//\1/
35638 q
35639 }
35640 /^X\/\(\/\).*/{
35641 s//\1/
35642 q
35643 }
35644 s/.*/./; q'`
35645
35646# CDPATH.
35647$as_unset CDPATH
35648
35649
35650
35651 as_lineno_1=$LINENO
35652 as_lineno_2=$LINENO
35653 test "x$as_lineno_1" != "x$as_lineno_2" &&
35654 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35655
35656 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35657 # uniformly replaced by the line number. The first 'sed' inserts a
35658 # line-number line after each line using $LINENO; the second 'sed'
35659 # does the real work. The second script uses 'N' to pair each
35660 # line-number line with the line containing $LINENO, and appends
35661 # trailing '-' during substitution so that $LINENO is not a special
35662 # case at line end.
35663 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35664 # scripts with optimization help from Paolo Bonzini. Blame Lee
35665 # E. McMahon (1931-1989) for sed's syntax. :-)
35666 sed -n '
35667 p
35668 /[$]LINENO/=
35669 ' <$as_myself |
35670 sed '
35671 s/[$]LINENO.*/&-/
35672 t lineno
35673 b
35674 :lineno
35675 N
35676 :loop
35677 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35678 t loop
35679 s/-\n.*//
35680 ' >$as_me.lineno &&
35681 chmod +x "$as_me.lineno" ||
35682 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35683 { (exit 1); exit 1; }; }
35684
35685 # Don't try to exec as it changes $[0], causing all sort of problems
35686 # (the dirname of $[0] is not the place where we might find the
35687 # original and so on. Autoconf is especially sensitive to this).
35688 . "./$as_me.lineno"
35689 # Exit status is that of the last command.
35690 exit
35691}
35692
35693
35694if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35695 as_dirname=dirname
35696else
35697 as_dirname=false
35698fi
35699
35700ECHO_C= ECHO_N= ECHO_T=
35701case `echo -n x` in
35702-n*)
35703 case `echo 'x\c'` in
35704 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35705 *) ECHO_C='\c';;
35706 esac;;
35707*)
35708 ECHO_N='-n';;
35709esac
35710
35711if expr a : '\(a\)' >/dev/null 2>&1 &&
35712 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35713 as_expr=expr
35714else
35715 as_expr=false
35716fi
35717
35718rm -f conf$$ conf$$.exe conf$$.file
35719if test -d conf$$.dir; then
35720 rm -f conf$$.dir/conf$$.file
35721else
35722 rm -f conf$$.dir
35723 mkdir conf$$.dir
35724fi
35725echo >conf$$.file
35726if ln -s conf$$.file conf$$ 2>/dev/null; then
35727 as_ln_s='ln -s'
35728 # ... but there are two gotchas:
35729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35731 # In both cases, we have to default to `cp -p'.
35732 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35733 as_ln_s='cp -p'
35734elif ln conf$$.file conf$$ 2>/dev/null; then
35735 as_ln_s=ln
35736else
35737 as_ln_s='cp -p'
35738fi
35739rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35740rmdir conf$$.dir 2>/dev/null
35741
35742if mkdir -p . 2>/dev/null; then
35743 as_mkdir_p=:
35744else
35745 test -d ./-p && rmdir ./-p
35746 as_mkdir_p=false
35747fi
35748
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035749# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35750# systems may use methods other than mode bits to determine executability.
35751cat >conf$$.file <<_ASEOF
35752#! /bin/sh
35753exit 0
35754_ASEOF
35755chmod +x conf$$.file
35756if test -x conf$$.file >/dev/null 2>&1; then
35757 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035758else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035759 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035760fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035761rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035762
35763# Sed expression to map a string onto a valid CPP name.
35764as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35765
35766# Sed expression to map a string onto a valid variable name.
35767as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35768
35769
35770exec 6>&1
35771
35772# Save the log message, to keep $[0] and so on meaningful, and to
35773# report actual input values of CONFIG_FILES etc. instead of their
35774# values after options handling.
35775ac_log="
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000035776This file was extended by llvm $as_me 2.7svn, which was
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035777generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035778
35779 CONFIG_FILES = $CONFIG_FILES
35780 CONFIG_HEADERS = $CONFIG_HEADERS
35781 CONFIG_LINKS = $CONFIG_LINKS
35782 CONFIG_COMMANDS = $CONFIG_COMMANDS
35783 $ $0 $@
35784
35785on `(hostname || uname -n) 2>/dev/null | sed 1q`
35786"
35787
35788_ACEOF
35789
35790cat >>$CONFIG_STATUS <<_ACEOF
35791# Files that config.status was made for.
35792config_files="$ac_config_files"
35793config_headers="$ac_config_headers"
35794config_commands="$ac_config_commands"
35795
35796_ACEOF
35797
35798cat >>$CONFIG_STATUS <<\_ACEOF
35799ac_cs_usage="\
35800\`$as_me' instantiates files from templates according to the
35801current configuration.
35802
35803Usage: $0 [OPTIONS] [FILE]...
35804
35805 -h, --help print this help, then exit
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035806 -V, --version print version number, then exit
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035807 -q, --quiet do not print progress messages
35808 -d, --debug don't remove temporary files
35809 --recheck update $as_me by reconfiguring in the same conditions
35810 --file=FILE[:TEMPLATE]
35811 instantiate the configuration file FILE
35812 --header=FILE[:TEMPLATE]
35813 instantiate the configuration header FILE
35814
35815Configuration files:
35816$config_files
35817
35818Configuration headers:
35819$config_headers
35820
35821Configuration commands:
35822$config_commands
35823
35824Report bugs to <bug-autoconf@gnu.org>."
35825
35826_ACEOF
35827cat >>$CONFIG_STATUS <<_ACEOF
35828ac_cs_version="\\
Tanya Lattner7e5c8aa2009-08-22 04:37:30 +000035829llvm config.status 2.7svn
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035830configured by $0, generated by GNU Autoconf 2.60,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035831 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35832
35833Copyright (C) 2006 Free Software Foundation, Inc.
35834This config.status script is free software; the Free Software Foundation
35835gives unlimited permission to copy, distribute and modify it."
35836
35837ac_pwd='$ac_pwd'
35838srcdir='$srcdir'
35839INSTALL='$INSTALL'
35840_ACEOF
35841
35842cat >>$CONFIG_STATUS <<\_ACEOF
35843# If no file are specified by the user, then we need to provide default
35844# value. By we need to know if files were specified by the user.
35845ac_need_defaults=:
35846while test $# != 0
35847do
35848 case $1 in
35849 --*=*)
35850 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35851 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35852 ac_shift=:
35853 ;;
35854 *)
35855 ac_option=$1
35856 ac_optarg=$2
35857 ac_shift=shift
35858 ;;
35859 esac
35860
35861 case $ac_option in
35862 # Handling of the options.
35863 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35864 ac_cs_recheck=: ;;
35865 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35866 echo "$ac_cs_version"; exit ;;
35867 --debug | --debu | --deb | --de | --d | -d )
35868 debug=: ;;
35869 --file | --fil | --fi | --f )
35870 $ac_shift
35871 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35872 ac_need_defaults=false;;
35873 --header | --heade | --head | --hea )
35874 $ac_shift
35875 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35876 ac_need_defaults=false;;
35877 --he | --h)
35878 # Conflict between --help and --header
35879 { echo "$as_me: error: ambiguous option: $1
35880Try \`$0 --help' for more information." >&2
35881 { (exit 1); exit 1; }; };;
35882 --help | --hel | -h )
35883 echo "$ac_cs_usage"; exit ;;
35884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35885 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35886 ac_cs_silent=: ;;
35887
35888 # This is an error.
35889 -*) { echo "$as_me: error: unrecognized option: $1
35890Try \`$0 --help' for more information." >&2
35891 { (exit 1); exit 1; }; } ;;
35892
35893 *) ac_config_targets="$ac_config_targets $1"
35894 ac_need_defaults=false ;;
35895
35896 esac
35897 shift
35898done
35899
35900ac_configure_extra_args=
35901
35902if $ac_cs_silent; then
35903 exec 6>/dev/null
35904 ac_configure_extra_args="$ac_configure_extra_args --silent"
35905fi
35906
35907_ACEOF
35908cat >>$CONFIG_STATUS <<_ACEOF
35909if \$ac_cs_recheck; then
35910 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35911 CONFIG_SHELL=$SHELL
35912 export CONFIG_SHELL
35913 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35914fi
35915
35916_ACEOF
35917cat >>$CONFIG_STATUS <<\_ACEOF
35918exec 5>>config.log
35919{
35920 echo
35921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35922## Running $as_me. ##
35923_ASBOX
35924 echo "$ac_log"
35925} >&5
35926
35927_ACEOF
35928cat >>$CONFIG_STATUS <<_ACEOF
35929#
35930# INIT-COMMANDS
35931#
35932llvm_src="${srcdir}"
35933
35934_ACEOF
35935
35936cat >>$CONFIG_STATUS <<\_ACEOF
35937
35938# Handling of arguments.
35939for ac_config_target in $ac_config_targets
35940do
35941 case $ac_config_target in
35942 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000035943 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35944 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000035945 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035946 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikov5124f282008-05-29 17:41:34 +000035947 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035948 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
35949 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
35950 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000035951 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035952 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35953 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35954 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35955 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35956 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35957 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
35958 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
35959 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35960 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000035961 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035962 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35963 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35964 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035965 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35966 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035967
35968 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35969echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35970 { (exit 1); exit 1; }; };;
35971 esac
35972done
35973
35974
35975# If the user did not use the arguments to specify the items to instantiate,
35976# then the envvar interface is used. Set only those that are not.
35977# We use the long form for the default assignment because of an extremely
35978# bizarre bug on SunOS 4.1.3.
35979if $ac_need_defaults; then
35980 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35981 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35983fi
35984
35985# Have a temporary directory for convenience. Make it in the build tree
35986# simply because there is no reason against having it here, and in addition,
35987# creating and moving files from /tmp can sometimes cause problems.
35988# Hook for its removal unless debugging.
35989# Note that there is a small window in which the directory will not be cleaned:
35990# after its creation but before its name has been assigned to `$tmp'.
35991$debug ||
35992{
35993 tmp=
35994 trap 'exit_status=$?
35995 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35996' 0
35997 trap '{ (exit 1); exit 1; }' 1 2 13 15
35998}
35999# Create a (secure) tmp directory for tmp files.
36000
36001{
36002 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36003 test -n "$tmp" && test -d "$tmp"
36004} ||
36005{
36006 tmp=./conf$$-$RANDOM
36007 (umask 077 && mkdir "$tmp")
36008} ||
36009{
36010 echo "$me: cannot create a temporary directory in ." >&2
36011 { (exit 1); exit 1; }
36012}
36013
36014#
36015# Set up the sed scripts for CONFIG_FILES section.
36016#
36017
36018# No need to generate the scripts if there are no CONFIG_FILES.
36019# This happens for instance when ./config.status config.h
36020if test -n "$CONFIG_FILES"; then
36021
36022_ACEOF
36023
36024
36025
36026ac_delim='%!_!# '
36027for ac_last_try in false false false false false :; do
36028 cat >conf$$subs.sed <<_ACEOF
36029SHELL!$SHELL$ac_delim
36030PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
36031PACKAGE_NAME!$PACKAGE_NAME$ac_delim
36032PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
36033PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
36034PACKAGE_STRING!$PACKAGE_STRING$ac_delim
36035PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
36036exec_prefix!$exec_prefix$ac_delim
36037prefix!$prefix$ac_delim
36038program_transform_name!$program_transform_name$ac_delim
36039bindir!$bindir$ac_delim
36040sbindir!$sbindir$ac_delim
36041libexecdir!$libexecdir$ac_delim
36042datarootdir!$datarootdir$ac_delim
36043datadir!$datadir$ac_delim
36044sysconfdir!$sysconfdir$ac_delim
36045sharedstatedir!$sharedstatedir$ac_delim
36046localstatedir!$localstatedir$ac_delim
36047includedir!$includedir$ac_delim
36048oldincludedir!$oldincludedir$ac_delim
36049docdir!$docdir$ac_delim
36050infodir!$infodir$ac_delim
36051htmldir!$htmldir$ac_delim
36052dvidir!$dvidir$ac_delim
36053pdfdir!$pdfdir$ac_delim
36054psdir!$psdir$ac_delim
36055libdir!$libdir$ac_delim
36056localedir!$localedir$ac_delim
36057mandir!$mandir$ac_delim
36058DEFS!$DEFS$ac_delim
36059ECHO_C!$ECHO_C$ac_delim
36060ECHO_N!$ECHO_N$ac_delim
36061ECHO_T!$ECHO_T$ac_delim
36062LIBS!$LIBS$ac_delim
36063build_alias!$build_alias$ac_delim
36064host_alias!$host_alias$ac_delim
36065target_alias!$target_alias$ac_delim
36066LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
36067subdirs!$subdirs$ac_delim
36068build!$build$ac_delim
36069build_cpu!$build_cpu$ac_delim
36070build_vendor!$build_vendor$ac_delim
36071build_os!$build_os$ac_delim
36072host!$host$ac_delim
36073host_cpu!$host_cpu$ac_delim
36074host_vendor!$host_vendor$ac_delim
36075host_os!$host_os$ac_delim
36076target!$target$ac_delim
36077target_cpu!$target_cpu$ac_delim
36078target_vendor!$target_vendor$ac_delim
36079target_os!$target_os$ac_delim
36080OS!$OS$ac_delim
Anton Korobeynikov1207b902009-08-18 00:40:51 +000036081HOST_OS!$HOST_OS$ac_delim
36082TARGET_OS!$TARGET_OS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036083LINKALL!$LINKALL$ac_delim
36084NOLINKALL!$NOLINKALL$ac_delim
36085LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36086LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendling025cce52009-03-12 04:10:09 +000036087ARCH!$ARCH$ac_delim
36088ENDIAN!$ENDIAN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036089CC!$CC$ac_delim
36090CFLAGS!$CFLAGS$ac_delim
36091LDFLAGS!$LDFLAGS$ac_delim
36092CPPFLAGS!$CPPFLAGS$ac_delim
36093ac_ct_CC!$ac_ct_CC$ac_delim
36094EXEEXT!$EXEEXT$ac_delim
36095OBJEXT!$OBJEXT$ac_delim
36096CPP!$CPP$ac_delim
36097GREP!$GREP$ac_delim
36098EGREP!$EGREP$ac_delim
36099LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36100BUILD_CC!$BUILD_CC$ac_delim
36101BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbache4c032e2008-10-02 22:56:44 +000036102BUILD_CXX!$BUILD_CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036103CVSBUILD!$CVSBUILD$ac_delim
36104ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene19b1cbd2009-04-17 14:50:39 +000036105ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036106DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Shantonu Sen0af6bb22009-08-11 13:39:52 +000036107LLVM_COMPACT_SENTINELS!$LLVM_COMPACT_SENTINELS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036108ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36109EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
36110DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
36111JIT!$JIT$ac_delim
36112TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36113ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36114ENABLE_THREADS!$ENABLE_THREADS$ac_delim
36115ENABLE_PIC!$ENABLE_PIC$ac_delim
36116TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000036117LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36118LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000036119LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036120ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
36121EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckyf9c14662009-02-03 07:10:30 +000036122BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkov9e045892009-07-04 14:23:08 +000036123ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36124ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036125CXX!$CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036126_ACEOF
36127
36128 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36129 break
36130 elif $ac_last_try; then
36131 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36132echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36133 { (exit 1); exit 1; }; }
36134 else
36135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36136 fi
36137done
36138
36139ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36140if test -n "$ac_eof"; then
36141 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36142 ac_eof=`expr $ac_eof + 1`
36143fi
36144
36145cat >>$CONFIG_STATUS <<_ACEOF
36146cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36147/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36148_ACEOF
36149sed '
36150s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36151s/^/s,@/; s/!/@,|#_!!_#|/
36152:n
36153t n
36154s/'"$ac_delim"'$/,g/; t
36155s/$/\\/; p
36156N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36157' >>$CONFIG_STATUS <conf$$subs.sed
36158rm -f conf$$subs.sed
36159cat >>$CONFIG_STATUS <<_ACEOF
36160CEOF$ac_eof
36161_ACEOF
36162
36163
36164ac_delim='%!_!# '
36165for ac_last_try in false false false false false :; do
36166 cat >conf$$subs.sed <<_ACEOF
Anton Korobeynikov1207b902009-08-18 00:40:51 +000036167CXXFLAGS!$CXXFLAGS$ac_delim
36168ac_ct_CXX!$ac_ct_CXX$ac_delim
Shantonu Sen0af6bb22009-08-11 13:39:52 +000036169NM!$NM$ac_delim
Jeffrey Yasskinc6a963a2009-07-17 21:33:35 +000036170ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkov9e045892009-07-04 14:23:08 +000036171LN_S!$LN_S$ac_delim
36172CMP!$CMP$ac_delim
Douglas Gregor1dc5ff42009-06-16 20:12:29 +000036173CP!$CP$ac_delim
36174DATE!$DATE$ac_delim
David Greene19b1cbd2009-04-17 14:50:39 +000036175FIND!$FIND$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036176MKDIR!$MKDIR$ac_delim
36177MV!$MV$ac_delim
36178RANLIB!$RANLIB$ac_delim
36179RM!$RM$ac_delim
36180SED!$SED$ac_delim
36181TAR!$TAR$ac_delim
36182BINPWD!$BINPWD$ac_delim
36183GRAPHVIZ!$GRAPHVIZ$ac_delim
36184DOT!$DOT$ac_delim
David Greenedb740ef2009-07-09 17:16:26 +000036185FDP!$FDP$ac_delim
36186NEATO!$NEATO$ac_delim
36187TWOPI!$TWOPI$ac_delim
36188CIRCO!$CIRCO$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036189GV!$GV$ac_delim
36190DOTTY!$DOTTY$ac_delim
36191PERL!$PERL$ac_delim
36192HAVE_PERL!$HAVE_PERL$ac_delim
36193INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36194INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36195INSTALL_DATA!$INSTALL_DATA$ac_delim
36196BZIP2!$BZIP2$ac_delim
36197DOXYGEN!$DOXYGEN$ac_delim
36198GROFF!$GROFF$ac_delim
36199GZIP!$GZIP$ac_delim
36200POD2HTML!$POD2HTML$ac_delim
36201POD2MAN!$POD2MAN$ac_delim
36202RUNTEST!$RUNTEST$ac_delim
36203TCLSH!$TCLSH$ac_delim
36204ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000036205OCAMLC!$OCAMLC$ac_delim
36206OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000036207OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen8af51f62008-03-10 15:49:38 +000036208OCAMLDOC!$OCAMLDOC$ac_delim
Edwin Török20176752008-10-22 09:56:27 +000036209GAS!$GAS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036210INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36211INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36212CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36213CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36214LIBADD_DL!$LIBADD_DL$ac_delim
36215ECHO!$ECHO$ac_delim
36216AR!$AR$ac_delim
36217STRIP!$STRIP$ac_delim
36218CXXCPP!$CXXCPP$ac_delim
36219F77!$F77$ac_delim
36220FFLAGS!$FFLAGS$ac_delim
36221ac_ct_F77!$ac_ct_F77$ac_delim
36222LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000036223LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36224LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000036225LLVMGCC!$LLVMGCC$ac_delim
36226LLVMGXX!$LLVMGXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036227USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskinf41184f2009-07-10 21:09:55 +000036228USE_OPROFILE!$USE_OPROFILE$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036229HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
36230HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
36231ALLOCA!$ALLOCA$ac_delim
36232MMAP_FILE!$MMAP_FILE$ac_delim
36233LLVMCC1!$LLVMCC1$ac_delim
36234LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36235LLVMGCCDIR!$LLVMGCCDIR$ac_delim
36236LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
36237LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36238LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
36239LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
36240SHLIBEXT!$SHLIBEXT$ac_delim
36241LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36242LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36243LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36244LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36245LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36246LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36247LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36248LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36249LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36250LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000036251BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36252ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000036253OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000036254ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000036255RPATH!$RPATH$ac_delim
Nick Lewycky6eab6652009-03-05 08:20:44 +000036256RDYNAMIC!$RDYNAMIC$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036257LIBOBJS!$LIBOBJS$ac_delim
36258LTLIBOBJS!$LTLIBOBJS$ac_delim
36259_ACEOF
36260
Anton Korobeynikov1207b902009-08-18 00:40:51 +000036261 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036262 break
36263 elif $ac_last_try; then
36264 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36265echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36266 { (exit 1); exit 1; }; }
36267 else
36268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36269 fi
36270done
36271
36272ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36273if test -n "$ac_eof"; then
36274 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36275 ac_eof=`expr $ac_eof + 1`
36276fi
36277
36278cat >>$CONFIG_STATUS <<_ACEOF
36279cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36280/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36281_ACEOF
36282sed '
36283s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36284s/^/s,@/; s/!/@,|#_!!_#|/
36285:n
36286t n
36287s/'"$ac_delim"'$/,g/; t
36288s/$/\\/; p
36289N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36290' >>$CONFIG_STATUS <conf$$subs.sed
36291rm -f conf$$subs.sed
36292cat >>$CONFIG_STATUS <<_ACEOF
36293:end
36294s/|#_!!_#|//g
36295CEOF$ac_eof
36296_ACEOF
36297
36298
36299# VPATH may cause trouble with some makes, so we remove $(srcdir),
36300# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36301# trailing colons and then remove the whole line if VPATH becomes empty
36302# (actually we leave an empty line to preserve line numbers).
36303if test "x$srcdir" = x.; then
36304 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36305s/:*\$(srcdir):*/:/
36306s/:*\${srcdir}:*/:/
36307s/:*@srcdir@:*/:/
36308s/^\([^=]*=[ ]*\):*/\1/
36309s/:*$//
36310s/^[^=]*=[ ]*$//
36311}'
36312fi
36313
36314cat >>$CONFIG_STATUS <<\_ACEOF
36315fi # test -n "$CONFIG_FILES"
36316
36317
36318for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36319do
36320 case $ac_tag in
36321 :[FHLC]) ac_mode=$ac_tag; continue;;
36322 esac
36323 case $ac_mode$ac_tag in
36324 :[FHL]*:*);;
36325 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36326echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36327 { (exit 1); exit 1; }; };;
36328 :[FH]-) ac_tag=-:-;;
36329 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36330 esac
36331 ac_save_IFS=$IFS
36332 IFS=:
36333 set x $ac_tag
36334 IFS=$ac_save_IFS
36335 shift
36336 ac_file=$1
36337 shift
36338
36339 case $ac_mode in
36340 :L) ac_source=$1;;
36341 :[FH])
36342 ac_file_inputs=
36343 for ac_f
36344 do
36345 case $ac_f in
36346 -) ac_f="$tmp/stdin";;
36347 *) # Look for the file first in the build tree, then in the source tree
36348 # (if the path is not absolute). The absolute path cannot be DOS-style,
36349 # because $ac_f cannot contain `:'.
36350 test -f "$ac_f" ||
36351 case $ac_f in
36352 [\\/$]*) false;;
36353 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36354 esac ||
36355 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36356echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36357 { (exit 1); exit 1; }; };;
36358 esac
36359 ac_file_inputs="$ac_file_inputs $ac_f"
36360 done
36361
36362 # Let's still pretend it is `configure' which instantiates (i.e., don't
36363 # use $as_me), people would be surprised to read:
36364 # /* config.h. Generated by config.status. */
36365 configure_input="Generated from "`IFS=:
36366 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36367 if test x"$ac_file" != x-; then
36368 configure_input="$ac_file. $configure_input"
36369 { echo "$as_me:$LINENO: creating $ac_file" >&5
36370echo "$as_me: creating $ac_file" >&6;}
36371 fi
36372
36373 case $ac_tag in
36374 *:-:* | *:-) cat >"$tmp/stdin";;
36375 esac
36376 ;;
36377 esac
36378
36379 ac_dir=`$as_dirname -- "$ac_file" ||
36380$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36381 X"$ac_file" : 'X\(//\)[^/]' \| \
36382 X"$ac_file" : 'X\(//\)$' \| \
36383 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36384echo X"$ac_file" |
36385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36386 s//\1/
36387 q
36388 }
36389 /^X\(\/\/\)[^/].*/{
36390 s//\1/
36391 q
36392 }
36393 /^X\(\/\/\)$/{
36394 s//\1/
36395 q
36396 }
36397 /^X\(\/\).*/{
36398 s//\1/
36399 q
36400 }
36401 s/.*/./; q'`
36402 { as_dir="$ac_dir"
36403 case $as_dir in #(
36404 -*) as_dir=./$as_dir;;
36405 esac
36406 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36407 as_dirs=
36408 while :; do
36409 case $as_dir in #(
36410 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36411 *) as_qdir=$as_dir;;
36412 esac
36413 as_dirs="'$as_qdir' $as_dirs"
36414 as_dir=`$as_dirname -- "$as_dir" ||
36415$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36416 X"$as_dir" : 'X\(//\)[^/]' \| \
36417 X"$as_dir" : 'X\(//\)$' \| \
36418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36419echo X"$as_dir" |
36420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36421 s//\1/
36422 q
36423 }
36424 /^X\(\/\/\)[^/].*/{
36425 s//\1/
36426 q
36427 }
36428 /^X\(\/\/\)$/{
36429 s//\1/
36430 q
36431 }
36432 /^X\(\/\).*/{
36433 s//\1/
36434 q
36435 }
36436 s/.*/./; q'`
36437 test -d "$as_dir" && break
36438 done
36439 test -z "$as_dirs" || eval "mkdir $as_dirs"
36440 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36441echo "$as_me: error: cannot create directory $as_dir" >&2;}
36442 { (exit 1); exit 1; }; }; }
36443 ac_builddir=.
36444
36445case "$ac_dir" in
36446.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36447*)
36448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36449 # A ".." for each directory in $ac_dir_suffix.
36450 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36451 case $ac_top_builddir_sub in
36452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36454 esac ;;
36455esac
36456ac_abs_top_builddir=$ac_pwd
36457ac_abs_builddir=$ac_pwd$ac_dir_suffix
36458# for backward compatibility:
36459ac_top_builddir=$ac_top_build_prefix
36460
36461case $srcdir in
36462 .) # We are building in place.
36463 ac_srcdir=.
36464 ac_top_srcdir=$ac_top_builddir_sub
36465 ac_abs_top_srcdir=$ac_pwd ;;
36466 [\\/]* | ?:[\\/]* ) # Absolute name.
36467 ac_srcdir=$srcdir$ac_dir_suffix;
36468 ac_top_srcdir=$srcdir
36469 ac_abs_top_srcdir=$srcdir ;;
36470 *) # Relative name.
36471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36472 ac_top_srcdir=$ac_top_build_prefix$srcdir
36473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36474esac
36475ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36476
36477
36478 case $ac_mode in
36479 :F)
36480 #
36481 # CONFIG_FILE
36482 #
36483
36484 case $INSTALL in
36485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36486 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36487 esac
36488_ACEOF
36489
36490cat >>$CONFIG_STATUS <<\_ACEOF
36491# If the template does not know about datarootdir, expand it.
36492# FIXME: This hack should be removed a few years after 2.60.
36493ac_datarootdir_hack=; ac_datarootdir_seen=
36494
36495case `sed -n '/datarootdir/ {
36496 p
36497 q
36498}
36499/@datadir@/p
36500/@docdir@/p
36501/@infodir@/p
36502/@localedir@/p
36503/@mandir@/p
36504' $ac_file_inputs` in
36505*datarootdir*) ac_datarootdir_seen=yes;;
36506*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36507 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36508echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36509_ACEOF
36510cat >>$CONFIG_STATUS <<_ACEOF
36511 ac_datarootdir_hack='
36512 s&@datadir@&$datadir&g
36513 s&@docdir@&$docdir&g
36514 s&@infodir@&$infodir&g
36515 s&@localedir@&$localedir&g
36516 s&@mandir@&$mandir&g
36517 s&\\\${datarootdir}&$datarootdir&g' ;;
36518esac
36519_ACEOF
36520
36521# Neutralize VPATH when `$srcdir' = `.'.
36522# Shell code in configure.ac might set extrasub.
36523# FIXME: do we really want to maintain this feature?
36524cat >>$CONFIG_STATUS <<_ACEOF
36525 sed "$ac_vpsub
36526$extrasub
36527_ACEOF
36528cat >>$CONFIG_STATUS <<\_ACEOF
36529:t
36530/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36531s&@configure_input@&$configure_input&;t t
36532s&@top_builddir@&$ac_top_builddir_sub&;t t
36533s&@srcdir@&$ac_srcdir&;t t
36534s&@abs_srcdir@&$ac_abs_srcdir&;t t
36535s&@top_srcdir@&$ac_top_srcdir&;t t
36536s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36537s&@builddir@&$ac_builddir&;t t
36538s&@abs_builddir@&$ac_abs_builddir&;t t
36539s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36540s&@INSTALL@&$ac_INSTALL&;t t
36541$ac_datarootdir_hack
36542" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36543
36544test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36545 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36546 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36547 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36548which seems to be undefined. Please make sure it is defined." >&5
36549echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36550which seems to be undefined. Please make sure it is defined." >&2;}
36551
36552 rm -f "$tmp/stdin"
36553 case $ac_file in
36554 -) cat "$tmp/out"; rm -f "$tmp/out";;
36555 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36556 esac
36557 ;;
36558 :H)
36559 #
36560 # CONFIG_HEADER
36561 #
36562_ACEOF
36563
36564# Transform confdefs.h into a sed script `conftest.defines', that
36565# substitutes the proper values into config.h.in to produce config.h.
36566rm -f conftest.defines conftest.tail
36567# First, append a space to every undef/define line, to ease matching.
36568echo 's/$/ /' >conftest.defines
36569# Then, protect against being on the right side of a sed subst, or in
36570# an unquoted here document, in config.status. If some macros were
36571# called several times there might be several #defines for the same
36572# symbol, which is useless. But do not sort them, since the last
36573# AC_DEFINE must be honored.
36574ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36575# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36576# NAME is the cpp macro being defined, VALUE is the value it is being given.
36577# PARAMS is the parameter list in the macro definition--in most cases, it's
36578# just an empty string.
36579ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36580ac_dB='\\)[ (].*,\\1define\\2'
36581ac_dC=' '
36582ac_dD=' ,'
36583
36584uniq confdefs.h |
36585 sed -n '
36586 t rset
36587 :rset
36588 s/^[ ]*#[ ]*define[ ][ ]*//
36589 t ok
36590 d
36591 :ok
36592 s/[\\&,]/\\&/g
36593 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36594 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36595 ' >>conftest.defines
36596
36597# Remove the space that was appended to ease matching.
36598# Then replace #undef with comments. This is necessary, for
36599# example, in the case of _POSIX_SOURCE, which is predefined and required
36600# on some systems where configure will not decide to define it.
36601# (The regexp can be short, since the line contains either #define or #undef.)
36602echo 's/ $//
36603s,^[ #]*u.*,/* & */,' >>conftest.defines
36604
36605# Break up conftest.defines:
36606ac_max_sed_lines=50
36607
36608# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36609# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36610# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36611# et cetera.
36612ac_in='$ac_file_inputs'
36613ac_out='"$tmp/out1"'
36614ac_nxt='"$tmp/out2"'
36615
36616while :
36617do
36618 # Write a here document:
36619 cat >>$CONFIG_STATUS <<_ACEOF
36620 # First, check the format of the line:
36621 cat >"\$tmp/defines.sed" <<\\CEOF
36622/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36623/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36624b
36625:def
36626_ACEOF
36627 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36628 echo 'CEOF
36629 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36630 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36631 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36632 grep . conftest.tail >/dev/null || break
36633 rm -f conftest.defines
36634 mv conftest.tail conftest.defines
36635done
36636rm -f conftest.defines conftest.tail
36637
36638echo "ac_result=$ac_in" >>$CONFIG_STATUS
36639cat >>$CONFIG_STATUS <<\_ACEOF
36640 if test x"$ac_file" != x-; then
36641 echo "/* $configure_input */" >"$tmp/config.h"
36642 cat "$ac_result" >>"$tmp/config.h"
36643 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36644 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36645echo "$as_me: $ac_file is unchanged" >&6;}
36646 else
36647 rm -f $ac_file
36648 mv "$tmp/config.h" $ac_file
36649 fi
36650 else
36651 echo "/* $configure_input */"
36652 cat "$ac_result"
36653 fi
36654 rm -f "$tmp/out12"
36655 ;;
36656
36657 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36658echo "$as_me: executing $ac_file commands" >&6;}
36659 ;;
36660 esac
36661
36662
36663 case $ac_file$ac_mode in
36664 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36665 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36666 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36667 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36668 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36669 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36670 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36671 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
36672 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36673 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
36674 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36675 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36676 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36677 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000036678 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36679 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036680 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36681 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36682 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36683 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36684 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36685 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000036686 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36687 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36688 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36689 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036690
36691 esac
36692done # for ac_tag
36693
36694
36695{ (exit 0); exit 0; }
36696_ACEOF
36697chmod +x $CONFIG_STATUS
36698ac_clean_files=$ac_clean_files_save
36699
36700
36701# configure is writing to config.log, and then calls config.status.
36702# config.status does its own redirection, appending to config.log.
36703# Unfortunately, on DOS this fails, as config.log is still kept open
36704# by configure, so config.status won't be able to write to it; its
36705# output is simply discarded. So we exec the FD to /dev/null,
36706# effectively closing config.log, so it can be properly (re)opened and
36707# appended to by config.status. When coming back to configure, we
36708# need to make the FD available again.
36709if test "$no_create" != yes; then
36710 ac_cs_success=:
36711 ac_config_status_args=
36712 test "$silent" = yes &&
36713 ac_config_status_args="$ac_config_status_args --quiet"
36714 exec 5>/dev/null
36715 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36716 exec 5>>config.log
36717 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36718 # would make configure fail if this is the last instruction.
36719 $ac_cs_success || { (exit 1); exit 1; }
36720fi
36721
36722#
36723# CONFIG_SUBDIRS section.
36724#
36725if test "$no_recursion" != yes; then
36726
36727 # Remove --cache-file and --srcdir arguments so they do not pile up.
36728 ac_sub_configure_args=
36729 ac_prev=
36730 eval "set x $ac_configure_args"
36731 shift
36732 for ac_arg
36733 do
36734 if test -n "$ac_prev"; then
36735 ac_prev=
36736 continue
36737 fi
36738 case $ac_arg in
36739 -cache-file | --cache-file | --cache-fil | --cache-fi \
36740 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36741 ac_prev=cache_file ;;
36742 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36743 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36744 | --c=*)
36745 ;;
36746 --config-cache | -C)
36747 ;;
36748 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36749 ac_prev=srcdir ;;
36750 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36751 ;;
36752 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36753 ac_prev=prefix ;;
36754 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36755 ;;
36756 *)
36757 case $ac_arg in
36758 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36759 esac
36760 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36761 esac
36762 done
36763
36764 # Always prepend --prefix to ensure using the same prefix
36765 # in subdir configurations.
36766 ac_arg="--prefix=$prefix"
36767 case $ac_arg in
36768 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36769 esac
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000036770 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000036771
36772 ac_popdir=`pwd`
36773 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36774
36775 # Do not complain, so a configure script can configure whichever
36776 # parts of a large source tree are present.
36777 test -d "$srcdir/$ac_dir" || continue
36778
36779 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36780 echo "$as_me:$LINENO: $ac_msg" >&5
36781 echo "$ac_msg" >&6
36782 { as_dir="$ac_dir"
36783 case $as_dir in #(
36784 -*) as_dir=./$as_dir;;
36785 esac
36786 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36787 as_dirs=
36788 while :; do
36789 case $as_dir in #(
36790 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36791 *) as_qdir=$as_dir;;
36792 esac
36793 as_dirs="'$as_qdir' $as_dirs"
36794 as_dir=`$as_dirname -- "$as_dir" ||
36795$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36796 X"$as_dir" : 'X\(//\)[^/]' \| \
36797 X"$as_dir" : 'X\(//\)$' \| \
36798 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36799echo X"$as_dir" |
36800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36801 s//\1/
36802 q
36803 }
36804 /^X\(\/\/\)[^/].*/{
36805 s//\1/
36806 q
36807 }
36808 /^X\(\/\/\)$/{
36809 s//\1/
36810 q
36811 }
36812 /^X\(\/\).*/{
36813 s//\1/
36814 q
36815 }
36816 s/.*/./; q'`
36817 test -d "$as_dir" && break
36818 done
36819 test -z "$as_dirs" || eval "mkdir $as_dirs"
36820 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36821echo "$as_me: error: cannot create directory $as_dir" >&2;}
36822 { (exit 1); exit 1; }; }; }
36823 ac_builddir=.
36824
36825case "$ac_dir" in
36826.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36827*)
36828 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36829 # A ".." for each directory in $ac_dir_suffix.
36830 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36831 case $ac_top_builddir_sub in
36832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36834 esac ;;
36835esac
36836ac_abs_top_builddir=$ac_pwd
36837ac_abs_builddir=$ac_pwd$ac_dir_suffix
36838# for backward compatibility:
36839ac_top_builddir=$ac_top_build_prefix
36840
36841case $srcdir in
36842 .) # We are building in place.
36843 ac_srcdir=.
36844 ac_top_srcdir=$ac_top_builddir_sub
36845 ac_abs_top_srcdir=$ac_pwd ;;
36846 [\\/]* | ?:[\\/]* ) # Absolute name.
36847 ac_srcdir=$srcdir$ac_dir_suffix;
36848 ac_top_srcdir=$srcdir
36849 ac_abs_top_srcdir=$srcdir ;;
36850 *) # Relative name.
36851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36852 ac_top_srcdir=$ac_top_build_prefix$srcdir
36853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36854esac
36855ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36856
36857
36858 cd "$ac_dir"
36859
36860 # Check for guested configure; otherwise get Cygnus style configure.
36861 if test -f "$ac_srcdir/configure.gnu"; then
36862 ac_sub_configure=$ac_srcdir/configure.gnu
36863 elif test -f "$ac_srcdir/configure"; then
36864 ac_sub_configure=$ac_srcdir/configure
36865 elif test -f "$ac_srcdir/configure.in"; then
36866 # This should be Cygnus configure.
36867 ac_sub_configure=$ac_aux_dir/configure
36868 else
36869 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36870echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36871 ac_sub_configure=
36872 fi
36873
36874 # The recursion is here.
36875 if test -n "$ac_sub_configure"; then
36876 # Make the cache file name correct relative to the subdirectory.
36877 case $cache_file in
36878 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36879 *) # Relative name.
36880 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36881 esac
36882
36883 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36884echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36885 # The eval makes quoting arguments work.
36886 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36887 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36888 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36889echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36890 { (exit 1); exit 1; }; }
36891 fi
36892
36893 cd "$ac_popdir"
36894 done
36895fi
36896