blob: 20e3b4fa303cd780c48401a2ca69113fecd8fd49 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
Tanya Lattnerf4644302008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
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 Lattner3fa4a442009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
722ac_unique_file="lib/VMCore/Module.cpp"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
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
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendling025cce52009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbache4c032e2008-10-02 22:56:44 +0000830BUILD_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000831CVSBUILD
832ENABLE_OPTIMIZED
David Greene19b1cbd2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000834DISABLE_ASSERTIONS
835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
837DEBUG_RUNTIME
838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
842ENABLE_PIC
843TARGETS_TO_BUILD
844ENABLE_CBE_PRINTF_A
845EXTRA_OPTIONS
Nick Lewyckyf9c14662009-02-03 07:10:30 +0000846BINUTILS_INCDIR
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000847CXX
848CXXFLAGS
849ac_ct_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000850NM
851ifGNUmake
852LN_S
853CMP
854CP
855DATE
856FIND
857MKDIR
858MV
859RANLIB
860RM
861SED
862TAR
863BINPWD
864GRAPHVIZ
865DOT
866GV
867DOTTY
868PERL
869HAVE_PERL
870INSTALL_PROGRAM
871INSTALL_SCRIPT
872INSTALL_DATA
873BZIP2
874DOXYGEN
875GROFF
876GZIP
877POD2HTML
878POD2MAN
879RUNTEST
880TCLSH
881ZIP
Gordon Henriksen4ac92092007-09-18 12:27:13 +0000882OCAMLC
883OCAMLOPT
Gordon Henriksen38eefac2007-09-20 16:48:18 +0000884OCAMLDEP
Gordon Henriksen8af51f62008-03-10 15:49:38 +0000885OCAMLDOC
Edwin Török20176752008-10-22 09:56:27 +0000886GAS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000887INSTALL_LTDL_TRUE
888INSTALL_LTDL_FALSE
889CONVENIENCE_LTDL_TRUE
890CONVENIENCE_LTDL_FALSE
891LIBADD_DL
892ECHO
893AR
894STRIP
895CXXCPP
896F77
897FFLAGS
898ac_ct_F77
899LIBTOOL
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +0000900LLVMGCCCOMMAND
901LLVMGXXCOMMAND
Douglas Gregord1e1dbc2009-05-11 18:05:52 +0000902LLVMGCC
903LLVMGXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000904USE_UDIS86
905HAVE_PTHREAD
906HUGE_VAL_SANITY
907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
912LLVMGCCLIBEXEC
913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
915LLVMGCC_LANGS
916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
Gordon Henriksen016ec472007-10-02 09:50:32 +0000927BINDINGS_TO_BUILD
928ALL_BINDINGS
Gordon Henriksen058a4c62007-10-02 16:42:22 +0000929OCAML_LIBDIR
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +0000930ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +0000931RPATH
Nick Lewycky6eab6652009-03-05 08:20:44 +0000932RDYNAMIC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000933LIBOBJS
934LTLIBOBJS'
935ac_subst_files=''
936 ac_precious_vars='build_alias
937host_alias
938target_alias
939CC
940CFLAGS
941LDFLAGS
942CPPFLAGS
943CPP
944CXX
945CXXFLAGS
946CCC
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000947CXXCPP
948F77
949FFLAGS'
950ac_subdirs_all='projects/sample
951projects/privbracket
952projects/llvm-stacker
953projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000954projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000955projects/llvm-reopt
956projects/llvm-gcc
957projects/llvm-java
958projects/llvm-tv
959projects/llvm-poolalloc
960projects/poolalloc
961projects/llvm-kernel'
962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
988# (The list follows the same order as the GNU Coding Standards.)
989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
997includedir='${prefix}/include'
998oldincludedir='/usr/include'
999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
1008
1009ac_prev=
1010ac_dashdash=
1011for ac_option
1012do
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1016 ac_prev=
1017 continue
1018 fi
1019
1020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
1024
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1026
1027 case $ac_dashdash$ac_option in
1028 --)
1029 ac_dashdash=yes ;;
1030
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1035
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1040
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1047
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1050
1051 -datadir | --datadir | --datadi | --datad)
1052 ac_prev=datadir ;;
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1055
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1062
1063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001070 eval enable_$ac_feature=no ;;
1071
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1076
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1081
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001089 eval enable_$ac_feature=\$ac_optarg ;;
1090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001285 ac_package=`echo $ac_package| sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001286 eval with_$ac_package=\$ac_optarg ;;
1287
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001294 ac_package=`echo $ac_package | sed 's/-/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001295 eval with_$ac_package=no ;;
1296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1314
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1318 ;;
1319
1320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1328
1329 *)
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 ;;
1336
1337 esac
1338done
1339
1340if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1344fi
1345
1346# Be sure to have absolute directory names.
1347for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1351do
1352 eval ac_val=\$$ac_var
1353 case $ac_val in
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356 esac
1357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
1359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
1385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1393
1394
1395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
1398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
1400$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
1403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1404echo X"$0" |
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\).*/{
1418 s//\1/
1419 q
1420 }
1421 s/.*/./; q'`
1422 srcdir=$ac_confdir
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 srcdir=..
1425 fi
1426else
1427 ac_srcdir_defaulted=no
1428fi
1429if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1432 { (exit 1); exit 1; }; }
1433fi
1434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1437 { (exit 1); exit 1; }; }
1438 pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
1455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001463\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE. See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
1483Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1487 [PREFIX]
1488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1516_ACEOF
1517
1518 cat <<\_ACEOF
1519
1520System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528 case $ac_init_help in
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001529 short | recursive ) echo "Configuration of llvm 2.6svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001530 esac
1531 cat <<\_ACEOF
1532
1533Optional Features:
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-optimized
David Greene19b1cbd2009-04-17 14:50:39 +00001537 --enable-profiling
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001538 --enable-assertions
1539 --enable-expensive-checks
1540
1541 --enable-debug-runtime
1542 --enable-jit Enable Just In Time Compiling (default is YES)
1543 --enable-doxygen Build doxygen documentation (default is NO)
1544 --enable-threads Use threads if available (default is YES)
1545 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky6512b232009-02-19 06:18:56 +00001546 is YES)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001547 --enable-targets Build specific host targets:
1548 all,host-only,{target-name} (default=all)
1549 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1550 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001551 --enable-bindings Build specific language bindings:
1552 all,auto,none,{binding-name} (default=auto)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001553 --enable-ltdl-install install libltdl
1554 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001555 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001556 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001557 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001558 --enable-fast-install[=PKGS]
1559 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001560 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001561 --disable-libtool-lock avoid locking (might break parallel builds)
1562
1563Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1567 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001568 --with-llvmgcc Specify location of llvm-gcc driver (default
1569 searches PATH)
1570 --with-llvmgxx Specify location of llvm-g++ driver (default
1571 searches PATH)
Duncan Sands9f1e2ee2009-05-13 13:13:18 +00001572 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001573 --with-ocaml-libdir Specify install location for ocaml bindings (default
1574 is stdlib)
Nick Lewyckyf9c14662009-02-03 07:10:30 +00001575 --with-binutils-include Specify path to binutils/include/ containing
1576 plugin-api.h file for gold plugin.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001577 --with-tclinclude directory where tcl headers are
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
1581 --with-tags[=TAGS] include additional configurations [automatic]
1582 --with-udis86=<path> Use udis86 external x86 disassembler library
1583
1584Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 CPP C preprocessor
1592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
1597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601Report bugs to <llvmbugs@cs.uiuc.edu>.
1602_ACEOF
1603ac_status=$?
1604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" || continue
1610 ac_builddir=.
1611
1612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
1615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
1627
1628case $srcdir in
1629 .) # We are building in place.
1630 ac_srcdir=.
1631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
1634 ac_srcdir=$srcdir$ac_dir_suffix;
1635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641esac
1642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure" --help=recursive
1652 else
1653 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654 fi || ac_status=$?
1655 cd "$ac_pwd" || { ac_status=$?; break; }
1656 done
1657fi
1658
1659test -n "$ac_init_help" && exit $ac_status
1660if $ac_init_version; then
1661 cat <<\_ACEOF
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001662llvm configure 2.6svn
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001663generated by GNU Autoconf 2.60
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001664
1665Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16662002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1667This configure script is free software; the Free Software Foundation
1668gives unlimited permission to copy, distribute and modify it.
1669
Tanya Lattnerf4644302008-01-17 05:57:22 +00001670Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001671_ACEOF
1672 exit
1673fi
1674cat >config.log <<_ACEOF
1675This file contains any messages produced by compilers while
1676running configure, to aid debugging if configure makes a mistake.
1677
Tanya Lattner3fa4a442009-01-22 05:17:59 +00001678It was created by llvm $as_me 2.6svn, which was
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00001679generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001680
1681 $ $0 $@
1682
1683_ACEOF
1684exec 5>>config.log
1685{
1686cat <<_ASUNAME
1687## --------- ##
1688## Platform. ##
1689## --------- ##
1690
1691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699
1700/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1704/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707
1708_ASUNAME
1709
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 echo "PATH: $as_dir"
1716done
1717IFS=$as_save_IFS
1718
1719} >&5
1720
1721cat >&5 <<_ACEOF
1722
1723
1724## ----------- ##
1725## Core tests. ##
1726## ----------- ##
1727
1728_ACEOF
1729
1730
1731# Keep a trace of the command line.
1732# Strip out --no-create and --no-recursion so they do not pile up.
1733# Strip out --silent because we don't want to record it for future runs.
1734# Also quote any args containing shell meta-characters.
1735# Make two passes to allow for proper duplicate-argument suppression.
1736ac_configure_args=
1737ac_configure_args0=
1738ac_configure_args1=
1739ac_must_keep_next=false
1740for ac_pass in 1 2
1741do
1742 for ac_arg
1743 do
1744 case $ac_arg in
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 continue ;;
1749 *\'*)
1750 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 esac
1752 case $ac_pass in
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 2)
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
1757 ac_must_keep_next=false # Got value, back to normal.
1758 else
1759 case $ac_arg in
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 esac
1767 ;;
1768 -* ) ac_must_keep_next=true ;;
1769 esac
1770 fi
1771 ac_configure_args="$ac_configure_args '$ac_arg'"
1772 ;;
1773 esac
1774 done
1775done
1776$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778
1779# When interrupted or exit'd, cleanup temporary files, and complete
1780# config.log. We remove comments because anyway the quotes in there
1781# would cause problems or look ugly.
1782# WARNING: Use '\'' to represent an apostrophe within the trap.
1783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1786 {
1787 echo
1788
1789 cat <<\_ASBOX
1790## ---------------- ##
1791## Cache variables. ##
1792## ---------------- ##
1793_ASBOX
1794 echo
1795 # The following way of writing the cache mishandles newlines in values,
1796(
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in #(
1800 *${as_nl}*)
1801 case $ac_var in #(
1802 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804 esac
1805 case $ac_var in #(
1806 _ | IFS | as_nl) ;; #(
1807 *) $as_unset $ac_var ;;
1808 esac ;;
1809 esac
1810 done
1811 (set) 2>&1 |
1812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
1814 sed -n \
1815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
1818 *)
1819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1820 ;;
1821 esac |
1822 sort
1823)
1824 echo
1825
1826 cat <<\_ASBOX
1827## ----------------- ##
1828## Output variables. ##
1829## ----------------- ##
1830_ASBOX
1831 echo
1832 for ac_var in $ac_subst_vars
1833 do
1834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 echo "$ac_var='\''$ac_val'\''"
1839 done | sort
1840 echo
1841
1842 if test -n "$ac_subst_files"; then
1843 cat <<\_ASBOX
1844## ------------------- ##
1845## File substitutions. ##
1846## ------------------- ##
1847_ASBOX
1848 echo
1849 for ac_var in $ac_subst_files
1850 do
1851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 echo "$ac_var='\''$ac_val'\''"
1856 done | sort
1857 echo
1858 fi
1859
1860 if test -s confdefs.h; then
1861 cat <<\_ASBOX
1862## ----------- ##
1863## confdefs.h. ##
1864## ----------- ##
1865_ASBOX
1866 echo
1867 cat confdefs.h
1868 echo
1869 fi
1870 test "$ac_signal" != 0 &&
1871 echo "$as_me: caught signal $ac_signal"
1872 echo "$as_me: exit $exit_status"
1873 } >&5
1874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876 exit $exit_status
1877' 0
1878for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880done
1881ac_signal=0
1882
1883# confdefs.h avoids OS command line length limits that DEFS can exceed.
1884rm -f -r conftest* confdefs.h
1885
1886# Predefined preprocessor variables.
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_NAME "$PACKAGE_NAME"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_VERSION "$PACKAGE_VERSION"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_STRING "$PACKAGE_STRING"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910_ACEOF
1911
1912
1913# Let the site file select an alternate cache file if it wants to.
1914# Prefer explicitly selected file to automatically selected ones.
1915if test -n "$CONFIG_SITE"; then
1916 set x "$CONFIG_SITE"
1917elif test "x$prefix" != xNONE; then
1918 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919else
1920 set x "$ac_default_prefix/share/config.site" \
1921 "$ac_default_prefix/etc/config.site"
1922fi
1923shift
1924for ac_site_file
1925do
1926 if test -r "$ac_site_file"; then
1927 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1930 . "$ac_site_file"
1931 fi
1932done
1933
1934if test -r "$cache_file"; then
1935 # Some versions of bash will fail to source /dev/null (special
1936 # files actually), so we avoid doing that.
1937 if test -f "$cache_file"; then
1938 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939echo "$as_me: loading cache $cache_file" >&6;}
1940 case $cache_file in
1941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
1943 esac
1944 fi
1945else
1946 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947echo "$as_me: creating cache $cache_file" >&6;}
1948 >$cache_file
1949fi
1950
1951# Check that the precious variables saved in the cache have kept the same
1952# value.
1953ac_cache_corrupted=false
1954for ac_var in $ac_precious_vars; do
1955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
1957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
1959 case $ac_old_set,$ac_new_set in
1960 set,)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,set)
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,);;
1969 *)
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
1971 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1974echo "$as_me: former value: $ac_old_val" >&2;}
1975 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1976echo "$as_me: current value: $ac_new_val" >&2;}
1977 ac_cache_corrupted=:
1978 fi;;
1979 esac
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1982 case $ac_new_val in
1983 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1984 *) ac_arg=$ac_var=$ac_new_val ;;
1985 esac
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989 esac
1990 fi
1991done
1992if $ac_cache_corrupted; then
1993 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997 { (exit 1); exit 1; }; }
1998fi
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029
2030
2031
Tanya Lattnerf4644302008-01-17 05:57:22 +00002032LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002033
2034
2035
2036
2037
2038
2039
2040ac_aux_dir=
2041for ac_dir in autoconf "$srcdir"/autoconf; do
2042 if test -f "$ac_dir/install-sh"; then
2043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install-sh -c"
2045 break
2046 elif test -f "$ac_dir/install.sh"; then
2047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install.sh -c"
2049 break
2050 elif test -f "$ac_dir/shtool"; then
2051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/shtool install -c"
2053 break
2054 fi
2055done
2056if test -z "$ac_aux_dir"; then
2057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2059 { (exit 1); exit 1; }; }
2060fi
2061
2062# These three variables are undocumented and unsupported,
2063# and are intended to be withdrawn in a future Autoconf release.
2064# They can cause serious problems if a builder's source tree is in a directory
2065# whose full name contains unusual characters.
2066ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2067ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2068ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2069
2070
2071
2072if test ${srcdir} != "." ; then
2073 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2075echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076 { (exit 1); exit 1; }; }
2077 fi
2078fi
2079
2080for i in `ls ${srcdir}/projects`
2081do
2082 if test -d ${srcdir}/projects/${i} ; then
2083 case ${i} in
2084 CVS) ;;
2085 sample) subdirs="$subdirs projects/sample"
2086 ;;
2087 privbracket) subdirs="$subdirs projects/privbracket"
2088 ;;
2089 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2090 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00002091 # llvm-test is the old name of the test-suite, kept here for backwards
2092 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002093 llvm-test) subdirs="$subdirs projects/llvm-test"
2094 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00002095 test-suite) subdirs="$subdirs projects/test-suite"
2096 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002097 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2098;;
2099 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2100 ;;
2101 llvm-java) subdirs="$subdirs projects/llvm-java"
2102 ;;
2103 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2104 ;;
2105 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2106 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002107 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002108 ;;
2109 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2110 ;;
2111 *)
2112 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2113echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2114 ;;
2115 esac
2116 fi
2117done
2118
2119
2120# Make sure we can run config.sub.
2121$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2122 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2124 { (exit 1); exit 1; }; }
2125
2126{ echo "$as_me:$LINENO: checking build system type" >&5
2127echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2128if test "${ac_cv_build+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131 ac_build_alias=$build_alias
2132test "x$ac_build_alias" = x &&
2133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2134test "x$ac_build_alias" = x &&
2135 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137 { (exit 1); exit 1; }; }
2138ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2141 { (exit 1); exit 1; }; }
2142
2143fi
2144{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145echo "${ECHO_T}$ac_cv_build" >&6; }
2146case $ac_cv_build in
2147*-*-*) ;;
2148*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149echo "$as_me: error: invalid value of canonical build" >&2;}
2150 { (exit 1); exit 1; }; };;
2151esac
2152build=$ac_cv_build
2153ac_save_IFS=$IFS; IFS='-'
2154set x $ac_cv_build
2155shift
2156build_cpu=$1
2157build_vendor=$2
2158shift; shift
2159# Remember, the first character of IFS is used to create $*,
2160# except with old shells:
2161build_os=$*
2162IFS=$ac_save_IFS
2163case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2164
2165
2166{ echo "$as_me:$LINENO: checking host system type" >&5
2167echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2168if test "${ac_cv_host+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171 if test "x$host_alias" = x; then
2172 ac_cv_host=$ac_cv_build
2173else
2174 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2177 { (exit 1); exit 1; }; }
2178fi
2179
2180fi
2181{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182echo "${ECHO_T}$ac_cv_host" >&6; }
2183case $ac_cv_host in
2184*-*-*) ;;
2185*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186echo "$as_me: error: invalid value of canonical host" >&2;}
2187 { (exit 1); exit 1; }; };;
2188esac
2189host=$ac_cv_host
2190ac_save_IFS=$IFS; IFS='-'
2191set x $ac_cv_host
2192shift
2193host_cpu=$1
2194host_vendor=$2
2195shift; shift
2196# Remember, the first character of IFS is used to create $*,
2197# except with old shells:
2198host_os=$*
2199IFS=$ac_save_IFS
2200case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2201
2202
2203{ echo "$as_me:$LINENO: checking target system type" >&5
2204echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2205if test "${ac_cv_target+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207else
2208 if test "x$target_alias" = x; then
2209 ac_cv_target=$ac_cv_host
2210else
2211 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2212 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2213echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2214 { (exit 1); exit 1; }; }
2215fi
2216
2217fi
2218{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219echo "${ECHO_T}$ac_cv_target" >&6; }
2220case $ac_cv_target in
2221*-*-*) ;;
2222*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2223echo "$as_me: error: invalid value of canonical target" >&2;}
2224 { (exit 1); exit 1; }; };;
2225esac
2226target=$ac_cv_target
2227ac_save_IFS=$IFS; IFS='-'
2228set x $ac_cv_target
2229shift
2230target_cpu=$1
2231target_vendor=$2
2232shift; shift
2233# Remember, the first character of IFS is used to create $*,
2234# except with old shells:
2235target_os=$*
2236IFS=$ac_save_IFS
2237case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2238
2239
2240# The aliases save the names the user supplied, while $host etc.
2241# will get canonicalized.
2242test -n "$target_alias" &&
2243 test "$program_prefix$program_suffix$program_transform_name" = \
2244 NONENONEs,x,x, &&
2245 program_prefix=${target_alias}-
2246
2247{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2248echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2249if test "${llvm_cv_os_type+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252 case $host in
2253 *-*-aix*)
2254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256 llvm_cv_os_type="AIX"
2257 llvm_cv_platform_type="Unix" ;;
2258 *-*-irix*)
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="IRIX"
2262 llvm_cv_platform_type="Unix" ;;
2263 *-*-cygwin*)
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="Cygwin"
2267 llvm_cv_platform_type="Unix" ;;
2268 *-*-darwin*)
2269 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002270 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002271 llvm_cv_os_type="Darwin"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-freebsd*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="FreeBSD"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-openbsd*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="OpenBSD"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-*-netbsd*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="NetBSD"
2287 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002288 *-*-dragonfly*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="DragonFly"
2292 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002293 *-*-hpux*)
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="HP-UX"
2297 llvm_cv_platform_type="Unix" ;;
2298 *-*-interix*)
2299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2301 llvm_cv_os_type="Interix"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-linux*)
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="Linux"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-solaris*)
2309 llvm_cv_link_all_option="-Wl,-z,allextract"
2310 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2311 llvm_cv_os_type="SunOS"
2312 llvm_cv_platform_type="Unix" ;;
2313 *-*-win32*)
2314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2316 llvm_cv_os_type="Win32"
2317 llvm_cv_platform_type="Win32" ;;
2318 *-*-mingw*)
2319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2321 llvm_cv_os_type="MingW"
2322 llvm_cv_platform_type="Win32" ;;
2323 *)
2324 llvm_cv_link_all_option=""
2325 llvm_cv_no_link_all_option=""
2326 llvm_cv_os_type="Unknown"
2327 llvm_cv_platform_type="Unknown" ;;
2328esac
2329fi
2330{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2331echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2332
2333if test "$llvm_cv_os_type" = "Unknown" ; then
2334 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2335echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2336 { (exit 1); exit 1; }; }
2337fi
2338
2339OS=$llvm_cv_os_type
2340
2341
2342LINKALL=$llvm_cv_link_all_option
2343
2344NOLINKALL=$llvm_cv_no_link_all_option
2345
2346
2347case $llvm_cv_platform_type in
2348 Unix)
2349
2350cat >>confdefs.h <<\_ACEOF
2351#define LLVM_ON_UNIX 1
2352_ACEOF
2353
2354 LLVM_ON_UNIX=1
2355
2356 LLVM_ON_WIN32=0
2357
2358 ;;
2359 Win32)
2360
2361cat >>confdefs.h <<\_ACEOF
2362#define LLVM_ON_WIN32 1
2363_ACEOF
2364
2365 LLVM_ON_UNIX=0
2366
2367 LLVM_ON_WIN32=1
2368
2369 ;;
2370esac
2371
2372{ echo "$as_me:$LINENO: checking target architecture" >&5
2373echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2374if test "${llvm_cv_target_arch+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376else
2377 case $target in
2378 i?86-*) llvm_cv_target_arch="x86" ;;
2379 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2380 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2381 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2382 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2383 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyd4c842f2009-04-18 18:11:26 +00002384 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002385 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002386 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00002387 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00002388 msp430-*) llvm_cv_target_arch="MSP430" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002389 *) llvm_cv_target_arch="Unknown" ;;
2390esac
2391fi
2392{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2393echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2394
2395if test "$llvm_cv_target_arch" = "Unknown" ; then
2396 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2397echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2398fi
2399
Bill Wendling025cce52009-03-12 04:10:09 +00002400ARCH=$llvm_cv_target_arch
2401
2402
2403ac_ext=c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002404ac_cpp='$CPP $CPPFLAGS'
2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2410set dummy ${ac_tool_prefix}gcc; ac_word=$2
2411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2413if test "${ac_cv_prog_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002425 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 +00002426 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430done
2431done
2432IFS=$as_save_IFS
2433
2434fi
2435fi
2436CC=$ac_cv_prog_CC
2437if test -n "$CC"; then
2438 { echo "$as_me:$LINENO: result: $CC" >&5
2439echo "${ECHO_T}$CC" >&6; }
2440else
2441 { echo "$as_me:$LINENO: result: no" >&5
2442echo "${ECHO_T}no" >&6; }
2443fi
2444
2445
2446fi
2447if test -z "$ac_cv_prog_CC"; then
2448 ac_ct_CC=$CC
2449 # Extract the first word of "gcc", so it can be a program name with args.
2450set dummy gcc; ac_word=$2
2451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2453if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456 if test -n "$ac_ct_CC"; then
2457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002465 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 +00002466 ac_cv_prog_ac_ct_CC="gcc"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2469 fi
2470done
2471done
2472IFS=$as_save_IFS
2473
2474fi
2475fi
2476ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477if test -n "$ac_ct_CC"; then
2478 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479echo "${ECHO_T}$ac_ct_CC" >&6; }
2480else
2481 { echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6; }
2483fi
2484
2485 if test "x$ac_ct_CC" = x; then
2486 CC=""
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489yes:)
2490{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491whose name does not start with the host triplet. If you think this
2492configuration is useful to you, please write to autoconf@gnu.org." >&5
2493echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494whose name does not start with the host triplet. If you think this
2495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496ac_tool_warned=yes ;;
2497esac
2498 CC=$ac_ct_CC
2499 fi
2500else
2501 CC="$ac_cv_prog_CC"
2502fi
2503
2504if test -z "$CC"; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2507set dummy ${ac_tool_prefix}cc; ac_word=$2
2508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510if test "${ac_cv_prog_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002522 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 +00002523 ac_cv_prog_CC="${ac_tool_prefix}cc"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527done
2528done
2529IFS=$as_save_IFS
2530
2531fi
2532fi
2533CC=$ac_cv_prog_CC
2534if test -n "$CC"; then
2535 { echo "$as_me:$LINENO: result: $CC" >&5
2536echo "${ECHO_T}$CC" >&6; }
2537else
2538 { echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6; }
2540fi
2541
2542
2543 fi
2544fi
2545if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547set dummy cc; ac_word=$2
2548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550if test "${ac_cv_prog_CC+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556 ac_prog_rejected=no
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002563 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 +00002564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2566 continue
2567 fi
2568 ac_cv_prog_CC="cc"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572done
2573done
2574IFS=$as_save_IFS
2575
2576if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2579 shift
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2584 shift
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 fi
2587fi
2588fi
2589fi
2590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
2592 { echo "$as_me:$LINENO: result: $CC" >&5
2593echo "${ECHO_T}$CC" >&6; }
2594else
2595 { echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6; }
2597fi
2598
2599
2600fi
2601if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
2603 for ac_prog in cl.exe
2604 do
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609if test "${ac_cv_prog_CC+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002621 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 +00002622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626done
2627done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632CC=$ac_cv_prog_CC
2633if test -n "$CC"; then
2634 { echo "$as_me:$LINENO: result: $CC" >&5
2635echo "${ECHO_T}$CC" >&6; }
2636else
2637 { echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6; }
2639fi
2640
2641
2642 test -n "$CC" && break
2643 done
2644fi
2645if test -z "$CC"; then
2646 ac_ct_CC=$CC
2647 for ac_prog in cl.exe
2648do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
2651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002665 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 +00002666 ac_cv_prog_ac_ct_CC="$ac_prog"
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670done
2671done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677if test -n "$ac_ct_CC"; then
2678 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679echo "${ECHO_T}$ac_ct_CC" >&6; }
2680else
2681 { echo "$as_me:$LINENO: result: no" >&5
2682echo "${ECHO_T}no" >&6; }
2683fi
2684
2685
2686 test -n "$ac_ct_CC" && break
2687done
2688
2689 if test "x$ac_ct_CC" = x; then
2690 CC=""
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693yes:)
2694{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2695whose name does not start with the host triplet. If you think this
2696configuration is useful to you, please write to autoconf@gnu.org." >&5
2697echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2698whose name does not start with the host triplet. If you think this
2699configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2700ac_tool_warned=yes ;;
2701esac
2702 CC=$ac_ct_CC
2703 fi
2704fi
2705
2706fi
2707
2708
2709test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2710See \`config.log' for more details." >&5
2711echo "$as_me: error: no acceptable C compiler found in \$PATH
2712See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2714
2715# Provide some information about the compiler.
2716echo "$as_me:$LINENO: checking for C compiler version" >&5
2717ac_compiler=`set X $ac_compile; echo $2`
2718{ (ac_try="$ac_compiler --version >&5"
2719case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compiler --version >&5") 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
2728{ (ac_try="$ac_compiler -v >&5"
2729case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compiler -v >&5") 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }
2738{ (ac_try="$ac_compiler -V >&5"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler -V >&5") 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2748
2749cat >conftest.$ac_ext <<_ACEOF
2750/* confdefs.h. */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h. */
2755
2756int
2757main ()
2758{
2759
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764ac_clean_files_save=$ac_clean_files
2765ac_clean_files="$ac_clean_files a.out a.exe b.out"
2766# Try to create an executable without -o first, disregard a.out.
2767# It will help us diagnose broken compilers, and finding out an intuition
2768# of exeext.
2769{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2770echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2771ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2772#
2773# List of possible output files, starting from the most likely.
2774# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2775# only as a last resort. b.out is created by i960 compilers.
2776ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2777#
2778# The IRIX 6 linker writes into existing files which may not be
2779# executable, retaining their permissions. Remove them first so a
2780# subsequent execution test works.
2781ac_rmfiles=
2782for ac_file in $ac_files
2783do
2784 case $ac_file in
2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2786 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2787 esac
2788done
2789rm -f $ac_rmfiles
2790
2791if { (ac_try="$ac_link_default"
2792case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795esac
2796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_link_default") 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; then
2801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803# in a Makefile. We should not override ac_cv_exeext if it was cached,
2804# so that the user can short-circuit this test for compilers unknown to
2805# Autoconf.
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002806for ac_file in $ac_files
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002807do
2808 test -f "$ac_file" || continue
2809 case $ac_file in
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2811 ;;
2812 [ab].out )
2813 # We found the default executable, but exeext='' is most
2814 # certainly right.
2815 break;;
2816 *.* )
2817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2818 then :; else
2819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2820 fi
2821 # We set ac_cv_exeext here because the later test for it is not
2822 # safe: cross compilers may not add the suffix if given an `-o'
2823 # argument, so we may need to know it at that point already.
2824 # Even if this section looks crufty: it has the advantage of
2825 # actually working.
2826 break;;
2827 * )
2828 break;;
2829 esac
2830done
2831test "$ac_cv_exeext" = no && ac_cv_exeext=
2832
2833else
2834 echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2838See \`config.log' for more details." >&5
2839echo "$as_me: error: C compiler cannot create executables
2840See \`config.log' for more details." >&2;}
2841 { (exit 77); exit 77; }; }
2842fi
2843
2844ac_exeext=$ac_cv_exeext
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00002845{ echo "$as_me:$LINENO: result: $ac_file" >&5
2846echo "${ECHO_T}$ac_file" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002847
2848# Check that the compiler produces executables we can run. If not, either
2849# the compiler is broken, or we cross compile.
2850{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2851echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2852# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2853# If not cross compiling, check that we can run a simple program.
2854if test "$cross_compiling" != yes; then
2855 if { ac_try='./$ac_file'
2856 { (case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859esac
2860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_try") 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 cross_compiling=no
2866 else
2867 if test "$cross_compiling" = maybe; then
2868 cross_compiling=yes
2869 else
2870 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2871If you meant to cross compile, use \`--host'.
2872See \`config.log' for more details." >&5
2873echo "$as_me: error: cannot run C compiled programs.
2874If you meant to cross compile, use \`--host'.
2875See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }
2877 fi
2878 fi
2879fi
2880{ echo "$as_me:$LINENO: result: yes" >&5
2881echo "${ECHO_T}yes" >&6; }
2882
2883rm -f a.out a.exe conftest$ac_cv_exeext b.out
2884ac_clean_files=$ac_clean_files_save
2885# Check that the compiler produces executables we can run. If not, either
2886# the compiler is broken, or we cross compile.
2887{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2888echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2889{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2890echo "${ECHO_T}$cross_compiling" >&6; }
2891
2892{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2893echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2894if { (ac_try="$ac_link"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_link") 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2906# work properly (i.e., refer to `conftest.exe'), while it won't with
2907# `rm'.
2908for ac_file in conftest.exe conftest conftest.*; do
2909 test -f "$ac_file" || continue
2910 case $ac_file in
2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2913 break;;
2914 * ) break;;
2915 esac
2916done
2917else
2918 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2919See \`config.log' for more details." >&5
2920echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2921See \`config.log' for more details." >&2;}
2922 { (exit 1); exit 1; }; }
2923fi
2924
2925rm -f conftest$ac_cv_exeext
2926{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2927echo "${ECHO_T}$ac_cv_exeext" >&6; }
2928
2929rm -f conftest.$ac_ext
2930EXEEXT=$ac_cv_exeext
2931ac_exeext=$EXEEXT
2932{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2933echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2934if test "${ac_cv_objext+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952rm -f conftest.o conftest.obj
2953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; then
2963 for ac_file in conftest.o conftest.obj conftest.*; do
2964 test -f "$ac_file" || continue;
2965 case $ac_file in
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2968 break;;
2969 esac
2970done
2971else
2972 echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2976See \`config.log' for more details." >&5
2977echo "$as_me: error: cannot compute suffix of object files: cannot compile
2978See \`config.log' for more details." >&2;}
2979 { (exit 1); exit 1; }; }
2980fi
2981
2982rm -f conftest.$ac_cv_objext conftest.$ac_ext
2983fi
2984{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2985echo "${ECHO_T}$ac_cv_objext" >&6; }
2986OBJEXT=$ac_cv_objext
2987ac_objext=$OBJEXT
2988{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2989echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2990if test "${ac_cv_c_compiler_gnu+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 cat >conftest.$ac_ext <<_ACEOF
2994/* confdefs.h. */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h. */
2999
3000int
3001main ()
3002{
3003#ifndef __GNUC__
3004 choke me
3005#endif
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (ac_try="$ac_compile"
3013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3019 ac_status=$?
3020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3026 { (case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_try") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003045 ac_compiler_gnu=yes
3046else
3047 echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 ac_compiler_gnu=no
3051fi
3052
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054ac_cv_c_compiler_gnu=$ac_compiler_gnu
3055
3056fi
3057{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3058echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3059GCC=`test $ac_compiler_gnu = yes && echo yes`
3060ac_test_CFLAGS=${CFLAGS+set}
3061ac_save_CFLAGS=$CFLAGS
3062{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3063echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3064if test "${ac_cv_prog_cc_g+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
3067 ac_save_c_werror_flag=$ac_c_werror_flag
3068 ac_c_werror_flag=yes
3069 ac_cv_prog_cc_g=no
3070 CFLAGS="-g"
3071 cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
3077
3078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
3087if { (ac_try="$ac_compile"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3101 { (case "(($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_try") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003120 ac_cv_prog_cc_g=yes
3121else
3122 echo "$as_me: failed program was:" >&5
3123sed 's/^/| /' conftest.$ac_ext >&5
3124
3125 CFLAGS=""
3126 cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156 { (case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003175 :
3176else
3177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3181 CFLAGS="-g"
3182 cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h. */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h. */
3188
3189int
3190main ()
3191{
3192
3193 ;
3194 return 0;
3195}
3196_ACEOF
3197rm -f conftest.$ac_objext
3198if { (ac_try="$ac_compile"
3199case "(($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_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3212 { (case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215esac
3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_try") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; } &&
3221 { ac_try='test -s conftest.$ac_objext'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225esac
3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003231 ac_cv_prog_cc_g=yes
3232else
3233 echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
3237fi
3238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
3241
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243fi
3244
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3247fi
3248{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3250if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3254 CFLAGS="-g -O2"
3255 else
3256 CFLAGS="-g"
3257 fi
3258else
3259 if test "$GCC" = yes; then
3260 CFLAGS="-O2"
3261 else
3262 CFLAGS=
3263 fi
3264fi
3265{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267if test "${ac_cv_prog_cc_c89+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270 ac_cv_prog_cc_c89=no
3271ac_save_CC=$CC
3272cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h. */
3278#include <stdarg.h>
3279#include <stdio.h>
3280#include <sys/types.h>
3281#include <sys/stat.h>
3282/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283struct buf { int x; };
3284FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285static char *e (p, i)
3286 char **p;
3287 int i;
3288{
3289 return p[i];
3290}
3291static char *f (char * (*g) (char **, int), char **p, ...)
3292{
3293 char *s;
3294 va_list v;
3295 va_start (v,p);
3296 s = g (p, va_arg (v,int));
3297 va_end (v);
3298 return s;
3299}
3300
3301/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
3310/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3312#define FOO(x) 'x'
3313int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
3315int test (int i, double x);
3316struct s1 {int (*f) (int a);};
3317struct s2 {int (*f) (double a);};
3318int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319int argc;
3320char **argv;
3321int
3322main ()
3323{
3324return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3325 ;
3326 return 0;
3327}
3328_ACEOF
3329for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331do
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
3334if { (ac_try="$ac_compile"
3335case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338esac
3339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
3341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3348 { (case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351esac
3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_try") 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_try") 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003367 ac_cv_prog_cc_c89=$ac_arg
3368else
3369 echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
3372
3373fi
3374
3375rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
3377done
3378rm -f conftest.$ac_ext
3379CC=$ac_save_CC
3380
3381fi
3382# AC_CACHE_VAL
3383case "x$ac_cv_prog_cc_c89" in
3384 x)
3385 { echo "$as_me:$LINENO: result: none needed" >&5
3386echo "${ECHO_T}none needed" >&6; } ;;
3387 xno)
3388 { echo "$as_me:$LINENO: result: unsupported" >&5
3389echo "${ECHO_T}unsupported" >&6; } ;;
3390 *)
3391 CC="$CC $ac_cv_prog_cc_c89"
3392 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3393echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3394esac
3395
3396
3397ac_ext=c
3398ac_cpp='$CPP $CPPFLAGS'
3399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402
3403
3404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3410echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3411# On Suns, sometimes $CPP names a directory.
3412if test -n "$CPP" && test -d "$CPP"; then
3413 CPP=
3414fi
3415if test -z "$CPP"; then
3416 if test "${ac_cv_prog_CPP+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419 # Double quotes because CPP needs to be expanded
3420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3421 do
3422 ac_preproc_ok=false
3423for ac_c_preproc_warn_flag in '' yes
3424do
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#ifdef __STDC__
3438# include <limits.h>
3439#else
3440# include <assert.h>
3441#endif
3442 Syntax error
3443_ACEOF
3444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 else
3461 ac_cpp_err=
3462 fi
3463else
3464 ac_cpp_err=yes
3465fi
3466if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003467 :
3468else
3469 echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 # Broken: fails on valid input.
3473continue
3474fi
3475
3476rm -f conftest.err conftest.$ac_ext
3477
3478 # OK, works on sane cases. Now check whether nonexistent headers
3479 # can be detected and how.
3480 cat >conftest.$ac_ext <<_ACEOF
3481/* confdefs.h. */
3482_ACEOF
3483cat confdefs.h >>conftest.$ac_ext
3484cat >>conftest.$ac_ext <<_ACEOF
3485/* end confdefs.h. */
3486#include <ac_nonexistent.h>
3487_ACEOF
3488if { (ac_try="$ac_cpp conftest.$ac_ext"
3489case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003500 (exit $ac_status); } >/dev/null; then
3501 if test -s conftest.err; then
3502 ac_cpp_err=$ac_c_preproc_warn_flag
3503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504 else
3505 ac_cpp_err=
3506 fi
3507else
3508 ac_cpp_err=yes
3509fi
3510if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003511 # Broken: success on invalid input.
3512continue
3513else
3514 echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 # Passes both tests.
3518ac_preproc_ok=:
3519break
3520fi
3521
3522rm -f conftest.err conftest.$ac_ext
3523
3524done
3525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526rm -f conftest.err conftest.$ac_ext
3527if $ac_preproc_ok; then
3528 break
3529fi
3530
3531 done
3532 ac_cv_prog_CPP=$CPP
3533
3534fi
3535 CPP=$ac_cv_prog_CPP
3536else
3537 ac_cv_prog_CPP=$CPP
3538fi
3539{ echo "$as_me:$LINENO: result: $CPP" >&5
3540echo "${ECHO_T}$CPP" >&6; }
3541ac_preproc_ok=false
3542for ac_c_preproc_warn_flag in '' yes
3543do
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547 # <limits.h> exists even on freestanding compilers.
3548 # On the NeXT, cc -E runs the code through the compiler's parser,
3549 # not just through cpp. "Syntax error" is here to catch this case.
3550 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556#ifdef __STDC__
3557# include <limits.h>
3558#else
3559# include <assert.h>
3560#endif
3561 Syntax error
3562_ACEOF
3563if { (ac_try="$ac_cpp conftest.$ac_ext"
3564case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567esac
3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003575 (exit $ac_status); } >/dev/null; then
3576 if test -s conftest.err; then
3577 ac_cpp_err=$ac_c_preproc_warn_flag
3578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579 else
3580 ac_cpp_err=
3581 fi
3582else
3583 ac_cpp_err=yes
3584fi
3585if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003586 :
3587else
3588 echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 # Broken: fails on valid input.
3592continue
3593fi
3594
3595rm -f conftest.err conftest.$ac_ext
3596
3597 # OK, works on sane cases. Now check whether nonexistent headers
3598 # can be detected and how.
3599 cat >conftest.$ac_ext <<_ACEOF
3600/* confdefs.h. */
3601_ACEOF
3602cat confdefs.h >>conftest.$ac_ext
3603cat >>conftest.$ac_ext <<_ACEOF
3604/* end confdefs.h. */
3605#include <ac_nonexistent.h>
3606_ACEOF
3607if { (ac_try="$ac_cpp conftest.$ac_ext"
3608case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611esac
3612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003619 (exit $ac_status); } >/dev/null; then
3620 if test -s conftest.err; then
3621 ac_cpp_err=$ac_c_preproc_warn_flag
3622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3623 else
3624 ac_cpp_err=
3625 fi
3626else
3627 ac_cpp_err=yes
3628fi
3629if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003630 # Broken: success on invalid input.
3631continue
3632else
3633 echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 # Passes both tests.
3637ac_preproc_ok=:
3638break
3639fi
3640
3641rm -f conftest.err conftest.$ac_ext
3642
3643done
3644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645rm -f conftest.err conftest.$ac_ext
3646if $ac_preproc_ok; then
3647 :
3648else
3649 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3650See \`config.log' for more details." >&5
3651echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3652See \`config.log' for more details." >&2;}
3653 { (exit 1); exit 1; }; }
3654fi
3655
3656ac_ext=c
3657ac_cpp='$CPP $CPPFLAGS'
3658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
3662
3663{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3664echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3665if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668 # Extract the first word of "grep ggrep" to use in msg output
3669if test -z "$GREP"; then
3670set dummy grep ggrep; ac_prog_name=$2
3671if test "${ac_cv_path_GREP+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
3674 ac_path_GREP_found=false
3675# Loop through the user's path and test for each of PROGNAME-LIST
3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3678do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_prog in grep ggrep; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003684 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003685 # Check for GNU ac_path_GREP and select it if it is found.
3686 # Check for GNU $ac_path_GREP
3687case `"$ac_path_GREP" --version 2>&1` in
3688*GNU*)
3689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3690*)
3691 ac_count=0
3692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3693 while :
3694 do
3695 cat "conftest.in" "conftest.in" >"conftest.tmp"
3696 mv "conftest.tmp" "conftest.in"
3697 cp "conftest.in" "conftest.nl"
3698 echo 'GREP' >> "conftest.nl"
3699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701 ac_count=`expr $ac_count + 1`
3702 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3703 # Best one so far, save it but keep looking for a better one
3704 ac_cv_path_GREP="$ac_path_GREP"
3705 ac_path_GREP_max=$ac_count
3706 fi
3707 # 10*(2^10) chars as input seems more than enough
3708 test $ac_count -gt 10 && break
3709 done
3710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711esac
3712
3713
3714 $ac_path_GREP_found && break 3
3715 done
3716done
3717
3718done
3719IFS=$as_save_IFS
3720
3721
3722fi
3723
3724GREP="$ac_cv_path_GREP"
3725if test -z "$GREP"; then
3726 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728 { (exit 1); exit 1; }; }
3729fi
3730
3731else
3732 ac_cv_path_GREP=$GREP
3733fi
3734
3735
3736fi
3737{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3738echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3739 GREP="$ac_cv_path_GREP"
3740
3741
3742{ echo "$as_me:$LINENO: checking for egrep" >&5
3743echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3744if test "${ac_cv_path_EGREP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3748 then ac_cv_path_EGREP="$GREP -E"
3749 else
3750 # Extract the first word of "egrep" to use in msg output
3751if test -z "$EGREP"; then
3752set dummy egrep; ac_prog_name=$2
3753if test "${ac_cv_path_EGREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756 ac_path_EGREP_found=false
3757# Loop through the user's path and test for each of PROGNAME-LIST
3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3760do
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_prog in egrep; do
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003766 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003767 # Check for GNU ac_path_EGREP and select it if it is found.
3768 # Check for GNU $ac_path_EGREP
3769case `"$ac_path_EGREP" --version 2>&1` in
3770*GNU*)
3771 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3772*)
3773 ac_count=0
3774 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3775 while :
3776 do
3777 cat "conftest.in" "conftest.in" >"conftest.tmp"
3778 mv "conftest.tmp" "conftest.in"
3779 cp "conftest.in" "conftest.nl"
3780 echo 'EGREP' >> "conftest.nl"
3781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783 ac_count=`expr $ac_count + 1`
3784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3785 # Best one so far, save it but keep looking for a better one
3786 ac_cv_path_EGREP="$ac_path_EGREP"
3787 ac_path_EGREP_max=$ac_count
3788 fi
3789 # 10*(2^10) chars as input seems more than enough
3790 test $ac_count -gt 10 && break
3791 done
3792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793esac
3794
3795
3796 $ac_path_EGREP_found && break 3
3797 done
3798done
3799
3800done
3801IFS=$as_save_IFS
3802
3803
3804fi
3805
3806EGREP="$ac_cv_path_EGREP"
3807if test -z "$EGREP"; then
3808 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810 { (exit 1); exit 1; }; }
3811fi
3812
3813else
3814 ac_cv_path_EGREP=$EGREP
3815fi
3816
3817
3818 fi
3819fi
3820{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3821echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3822 EGREP="$ac_cv_path_EGREP"
3823
3824
3825{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3826echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3827if test "${ac_cv_header_stdc+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830 cat >conftest.$ac_ext <<_ACEOF
3831/* confdefs.h. */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h. */
3836#include <stdlib.h>
3837#include <stdarg.h>
3838#include <string.h>
3839#include <float.h>
3840
3841int
3842main ()
3843{
3844
3845 ;
3846 return 0;
3847}
3848_ACEOF
3849rm -f conftest.$ac_objext
3850if { (ac_try="$ac_compile"
3851case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854esac
3855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
3857 ac_status=$?
3858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00003862 (exit $ac_status); } &&
3863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3864 { (case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867esac
3868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_try") 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877esac
3878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_try") 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003883 ac_cv_header_stdc=yes
3884else
3885 echo "$as_me: failed program was:" >&5
3886sed 's/^/| /' conftest.$ac_ext >&5
3887
3888 ac_cv_header_stdc=no
3889fi
3890
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892
3893if test $ac_cv_header_stdc = yes; then
3894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895 cat >conftest.$ac_ext <<_ACEOF
3896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
3901#include <string.h>
3902
3903_ACEOF
3904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905 $EGREP "memchr" >/dev/null 2>&1; then
3906 :
3907else
3908 ac_cv_header_stdc=no
3909fi
3910rm -f conftest*
3911
3912fi
3913
3914if test $ac_cv_header_stdc = yes; then
3915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916 cat >conftest.$ac_ext <<_ACEOF
3917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h. */
3922#include <stdlib.h>
3923
3924_ACEOF
3925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3926 $EGREP "free" >/dev/null 2>&1; then
3927 :
3928else
3929 ac_cv_header_stdc=no
3930fi
3931rm -f conftest*
3932
3933fi
3934
3935if test $ac_cv_header_stdc = yes; then
3936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937 if test "$cross_compiling" = yes; then
3938 :
3939else
3940 cat >conftest.$ac_ext <<_ACEOF
3941/* confdefs.h. */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h. */
3946#include <ctype.h>
3947#include <stdlib.h>
3948#if ((' ' & 0x0FF) == 0x020)
3949# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3950# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3951#else
3952# define ISLOWER(c) \
3953 (('a' <= (c) && (c) <= 'i') \
3954 || ('j' <= (c) && (c) <= 'r') \
3955 || ('s' <= (c) && (c) <= 'z'))
3956# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3957#endif
3958
3959#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3960int
3961main ()
3962{
3963 int i;
3964 for (i = 0; i < 256; i++)
3965 if (XOR (islower (i), ISLOWER (i))
3966 || toupper (i) != TOUPPER (i))
3967 return 2;
3968 return 0;
3969}
3970_ACEOF
3971rm -f conftest$ac_exeext
3972if { (ac_try="$ac_link"
3973case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976esac
3977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_link") 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3982 { (case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985esac
3986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_try") 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 :
3992else
3993 echo "$as_me: program exited with status $ac_status" >&5
3994echo "$as_me: failed program was:" >&5
3995sed 's/^/| /' conftest.$ac_ext >&5
3996
3997( exit $ac_status )
3998ac_cv_header_stdc=no
3999fi
4000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001fi
4002
4003
4004fi
4005fi
4006{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4007echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4008if test $ac_cv_header_stdc = yes; then
4009
4010cat >>confdefs.h <<\_ACEOF
4011#define STDC_HEADERS 1
4012_ACEOF
4013
4014fi
4015
4016# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027 inttypes.h stdint.h unistd.h
4028do
4029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h. */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h. */
4041$ac_includes_default
4042
4043#include <$ac_header>
4044_ACEOF
4045rm -f conftest.$ac_objext
4046if { (ac_try="$ac_compile"
4047case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4053 ac_status=$?
4054 grep -v '^ *+' conftest.er1 >conftest.err
4055 rm -f conftest.er1
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004058 (exit $ac_status); } &&
4059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4060 { (case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_try") 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
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
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004079 eval "$as_ac_Header=yes"
4080else
4081 echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 eval "$as_ac_Header=no"
4085fi
4086
4087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088fi
4089ac_res=`eval echo '${'$as_ac_Header'}'`
4090 { echo "$as_me:$LINENO: result: $ac_res" >&5
4091echo "${ECHO_T}$ac_res" >&6; }
4092if test `eval echo '${'$as_ac_Header'}'` = yes; then
4093 cat >>confdefs.h <<_ACEOF
4094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4095_ACEOF
4096
4097fi
4098
4099done
4100
4101
4102{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4103echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4104if test "${ac_cv_c_bigendian+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107 # See if sys/param.h defines the BYTE_ORDER macro.
4108cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114#include <sys/types.h>
4115#include <sys/param.h>
4116
4117int
4118main ()
4119{
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004120#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004121 bogus endian macros
4122#endif
4123
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128rm -f conftest.$ac_objext
4129if { (ac_try="$ac_compile"
4130case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133esac
4134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004141 (exit $ac_status); } &&
4142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4143 { (case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_try") 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004162 # It does; now see whether it defined to BIG_ENDIAN or not.
4163cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h. */
4169#include <sys/types.h>
4170#include <sys/param.h>
4171
4172int
4173main ()
4174{
4175#if BYTE_ORDER != BIG_ENDIAN
4176 not big endian
4177#endif
4178
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext
4184if { (ac_try="$ac_compile"
4185case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188esac
4189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_compile") 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4198 { (case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201esac
4202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_try") 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_try") 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004217 ac_cv_c_bigendian=yes
4218else
4219 echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 ac_cv_c_bigendian=no
4223fi
4224
4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226else
4227 echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230 # It does not; compile a test program.
4231if test "$cross_compiling" = yes; then
4232 # try to guess the endianness by grepping values into an object file
4233 ac_cv_c_bigendian=unknown
4234 cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h. */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h. */
4240short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4241short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4242void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4243short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4244short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4245void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4246int
4247main ()
4248{
4249 _ascii (); _ebcdic ();
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext
4255if { (ac_try="$ac_compile"
4256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282esac
4283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004288 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4289 ac_cv_c_bigendian=yes
4290fi
4291if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4292 if test "$ac_cv_c_bigendian" = unknown; then
4293 ac_cv_c_bigendian=no
4294 else
4295 # finding both strings is unlikely to happen, but who knows?
4296 ac_cv_c_bigendian=unknown
4297 fi
4298fi
4299else
4300 echo "$as_me: failed program was:" >&5
4301sed 's/^/| /' conftest.$ac_ext >&5
4302
4303
4304fi
4305
4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307else
4308 cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h. */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h. */
4314$ac_includes_default
4315int
4316main ()
4317{
4318
4319 /* Are we little or big endian? From Harbison&Steele. */
4320 union
4321 {
4322 long int l;
4323 char c[sizeof (long int)];
4324 } u;
4325 u.l = 1;
4326 return u.c[sizeof (long int) - 1] == 1;
4327
4328 ;
4329 return 0;
4330}
4331_ACEOF
4332rm -f conftest$ac_exeext
4333if { (ac_try="$ac_link"
4334case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337esac
4338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_link") 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4343 { (case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_try") 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_c_bigendian=no
4353else
4354 echo "$as_me: program exited with status $ac_status" >&5
4355echo "$as_me: failed program was:" >&5
4356sed 's/^/| /' conftest.$ac_ext >&5
4357
4358( exit $ac_status )
4359ac_cv_c_bigendian=yes
4360fi
4361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362fi
4363
4364
4365fi
4366
4367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368fi
4369{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4370echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4371case $ac_cv_c_bigendian in
4372 yes)
4373 ENDIAN=big
4374 ;;
4375 no)
4376 ENDIAN=little
4377 ;;
4378 *)
4379 { { echo "$as_me:$LINENO: error: unknown endianness
4380presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4381echo "$as_me: error: unknown endianness
4382presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4383 { (exit 1); exit 1; }; } ;;
4384esac
4385
4386
4387if test "$cross_compiling" = yes; then
4388 LLVM_CROSS_COMPILING=1
4389
4390
4391{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4392echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4393if test "${ac_cv_build_exeext+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4397 ac_cv_build_exeext=.exe
4398else
4399 ac_build_prefix=${build_alias}-
4400
4401 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4402set dummy ${ac_build_prefix}gcc; ac_word=$2
4403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 if test -n "$BUILD_CC"; then
4409 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004417 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 +00004418 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422done
4423done
4424IFS=$as_save_IFS
4425
4426fi
4427fi
4428BUILD_CC=$ac_cv_prog_BUILD_CC
4429if test -n "$BUILD_CC"; then
4430 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4431echo "${ECHO_T}$BUILD_CC" >&6; }
4432else
4433 { echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6; }
4435fi
4436
4437
4438 if test -z "$BUILD_CC"; then
4439 # Extract the first word of "gcc", so it can be a program name with args.
4440set dummy gcc; ac_word=$2
4441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446 if test -n "$BUILD_CC"; then
4447 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4448else
4449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH
4451do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004455 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 +00004456 ac_cv_prog_BUILD_CC="gcc"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460done
4461done
4462IFS=$as_save_IFS
4463
4464fi
4465fi
4466BUILD_CC=$ac_cv_prog_BUILD_CC
4467if test -n "$BUILD_CC"; then
4468 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4469echo "${ECHO_T}$BUILD_CC" >&6; }
4470else
4471 { echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6; }
4473fi
4474
4475
4476 if test -z "$BUILD_CC"; then
4477 # Extract the first word of "cc", so it can be a program name with args.
4478set dummy cc; ac_word=$2
4479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4481if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484 if test -n "$BUILD_CC"; then
4485 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4486else
4487 ac_prog_rejected=no
4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH
4490do
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004494 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 +00004495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4496 ac_prog_rejected=yes
4497 continue
4498 fi
4499 ac_cv_prog_BUILD_CC="cc"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4502 fi
4503done
4504done
4505IFS=$as_save_IFS
4506
4507if test $ac_prog_rejected = yes; then
4508 # We found a bogon in the path, so make sure we never use it.
4509 set dummy $ac_cv_prog_BUILD_CC
4510 shift
4511 if test $# != 0; then
4512 # We chose a different compiler from the bogus one.
4513 # However, it has the same basename, so the bogon will be chosen
4514 # first if we set BUILD_CC to just the basename; use the full file name.
4515 shift
4516 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4517 fi
4518fi
4519fi
4520fi
4521BUILD_CC=$ac_cv_prog_BUILD_CC
4522if test -n "$BUILD_CC"; then
4523 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524echo "${ECHO_T}$BUILD_CC" >&6; }
4525else
4526 { echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6; }
4528fi
4529
4530
4531 fi
4532 fi
4533 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4534echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4535 { (exit 1); exit 1; }; }
4536 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4537 rm -f conftest*
4538 echo 'int main () { return 0; }' > conftest.$ac_ext
4539 ac_cv_build_exeext=
4540 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4541 (eval $ac_build_link) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; then
4545 for file in conftest.*; do
4546 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004547 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004548 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4549 esac
4550 done
4551 else
4552 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4553echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4554 { (exit 1); exit 1; }; }
4555 fi
4556 rm -f conftest*
4557 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4558fi
4559fi
4560
4561BUILD_EXEEXT=""
4562test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4563{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4564echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4565ac_build_exeext=$BUILD_EXEEXT
4566
Jim Grosbache4c032e2008-10-02 22:56:44 +00004567 ac_build_prefix=${build_alias}-
4568 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4569set dummy ${ac_build_prefix}g++; ac_word=$2
4570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 if test -n "$BUILD_CXX"; then
4576 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4577else
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004584 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 +00004585 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589done
4590done
4591IFS=$as_save_IFS
4592
4593fi
4594fi
4595BUILD_CXX=$ac_cv_prog_BUILD_CXX
4596if test -n "$BUILD_CXX"; then
4597 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4598echo "${ECHO_T}$BUILD_CXX" >&6; }
4599else
4600 { echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6; }
4602fi
4603
4604
4605 if test -z "$BUILD_CXX"; then
4606 # Extract the first word of "g++", so it can be a program name with args.
4607set dummy g++; ac_word=$2
4608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613 if test -n "$BUILD_CXX"; then
4614 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4615else
4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004622 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 +00004623 ac_cv_prog_BUILD_CXX="g++"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627done
4628done
4629IFS=$as_save_IFS
4630
4631fi
4632fi
4633BUILD_CXX=$ac_cv_prog_BUILD_CXX
4634if test -n "$BUILD_CXX"; then
4635 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4636echo "${ECHO_T}$BUILD_CXX" >&6; }
4637else
4638 { echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6; }
4640fi
4641
4642
4643 if test -z "$BUILD_CXX"; then
4644 # Extract the first word of "c++", so it can be a program name with args.
4645set dummy c++; ac_word=$2
4646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651 if test -n "$BUILD_CXX"; then
4652 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4653else
4654 ac_prog_rejected=no
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00004661 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 +00004662 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4663 ac_prog_rejected=yes
4664 continue
4665 fi
4666 ac_cv_prog_BUILD_CXX="c++"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670done
4671done
4672IFS=$as_save_IFS
4673
4674if test $ac_prog_rejected = yes; then
4675 # We found a bogon in the path, so make sure we never use it.
4676 set dummy $ac_cv_prog_BUILD_CXX
4677 shift
4678 if test $# != 0; then
4679 # We chose a different compiler from the bogus one.
4680 # However, it has the same basename, so the bogon will be chosen
4681 # first if we set BUILD_CXX to just the basename; use the full file name.
4682 shift
4683 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4684 fi
4685fi
4686fi
4687fi
4688BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689if test -n "$BUILD_CXX"; then
4690 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691echo "${ECHO_T}$BUILD_CXX" >&6; }
4692else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6; }
4695fi
4696
4697
4698 fi
4699 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004700else
4701 LLVM_CROSS_COMPILING=0
4702
4703fi
4704
Nick Lewycky45f0f822009-04-10 05:18:27 +00004705if 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 +00004706 cvsbuild="yes"
4707 optimize="no"
4708 CVSBUILD=CVSBUILD=1
4709
4710else
4711 cvsbuild="no"
4712 optimize="yes"
4713fi
4714
4715
4716# Check whether --enable-optimized was given.
4717if test "${enable_optimized+set}" = set; then
4718 enableval=$enable_optimized;
4719else
4720 enableval=$optimize
4721fi
4722
4723if test ${enableval} = "no" ; then
4724 ENABLE_OPTIMIZED=
4725
4726else
4727 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4728
4729fi
4730
David Greene19b1cbd2009-04-17 14:50:39 +00004731# Check whether --enable-profiling was given.
4732if test "${enable_profiling+set}" = set; then
4733 enableval=$enable_profiling;
4734else
4735 enableval="no"
4736fi
4737
4738if test ${enableval} = "no" ; then
4739 ENABLE_PROFILING=
4740
4741else
4742 ENABLE_PROFILING=ENABLE_PROFILING=1
4743
4744fi
4745
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004746# Check whether --enable-assertions was given.
4747if test "${enable_assertions+set}" = set; then
4748 enableval=$enable_assertions;
4749else
4750 enableval="yes"
4751fi
4752
4753if test ${enableval} = "yes" ; then
4754 DISABLE_ASSERTIONS=
4755
4756else
4757 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4758
4759fi
4760
4761# Check whether --enable-expensive-checks was given.
4762if test "${enable_expensive_checks+set}" = set; then
4763 enableval=$enable_expensive_checks;
4764else
4765 enableval="no"
4766fi
4767
4768if test ${enableval} = "yes" ; then
4769 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4770
4771 EXPENSIVE_CHECKS=yes
4772
4773else
4774 ENABLE_EXPENSIVE_CHECKS=
4775
4776 EXPENSIVE_CHECKS=no
4777
4778fi
4779
4780# Check whether --enable-debug-runtime was given.
4781if test "${enable_debug_runtime+set}" = set; then
4782 enableval=$enable_debug_runtime;
4783else
4784 enableval=no
4785fi
4786
4787if test ${enableval} = "no" ; then
4788 DEBUG_RUNTIME=
4789
4790else
4791 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4792
4793fi
4794
4795# Check whether --enable-jit was given.
4796if test "${enable_jit+set}" = set; then
4797 enableval=$enable_jit;
4798else
4799 enableval=default
4800fi
4801
4802if test ${enableval} = "no"
4803then
4804 JIT=
4805
4806else
4807 case "$llvm_cv_target_arch" in
4808 x86) TARGET_HAS_JIT=1
4809 ;;
4810 Sparc) TARGET_HAS_JIT=0
4811 ;;
4812 PowerPC) TARGET_HAS_JIT=1
4813 ;;
4814 x86_64) TARGET_HAS_JIT=1
4815 ;;
4816 Alpha) TARGET_HAS_JIT=1
4817 ;;
4818 IA64) TARGET_HAS_JIT=0
4819 ;;
4820 ARM) TARGET_HAS_JIT=0
4821 ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004822 Mips) TARGET_HAS_JIT=0
4823 ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004824 PIC16) TARGET_HAS_JIT=0
4825 ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004826 XCore) TARGET_HAS_JIT=0
4827 ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004828 MSP430) TARGET_HAS_JIT=0
4829 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004830 *) TARGET_HAS_JIT=0
4831 ;;
4832 esac
4833fi
4834
4835# Check whether --enable-doxygen was given.
4836if test "${enable_doxygen+set}" = set; then
4837 enableval=$enable_doxygen;
4838else
4839 enableval=default
4840fi
4841
4842case "$enableval" in
4843 yes) ENABLE_DOXYGEN=1
4844 ;;
4845 no) ENABLE_DOXYGEN=0
4846 ;;
4847 default) ENABLE_DOXYGEN=0
4848 ;;
4849 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4850echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; } ;;
4852esac
4853
4854# Check whether --enable-threads was given.
4855if test "${enable_threads+set}" = set; then
4856 enableval=$enable_threads;
4857else
4858 enableval=default
4859fi
4860
4861case "$enableval" in
4862 yes) ENABLE_THREADS=1
4863 ;;
4864 no) ENABLE_THREADS=0
4865 ;;
4866 default) ENABLE_THREADS=1
4867 ;;
4868 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4869echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4870 { (exit 1); exit 1; }; } ;;
4871esac
4872
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004873# Check whether --enable-pic was given.
4874if test "${enable_pic+set}" = set; then
4875 enableval=$enable_pic;
4876else
4877 enableval=default
4878fi
4879
4880case "$enableval" in
4881 yes) ENABLE_PIC=1
4882 ;;
4883 no) ENABLE_PIC=0
4884 ;;
Nick Lewycky6512b232009-02-19 06:18:56 +00004885 default) ENABLE_PIC=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004886 ;;
4887 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4888echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4889 { (exit 1); exit 1; }; } ;;
4890esac
4891
4892cat >>confdefs.h <<_ACEOF
4893#define ENABLE_PIC $ENABLE_PIC
4894_ACEOF
4895
4896
4897TARGETS_TO_BUILD=""
4898# Check whether --enable-targets was given.
4899if test "${enable_targets+set}" = set; then
4900 enableval=$enable_targets;
4901else
4902 enableval=all
4903fi
4904
4905case "$enableval" in
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004906 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004907 host-only)
4908 case "$llvm_cv_target_arch" in
4909 x86) TARGETS_TO_BUILD="X86" ;;
4910 x86_64) TARGETS_TO_BUILD="X86" ;;
4911 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4912 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4913 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4914 IA64) TARGETS_TO_BUILD="IA64" ;;
4915 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004916 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004917 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004918 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004919 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004920 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004921 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4922echo "$as_me: error: Can not set target to build" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4924 esac
4925 ;;
4926 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4927 case "$a_target" in
4928 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4929 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4930 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4931 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4932 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4933 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4934 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004935 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004936 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004937 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneab8167a2008-11-07 10:59:00 +00004938 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov5f018aa2009-05-03 13:42:23 +00004939 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nate Begeman5eb39882007-12-13 01:18:52 +00004940 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4941 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00004942 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004943 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4944echo "$as_me: error: Unrecognized target $a_target" >&2;}
4945 { (exit 1); exit 1; }; } ;;
4946 esac
4947 done
4948 ;;
4949esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004950TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4951
4952
4953# Check whether --enable-cbe-printf-a was given.
4954if test "${enable_cbe_printf_a+set}" = set; then
4955 enableval=$enable_cbe_printf_a;
4956else
4957 enableval=default
4958fi
4959
4960case "$enableval" in
4961 yes) ENABLE_CBE_PRINTF_A=1
4962 ;;
4963 no) ENABLE_CBE_PRINTF_A=0
4964 ;;
4965 default) ENABLE_CBE_PRINTF_A=1
4966 ;;
4967 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4968echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4969 { (exit 1); exit 1; }; } ;;
4970esac
4971
4972cat >>confdefs.h <<_ACEOF
4973#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4974_ACEOF
4975
4976
4977
4978# Check whether --with-llvmgccdir was given.
4979if test "${with_llvmgccdir+set}" = set; then
4980 withval=$with_llvmgccdir;
4981else
4982 withval=default
4983fi
4984
4985case "$withval" in
4986 default) WITH_LLVMGCCDIR=default ;;
4987 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4988 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4989echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4990 { (exit 1); exit 1; }; } ;;
4991esac
4992
4993
Devang Pateld84ba7b2007-12-04 22:54:47 +00004994# Check whether --with-llvmgcc was given.
4995if test "${with_llvmgcc+set}" = set; then
4996 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4997 WITH_LLVMGCCDIR=""
4998fi
4999
5000
5001
5002# Check whether --with-llvmgxx was given.
5003if test "${with_llvmgxx+set}" = set; then
5004 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5005 WITH_LLVMGCCDIR=""
5006fi
5007
Douglas Gregord1e1dbc2009-05-11 18:05:52 +00005008
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +00005009if test -n "$LLVMGCC"; then
5010 LLVMGCCCOMMAND="$LLVMGCC"
5011fi
5012
5013if test -n "$LLVMGXX"; then
5014 LLVMGXXCOMMAND="$LLVMGXX"
5015fi
Devang Pateld84ba7b2007-12-04 22:54:47 +00005016
5017if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5018 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5019echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5020 { (exit 1); exit 1; }; };
5021fi
5022
5023if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5024 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5025echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5026 { (exit 1); exit 1; }; };
5027fi
5028
5029
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005030# Check whether --with-extra-options was given.
5031if test "${with_extra_options+set}" = set; then
5032 withval=$with_extra_options;
5033else
5034 withval=default
5035fi
5036
5037case "$withval" in
5038 default) EXTRA_OPTIONS= ;;
5039 *) EXTRA_OPTIONS=$withval ;;
5040esac
5041EXTRA_OPTIONS=$EXTRA_OPTIONS
5042
5043
Gordon Henriksen016ec472007-10-02 09:50:32 +00005044# Check whether --enable-bindings was given.
5045if test "${enable_bindings+set}" = set; then
5046 enableval=$enable_bindings;
5047else
5048 enableval=default
5049fi
5050
5051BINDINGS_TO_BUILD=""
5052case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00005053 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00005054 all ) BINDINGS_TO_BUILD="ocaml" ;;
5055 none | no) BINDINGS_TO_BUILD="" ;;
5056 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5057 case "$a_binding" in
5058 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5059 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5060echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5061 { (exit 1); exit 1; }; } ;;
5062 esac
5063 done
5064 ;;
5065esac
5066
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005067
Gordon Henriksen058a4c62007-10-02 16:42:22 +00005068# Check whether --with-ocaml-libdir was given.
5069if test "${with_ocaml_libdir+set}" = set; then
5070 withval=$with_ocaml_libdir;
5071else
5072 withval=auto
5073fi
5074
5075case "$withval" in
5076 auto) with_ocaml_libdir="$withval" ;;
5077 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5078 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5079echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5080 { (exit 1); exit 1; }; } ;;
5081esac
5082
5083
Nick Lewyckyf9c14662009-02-03 07:10:30 +00005084# Check whether --with-binutils-include was given.
5085if test "${with_binutils_include+set}" = set; then
5086 withval=$with_binutils_include;
5087else
5088 withval=default
5089fi
5090
5091case "$withval" in
5092 default) WITH_BINUTILS_INCDIR=default ;;
5093 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5094 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5095echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097esac
5098if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5099 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5100
5101 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5102 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5103 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5104echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5105 { (exit 1); exit 1; }; };
5106 fi
5107fi
5108
5109
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005110ac_ext=c
5111ac_cpp='$CPP $CPPFLAGS'
5112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5116echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5117# On Suns, sometimes $CPP names a directory.
5118if test -n "$CPP" && test -d "$CPP"; then
5119 CPP=
5120fi
5121if test -z "$CPP"; then
5122 if test "${ac_cv_prog_CPP+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125 # Double quotes because CPP needs to be expanded
5126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5127 do
5128 ac_preproc_ok=false
5129for ac_c_preproc_warn_flag in '' yes
5130do
5131 # Use a header file that comes with gcc, so configuring glibc
5132 # with a fresh cross-compiler works.
5133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134 # <limits.h> exists even on freestanding compilers.
5135 # On the NeXT, cc -E runs the code through the compiler's parser,
5136 # not just through cpp. "Syntax error" is here to catch this case.
5137 cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h. */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h. */
5143#ifdef __STDC__
5144# include <limits.h>
5145#else
5146# include <assert.h>
5147#endif
5148 Syntax error
5149_ACEOF
5150if { (ac_try="$ac_cpp conftest.$ac_ext"
5151case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154esac
5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005162 (exit $ac_status); } >/dev/null; then
5163 if test -s conftest.err; then
5164 ac_cpp_err=$ac_c_preproc_warn_flag
5165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5166 else
5167 ac_cpp_err=
5168 fi
5169else
5170 ac_cpp_err=yes
5171fi
5172if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005173 :
5174else
5175 echo "$as_me: failed program was:" >&5
5176sed 's/^/| /' conftest.$ac_ext >&5
5177
5178 # Broken: fails on valid input.
5179continue
5180fi
5181
5182rm -f conftest.err conftest.$ac_ext
5183
5184 # OK, works on sane cases. Now check whether nonexistent headers
5185 # can be detected and how.
5186 cat >conftest.$ac_ext <<_ACEOF
5187/* confdefs.h. */
5188_ACEOF
5189cat confdefs.h >>conftest.$ac_ext
5190cat >>conftest.$ac_ext <<_ACEOF
5191/* end confdefs.h. */
5192#include <ac_nonexistent.h>
5193_ACEOF
5194if { (ac_try="$ac_cpp conftest.$ac_ext"
5195case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198esac
5199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5201 ac_status=$?
5202 grep -v '^ *+' conftest.er1 >conftest.err
5203 rm -f conftest.er1
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005206 (exit $ac_status); } >/dev/null; then
5207 if test -s conftest.err; then
5208 ac_cpp_err=$ac_c_preproc_warn_flag
5209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5210 else
5211 ac_cpp_err=
5212 fi
5213else
5214 ac_cpp_err=yes
5215fi
5216if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005217 # Broken: success on invalid input.
5218continue
5219else
5220 echo "$as_me: failed program was:" >&5
5221sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 # Passes both tests.
5224ac_preproc_ok=:
5225break
5226fi
5227
5228rm -f conftest.err conftest.$ac_ext
5229
5230done
5231# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5232rm -f conftest.err conftest.$ac_ext
5233if $ac_preproc_ok; then
5234 break
5235fi
5236
5237 done
5238 ac_cv_prog_CPP=$CPP
5239
5240fi
5241 CPP=$ac_cv_prog_CPP
5242else
5243 ac_cv_prog_CPP=$CPP
5244fi
5245{ echo "$as_me:$LINENO: result: $CPP" >&5
5246echo "${ECHO_T}$CPP" >&6; }
5247ac_preproc_ok=false
5248for ac_c_preproc_warn_flag in '' yes
5249do
5250 # Use a header file that comes with gcc, so configuring glibc
5251 # with a fresh cross-compiler works.
5252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5253 # <limits.h> exists even on freestanding compilers.
5254 # On the NeXT, cc -E runs the code through the compiler's parser,
5255 # not just through cpp. "Syntax error" is here to catch this case.
5256 cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h. */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h. */
5262#ifdef __STDC__
5263# include <limits.h>
5264#else
5265# include <assert.h>
5266#endif
5267 Syntax error
5268_ACEOF
5269if { (ac_try="$ac_cpp conftest.$ac_ext"
5270case "(($ac_try" in
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5273esac
5274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005281 (exit $ac_status); } >/dev/null; then
5282 if test -s conftest.err; then
5283 ac_cpp_err=$ac_c_preproc_warn_flag
5284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5285 else
5286 ac_cpp_err=
5287 fi
5288else
5289 ac_cpp_err=yes
5290fi
5291if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005292 :
5293else
5294 echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 # Broken: fails on valid input.
5298continue
5299fi
5300
5301rm -f conftest.err conftest.$ac_ext
5302
5303 # OK, works on sane cases. Now check whether nonexistent headers
5304 # can be detected and how.
5305 cat >conftest.$ac_ext <<_ACEOF
5306/* confdefs.h. */
5307_ACEOF
5308cat confdefs.h >>conftest.$ac_ext
5309cat >>conftest.$ac_ext <<_ACEOF
5310/* end confdefs.h. */
5311#include <ac_nonexistent.h>
5312_ACEOF
5313if { (ac_try="$ac_cpp conftest.$ac_ext"
5314case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317esac
5318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005325 (exit $ac_status); } >/dev/null; then
5326 if test -s conftest.err; then
5327 ac_cpp_err=$ac_c_preproc_warn_flag
5328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5329 else
5330 ac_cpp_err=
5331 fi
5332else
5333 ac_cpp_err=yes
5334fi
5335if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005336 # Broken: success on invalid input.
5337continue
5338else
5339 echo "$as_me: failed program was:" >&5
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 # Passes both tests.
5343ac_preproc_ok=:
5344break
5345fi
5346
5347rm -f conftest.err conftest.$ac_ext
5348
5349done
5350# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5351rm -f conftest.err conftest.$ac_ext
5352if $ac_preproc_ok; then
5353 :
5354else
5355 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5356See \`config.log' for more details." >&5
5357echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5358See \`config.log' for more details." >&2;}
5359 { (exit 1); exit 1; }; }
5360fi
5361
5362ac_ext=c
5363ac_cpp='$CPP $CPPFLAGS'
5364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5366ac_compiler_gnu=$ac_cv_c_compiler_gnu
5367
5368ac_ext=c
5369ac_cpp='$CPP $CPPFLAGS'
5370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373if test -n "$ac_tool_prefix"; then
5374 for ac_prog in gcc
5375 do
5376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5377set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5380if test "${ac_cv_prog_CC+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383 if test -n "$CC"; then
5384 ac_cv_prog_CC="$CC" # Let the user override the test.
5385else
5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005392 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 +00005393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397done
5398done
5399IFS=$as_save_IFS
5400
5401fi
5402fi
5403CC=$ac_cv_prog_CC
5404if test -n "$CC"; then
5405 { echo "$as_me:$LINENO: result: $CC" >&5
5406echo "${ECHO_T}$CC" >&6; }
5407else
5408 { echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6; }
5410fi
5411
5412
5413 test -n "$CC" && break
5414 done
5415fi
5416if test -z "$CC"; then
5417 ac_ct_CC=$CC
5418 for ac_prog in gcc
5419do
5420 # Extract the first word of "$ac_prog", so it can be a program name with args.
5421set dummy $ac_prog; ac_word=$2
5422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426else
5427 if test -n "$ac_ct_CC"; then
5428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005436 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 +00005437 ac_cv_prog_ac_ct_CC="$ac_prog"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441done
5442done
5443IFS=$as_save_IFS
5444
5445fi
5446fi
5447ac_ct_CC=$ac_cv_prog_ac_ct_CC
5448if test -n "$ac_ct_CC"; then
5449 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5450echo "${ECHO_T}$ac_ct_CC" >&6; }
5451else
5452 { echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6; }
5454fi
5455
5456
5457 test -n "$ac_ct_CC" && break
5458done
5459
5460 if test "x$ac_ct_CC" = x; then
5461 CC=""
5462 else
5463 case $cross_compiling:$ac_tool_warned in
5464yes:)
5465{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5466whose name does not start with the host triplet. If you think this
5467configuration is useful to you, please write to autoconf@gnu.org." >&5
5468echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5469whose name does not start with the host triplet. If you think this
5470configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5471ac_tool_warned=yes ;;
5472esac
5473 CC=$ac_ct_CC
5474 fi
5475fi
5476
5477
5478test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5479See \`config.log' for more details." >&5
5480echo "$as_me: error: no acceptable C compiler found in \$PATH
5481See \`config.log' for more details." >&2;}
5482 { (exit 1); exit 1; }; }
5483
5484# Provide some information about the compiler.
5485echo "$as_me:$LINENO: checking for C compiler version" >&5
5486ac_compiler=`set X $ac_compile; echo $2`
5487{ (ac_try="$ac_compiler --version >&5"
5488case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491esac
5492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compiler --version >&5") 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }
5497{ (ac_try="$ac_compiler -v >&5"
5498case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501esac
5502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compiler -v >&5") 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }
5507{ (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }
5517
5518{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5519echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5520if test "${ac_cv_c_compiler_gnu+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523 cat >conftest.$ac_ext <<_ACEOF
5524/* confdefs.h. */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h. */
5529
5530int
5531main ()
5532{
5533#ifndef __GNUC__
5534 choke me
5535#endif
5536
5537 ;
5538 return 0;
5539}
5540_ACEOF
5541rm -f conftest.$ac_objext
5542if { (ac_try="$ac_compile"
5543case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546esac
5547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_compile") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005554 (exit $ac_status); } &&
5555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5556 { (case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_try") 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; } &&
5565 { ac_try='test -s conftest.$ac_objext'
5566 { (case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569esac
5570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_try") 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005575 ac_compiler_gnu=yes
5576else
5577 echo "$as_me: failed program was:" >&5
5578sed 's/^/| /' conftest.$ac_ext >&5
5579
5580 ac_compiler_gnu=no
5581fi
5582
5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584ac_cv_c_compiler_gnu=$ac_compiler_gnu
5585
5586fi
5587{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5588echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5589GCC=`test $ac_compiler_gnu = yes && echo yes`
5590ac_test_CFLAGS=${CFLAGS+set}
5591ac_save_CFLAGS=$CFLAGS
5592{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5593echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5594if test "${ac_cv_prog_cc_g+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597 ac_save_c_werror_flag=$ac_c_werror_flag
5598 ac_c_werror_flag=yes
5599 ac_cv_prog_cc_g=no
5600 CFLAGS="-g"
5601 cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
5607
5608int
5609main ()
5610{
5611
5612 ;
5613 return 0;
5614}
5615_ACEOF
5616rm -f conftest.$ac_objext
5617if { (ac_try="$ac_compile"
5618case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621esac
5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_compile") 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005629 (exit $ac_status); } &&
5630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5631 { (case "(($ac_try" in
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5634esac
5635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_try") 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; } &&
5640 { ac_try='test -s conftest.$ac_objext'
5641 { (case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644esac
5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_try") 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005650 ac_cv_prog_cc_g=yes
5651else
5652 echo "$as_me: failed program was:" >&5
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 CFLAGS=""
5656 cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h. */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h. */
5662
5663int
5664main ()
5665{
5666
5667 ;
5668 return 0;
5669}
5670_ACEOF
5671rm -f conftest.$ac_objext
5672if { (ac_try="$ac_compile"
5673case "(($ac_try" in
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5676esac
5677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5686 { (case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689esac
5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; } &&
5695 { ac_try='test -s conftest.$ac_objext'
5696 { (case "(($ac_try" in
5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698 *) ac_try_echo=$ac_try;;
5699esac
5700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701 (eval "$ac_try") 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005705 :
5706else
5707 echo "$as_me: failed program was:" >&5
5708sed 's/^/| /' conftest.$ac_ext >&5
5709
5710 ac_c_werror_flag=$ac_save_c_werror_flag
5711 CFLAGS="-g"
5712 cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718
5719int
5720main ()
5721{
5722
5723 ;
5724 return 0;
5725}
5726_ACEOF
5727rm -f conftest.$ac_objext
5728if { (ac_try="$ac_compile"
5729case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732esac
5733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_compile") 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005740 (exit $ac_status); } &&
5741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5742 { (case "(($ac_try" in
5743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5745esac
5746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_try") 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try='test -s conftest.$ac_objext'
5752 { (case "(($ac_try" in
5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754 *) ac_try_echo=$ac_try;;
5755esac
5756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757 (eval "$ac_try") 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005761 ac_cv_prog_cc_g=yes
5762else
5763 echo "$as_me: failed program was:" >&5
5764sed 's/^/| /' conftest.$ac_ext >&5
5765
5766
5767fi
5768
5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5770fi
5771
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773fi
5774
5775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 ac_c_werror_flag=$ac_save_c_werror_flag
5777fi
5778{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5779echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5780if test "$ac_test_CFLAGS" = set; then
5781 CFLAGS=$ac_save_CFLAGS
5782elif test $ac_cv_prog_cc_g = yes; then
5783 if test "$GCC" = yes; then
5784 CFLAGS="-g -O2"
5785 else
5786 CFLAGS="-g"
5787 fi
5788else
5789 if test "$GCC" = yes; then
5790 CFLAGS="-O2"
5791 else
5792 CFLAGS=
5793 fi
5794fi
5795{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5796echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5797if test "${ac_cv_prog_cc_c89+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5799else
5800 ac_cv_prog_cc_c89=no
5801ac_save_CC=$CC
5802cat >conftest.$ac_ext <<_ACEOF
5803/* confdefs.h. */
5804_ACEOF
5805cat confdefs.h >>conftest.$ac_ext
5806cat >>conftest.$ac_ext <<_ACEOF
5807/* end confdefs.h. */
5808#include <stdarg.h>
5809#include <stdio.h>
5810#include <sys/types.h>
5811#include <sys/stat.h>
5812/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5813struct buf { int x; };
5814FILE * (*rcsopen) (struct buf *, struct stat *, int);
5815static char *e (p, i)
5816 char **p;
5817 int i;
5818{
5819 return p[i];
5820}
5821static char *f (char * (*g) (char **, int), char **p, ...)
5822{
5823 char *s;
5824 va_list v;
5825 va_start (v,p);
5826 s = g (p, va_arg (v,int));
5827 va_end (v);
5828 return s;
5829}
5830
5831/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5832 function prototypes and stuff, but not '\xHH' hex character constants.
5833 These don't provoke an error unfortunately, instead are silently treated
5834 as 'x'. The following induces an error, until -std is added to get
5835 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5836 array size at least. It's necessary to write '\x00'==0 to get something
5837 that's true only with -std. */
5838int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5839
5840/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5841 inside strings and character constants. */
5842#define FOO(x) 'x'
5843int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5844
5845int test (int i, double x);
5846struct s1 {int (*f) (int a);};
5847struct s2 {int (*f) (double a);};
5848int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5849int argc;
5850char **argv;
5851int
5852main ()
5853{
5854return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5855 ;
5856 return 0;
5857}
5858_ACEOF
5859for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5860 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5861do
5862 CC="$ac_save_CC $ac_arg"
5863 rm -f conftest.$ac_objext
5864if { (ac_try="$ac_compile"
5865case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868esac
5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5871 ac_status=$?
5872 grep -v '^ *+' conftest.er1 >conftest.err
5873 rm -f conftest.er1
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005876 (exit $ac_status); } &&
5877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881esac
5882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; } &&
5887 { ac_try='test -s conftest.$ac_objext'
5888 { (case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891esac
5892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_try") 2>&5
5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005897 ac_cv_prog_cc_c89=$ac_arg
5898else
5899 echo "$as_me: failed program was:" >&5
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
5902
5903fi
5904
5905rm -f core conftest.err conftest.$ac_objext
5906 test "x$ac_cv_prog_cc_c89" != "xno" && break
5907done
5908rm -f conftest.$ac_ext
5909CC=$ac_save_CC
5910
5911fi
5912# AC_CACHE_VAL
5913case "x$ac_cv_prog_cc_c89" in
5914 x)
5915 { echo "$as_me:$LINENO: result: none needed" >&5
5916echo "${ECHO_T}none needed" >&6; } ;;
5917 xno)
5918 { echo "$as_me:$LINENO: result: unsupported" >&5
5919echo "${ECHO_T}unsupported" >&6; } ;;
5920 *)
5921 CC="$CC $ac_cv_prog_cc_c89"
5922 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5923echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5924esac
5925
5926
5927ac_ext=c
5928ac_cpp='$CPP $CPPFLAGS'
5929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5931ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932
5933ac_ext=cpp
5934ac_cpp='$CXXCPP $CPPFLAGS'
5935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5938if test -z "$CXX"; then
5939 if test -n "$CCC"; then
5940 CXX=$CCC
5941 else
5942 if test -n "$ac_tool_prefix"; then
5943 for ac_prog in g++
5944 do
5945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949if test "${ac_cv_prog_CXX+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952 if test -n "$CXX"; then
5953 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00005961 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 +00005962 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966done
5967done
5968IFS=$as_save_IFS
5969
5970fi
5971fi
5972CXX=$ac_cv_prog_CXX
5973if test -n "$CXX"; then
5974 { echo "$as_me:$LINENO: result: $CXX" >&5
5975echo "${ECHO_T}$CXX" >&6; }
5976else
5977 { echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6; }
5979fi
5980
5981
5982 test -n "$CXX" && break
5983 done
5984fi
5985if test -z "$CXX"; then
5986 ac_ct_CXX=$CXX
5987 for ac_prog in g++
5988do
5989 # Extract the first word of "$ac_prog", so it can be a program name with args.
5990set dummy $ac_prog; ac_word=$2
5991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995else
5996 if test -n "$ac_ct_CXX"; then
5997 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006005 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 +00006006 ac_cv_prog_ac_ct_CXX="$ac_prog"
6007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6009 fi
6010done
6011done
6012IFS=$as_save_IFS
6013
6014fi
6015fi
6016ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6017if test -n "$ac_ct_CXX"; then
6018 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6019echo "${ECHO_T}$ac_ct_CXX" >&6; }
6020else
6021 { echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6; }
6023fi
6024
6025
6026 test -n "$ac_ct_CXX" && break
6027done
6028
6029 if test "x$ac_ct_CXX" = x; then
6030 CXX="g++"
6031 else
6032 case $cross_compiling:$ac_tool_warned in
6033yes:)
6034{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6035whose name does not start with the host triplet. If you think this
6036configuration is useful to you, please write to autoconf@gnu.org." >&5
6037echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6038whose name does not start with the host triplet. If you think this
6039configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6040ac_tool_warned=yes ;;
6041esac
6042 CXX=$ac_ct_CXX
6043 fi
6044fi
6045
6046 fi
6047fi
6048# Provide some information about the compiler.
6049echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6050ac_compiler=`set X $ac_compile; echo $2`
6051{ (ac_try="$ac_compiler --version >&5"
6052case "(($ac_try" in
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6055esac
6056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057 (eval "$ac_compiler --version >&5") 2>&5
6058 ac_status=$?
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }
6061{ (ac_try="$ac_compiler -v >&5"
6062case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compiler -v >&5") 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }
6071{ (ac_try="$ac_compiler -V >&5"
6072case "(($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_compiler -V >&5") 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }
6081
6082{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6083echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6084if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087 cat >conftest.$ac_ext <<_ACEOF
6088/* confdefs.h. */
6089_ACEOF
6090cat confdefs.h >>conftest.$ac_ext
6091cat >>conftest.$ac_ext <<_ACEOF
6092/* end confdefs.h. */
6093
6094int
6095main ()
6096{
6097#ifndef __GNUC__
6098 choke me
6099#endif
6100
6101 ;
6102 return 0;
6103}
6104_ACEOF
6105rm -f conftest.$ac_objext
6106if { (ac_try="$ac_compile"
6107case "(($ac_try" in
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6110esac
6111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6120 { (case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_try") 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; } &&
6129 { ac_try='test -s conftest.$ac_objext'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006139 ac_compiler_gnu=yes
6140else
6141 echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_compiler_gnu=no
6145fi
6146
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6149
6150fi
6151{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6152echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6153GXX=`test $ac_compiler_gnu = yes && echo yes`
6154ac_test_CXXFLAGS=${CXXFLAGS+set}
6155ac_save_CXXFLAGS=$CXXFLAGS
6156{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6157echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6158if test "${ac_cv_prog_cxx_g+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6162 ac_cxx_werror_flag=yes
6163 ac_cv_prog_cxx_g=no
6164 CXXFLAGS="-g"
6165 cat >conftest.$ac_ext <<_ACEOF
6166/* confdefs.h. */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h. */
6171
6172int
6173main ()
6174{
6175
6176 ;
6177 return 0;
6178}
6179_ACEOF
6180rm -f conftest.$ac_objext
6181if { (ac_try="$ac_compile"
6182case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185esac
6186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_compile") 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006193 (exit $ac_status); } &&
6194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6195 { (case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198esac
6199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_try") 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try='test -s conftest.$ac_objext'
6205 { (case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208esac
6209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_try") 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006214 ac_cv_prog_cxx_g=yes
6215else
6216 echo "$as_me: failed program was:" >&5
6217sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 CXXFLAGS=""
6220 cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226
6227int
6228main ()
6229{
6230
6231 ;
6232 return 0;
6233}
6234_ACEOF
6235rm -f conftest.$ac_objext
6236if { (ac_try="$ac_compile"
6237case "(($ac_try" in
6238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239 *) ac_try_echo=$ac_try;;
6240esac
6241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242 (eval "$ac_compile") 2>conftest.er1
6243 ac_status=$?
6244 grep -v '^ *+' conftest.er1 >conftest.err
6245 rm -f conftest.er1
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006248 (exit $ac_status); } &&
6249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6250 { (case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253esac
6254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_try") 2>&5
6256 ac_status=$?
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); }; } &&
6259 { ac_try='test -s conftest.$ac_objext'
6260 { (case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263esac
6264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_try") 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006269 :
6270else
6271 echo "$as_me: failed program was:" >&5
6272sed 's/^/| /' conftest.$ac_ext >&5
6273
6274 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6275 CXXFLAGS="-g"
6276 cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h. */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h. */
6282
6283int
6284main ()
6285{
6286
6287 ;
6288 return 0;
6289}
6290_ACEOF
6291rm -f conftest.$ac_objext
6292if { (ac_try="$ac_compile"
6293case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296esac
6297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_compile") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006304 (exit $ac_status); } &&
6305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6306 { (case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309esac
6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_try") 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest.$ac_objext'
6316 { (case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6319esac
6320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_try") 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006325 ac_cv_prog_cxx_g=yes
6326else
6327 echo "$as_me: failed program was:" >&5
6328sed 's/^/| /' conftest.$ac_ext >&5
6329
6330
6331fi
6332
6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334fi
6335
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337fi
6338
6339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6340 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6341fi
6342{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6343echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6344if test "$ac_test_CXXFLAGS" = set; then
6345 CXXFLAGS=$ac_save_CXXFLAGS
6346elif test $ac_cv_prog_cxx_g = yes; then
6347 if test "$GXX" = yes; then
6348 CXXFLAGS="-g -O2"
6349 else
6350 CXXFLAGS="-g"
6351 fi
6352else
6353 if test "$GXX" = yes; then
6354 CXXFLAGS="-O2"
6355 else
6356 CXXFLAGS=
6357 fi
6358fi
6359ac_ext=c
6360ac_cpp='$CPP $CPPFLAGS'
6361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363ac_compiler_gnu=$ac_cv_c_compiler_gnu
6364
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006365
6366{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6367echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6368if test "${lt_cv_path_NM+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
6371 if test -n "$NM"; then
6372 # Let the user override the test.
6373 lt_cv_path_NM="$NM"
6374else
6375 lt_nm_to_check="${ac_tool_prefix}nm"
6376 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6377 lt_nm_to_check="$lt_nm_to_check nm"
6378 fi
6379 for lt_tmp_nm in $lt_nm_to_check; do
6380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6381 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6382 IFS="$lt_save_ifs"
6383 test -z "$ac_dir" && ac_dir=.
6384 tmp_nm="$ac_dir/$lt_tmp_nm"
6385 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6386 # Check to see if the nm accepts a BSD-compat flag.
6387 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6388 # nm: unknown option "B" ignored
6389 # Tru64's nm complains that /dev/null is an invalid object file
6390 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6391 */dev/null* | *'Invalid file or object type'*)
6392 lt_cv_path_NM="$tmp_nm -B"
6393 break
6394 ;;
6395 *)
6396 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6397 */dev/null*)
6398 lt_cv_path_NM="$tmp_nm -p"
6399 break
6400 ;;
6401 *)
6402 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6403 continue # so that we can try to find one that supports BSD flags
6404 ;;
6405 esac
6406 ;;
6407 esac
6408 fi
6409 done
6410 IFS="$lt_save_ifs"
6411 done
6412 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6413fi
6414fi
6415{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6416echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6417NM="$lt_cv_path_NM"
6418
6419
6420
6421{ echo "$as_me:$LINENO: checking for GNU make" >&5
6422echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6423if test "${llvm_cv_gnu_make_command+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425else
6426 llvm_cv_gnu_make_command=''
6427 for a in "$MAKE" make gmake gnumake ; do
6428 if test -z "$a" ; then continue ; fi ;
6429 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6430 then
6431 llvm_cv_gnu_make_command=$a ;
6432 break;
6433 fi
6434 done
6435fi
6436{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6437echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6438 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6439 ifGNUmake='' ;
6440 else
6441 ifGNUmake='#' ;
6442 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6443echo "${ECHO_T}\"Not found\"" >&6; };
6444 fi
6445
6446
6447{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6448echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6449LN_S=$as_ln_s
6450if test "$LN_S" = "ln -s"; then
6451 { echo "$as_me:$LINENO: result: yes" >&5
6452echo "${ECHO_T}yes" >&6; }
6453else
6454 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6455echo "${ECHO_T}no, using $LN_S" >&6; }
6456fi
6457
6458# Extract the first word of "cmp", so it can be a program name with args.
6459set dummy cmp; ac_word=$2
6460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462if test "${ac_cv_path_CMP+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
6465 case $CMP in
6466 [\\/]* | ?:[\\/]*)
6467 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6468 ;;
6469 *)
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006476 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 +00006477 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481done
6482done
6483IFS=$as_save_IFS
6484
6485 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6486 ;;
6487esac
6488fi
6489CMP=$ac_cv_path_CMP
6490if test -n "$CMP"; then
6491 { echo "$as_me:$LINENO: result: $CMP" >&5
6492echo "${ECHO_T}$CMP" >&6; }
6493else
6494 { echo "$as_me:$LINENO: result: no" >&5
6495echo "${ECHO_T}no" >&6; }
6496fi
6497
6498
6499# Extract the first word of "cp", so it can be a program name with args.
6500set dummy cp; ac_word=$2
6501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503if test "${ac_cv_path_CP+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 case $CP in
6507 [\\/]* | ?:[\\/]*)
6508 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6509 ;;
6510 *)
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006517 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 +00006518 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522done
6523done
6524IFS=$as_save_IFS
6525
6526 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6527 ;;
6528esac
6529fi
6530CP=$ac_cv_path_CP
6531if test -n "$CP"; then
6532 { echo "$as_me:$LINENO: result: $CP" >&5
6533echo "${ECHO_T}$CP" >&6; }
6534else
6535 { echo "$as_me:$LINENO: result: no" >&5
6536echo "${ECHO_T}no" >&6; }
6537fi
6538
6539
6540# Extract the first word of "date", so it can be a program name with args.
6541set dummy date; ac_word=$2
6542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544if test "${ac_cv_path_DATE+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 case $DATE in
6548 [\\/]* | ?:[\\/]*)
6549 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6550 ;;
6551 *)
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006558 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 +00006559 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563done
6564done
6565IFS=$as_save_IFS
6566
6567 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6568 ;;
6569esac
6570fi
6571DATE=$ac_cv_path_DATE
6572if test -n "$DATE"; then
6573 { echo "$as_me:$LINENO: result: $DATE" >&5
6574echo "${ECHO_T}$DATE" >&6; }
6575else
6576 { echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6; }
6578fi
6579
6580
6581# Extract the first word of "find", so it can be a program name with args.
6582set dummy find; ac_word=$2
6583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585if test "${ac_cv_path_FIND+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588 case $FIND in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6591 ;;
6592 *)
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006599 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 +00006600 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6603 fi
6604done
6605done
6606IFS=$as_save_IFS
6607
6608 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6609 ;;
6610esac
6611fi
6612FIND=$ac_cv_path_FIND
6613if test -n "$FIND"; then
6614 { echo "$as_me:$LINENO: result: $FIND" >&5
6615echo "${ECHO_T}$FIND" >&6; }
6616else
6617 { echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6; }
6619fi
6620
6621
6622# Extract the first word of "grep", so it can be a program name with args.
6623set dummy grep; ac_word=$2
6624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626if test "${ac_cv_path_GREP+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629 case $GREP in
6630 [\\/]* | ?:[\\/]*)
6631 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6632 ;;
6633 *)
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006640 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 +00006641 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645done
6646done
6647IFS=$as_save_IFS
6648
6649 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6650 ;;
6651esac
6652fi
6653GREP=$ac_cv_path_GREP
6654if test -n "$GREP"; then
6655 { echo "$as_me:$LINENO: result: $GREP" >&5
6656echo "${ECHO_T}$GREP" >&6; }
6657else
6658 { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
6660fi
6661
6662
6663# Extract the first word of "mkdir", so it can be a program name with args.
6664set dummy mkdir; ac_word=$2
6665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667if test "${ac_cv_path_MKDIR+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670 case $MKDIR in
6671 [\\/]* | ?:[\\/]*)
6672 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6673 ;;
6674 *)
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006681 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 +00006682 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686done
6687done
6688IFS=$as_save_IFS
6689
6690 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6691 ;;
6692esac
6693fi
6694MKDIR=$ac_cv_path_MKDIR
6695if test -n "$MKDIR"; then
6696 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6697echo "${ECHO_T}$MKDIR" >&6; }
6698else
6699 { echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6; }
6701fi
6702
6703
6704# Extract the first word of "mv", so it can be a program name with args.
6705set dummy mv; ac_word=$2
6706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708if test "${ac_cv_path_MV+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711 case $MV in
6712 [\\/]* | ?:[\\/]*)
6713 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6714 ;;
6715 *)
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006722 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 +00006723 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727done
6728done
6729IFS=$as_save_IFS
6730
6731 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6732 ;;
6733esac
6734fi
6735MV=$ac_cv_path_MV
6736if test -n "$MV"; then
6737 { echo "$as_me:$LINENO: result: $MV" >&5
6738echo "${ECHO_T}$MV" >&6; }
6739else
6740 { echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6; }
6742fi
6743
6744
6745if test -n "$ac_tool_prefix"; then
6746 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6747set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750if test "${ac_cv_prog_RANLIB+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752else
6753 if test -n "$RANLIB"; then
6754 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6755else
6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006762 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 +00006763 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767done
6768done
6769IFS=$as_save_IFS
6770
6771fi
6772fi
6773RANLIB=$ac_cv_prog_RANLIB
6774if test -n "$RANLIB"; then
6775 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6776echo "${ECHO_T}$RANLIB" >&6; }
6777else
6778 { echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6; }
6780fi
6781
6782
6783fi
6784if test -z "$ac_cv_prog_RANLIB"; then
6785 ac_ct_RANLIB=$RANLIB
6786 # Extract the first word of "ranlib", so it can be a program name with args.
6787set dummy ranlib; ac_word=$2
6788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792else
6793 if test -n "$ac_ct_RANLIB"; then
6794 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006802 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 +00006803 ac_cv_prog_ac_ct_RANLIB="ranlib"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807done
6808done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6814if test -n "$ac_ct_RANLIB"; then
6815 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6816echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6817else
6818 { echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6; }
6820fi
6821
6822 if test "x$ac_ct_RANLIB" = x; then
6823 RANLIB=":"
6824 else
6825 case $cross_compiling:$ac_tool_warned in
6826yes:)
6827{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6828whose name does not start with the host triplet. If you think this
6829configuration is useful to you, please write to autoconf@gnu.org." >&5
6830echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6831whose name does not start with the host triplet. If you think this
6832configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6833ac_tool_warned=yes ;;
6834esac
6835 RANLIB=$ac_ct_RANLIB
6836 fi
6837else
6838 RANLIB="$ac_cv_prog_RANLIB"
6839fi
6840
6841# Extract the first word of "rm", so it can be a program name with args.
6842set dummy rm; ac_word=$2
6843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845if test "${ac_cv_path_RM+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 case $RM in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6851 ;;
6852 *)
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006859 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 +00006860 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
6866IFS=$as_save_IFS
6867
6868 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6869 ;;
6870esac
6871fi
6872RM=$ac_cv_path_RM
6873if test -n "$RM"; then
6874 { echo "$as_me:$LINENO: result: $RM" >&5
6875echo "${ECHO_T}$RM" >&6; }
6876else
6877 { echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6; }
6879fi
6880
6881
6882# Extract the first word of "sed", so it can be a program name with args.
6883set dummy sed; ac_word=$2
6884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886if test "${ac_cv_path_SED+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889 case $SED in
6890 [\\/]* | ?:[\\/]*)
6891 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6892 ;;
6893 *)
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006900 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 +00006901 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906done
6907IFS=$as_save_IFS
6908
6909 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6910 ;;
6911esac
6912fi
6913SED=$ac_cv_path_SED
6914if test -n "$SED"; then
6915 { echo "$as_me:$LINENO: result: $SED" >&5
6916echo "${ECHO_T}$SED" >&6; }
6917else
6918 { echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6; }
6920fi
6921
6922
6923# Extract the first word of "tar", so it can be a program name with args.
6924set dummy tar; ac_word=$2
6925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927if test "${ac_cv_path_TAR+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930 case $TAR in
6931 [\\/]* | ?:[\\/]*)
6932 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6933 ;;
6934 *)
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006941 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 +00006942 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947done
6948IFS=$as_save_IFS
6949
6950 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6951 ;;
6952esac
6953fi
6954TAR=$ac_cv_path_TAR
6955if test -n "$TAR"; then
6956 { echo "$as_me:$LINENO: result: $TAR" >&5
6957echo "${ECHO_T}$TAR" >&6; }
6958else
6959 { echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6; }
6961fi
6962
6963
6964# Extract the first word of "pwd", so it can be a program name with args.
6965set dummy pwd; ac_word=$2
6966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_path_BINPWD+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971 case $BINPWD in
6972 [\\/]* | ?:[\\/]*)
6973 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6974 ;;
6975 *)
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00006982 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 +00006983 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987done
6988done
6989IFS=$as_save_IFS
6990
6991 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6992 ;;
6993esac
6994fi
6995BINPWD=$ac_cv_path_BINPWD
6996if test -n "$BINPWD"; then
6997 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6998echo "${ECHO_T}$BINPWD" >&6; }
6999else
7000 { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
7002fi
7003
7004
7005
7006# Extract the first word of "Graphviz", so it can be a program name with args.
7007set dummy Graphviz; ac_word=$2
7008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013 case $GRAPHVIZ in
7014 [\\/]* | ?:[\\/]*)
7015 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7016 ;;
7017 *)
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007024 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 +00007025 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029done
7030done
7031IFS=$as_save_IFS
7032
7033 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7034 ;;
7035esac
7036fi
7037GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7038if test -n "$GRAPHVIZ"; then
7039 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7040echo "${ECHO_T}$GRAPHVIZ" >&6; }
7041else
7042 { echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6; }
7044fi
7045
7046
7047if test "$GRAPHVIZ" != "echo Graphviz" ; then
7048
7049cat >>confdefs.h <<\_ACEOF
7050#define HAVE_GRAPHVIZ 1
7051_ACEOF
7052
7053 if test "$llvm_cv_os_type" = "MingW" ; then
7054 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7055 fi
7056
7057cat >>confdefs.h <<_ACEOF
7058#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7059_ACEOF
7060
7061fi
7062# Extract the first word of "dot", so it can be a program name with args.
7063set dummy dot; ac_word=$2
7064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066if test "${ac_cv_path_DOT+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069 case $DOT in
7070 [\\/]* | ?:[\\/]*)
7071 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7072 ;;
7073 *)
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075for as_dir in $PATH
7076do
7077 IFS=$as_save_IFS
7078 test -z "$as_dir" && as_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007080 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 +00007081 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 break 2
7084 fi
7085done
7086done
7087IFS=$as_save_IFS
7088
7089 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7090 ;;
7091esac
7092fi
7093DOT=$ac_cv_path_DOT
7094if test -n "$DOT"; then
7095 { echo "$as_me:$LINENO: result: $DOT" >&5
7096echo "${ECHO_T}$DOT" >&6; }
7097else
7098 { echo "$as_me:$LINENO: result: no" >&5
7099echo "${ECHO_T}no" >&6; }
7100fi
7101
7102
7103if test "$DOT" != "echo dot" ; then
7104
7105cat >>confdefs.h <<\_ACEOF
7106#define HAVE_DOT 1
7107_ACEOF
7108
7109 if test "$llvm_cv_os_type" = "MingW" ; then
7110 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7111 fi
7112
7113cat >>confdefs.h <<_ACEOF
7114#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7115_ACEOF
7116
7117fi
7118for ac_prog in gv gsview32
7119do
7120 # Extract the first word of "$ac_prog", so it can be a program name with args.
7121set dummy $ac_prog; ac_word=$2
7122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124if test "${ac_cv_path_GV+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127 case $GV in
7128 [\\/]* | ?:[\\/]*)
7129 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7130 ;;
7131 *)
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007138 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 +00007139 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143done
7144done
7145IFS=$as_save_IFS
7146
7147 ;;
7148esac
7149fi
7150GV=$ac_cv_path_GV
7151if test -n "$GV"; then
7152 { echo "$as_me:$LINENO: result: $GV" >&5
7153echo "${ECHO_T}$GV" >&6; }
7154else
7155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157fi
7158
7159
7160 test -n "$GV" && break
7161done
7162test -n "$GV" || GV="echo gv"
7163
7164if test "$GV" != "echo gv" ; then
7165
7166cat >>confdefs.h <<\_ACEOF
7167#define HAVE_GV 1
7168_ACEOF
7169
7170 if test "$llvm_cv_os_type" = "MingW" ; then
7171 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7172 fi
7173
7174cat >>confdefs.h <<_ACEOF
7175#define LLVM_PATH_GV "$GV${EXEEXT}"
7176_ACEOF
7177
7178fi
7179# Extract the first word of "dotty", so it can be a program name with args.
7180set dummy dotty; ac_word=$2
7181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183if test "${ac_cv_path_DOTTY+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185else
7186 case $DOTTY in
7187 [\\/]* | ?:[\\/]*)
7188 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7189 ;;
7190 *)
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007197 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 +00007198 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7201 fi
7202done
7203done
7204IFS=$as_save_IFS
7205
7206 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7207 ;;
7208esac
7209fi
7210DOTTY=$ac_cv_path_DOTTY
7211if test -n "$DOTTY"; then
7212 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7213echo "${ECHO_T}$DOTTY" >&6; }
7214else
7215 { echo "$as_me:$LINENO: result: no" >&5
7216echo "${ECHO_T}no" >&6; }
7217fi
7218
7219
7220if test "$DOTTY" != "echo dotty" ; then
7221
7222cat >>confdefs.h <<\_ACEOF
7223#define HAVE_DOTTY 1
7224_ACEOF
7225
7226 if test "$llvm_cv_os_type" = "MingW" ; then
7227 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7228 fi
7229
7230cat >>confdefs.h <<_ACEOF
7231#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7232_ACEOF
7233
7234fi
7235
7236
7237# Extract the first word of "perl", so it can be a program name with args.
7238set dummy perl; ac_word=$2
7239{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241if test "${ac_cv_path_PERL+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243else
7244 case $PERL in
7245 [\\/]* | ?:[\\/]*)
7246 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7247 ;;
7248 *)
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250for as_dir in $PATH
7251do
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007255 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 +00007256 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260done
7261done
7262IFS=$as_save_IFS
7263
7264 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7265 ;;
7266esac
7267fi
7268PERL=$ac_cv_path_PERL
7269if test -n "$PERL"; then
7270 { echo "$as_me:$LINENO: result: $PERL" >&5
7271echo "${ECHO_T}$PERL" >&6; }
7272else
7273 { echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6; }
7275fi
7276
7277
7278if test "$PERL" != "none"; then
7279 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7280echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7281 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7282 { echo "$as_me:$LINENO: result: yes" >&5
7283echo "${ECHO_T}yes" >&6; }
7284 else
7285 PERL=none
7286 { echo "$as_me:$LINENO: result: not found" >&5
7287echo "${ECHO_T}not found" >&6; }
7288 fi
7289fi
7290
7291
7292if test x"$PERL" = xnone; then
7293 HAVE_PERL=0
7294
7295 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7296echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7297 { (exit 1); exit 1; }; }
7298else
7299 HAVE_PERL=1
7300
7301fi
7302
7303# Find a good install program. We prefer a C program (faster),
7304# so one script is as good as another. But avoid the broken or
7305# incompatible versions:
7306# SysV /etc/install, /usr/sbin/install
7307# SunOS /usr/etc/install
7308# IRIX /sbin/install
7309# AIX /bin/install
7310# AmigaOS /C/install, which installs bootblocks on floppy discs
7311# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7312# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7313# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7314# OS/2's system install, which has a completely different semantic
7315# ./install, which can be erroneously created by make from ./install.sh.
7316{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7317echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7318if test -z "$INSTALL"; then
7319if test "${ac_cv_path_install+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7321else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323for as_dir in $PATH
7324do
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 # Account for people who put trailing slashes in PATH elements.
7328case $as_dir/ in
7329 ./ | .// | /cC/* | \
7330 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7331 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7332 /usr/ucb/* ) ;;
7333 *)
7334 # OSF1 and SCO ODT 3.0 have their own names for install.
7335 # Don't use installbsd from OSF since it installs stuff as root
7336 # by default.
7337 for ac_prog in ginstall scoinst install; do
7338 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007339 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 +00007340 if test $ac_prog = install &&
7341 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7342 # AIX install. It has an incompatible calling convention.
7343 :
7344 elif test $ac_prog = install &&
7345 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7346 # program-specific install script used by HP pwplus--don't use.
7347 :
7348 else
7349 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7350 break 3
7351 fi
7352 fi
7353 done
7354 done
7355 ;;
7356esac
7357done
7358IFS=$as_save_IFS
7359
7360
7361fi
7362 if test "${ac_cv_path_install+set}" = set; then
7363 INSTALL=$ac_cv_path_install
7364 else
7365 # As a last resort, use the slow shell script. Don't cache a
7366 # value for INSTALL within a source directory, because that will
7367 # break other packages using the cache if that directory is
7368 # removed, or if the value is a relative name.
7369 INSTALL=$ac_install_sh
7370 fi
7371fi
7372{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7373echo "${ECHO_T}$INSTALL" >&6; }
7374
7375# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7376# It thinks the first close brace ends the variable substitution.
7377test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7378
7379test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7380
7381test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7382
7383
7384# Extract the first word of "bzip2", so it can be a program name with args.
7385set dummy bzip2; ac_word=$2
7386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388if test "${ac_cv_path_BZIP2+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7390else
7391 case $BZIP2 in
7392 [\\/]* | ?:[\\/]*)
7393 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7394 ;;
7395 *)
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007402 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 +00007403 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407done
7408done
7409IFS=$as_save_IFS
7410
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007411 ;;
7412esac
7413fi
7414BZIP2=$ac_cv_path_BZIP2
7415if test -n "$BZIP2"; then
7416 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7417echo "${ECHO_T}$BZIP2" >&6; }
7418else
7419 { echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6; }
7421fi
7422
7423
7424# Extract the first word of "doxygen", so it can be a program name with args.
7425set dummy doxygen; 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_DOXYGEN+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430else
7431 case $DOXYGEN in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_DOXYGEN="$DOXYGEN" # 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
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007442 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 +00007443 ac_cv_path_DOXYGEN="$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
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007451 ;;
7452esac
7453fi
7454DOXYGEN=$ac_cv_path_DOXYGEN
7455if test -n "$DOXYGEN"; then
7456 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7457echo "${ECHO_T}$DOXYGEN" >&6; }
7458else
7459 { echo "$as_me:$LINENO: result: no" >&5
7460echo "${ECHO_T}no" >&6; }
7461fi
7462
7463
7464# Extract the first word of "groff", so it can be a program name with args.
7465set dummy groff; ac_word=$2
7466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468if test "${ac_cv_path_GROFF+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470else
7471 case $GROFF in
7472 [\\/]* | ?:[\\/]*)
7473 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7474 ;;
7475 *)
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477for as_dir in $PATH
7478do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007482 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 +00007483 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487done
7488done
7489IFS=$as_save_IFS
7490
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007491 ;;
7492esac
7493fi
7494GROFF=$ac_cv_path_GROFF
7495if test -n "$GROFF"; then
7496 { echo "$as_me:$LINENO: result: $GROFF" >&5
7497echo "${ECHO_T}$GROFF" >&6; }
7498else
7499 { echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6; }
7501fi
7502
7503
7504# Extract the first word of "gzip", so it can be a program name with args.
7505set dummy gzip; ac_word=$2
7506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508if test "${ac_cv_path_GZIP+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 case $GZIP in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7514 ;;
7515 *)
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007522 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 +00007523 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527done
7528done
7529IFS=$as_save_IFS
7530
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007531 ;;
7532esac
7533fi
7534GZIP=$ac_cv_path_GZIP
7535if test -n "$GZIP"; then
7536 { echo "$as_me:$LINENO: result: $GZIP" >&5
7537echo "${ECHO_T}$GZIP" >&6; }
7538else
7539 { echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6; }
7541fi
7542
7543
7544# Extract the first word of "pod2html", so it can be a program name with args.
7545set dummy pod2html; ac_word=$2
7546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_POD2HTML+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 case $POD2HTML in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007563 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567done
7568done
7569IFS=$as_save_IFS
7570
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007571 ;;
7572esac
7573fi
7574POD2HTML=$ac_cv_path_POD2HTML
7575if test -n "$POD2HTML"; then
7576 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7577echo "${ECHO_T}$POD2HTML" >&6; }
7578else
7579 { echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6; }
7581fi
7582
7583
7584# Extract the first word of "pod2man", so it can be a program name with args.
7585set dummy pod2man; ac_word=$2
7586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7588if test "${ac_cv_path_POD2MAN+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590else
7591 case $POD2MAN in
7592 [\\/]* | ?:[\\/]*)
7593 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7594 ;;
7595 *)
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597for as_dir in $PATH
7598do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007602 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 +00007603 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607done
7608done
7609IFS=$as_save_IFS
7610
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007611 ;;
7612esac
7613fi
7614POD2MAN=$ac_cv_path_POD2MAN
7615if test -n "$POD2MAN"; then
7616 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7617echo "${ECHO_T}$POD2MAN" >&6; }
7618else
7619 { echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6; }
7621fi
7622
7623
7624# Extract the first word of "runtest", so it can be a program name with args.
7625set dummy runtest; ac_word=$2
7626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7628if test "${ac_cv_path_RUNTEST+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630else
7631 case $RUNTEST in
7632 [\\/]* | ?:[\\/]*)
7633 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7634 ;;
7635 *)
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007642 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 +00007643 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647done
7648done
7649IFS=$as_save_IFS
7650
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007651 ;;
7652esac
7653fi
7654RUNTEST=$ac_cv_path_RUNTEST
7655if test -n "$RUNTEST"; then
7656 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7657echo "${ECHO_T}$RUNTEST" >&6; }
7658else
7659 { echo "$as_me:$LINENO: result: no" >&5
7660echo "${ECHO_T}no" >&6; }
7661fi
7662
7663
7664
7665no_itcl=true
7666{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7667echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7668
7669# Check whether --with-tclinclude was given.
7670if test "${with_tclinclude+set}" = set; then
7671 withval=$with_tclinclude; with_tclinclude=${withval}
7672else
7673 with_tclinclude=''
7674fi
7675
7676if test "${ac_cv_path_tclsh+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678else
7679
7680if test x"${with_tclinclude}" != x ; then
7681 if test -f ${with_tclinclude}/tclsh ; then
7682 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7683 elif test -f ${with_tclinclude}/src/tclsh ; then
7684 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7685 else
7686 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7687echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7688 { (exit 1); exit 1; }; }
7689 fi
7690fi
7691
7692if test x"${ac_cv_path_tclsh}" = x ; then
7693 { echo "$as_me:$LINENO: result: none" >&5
7694echo "${ECHO_T}none" >&6; }
7695 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
7696do
7697 # Extract the first word of "$ac_prog", so it can be a program name with args.
7698set dummy $ac_prog; ac_word=$2
7699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701if test "${ac_cv_path_TCLSH+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704 case $TCLSH in
7705 [\\/]* | ?:[\\/]*)
7706 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7707 ;;
7708 *)
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007715 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 +00007716 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 break 2
7719 fi
7720done
7721done
7722IFS=$as_save_IFS
7723
7724 ;;
7725esac
7726fi
7727TCLSH=$ac_cv_path_TCLSH
7728if test -n "$TCLSH"; then
7729 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7730echo "${ECHO_T}$TCLSH" >&6; }
7731else
7732 { echo "$as_me:$LINENO: result: no" >&5
7733echo "${ECHO_T}no" >&6; }
7734fi
7735
7736
7737 test -n "$TCLSH" && break
7738done
7739
7740 if test x"${TCLSH}" = x ; then
7741 ac_cv_path_tclsh='';
7742 else
7743 ac_cv_path_tclsh="${TCLSH}";
7744 fi
7745else
7746 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7747echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7748 TCLSH="${ac_cv_path_tclsh}"
7749
7750fi
7751
7752fi
7753
7754# Extract the first word of "zip", so it can be a program name with args.
7755set dummy zip; ac_word=$2
7756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7758if test "${ac_cv_path_ZIP+set}" = set; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760else
7761 case $ZIP in
7762 [\\/]* | ?:[\\/]*)
7763 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7764 ;;
7765 *)
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767for as_dir in $PATH
7768do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007772 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 +00007773 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777done
7778done
7779IFS=$as_save_IFS
7780
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007781 ;;
7782esac
7783fi
7784ZIP=$ac_cv_path_ZIP
7785if test -n "$ZIP"; then
7786 { echo "$as_me:$LINENO: result: $ZIP" >&5
7787echo "${ECHO_T}$ZIP" >&6; }
7788else
7789 { echo "$as_me:$LINENO: result: no" >&5
7790echo "${ECHO_T}no" >&6; }
7791fi
7792
7793
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007794for ac_prog in ocamlc
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007795do
7796 # Extract the first word of "$ac_prog", so it can be a program name with args.
7797set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800if test "${ac_cv_path_OCAMLC+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802else
7803 case $OCAMLC in
7804 [\\/]* | ?:[\\/]*)
7805 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7806 ;;
7807 *)
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809for as_dir in $PATH
7810do
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007814 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 +00007815 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7818 fi
7819done
7820done
7821IFS=$as_save_IFS
7822
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007823 ;;
7824esac
7825fi
7826OCAMLC=$ac_cv_path_OCAMLC
7827if test -n "$OCAMLC"; then
7828 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7829echo "${ECHO_T}$OCAMLC" >&6; }
7830else
7831 { echo "$as_me:$LINENO: result: no" >&5
7832echo "${ECHO_T}no" >&6; }
7833fi
7834
7835
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007836 test -n "$OCAMLC" && break
7837done
7838
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007839for ac_prog in ocamlopt
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007840do
7841 # Extract the first word of "$ac_prog", so it can be a program name with args.
7842set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7845if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7847else
7848 case $OCAMLOPT in
7849 [\\/]* | ?:[\\/]*)
7850 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7851 ;;
7852 *)
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854for as_dir in $PATH
7855do
7856 IFS=$as_save_IFS
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007859 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 +00007860 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7862 break 2
7863 fi
7864done
7865done
7866IFS=$as_save_IFS
7867
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007868 ;;
7869esac
7870fi
7871OCAMLOPT=$ac_cv_path_OCAMLOPT
7872if test -n "$OCAMLOPT"; then
7873 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7874echo "${ECHO_T}$OCAMLOPT" >&6; }
7875else
7876 { echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6; }
7878fi
7879
7880
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007881 test -n "$OCAMLOPT" && break
7882done
7883
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007884for ac_prog in ocamldep
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007885do
7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
7887set dummy $ac_prog; ac_word=$2
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7890if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893 case $OCAMLDEP in
7894 [\\/]* | ?:[\\/]*)
7895 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7896 ;;
7897 *)
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007904 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 +00007905 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7908 fi
7909done
7910done
7911IFS=$as_save_IFS
7912
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007913 ;;
7914esac
7915fi
7916OCAMLDEP=$ac_cv_path_OCAMLDEP
7917if test -n "$OCAMLDEP"; then
7918 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7919echo "${ECHO_T}$OCAMLDEP" >&6; }
7920else
7921 { echo "$as_me:$LINENO: result: no" >&5
7922echo "${ECHO_T}no" >&6; }
7923fi
7924
7925
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007926 test -n "$OCAMLDEP" && break
7927done
7928
Gordon Henriksena0fa5a62008-10-22 12:40:55 +00007929for ac_prog in ocamldoc
Gordon Henriksen8af51f62008-03-10 15:49:38 +00007930do
7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
7932set dummy $ac_prog; ac_word=$2
7933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7935if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938 case $OCAMLDOC in
7939 [\\/]* | ?:[\\/]*)
7940 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7941 ;;
7942 *)
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007949 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 +00007950 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954done
7955done
7956IFS=$as_save_IFS
7957
7958 ;;
7959esac
7960fi
7961OCAMLDOC=$ac_cv_path_OCAMLDOC
7962if test -n "$OCAMLDOC"; then
7963 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7964echo "${ECHO_T}$OCAMLDOC" >&6; }
7965else
7966 { echo "$as_me:$LINENO: result: no" >&5
7967echo "${ECHO_T}no" >&6; }
7968fi
7969
7970
7971 test -n "$OCAMLDOC" && break
7972done
7973
Edwin Török20176752008-10-22 09:56:27 +00007974for ac_prog in gas as
7975do
7976 # Extract the first word of "$ac_prog", so it can be a program name with args.
7977set dummy $ac_prog; ac_word=$2
7978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7980if test "${ac_cv_path_GAS+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
7983 case $GAS in
7984 [\\/]* | ?:[\\/]*)
7985 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7986 ;;
7987 *)
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989for as_dir in $PATH
7990do
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00007994 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 +00007995 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999done
8000done
8001IFS=$as_save_IFS
8002
8003 ;;
8004esac
8005fi
8006GAS=$ac_cv_path_GAS
8007if test -n "$GAS"; then
8008 { echo "$as_me:$LINENO: result: $GAS" >&5
8009echo "${ECHO_T}$GAS" >&6; }
8010else
8011 { echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6; }
8013fi
8014
8015
8016 test -n "$GAS" && break
8017done
8018
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008019
8020{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8021echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8022if test "${llvm_cv_link_use_r+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8024else
8025 ac_ext=c
8026ac_cpp='$CPP $CPPFLAGS'
8027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8029ac_compiler_gnu=$ac_cv_c_compiler_gnu
8030
8031 oldcflags="$CFLAGS"
8032 CFLAGS="$CFLAGS -Wl,-R."
8033 cat >conftest.$ac_ext <<_ACEOF
8034/* confdefs.h. */
8035_ACEOF
8036cat confdefs.h >>conftest.$ac_ext
8037cat >>conftest.$ac_ext <<_ACEOF
8038/* end confdefs.h. */
8039
8040int
8041main ()
8042{
8043int main() { return 0; }
8044 ;
8045 return 0;
8046}
8047_ACEOF
8048rm -f conftest.$ac_objext conftest$ac_exeext
8049if { (ac_try="$ac_link"
8050case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_link") 2>conftest.er1
8056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008061 (exit $ac_status); } &&
8062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063 { (case "(($ac_try" in
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8066esac
8067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_try") 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_try") 2>&5
8079 ac_status=$?
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008082 llvm_cv_link_use_r=yes
8083else
8084 echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
8087 llvm_cv_link_use_r=no
8088fi
8089
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008090rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008091 conftest$ac_exeext conftest.$ac_ext
8092 CFLAGS="$oldcflags"
8093 ac_ext=c
8094ac_cpp='$CPP $CPPFLAGS'
8095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098
8099
8100fi
8101{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8102echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8103if test "$llvm_cv_link_use_r" = yes ; then
8104
8105cat >>confdefs.h <<\_ACEOF
8106#define HAVE_LINK_R 1
8107_ACEOF
8108
8109 fi
8110
8111
Nick Lewycky6eab6652009-03-05 08:20:44 +00008112{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8113echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8114if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8116else
8117 ac_ext=c
8118ac_cpp='$CPP $CPPFLAGS'
8119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122
8123 oldcflags="$CFLAGS"
8124 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8125 cat >conftest.$ac_ext <<_ACEOF
8126/* confdefs.h. */
8127_ACEOF
8128cat confdefs.h >>conftest.$ac_ext
8129cat >>conftest.$ac_ext <<_ACEOF
8130/* end confdefs.h. */
8131
8132int
8133main ()
8134{
8135int main() { return 0; }
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140rm -f conftest.$ac_objext conftest$ac_exeext
8141if { (ac_try="$ac_link"
8142case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145esac
8146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_link") 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008153 (exit $ac_status); } &&
8154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158esac
8159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8168esac
8169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_try") 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
Nick Lewycky6eab6652009-03-05 08:20:44 +00008174 llvm_cv_link_use_export_dynamic=yes
8175else
8176 echo "$as_me: failed program was:" >&5
8177sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 llvm_cv_link_use_export_dynamic=no
8180fi
8181
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008182rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky6eab6652009-03-05 08:20:44 +00008183 conftest$ac_exeext conftest.$ac_ext
8184 CFLAGS="$oldcflags"
8185 ac_ext=c
8186ac_cpp='$CPP $CPPFLAGS'
8187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8189ac_compiler_gnu=$ac_cv_c_compiler_gnu
8190
8191
8192fi
8193{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8194echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8195if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8196
8197cat >>confdefs.h <<\_ACEOF
8198#define HAVE_LINK_EXPORT_DYNAMIC 1
8199_ACEOF
8200
8201 fi
8202
8203
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008204
8205
8206{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8207echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8208if test "${ac_cv_c_const+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
8211 cat >conftest.$ac_ext <<_ACEOF
8212/* confdefs.h. */
8213_ACEOF
8214cat confdefs.h >>conftest.$ac_ext
8215cat >>conftest.$ac_ext <<_ACEOF
8216/* end confdefs.h. */
8217
8218int
8219main ()
8220{
8221/* FIXME: Include the comments suggested by Paul. */
8222#ifndef __cplusplus
8223 /* Ultrix mips cc rejects this. */
8224 typedef int charset[2];
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008225 const charset x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008226 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008227 char const *const *ccp;
8228 char **p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008229 /* NEC SVR4.0.2 mips cc rejects this. */
8230 struct point {int x, y;};
8231 static struct point const zero = {0,0};
8232 /* AIX XL C 1.02.0.0 rejects this.
8233 It does not let you subtract one const X* pointer from another in
8234 an arm of an if-expression whose if-part is not a constant
8235 expression */
8236 const char *g = "string";
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008237 ccp = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008238 /* HPUX 7.0 cc rejects these. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008239 ++ccp;
8240 p = (char**) ccp;
8241 ccp = (char const *const *) p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008242 { /* SCO 3.2v4 cc rejects this. */
8243 char *t;
8244 char const *s = 0 ? (char *) 0 : (char const *) 0;
8245
8246 *t++ = 0;
8247 if (s) return 0;
8248 }
8249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8250 int x[] = {25, 17};
8251 const int *foo = &x[0];
8252 ++foo;
8253 }
8254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8255 typedef const int *iptr;
8256 iptr p = 0;
8257 ++p;
8258 }
8259 { /* AIX XL C 1.02.0.0 rejects this saying
8260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8261 struct s { int j; const int *ap[3]; };
8262 struct s *b; b->j = 5;
8263 }
8264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8265 const int foo = 10;
8266 if (!foo) return 0;
8267 }
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008268 return !x[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008269#endif
8270
8271 ;
8272 return 0;
8273}
8274_ACEOF
8275rm -f conftest.$ac_objext
8276if { (ac_try="$ac_compile"
8277case "(($ac_try" in
8278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279 *) ac_try_echo=$ac_try;;
8280esac
8281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290 { (case "(($ac_try" in
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8293esac
8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_try") 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; } &&
8299 { ac_try='test -s conftest.$ac_objext'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8303esac
8304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008309 ac_cv_c_const=yes
8310else
8311 echo "$as_me: failed program was:" >&5
8312sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 ac_cv_c_const=no
8315fi
8316
8317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318fi
8319{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8320echo "${ECHO_T}$ac_cv_c_const" >&6; }
8321if test $ac_cv_c_const = no; then
8322
8323cat >>confdefs.h <<\_ACEOF
8324#define const
8325_ACEOF
8326
8327fi
8328
8329
8330
8331
8332
8333
8334ac_header_dirent=no
8335for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8336 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8337{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8338echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8341else
8342 cat >conftest.$ac_ext <<_ACEOF
8343/* confdefs.h. */
8344_ACEOF
8345cat confdefs.h >>conftest.$ac_ext
8346cat >>conftest.$ac_ext <<_ACEOF
8347/* end confdefs.h. */
8348#include <sys/types.h>
8349#include <$ac_hdr>
8350
8351int
8352main ()
8353{
8354if ((DIR *) 0)
8355return 0;
8356 ;
8357 return 0;
8358}
8359_ACEOF
8360rm -f conftest.$ac_objext
8361if { (ac_try="$ac_compile"
8362case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365esac
8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8375 { (case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8378esac
8379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_try") 2>&5
8381 ac_status=$?
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); }; } &&
8384 { ac_try='test -s conftest.$ac_objext'
8385 { (case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8388esac
8389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_try") 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008394 eval "$as_ac_Header=yes"
8395else
8396 echo "$as_me: failed program was:" >&5
8397sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 eval "$as_ac_Header=no"
8400fi
8401
8402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403fi
8404ac_res=`eval echo '${'$as_ac_Header'}'`
8405 { echo "$as_me:$LINENO: result: $ac_res" >&5
8406echo "${ECHO_T}$ac_res" >&6; }
8407if test `eval echo '${'$as_ac_Header'}'` = yes; then
8408 cat >>confdefs.h <<_ACEOF
8409#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8410_ACEOF
8411
8412ac_header_dirent=$ac_hdr; break
8413fi
8414
8415done
8416# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8417if test $ac_header_dirent = dirent.h; then
8418 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8419echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8420if test "${ac_cv_search_opendir+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422else
8423 ac_func_search_save_LIBS=$LIBS
8424cat >conftest.$ac_ext <<_ACEOF
8425/* confdefs.h. */
8426_ACEOF
8427cat confdefs.h >>conftest.$ac_ext
8428cat >>conftest.$ac_ext <<_ACEOF
8429/* end confdefs.h. */
8430
8431/* Override any GCC internal prototype to avoid an error.
8432 Use char because int might match the return type of a GCC
8433 builtin and then its argument prototype would still apply. */
8434#ifdef __cplusplus
8435extern "C"
8436#endif
8437char opendir ();
8438int
8439main ()
8440{
8441return opendir ();
8442 ;
8443 return 0;
8444}
8445_ACEOF
8446for ac_lib in '' dir; do
8447 if test -z "$ac_lib"; then
8448 ac_res="none required"
8449 else
8450 ac_res=-l$ac_lib
8451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8452 fi
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454if { (ac_try="$ac_link"
8455case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8458esac
8459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_link") 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008466 (exit $ac_status); } &&
8467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8468 { (case "(($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_try") 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; } &&
8477 { ac_try='test -s conftest$ac_exeext'
8478 { (case "(($ac_try" in
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8481esac
8482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_try") 2>&5
8484 ac_status=$?
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008487 ac_cv_search_opendir=$ac_res
8488else
8489 echo "$as_me: failed program was:" >&5
8490sed 's/^/| /' conftest.$ac_ext >&5
8491
8492
8493fi
8494
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008495rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008496 conftest$ac_exeext
8497 if test "${ac_cv_search_opendir+set}" = set; then
8498 break
8499fi
8500done
8501if test "${ac_cv_search_opendir+set}" = set; then
8502 :
8503else
8504 ac_cv_search_opendir=no
8505fi
8506rm conftest.$ac_ext
8507LIBS=$ac_func_search_save_LIBS
8508fi
8509{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8510echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8511ac_res=$ac_cv_search_opendir
8512if test "$ac_res" != no; then
8513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8514
8515fi
8516
8517else
8518 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8519echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8520if test "${ac_cv_search_opendir+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522else
8523 ac_func_search_save_LIBS=$LIBS
8524cat >conftest.$ac_ext <<_ACEOF
8525/* confdefs.h. */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h. */
8530
8531/* Override any GCC internal prototype to avoid an error.
8532 Use char because int might match the return type of a GCC
8533 builtin and then its argument prototype would still apply. */
8534#ifdef __cplusplus
8535extern "C"
8536#endif
8537char opendir ();
8538int
8539main ()
8540{
8541return opendir ();
8542 ;
8543 return 0;
8544}
8545_ACEOF
8546for ac_lib in '' x; do
8547 if test -z "$ac_lib"; then
8548 ac_res="none required"
8549 else
8550 ac_res=-l$ac_lib
8551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8552 fi
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554if { (ac_try="$ac_link"
8555case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558esac
8559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_link") 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008566 (exit $ac_status); } &&
8567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8568 { (case "(($ac_try" in
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8571esac
8572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_try") 2>&5
8574 ac_status=$?
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; } &&
8577 { ac_try='test -s conftest$ac_exeext'
8578 { (case "(($ac_try" in
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8581esac
8582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583 (eval "$ac_try") 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008587 ac_cv_search_opendir=$ac_res
8588else
8589 echo "$as_me: failed program was:" >&5
8590sed 's/^/| /' conftest.$ac_ext >&5
8591
8592
8593fi
8594
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008595rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008596 conftest$ac_exeext
8597 if test "${ac_cv_search_opendir+set}" = set; then
8598 break
8599fi
8600done
8601if test "${ac_cv_search_opendir+set}" = set; then
8602 :
8603else
8604 ac_cv_search_opendir=no
8605fi
8606rm conftest.$ac_ext
8607LIBS=$ac_func_search_save_LIBS
8608fi
8609{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8610echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8611ac_res=$ac_cv_search_opendir
8612if test "$ac_res" != no; then
8613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8614
8615fi
8616
8617fi
8618
8619
8620for ac_header in dlfcn.h
8621do
8622as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628fi
8629ac_res=`eval echo '${'$as_ac_Header'}'`
8630 { echo "$as_me:$LINENO: result: $ac_res" >&5
8631echo "${ECHO_T}$ac_res" >&6; }
8632else
8633 # Is the header compilable?
8634{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8635echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8636cat >conftest.$ac_ext <<_ACEOF
8637/* confdefs.h. */
8638_ACEOF
8639cat confdefs.h >>conftest.$ac_ext
8640cat >>conftest.$ac_ext <<_ACEOF
8641/* end confdefs.h. */
8642$ac_includes_default
8643#include <$ac_header>
8644_ACEOF
8645rm -f conftest.$ac_objext
8646if { (ac_try="$ac_compile"
8647case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650esac
8651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_compile") 2>conftest.er1
8653 ac_status=$?
8654 grep -v '^ *+' conftest.er1 >conftest.err
8655 rm -f conftest.er1
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008658 (exit $ac_status); } &&
8659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8660 { (case "(($ac_try" in
8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8663esac
8664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665 (eval "$ac_try") 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; } &&
8669 { ac_try='test -s conftest.$ac_objext'
8670 { (case "(($ac_try" in
8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8672 *) ac_try_echo=$ac_try;;
8673esac
8674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8675 (eval "$ac_try") 2>&5
8676 ac_status=$?
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008679 ac_header_compiler=yes
8680else
8681 echo "$as_me: failed program was:" >&5
8682sed 's/^/| /' conftest.$ac_ext >&5
8683
8684 ac_header_compiler=no
8685fi
8686
8687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8688{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8689echo "${ECHO_T}$ac_header_compiler" >&6; }
8690
8691# Is the header present?
8692{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8693echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8694cat >conftest.$ac_ext <<_ACEOF
8695/* confdefs.h. */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h. */
8700#include <$ac_header>
8701_ACEOF
8702if { (ac_try="$ac_cpp conftest.$ac_ext"
8703case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706esac
8707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008714 (exit $ac_status); } >/dev/null; then
8715 if test -s conftest.err; then
8716 ac_cpp_err=$ac_c_preproc_warn_flag
8717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8718 else
8719 ac_cpp_err=
8720 fi
8721else
8722 ac_cpp_err=yes
8723fi
8724if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008725 ac_header_preproc=yes
8726else
8727 echo "$as_me: failed program was:" >&5
8728sed 's/^/| /' conftest.$ac_ext >&5
8729
8730 ac_header_preproc=no
8731fi
8732
8733rm -f conftest.err conftest.$ac_ext
8734{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8735echo "${ECHO_T}$ac_header_preproc" >&6; }
8736
8737# So? What about this header?
8738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8739 yes:no: )
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8741echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8743echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8744 ac_header_preproc=yes
8745 ;;
8746 no:yes:* )
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8748echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8750echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8752echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8754echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8756echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8758echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8759 ( cat <<\_ASBOX
8760## ----------------------------------- ##
8761## Report this to llvmbugs@cs.uiuc.edu ##
8762## ----------------------------------- ##
8763_ASBOX
8764 ) | sed "s/^/$as_me: WARNING: /" >&2
8765 ;;
8766esac
8767{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8771else
8772 eval "$as_ac_Header=\$ac_header_preproc"
8773fi
8774ac_res=`eval echo '${'$as_ac_Header'}'`
8775 { echo "$as_me:$LINENO: result: $ac_res" >&5
8776echo "${ECHO_T}$ac_res" >&6; }
8777
8778fi
8779if test `eval echo '${'$as_ac_Header'}'` = yes; then
8780 cat >>confdefs.h <<_ACEOF
8781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8782_ACEOF
8783
8784fi
8785
8786done
8787
8788# Check whether --enable-ltdl-install was given.
8789if test "${enable_ltdl_install+set}" = set; then
8790 enableval=$enable_ltdl_install;
8791fi
8792
8793
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008794
8795
8796if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008797 INSTALL_LTDL_TRUE=
8798 INSTALL_LTDL_FALSE='#'
8799else
8800 INSTALL_LTDL_TRUE='#'
8801 INSTALL_LTDL_FALSE=
8802fi
8803
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00008804
8805
8806if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008807 CONVENIENCE_LTDL_TRUE=
8808 CONVENIENCE_LTDL_FALSE='#'
8809else
8810 CONVENIENCE_LTDL_TRUE='#'
8811 CONVENIENCE_LTDL_FALSE=
8812fi
8813
8814
8815{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8816echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8817library_names_spec=
8818libname_spec='lib$name'
8819soname_spec=
8820shrext_cmds=".so"
8821postinstall_cmds=
8822postuninstall_cmds=
8823finish_cmds=
8824finish_eval=
8825shlibpath_var=
8826shlibpath_overrides_runpath=unknown
8827version_type=none
8828dynamic_linker="$host_os ld.so"
8829sys_lib_dlsearch_path_spec="/lib /usr/lib"
8830if test "$GCC" = yes; then
8831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8832 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8833 # if the path contains ";" then we assume it to be the separator
8834 # otherwise default to the standard path separator (i.e. ":") - it is
8835 # assumed that no part of a normal pathname contains ";" but that should
8836 # okay in the real world where ";" in dirpaths is itself problematic.
8837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8838 else
8839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8840 fi
8841else
8842 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8843fi
8844need_lib_prefix=unknown
8845hardcode_into_libs=no
8846
8847# when you set need_version to no, make sure it does not cause -set_version
8848# flags to be left without arguments
8849need_version=unknown
8850
8851case $host_os in
8852aix3*)
8853 version_type=linux
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8855 shlibpath_var=LIBPATH
8856
8857 # AIX 3 has no versioning support, so we append a major version to the name.
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 ;;
8860
8861aix4* | aix5*)
8862 version_type=linux
8863 need_lib_prefix=no
8864 need_version=no
8865 hardcode_into_libs=yes
8866 if test "$host_cpu" = ia64; then
8867 # AIX 5 supports IA64
8868 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 else
8871 # With GCC up to 2.95.x, collect2 would create an import file
8872 # for dependence libraries. The import file would start with
8873 # the line `#! .'. This would cause the generated library to
8874 # depend on `.', always an invalid library. This was fixed in
8875 # development snapshots of GCC prior to 3.0.
8876 case $host_os in
8877 aix4 | aix4.[01] | aix4.[01].*)
8878 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8879 echo ' yes '
8880 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8881 :
8882 else
8883 can_build_shared=no
8884 fi
8885 ;;
8886 esac
8887 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8888 # soname into executable. Probably we can add versioning support to
8889 # collect2, so additional links can be useful in future.
8890 if test "$aix_use_runtimelinking" = yes; then
8891 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8892 # instead of lib<name>.a to let people know that these are not
8893 # typical AIX shared libraries.
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895 else
8896 # We preserve .a as extension for shared libraries through AIX4.2
8897 # and later when we are not doing run time linking.
8898 library_names_spec='${libname}${release}.a $libname.a'
8899 soname_spec='${libname}${release}${shared_ext}$major'
8900 fi
8901 shlibpath_var=LIBPATH
8902 fi
8903 ;;
8904
8905amigaos*)
8906 library_names_spec='$libname.ixlibrary $libname.a'
8907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8908 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'
8909 ;;
8910
8911beos*)
8912 library_names_spec='${libname}${shared_ext}'
8913 dynamic_linker="$host_os ld.so"
8914 shlibpath_var=LIBRARY_PATH
8915 ;;
8916
8917bsdi[45]*)
8918 version_type=linux
8919 need_version=no
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8926 # the default ld.so.conf also contains /usr/contrib/lib and
8927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8928 # libtool to hard-code these into programs
8929 ;;
8930
8931cygwin* | mingw* | pw32*)
8932 version_type=windows
8933 shrext_cmds=".dll"
8934 need_version=no
8935 need_lib_prefix=no
8936
8937 case $GCC,$host_os in
8938 yes,cygwin* | yes,mingw* | yes,pw32*)
8939 library_names_spec='$libname.dll.a'
8940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8941 postinstall_cmds='base_file=`basename \${file}`~
8942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8943 dldir=$destdir/`dirname \$dlpath`~
8944 test -d \$dldir || mkdir -p \$dldir~
8945 $install_prog $dir/$dlname \$dldir/$dlname~
8946 chmod a+x \$dldir/$dlname'
8947 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8948 dlpath=$dir/\$dldll~
8949 $rm \$dlpath'
8950 shlibpath_overrides_runpath=yes
8951
8952 case $host_os in
8953 cygwin*)
8954 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8955 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8956 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8957 ;;
8958 mingw*)
8959 # MinGW DLLs use traditional 'lib' prefix
8960 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8962 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8963 # It is most probably a Windows format PATH printed by
8964 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8965 # path with ; separators, and with drive letters. We can handle the
8966 # drive letters (cygwin fileutils understands them), so leave them,
8967 # especially as we might pass files found there to a mingw objdump,
8968 # which wouldn't understand a cygwinified path. Ahh.
8969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8970 else
8971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8972 fi
8973 ;;
8974 pw32*)
8975 # pw32 DLLs use 'pw' prefix rather than 'lib'
8976 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8977 ;;
8978 esac
8979 ;;
8980
8981 *)
8982 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8983 ;;
8984 esac
8985 dynamic_linker='Win32 ld.exe'
8986 # FIXME: first we should search . and the directory the executable is in
8987 shlibpath_var=PATH
8988 ;;
8989
8990darwin* | rhapsody*)
8991 dynamic_linker="$host_os dyld"
8992 version_type=darwin
8993 need_lib_prefix=no
8994 need_version=no
8995 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8996 soname_spec='${libname}${release}${major}$shared_ext'
8997 shlibpath_overrides_runpath=yes
8998 shlibpath_var=DYLD_LIBRARY_PATH
8999 shrext_cmds='.dylib'
9000 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9001 if test "$GCC" = yes; then
9002 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"`
9003 else
9004 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9005 fi
9006 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9007 ;;
9008
9009dgux*)
9010 version_type=linux
9011 need_lib_prefix=no
9012 need_version=no
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 ;;
9017
9018freebsd1*)
9019 dynamic_linker=no
9020 ;;
9021
9022kfreebsd*-gnu)
9023 version_type=linux
9024 need_lib_prefix=no
9025 need_version=no
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=no
9030 hardcode_into_libs=yes
9031 dynamic_linker='GNU ld.so'
9032 ;;
9033
9034freebsd* | dragonfly*)
9035 # DragonFly does not have aout. When/if they implement a new
9036 # versioning mechanism, adjust this.
9037 if test -x /usr/bin/objformat; then
9038 objformat=`/usr/bin/objformat`
9039 else
9040 case $host_os in
9041 freebsd[123]*) objformat=aout ;;
9042 *) objformat=elf ;;
9043 esac
9044 fi
9045 version_type=freebsd-$objformat
9046 case $version_type in
9047 freebsd-elf*)
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9049 need_version=no
9050 need_lib_prefix=no
9051 ;;
9052 freebsd-*)
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9054 need_version=yes
9055 ;;
9056 esac
9057 shlibpath_var=LD_LIBRARY_PATH
9058 case $host_os in
9059 freebsd2*)
9060 shlibpath_overrides_runpath=yes
9061 ;;
9062 freebsd3.[01]* | freebsdelf3.[01]*)
9063 shlibpath_overrides_runpath=yes
9064 hardcode_into_libs=yes
9065 ;;
9066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9068 shlibpath_overrides_runpath=no
9069 hardcode_into_libs=yes
9070 ;;
9071 freebsd*) # from 4.6 on
9072 shlibpath_overrides_runpath=yes
9073 hardcode_into_libs=yes
9074 ;;
9075 esac
9076 ;;
9077
9078gnu*)
9079 version_type=linux
9080 need_lib_prefix=no
9081 need_version=no
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9085 hardcode_into_libs=yes
9086 ;;
9087
9088hpux9* | hpux10* | hpux11*)
9089 # Give a soname corresponding to the major version so that dld.sl refuses to
9090 # link against other versions.
9091 version_type=sunos
9092 need_lib_prefix=no
9093 need_version=no
9094 case $host_cpu in
9095 ia64*)
9096 shrext_cmds='.so'
9097 hardcode_into_libs=yes
9098 dynamic_linker="$host_os dld.so"
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 if test "X$HPUX_IA64_MODE" = X32; then
9104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9105 else
9106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9107 fi
9108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9109 ;;
9110 hppa*64*)
9111 shrext_cmds='.sl'
9112 hardcode_into_libs=yes
9113 dynamic_linker="$host_os dld.sl"
9114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9120 ;;
9121 *)
9122 shrext_cmds='.sl'
9123 dynamic_linker="$host_os dld.sl"
9124 shlibpath_var=SHLIB_PATH
9125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9127 soname_spec='${libname}${release}${shared_ext}$major'
9128 ;;
9129 esac
9130 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9131 postinstall_cmds='chmod 555 $lib'
9132 ;;
9133
9134interix3*)
9135 version_type=linux
9136 need_lib_prefix=no
9137 need_version=no
9138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=no
9143 hardcode_into_libs=yes
9144 ;;
9145
9146irix5* | irix6* | nonstopux*)
9147 case $host_os in
9148 nonstopux*) version_type=nonstopux ;;
9149 *)
9150 if test "$lt_cv_prog_gnu_ld" = yes; then
9151 version_type=linux
9152 else
9153 version_type=irix
9154 fi ;;
9155 esac
9156 need_lib_prefix=no
9157 need_version=no
9158 soname_spec='${libname}${release}${shared_ext}$major'
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9160 case $host_os in
9161 irix5* | nonstopux*)
9162 libsuff= shlibsuff=
9163 ;;
9164 *)
9165 case $LD in # libtool.m4 will add one of these switches to LD
9166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9167 libsuff= shlibsuff= libmagic=32-bit;;
9168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9169 libsuff=32 shlibsuff=N32 libmagic=N32;;
9170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9171 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9172 *) libsuff= shlibsuff= libmagic=never-match;;
9173 esac
9174 ;;
9175 esac
9176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9177 shlibpath_overrides_runpath=no
9178 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9179 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9180 hardcode_into_libs=yes
9181 ;;
9182
9183# No shared lib support for Linux oldld, aout, or coff.
9184linux*oldld* | linux*aout* | linux*coff*)
9185 dynamic_linker=no
9186 ;;
9187
9188# This must be Linux ELF.
9189linux*)
9190 version_type=linux
9191 need_lib_prefix=no
9192 need_version=no
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 shlibpath_overrides_runpath=no
9198 # This implies no fast_install, which is unacceptable.
9199 # Some rework will be needed to allow for fast_install
9200 # before this can be enabled.
9201 hardcode_into_libs=yes
9202
9203 # Append ld.so.conf contents to the search path
9204 if test -f /etc/ld.so.conf; then
9205 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' ' '`
9206 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9207 fi
9208
9209 # We used to test for /lib/ld.so.1 and disable shared libraries on
9210 # powerpc, because MkLinux only supported shared libraries with the
9211 # GNU dynamic linker. Since this was broken with cross compilers,
9212 # most powerpc-linux boxes support dynamic linking these days and
9213 # people can always --disable-shared, the test was removed, and we
9214 # assume the GNU/Linux dynamic linker is in use.
9215 dynamic_linker='GNU/Linux ld.so'
9216 ;;
9217
9218knetbsd*-gnu)
9219 version_type=linux
9220 need_lib_prefix=no
9221 need_version=no
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9223 soname_spec='${libname}${release}${shared_ext}$major'
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=no
9226 hardcode_into_libs=yes
9227 dynamic_linker='GNU ld.so'
9228 ;;
9229
9230netbsd*)
9231 version_type=sunos
9232 need_lib_prefix=no
9233 need_version=no
9234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9237 dynamic_linker='NetBSD (a.out) ld.so'
9238 else
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 dynamic_linker='NetBSD ld.elf_so'
9242 fi
9243 shlibpath_var=LD_LIBRARY_PATH
9244 shlibpath_overrides_runpath=yes
9245 hardcode_into_libs=yes
9246 ;;
9247
9248newsos6)
9249 version_type=linux
9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 shlibpath_overrides_runpath=yes
9253 ;;
9254
9255nto-qnx*)
9256 version_type=linux
9257 need_lib_prefix=no
9258 need_version=no
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 shlibpath_var=LD_LIBRARY_PATH
9262 shlibpath_overrides_runpath=yes
9263 ;;
9264
9265openbsd*)
9266 version_type=sunos
9267 sys_lib_dlsearch_path_spec="/usr/lib"
9268 need_lib_prefix=no
9269 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9270 case $host_os in
9271 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9272 *) need_version=no ;;
9273 esac
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9278 case $host_os in
9279 openbsd2.[89] | openbsd2.[89].*)
9280 shlibpath_overrides_runpath=no
9281 ;;
9282 *)
9283 shlibpath_overrides_runpath=yes
9284 ;;
9285 esac
9286 else
9287 shlibpath_overrides_runpath=yes
9288 fi
9289 ;;
9290
9291os2*)
9292 libname_spec='$name'
9293 shrext_cmds=".dll"
9294 need_lib_prefix=no
9295 library_names_spec='$libname${shared_ext} $libname.a'
9296 dynamic_linker='OS/2 ld.exe'
9297 shlibpath_var=LIBPATH
9298 ;;
9299
9300osf3* | osf4* | osf5*)
9301 version_type=osf
9302 need_lib_prefix=no
9303 need_version=no
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9308 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9309 ;;
9310
9311solaris*)
9312 version_type=linux
9313 need_lib_prefix=no
9314 need_version=no
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=yes
9319 hardcode_into_libs=yes
9320 # ldd complains unless libraries are executable
9321 postinstall_cmds='chmod +x $lib'
9322 ;;
9323
9324sunos4*)
9325 version_type=sunos
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 shlibpath_overrides_runpath=yes
9330 if test "$with_gnu_ld" = yes; then
9331 need_lib_prefix=no
9332 fi
9333 need_version=yes
9334 ;;
9335
9336sysv4 | sysv4.3*)
9337 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
9341 case $host_vendor in
9342 sni)
9343 shlibpath_overrides_runpath=no
9344 need_lib_prefix=no
9345 export_dynamic_flag_spec='${wl}-Blargedynsym'
9346 runpath_var=LD_RUN_PATH
9347 ;;
9348 siemens)
9349 need_lib_prefix=no
9350 ;;
9351 motorola)
9352 need_lib_prefix=no
9353 need_version=no
9354 shlibpath_overrides_runpath=no
9355 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9356 ;;
9357 esac
9358 ;;
9359
9360sysv4*MP*)
9361 if test -d /usr/nec ;then
9362 version_type=linux
9363 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9364 soname_spec='$libname${shared_ext}.$major'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 fi
9367 ;;
9368
9369sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9370 version_type=freebsd-elf
9371 need_lib_prefix=no
9372 need_version=no
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 hardcode_into_libs=yes
9377 if test "$with_gnu_ld" = yes; then
9378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9379 shlibpath_overrides_runpath=no
9380 else
9381 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9382 shlibpath_overrides_runpath=yes
9383 case $host_os in
9384 sco3.2v5*)
9385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9386 ;;
9387 esac
9388 fi
9389 sys_lib_dlsearch_path_spec='/usr/lib'
9390 ;;
9391
9392uts4*)
9393 version_type=linux
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9395 soname_spec='${libname}${release}${shared_ext}$major'
9396 shlibpath_var=LD_LIBRARY_PATH
9397 ;;
9398
9399*)
9400 dynamic_linker=no
9401 ;;
9402esac
9403{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9404echo "${ECHO_T}$dynamic_linker" >&6; }
9405test "$dynamic_linker" = no && can_build_shared=no
9406
9407variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9408if test "$GCC" = yes; then
9409 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9410fi
9411
9412
9413{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9414echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9415if test "${libltdl_cv_shlibext+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417else
9418
9419module=yes
9420eval libltdl_cv_shlibext=$shrext_cmds
9421
9422fi
9423{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9424echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9425if test -n "$libltdl_cv_shlibext"; then
9426
9427cat >>confdefs.h <<_ACEOF
9428#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9429_ACEOF
9430
9431fi
9432
9433
9434{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9435echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9436if test "${libltdl_cv_shlibpath_var+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438else
9439 libltdl_cv_shlibpath_var="$shlibpath_var"
9440fi
9441{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9442echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9443if test -n "$libltdl_cv_shlibpath_var"; then
9444
9445cat >>confdefs.h <<_ACEOF
9446#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9447_ACEOF
9448
9449fi
9450
9451
9452{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9453echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9454if test "${libltdl_cv_sys_search_path+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
9457 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9458fi
9459{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9460echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9461if test -n "$libltdl_cv_sys_search_path"; then
9462 sys_search_path=
9463 for dir in $libltdl_cv_sys_search_path; do
9464 if test -z "$sys_search_path"; then
9465 sys_search_path="$dir"
9466 else
9467 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9468 fi
9469 done
9470
9471cat >>confdefs.h <<_ACEOF
9472#define LTDL_SYSSEARCHPATH "$sys_search_path"
9473_ACEOF
9474
9475fi
9476
9477{ echo "$as_me:$LINENO: checking for objdir" >&5
9478echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9479if test "${libltdl_cv_objdir+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481else
9482 libltdl_cv_objdir="$objdir"
9483 if test -n "$objdir"; then
9484 :
9485 else
9486 rm -f .libs 2>/dev/null
9487 mkdir .libs 2>/dev/null
9488 if test -d .libs; then
9489 libltdl_cv_objdir=.libs
9490 else
9491 # MS-DOS does not allow filenames that begin with a dot.
9492 libltdl_cv_objdir=_libs
9493 fi
9494 rmdir .libs 2>/dev/null
9495 fi
9496
9497fi
9498{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9499echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9500
9501cat >>confdefs.h <<_ACEOF
9502#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9503_ACEOF
9504
9505
9506
9507
9508
9509
9510# Check for command to grab the raw symbol name followed by C symbol from nm.
9511{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9512echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9513if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9515else
9516
9517# These are sane defaults that work on at least a few old systems.
9518# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9519
9520# Character class describing NM global symbol codes.
9521symcode='[BCDEGRST]'
9522
9523# Regexp to match symbols that can be accessed directly from C.
9524sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9525
9526# Transform an extracted symbol line into a proper C declaration
9527lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9528
9529# Transform an extracted symbol line into symbol name and symbol address
9530lt_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'"
9531
9532# Define system-specific variables.
9533case $host_os in
9534aix*)
9535 symcode='[BCDT]'
9536 ;;
9537cygwin* | mingw* | pw32*)
9538 symcode='[ABCDGISTW]'
9539 ;;
9540hpux*) # Its linker distinguishes data from code symbols
9541 if test "$host_cpu" = ia64; then
9542 symcode='[ABCDEGRST]'
9543 fi
9544 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9545 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'"
9546 ;;
9547linux*)
9548 if test "$host_cpu" = ia64; then
9549 symcode='[ABCDGIRSTW]'
9550 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9551 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'"
9552 fi
9553 ;;
9554irix* | nonstopux*)
9555 symcode='[BCDEGRST]'
9556 ;;
9557osf*)
9558 symcode='[BCDEGQRST]'
9559 ;;
9560solaris*)
9561 symcode='[BDRT]'
9562 ;;
9563sco3.2v5*)
9564 symcode='[DT]'
9565 ;;
9566sysv4.2uw2*)
9567 symcode='[DT]'
9568 ;;
9569sysv5* | sco5v6* | unixware* | OpenUNIX*)
9570 symcode='[ABDT]'
9571 ;;
9572sysv4)
9573 symcode='[DFNSTU]'
9574 ;;
9575esac
9576
9577# Handle CRLF in mingw tool chain
9578opt_cr=
9579case $build_os in
9580mingw*)
9581 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9582 ;;
9583esac
9584
9585# If we're using GNU nm, then use its standard symbol codes.
9586case `$NM -V 2>&1` in
9587*GNU* | *'with BFD'*)
9588 symcode='[ABCDGIRSTW]' ;;
9589esac
9590
9591# Try without a prefix undercore, then with it.
9592for ac_symprfx in "" "_"; do
9593
9594 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9595 symxfrm="\\1 $ac_symprfx\\2 \\2"
9596
9597 # Write the raw and C identifiers.
9598 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9599
9600 # Check to see that the pipe works correctly.
9601 pipe_works=no
9602
9603 rm -f conftest*
9604 cat > conftest.$ac_ext <<EOF
9605#ifdef __cplusplus
9606extern "C" {
9607#endif
9608char nm_test_var;
9609void nm_test_func(){}
9610#ifdef __cplusplus
9611}
9612#endif
9613int main(){nm_test_var='a';nm_test_func();return(0);}
9614EOF
9615
9616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9617 (eval $ac_compile) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; then
9621 # Now try to grab the symbols.
9622 nlist=conftest.nm
9623 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9624 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } && test -s "$nlist"; then
9628 # Try sorting and uniquifying the output.
9629 if sort "$nlist" | uniq > "$nlist"T; then
9630 mv -f "$nlist"T "$nlist"
9631 else
9632 rm -f "$nlist"T
9633 fi
9634
9635 # Make sure that we snagged all the symbols we need.
9636 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9637 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9638 cat <<EOF > conftest.$ac_ext
9639#ifdef __cplusplus
9640extern "C" {
9641#endif
9642
9643EOF
9644 # Now generate the symbol file.
9645 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9646
9647 cat <<EOF >> conftest.$ac_ext
9648#if defined (__STDC__) && __STDC__
9649# define lt_ptr_t void *
9650#else
9651# define lt_ptr_t char *
9652# define const
9653#endif
9654
9655/* The mapping between symbol names and symbols. */
9656const struct {
9657 const char *name;
9658 lt_ptr_t address;
9659}
9660lt_preloaded_symbols[] =
9661{
9662EOF
9663 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9664 cat <<\EOF >> conftest.$ac_ext
9665 {0, (lt_ptr_t) 0}
9666};
9667
9668#ifdef __cplusplus
9669}
9670#endif
9671EOF
9672 # Now try linking the two files.
9673 mv conftest.$ac_objext conftstm.$ac_objext
9674 lt_save_LIBS="$LIBS"
9675 lt_save_CFLAGS="$CFLAGS"
9676 LIBS="conftstm.$ac_objext"
9677 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9683 pipe_works=yes
9684 fi
9685 LIBS="$lt_save_LIBS"
9686 CFLAGS="$lt_save_CFLAGS"
9687 else
9688 echo "cannot find nm_test_func in $nlist" >&5
9689 fi
9690 else
9691 echo "cannot find nm_test_var in $nlist" >&5
9692 fi
9693 else
9694 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9695 fi
9696 else
9697 echo "$progname: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9699 fi
9700 rm -f conftest* conftst*
9701
9702 # Do not use the global_symbol_pipe unless it works.
9703 if test "$pipe_works" = yes; then
9704 break
9705 else
9706 lt_cv_sys_global_symbol_pipe=
9707 fi
9708done
9709
9710fi
9711
9712if test -z "$lt_cv_sys_global_symbol_pipe"; then
9713 lt_cv_sys_global_symbol_to_cdecl=
9714fi
9715if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9716 { echo "$as_me:$LINENO: result: failed" >&5
9717echo "${ECHO_T}failed" >&6; }
9718else
9719 { echo "$as_me:$LINENO: result: ok" >&5
9720echo "${ECHO_T}ok" >&6; }
9721fi
9722
9723
9724{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9725echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9726if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728else
9729 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9730 libltdl_cv_preloaded_symbols=yes
9731 else
9732 libltdl_cv_preloaded_symbols=no
9733 fi
9734
9735fi
9736{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9737echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9738if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9739
9740cat >>confdefs.h <<\_ACEOF
9741#define HAVE_PRELOADED_SYMBOLS 1
9742_ACEOF
9743
9744fi
9745
9746LIBADD_DL=
9747
9748ac_ext=c
9749ac_cpp='$CPP $CPPFLAGS'
9750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9752ac_compiler_gnu=$ac_cv_c_compiler_gnu
9753
9754
9755{ echo "$as_me:$LINENO: checking for shl_load" >&5
9756echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9757if test "${ac_cv_func_shl_load+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759else
9760 cat >conftest.$ac_ext <<_ACEOF
9761/* confdefs.h. */
9762_ACEOF
9763cat confdefs.h >>conftest.$ac_ext
9764cat >>conftest.$ac_ext <<_ACEOF
9765/* end confdefs.h. */
9766/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9768#define shl_load innocuous_shl_load
9769
9770/* System header to define __stub macros and hopefully few prototypes,
9771 which can conflict with char shl_load (); below.
9772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9773 <limits.h> exists even on freestanding compilers. */
9774
9775#ifdef __STDC__
9776# include <limits.h>
9777#else
9778# include <assert.h>
9779#endif
9780
9781#undef shl_load
9782
9783/* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
9786#ifdef __cplusplus
9787extern "C"
9788#endif
9789char shl_load ();
9790/* The GNU C library defines this for functions which it implements
9791 to always fail with ENOSYS. Some functions are actually named
9792 something starting with __ and the normal name is an alias. */
9793#if defined __stub_shl_load || defined __stub___shl_load
9794choke me
9795#endif
9796
9797int
9798main ()
9799{
9800return shl_load ();
9801 ;
9802 return 0;
9803}
9804_ACEOF
9805rm -f conftest.$ac_objext conftest$ac_exeext
9806if { (ac_try="$ac_link"
9807case "(($ac_try" in
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9810esac
9811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
9813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9820 { (case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9823esac
9824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_try") 2>&5
9826 ac_status=$?
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; } &&
9829 { ac_try='test -s conftest$ac_exeext'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833esac
9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9836 ac_status=$?
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009839 ac_cv_func_shl_load=yes
9840else
9841 echo "$as_me: failed program was:" >&5
9842sed 's/^/| /' conftest.$ac_ext >&5
9843
9844 ac_cv_func_shl_load=no
9845fi
9846
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009847rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009848 conftest$ac_exeext conftest.$ac_ext
9849fi
9850{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9851echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9852if test $ac_cv_func_shl_load = yes; then
9853
9854cat >>confdefs.h <<\_ACEOF
9855#define HAVE_SHL_LOAD 1
9856_ACEOF
9857
9858else
9859 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9860echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9861if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863else
9864 ac_check_lib_save_LIBS=$LIBS
9865LIBS="-ldld $LIBS"
9866cat >conftest.$ac_ext <<_ACEOF
9867/* confdefs.h. */
9868_ACEOF
9869cat confdefs.h >>conftest.$ac_ext
9870cat >>conftest.$ac_ext <<_ACEOF
9871/* end confdefs.h. */
9872
9873/* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9876#ifdef __cplusplus
9877extern "C"
9878#endif
9879char shl_load ();
9880int
9881main ()
9882{
9883return shl_load ();
9884 ;
9885 return 0;
9886}
9887_ACEOF
9888rm -f conftest.$ac_objext conftest$ac_exeext
9889if { (ac_try="$ac_link"
9890case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_link") 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009901 (exit $ac_status); } &&
9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest$ac_exeext'
9913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916esac
9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
9919 ac_status=$?
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009922 ac_cv_lib_dld_shl_load=yes
9923else
9924 echo "$as_me: failed program was:" >&5
9925sed 's/^/| /' conftest.$ac_ext >&5
9926
9927 ac_cv_lib_dld_shl_load=no
9928fi
9929
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009930rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009931 conftest$ac_exeext conftest.$ac_ext
9932LIBS=$ac_check_lib_save_LIBS
9933fi
9934{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9935echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9936if test $ac_cv_lib_dld_shl_load = yes; then
9937
9938cat >>confdefs.h <<\_ACEOF
9939#define HAVE_SHL_LOAD 1
9940_ACEOF
9941
9942 LIBADD_DL="$LIBADD_DL -ldld"
9943else
9944 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9945echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9946if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949 ac_check_lib_save_LIBS=$LIBS
9950LIBS="-ldl $LIBS"
9951cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h. */
9953_ACEOF
9954cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h. */
9957
9958/* Override any GCC internal prototype to avoid an error.
9959 Use char because int might match the return type of a GCC
9960 builtin and then its argument prototype would still apply. */
9961#ifdef __cplusplus
9962extern "C"
9963#endif
9964char dlopen ();
9965int
9966main ()
9967{
9968return dlopen ();
9969 ;
9970 return 0;
9971}
9972_ACEOF
9973rm -f conftest.$ac_objext conftest$ac_exeext
9974if { (ac_try="$ac_link"
9975case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978esac
9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_link") 2>conftest.er1
9981 ac_status=$?
9982 grep -v '^ *+' conftest.er1 >conftest.err
9983 rm -f conftest.er1
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +00009986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9988 { (case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991esac
9992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001esac
10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_try") 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010007 ac_cv_lib_dl_dlopen=yes
10008else
10009 echo "$as_me: failed program was:" >&5
10010sed 's/^/| /' conftest.$ac_ext >&5
10011
10012 ac_cv_lib_dl_dlopen=no
10013fi
10014
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010015rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010016 conftest$ac_exeext conftest.$ac_ext
10017LIBS=$ac_check_lib_save_LIBS
10018fi
10019{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10020echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10021if test $ac_cv_lib_dl_dlopen = yes; then
10022
10023cat >>confdefs.h <<\_ACEOF
10024#define HAVE_LIBDL 1
10025_ACEOF
10026
10027 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10028else
10029 cat >conftest.$ac_ext <<_ACEOF
10030/* confdefs.h. */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
10034/* end confdefs.h. */
10035#if HAVE_DLFCN_H
10036# include <dlfcn.h>
10037#endif
10038
10039int
10040main ()
10041{
10042dlopen(0, 0);
10043 ;
10044 return 0;
10045}
10046_ACEOF
10047rm -f conftest.$ac_objext conftest$ac_exeext
10048if { (ac_try="$ac_link"
10049case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10052esac
10053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_link") 2>conftest.er1
10055 ac_status=$?
10056 grep -v '^ *+' conftest.er1 >conftest.err
10057 rm -f conftest.er1
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10062 { (case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065esac
10066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_try") 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075esac
10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010081
10082cat >>confdefs.h <<\_ACEOF
10083#define HAVE_LIBDL 1
10084_ACEOF
10085 libltdl_cv_func_dlopen="yes"
10086else
10087 echo "$as_me: failed program was:" >&5
10088sed 's/^/| /' conftest.$ac_ext >&5
10089
10090 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10091echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10092if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094else
10095 ac_check_lib_save_LIBS=$LIBS
10096LIBS="-lsvld $LIBS"
10097cat >conftest.$ac_ext <<_ACEOF
10098/* confdefs.h. */
10099_ACEOF
10100cat confdefs.h >>conftest.$ac_ext
10101cat >>conftest.$ac_ext <<_ACEOF
10102/* end confdefs.h. */
10103
10104/* Override any GCC internal prototype to avoid an error.
10105 Use char because int might match the return type of a GCC
10106 builtin and then its argument prototype would still apply. */
10107#ifdef __cplusplus
10108extern "C"
10109#endif
10110char dlopen ();
10111int
10112main ()
10113{
10114return dlopen ();
10115 ;
10116 return 0;
10117}
10118_ACEOF
10119rm -f conftest.$ac_objext conftest$ac_exeext
10120if { (ac_try="$ac_link"
10121case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>conftest.er1
10127 ac_status=$?
10128 grep -v '^ *+' conftest.er1 >conftest.err
10129 rm -f conftest.er1
10130 cat conftest.err >&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010132 (exit $ac_status); } &&
10133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10134 { (case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10137esac
10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_try") 2>&5
10140 ac_status=$?
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; } &&
10143 { ac_try='test -s conftest$ac_exeext'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147esac
10148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10150 ac_status=$?
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010153 ac_cv_lib_svld_dlopen=yes
10154else
10155 echo "$as_me: failed program was:" >&5
10156sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 ac_cv_lib_svld_dlopen=no
10159fi
10160
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010161rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010162 conftest$ac_exeext conftest.$ac_ext
10163LIBS=$ac_check_lib_save_LIBS
10164fi
10165{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10166echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10167if test $ac_cv_lib_svld_dlopen = yes; then
10168
10169cat >>confdefs.h <<\_ACEOF
10170#define HAVE_LIBDL 1
10171_ACEOF
10172
10173 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10174else
10175 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10176echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10177if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179else
10180 ac_check_lib_save_LIBS=$LIBS
10181LIBS="-ldld $LIBS"
10182cat >conftest.$ac_ext <<_ACEOF
10183/* confdefs.h. */
10184_ACEOF
10185cat confdefs.h >>conftest.$ac_ext
10186cat >>conftest.$ac_ext <<_ACEOF
10187/* end confdefs.h. */
10188
10189/* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
10192#ifdef __cplusplus
10193extern "C"
10194#endif
10195char dld_link ();
10196int
10197main ()
10198{
10199return dld_link ();
10200 ;
10201 return 0;
10202}
10203_ACEOF
10204rm -f conftest.$ac_objext conftest$ac_exeext
10205if { (ac_try="$ac_link"
10206case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209esac
10210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_link") 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010217 (exit $ac_status); } &&
10218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10219 { (case "(($ac_try" in
10220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221 *) ac_try_echo=$ac_try;;
10222esac
10223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_try") 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest$ac_exeext'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232esac
10233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010238 ac_cv_lib_dld_dld_link=yes
10239else
10240 echo "$as_me: failed program was:" >&5
10241sed 's/^/| /' conftest.$ac_ext >&5
10242
10243 ac_cv_lib_dld_dld_link=no
10244fi
10245
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010246rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010247 conftest$ac_exeext conftest.$ac_ext
10248LIBS=$ac_check_lib_save_LIBS
10249fi
10250{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10251echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10252if test $ac_cv_lib_dld_dld_link = yes; then
10253
10254cat >>confdefs.h <<\_ACEOF
10255#define HAVE_DLD 1
10256_ACEOF
10257
10258 LIBADD_DL="$LIBADD_DL -ldld"
10259else
10260 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10261echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10262if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
10265 cat >conftest.$ac_ext <<_ACEOF
10266/* confdefs.h. */
10267_ACEOF
10268cat confdefs.h >>conftest.$ac_ext
10269cat >>conftest.$ac_ext <<_ACEOF
10270/* end confdefs.h. */
10271/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10273#define _dyld_func_lookup innocuous__dyld_func_lookup
10274
10275/* System header to define __stub macros and hopefully few prototypes,
10276 which can conflict with char _dyld_func_lookup (); below.
10277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10278 <limits.h> exists even on freestanding compilers. */
10279
10280#ifdef __STDC__
10281# include <limits.h>
10282#else
10283# include <assert.h>
10284#endif
10285
10286#undef _dyld_func_lookup
10287
10288/* Override any GCC internal prototype to avoid an error.
10289 Use char because int might match the return type of a GCC
10290 builtin and then its argument prototype would still apply. */
10291#ifdef __cplusplus
10292extern "C"
10293#endif
10294char _dyld_func_lookup ();
10295/* The GNU C library defines this for functions which it implements
10296 to always fail with ENOSYS. Some functions are actually named
10297 something starting with __ and the normal name is an alias. */
10298#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10299choke me
10300#endif
10301
10302int
10303main ()
10304{
10305return _dyld_func_lookup ();
10306 ;
10307 return 0;
10308}
10309_ACEOF
10310rm -f conftest.$ac_objext conftest$ac_exeext
10311if { (ac_try="$ac_link"
10312case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315esac
10316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010323 (exit $ac_status); } &&
10324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328esac
10329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10338esac
10339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_try") 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010344 ac_cv_func__dyld_func_lookup=yes
10345else
10346 echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
10349 ac_cv_func__dyld_func_lookup=no
10350fi
10351
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010352rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010353 conftest$ac_exeext conftest.$ac_ext
10354fi
10355{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10356echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10357if test $ac_cv_func__dyld_func_lookup = yes; then
10358
10359cat >>confdefs.h <<\_ACEOF
10360#define HAVE_DYLD 1
10361_ACEOF
10362
10363fi
10364
10365
10366fi
10367
10368
10369fi
10370
10371
10372fi
10373
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010374rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010375 conftest$ac_exeext conftest.$ac_ext
10376
10377fi
10378
10379
10380fi
10381
10382
10383fi
10384
10385
10386if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10387then
10388 lt_save_LIBS="$LIBS"
10389 LIBS="$LIBS $LIBADD_DL"
10390
10391for ac_func in dlerror
10392do
10393as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10394{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10395echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10396if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398else
10399 cat >conftest.$ac_ext <<_ACEOF
10400/* confdefs.h. */
10401_ACEOF
10402cat confdefs.h >>conftest.$ac_ext
10403cat >>conftest.$ac_ext <<_ACEOF
10404/* end confdefs.h. */
10405/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10407#define $ac_func innocuous_$ac_func
10408
10409/* System header to define __stub macros and hopefully few prototypes,
10410 which can conflict with char $ac_func (); below.
10411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10412 <limits.h> exists even on freestanding compilers. */
10413
10414#ifdef __STDC__
10415# include <limits.h>
10416#else
10417# include <assert.h>
10418#endif
10419
10420#undef $ac_func
10421
10422/* Override any GCC internal prototype to avoid an error.
10423 Use char because int might match the return type of a GCC
10424 builtin and then its argument prototype would still apply. */
10425#ifdef __cplusplus
10426extern "C"
10427#endif
10428char $ac_func ();
10429/* The GNU C library defines this for functions which it implements
10430 to always fail with ENOSYS. Some functions are actually named
10431 something starting with __ and the normal name is an alias. */
10432#if defined __stub_$ac_func || defined __stub___$ac_func
10433choke me
10434#endif
10435
10436int
10437main ()
10438{
10439return $ac_func ();
10440 ;
10441 return 0;
10442}
10443_ACEOF
10444rm -f conftest.$ac_objext conftest$ac_exeext
10445if { (ac_try="$ac_link"
10446case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449esac
10450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_link") 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010457 (exit $ac_status); } &&
10458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10459 { (case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10462esac
10463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_try") 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; } &&
10468 { ac_try='test -s conftest$ac_exeext'
10469 { (case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472esac
10473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_try") 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010478 eval "$as_ac_var=yes"
10479else
10480 echo "$as_me: failed program was:" >&5
10481sed 's/^/| /' conftest.$ac_ext >&5
10482
10483 eval "$as_ac_var=no"
10484fi
10485
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010486rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010487 conftest$ac_exeext conftest.$ac_ext
10488fi
10489ac_res=`eval echo '${'$as_ac_var'}'`
10490 { echo "$as_me:$LINENO: result: $ac_res" >&5
10491echo "${ECHO_T}$ac_res" >&6; }
10492if test `eval echo '${'$as_ac_var'}'` = yes; then
10493 cat >>confdefs.h <<_ACEOF
10494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10495_ACEOF
10496
10497fi
10498done
10499
10500 LIBS="$lt_save_LIBS"
10501fi
10502ac_ext=c
10503ac_cpp='$CPP $CPPFLAGS'
10504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10506ac_compiler_gnu=$ac_cv_c_compiler_gnu
10507
10508
10509
10510{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10511echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10512if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10514else
10515 ac_cv_sys_symbol_underscore=no
10516 cat > conftest.$ac_ext <<EOF
10517void nm_test_func(){}
10518int main(){nm_test_func;return 0;}
10519EOF
10520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10521 (eval $ac_compile) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; then
10525 # Now try to grab the symbols.
10526 ac_nlist=conftest.nm
10527 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10528 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && test -s "$ac_nlist"; then
10532 # See whether the symbols have a leading underscore.
10533 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10534 ac_cv_sys_symbol_underscore=yes
10535 else
10536 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10537 :
10538 else
10539 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10540 fi
10541 fi
10542 else
10543 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10544 fi
10545 else
10546 echo "configure: failed program was:" >&5
10547 cat conftest.c >&5
10548 fi
10549 rm -rf conftest*
10550
10551fi
10552{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10553echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10554
10555
10556if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10557 if test x"$libltdl_cv_func_dlopen" = xyes ||
10558 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10559 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10560echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10561if test "${libltdl_cv_need_uscore+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563else
10564 libltdl_cv_need_uscore=unknown
10565 save_LIBS="$LIBS"
10566 LIBS="$LIBS $LIBADD_DL"
10567 if test "$cross_compiling" = yes; then :
10568 libltdl_cv_need_uscore=cross
10569else
10570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10571 lt_status=$lt_dlunknown
10572 cat > conftest.$ac_ext <<EOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000010573#line 10573 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010574#include "confdefs.h"
10575
10576#if HAVE_DLFCN_H
10577#include <dlfcn.h>
10578#endif
10579
10580#include <stdio.h>
10581
10582#ifdef RTLD_GLOBAL
10583# define LT_DLGLOBAL RTLD_GLOBAL
10584#else
10585# ifdef DL_GLOBAL
10586# define LT_DLGLOBAL DL_GLOBAL
10587# else
10588# define LT_DLGLOBAL 0
10589# endif
10590#endif
10591
10592/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10593 find out it does not work in some platform. */
10594#ifndef LT_DLLAZY_OR_NOW
10595# ifdef RTLD_LAZY
10596# define LT_DLLAZY_OR_NOW RTLD_LAZY
10597# else
10598# ifdef DL_LAZY
10599# define LT_DLLAZY_OR_NOW DL_LAZY
10600# else
10601# ifdef RTLD_NOW
10602# define LT_DLLAZY_OR_NOW RTLD_NOW
10603# else
10604# ifdef DL_NOW
10605# define LT_DLLAZY_OR_NOW DL_NOW
10606# else
10607# define LT_DLLAZY_OR_NOW 0
10608# endif
10609# endif
10610# endif
10611# endif
10612#endif
10613
10614#ifdef __cplusplus
10615extern "C" void exit (int);
10616#endif
10617
10618void fnord() { int i=42;}
10619int main ()
10620{
10621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10622 int status = $lt_dlunknown;
10623
10624 if (self)
10625 {
10626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10628 /* dlclose (self); */
10629 }
10630 else
10631 puts (dlerror ());
10632
10633 exit (status);
10634}
10635EOF
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10641 (./conftest; exit; ) >&5 2>/dev/null
10642 lt_status=$?
10643 case x$lt_status in
10644 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10645 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10646 x$lt_dlunknown|x*) ;;
10647 esac
10648 else :
10649 # compilation failed
10650
10651 fi
10652fi
10653rm -fr conftest*
10654
10655 LIBS="$save_LIBS"
10656
10657fi
10658{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10659echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10660 fi
10661fi
10662
10663if test x"$libltdl_cv_need_uscore" = xyes; then
10664
10665cat >>confdefs.h <<\_ACEOF
10666#define NEED_USCORE 1
10667_ACEOF
10668
10669fi
10670
10671
10672{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10673echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10674if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10676else
10677 # PORTME does your system automatically load deplibs for dlopen?
10678 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10679 # For now, we just catch OSes we know something about -- in the
10680 # future, we'll try test this programmatically.
10681 libltdl_cv_sys_dlopen_deplibs=unknown
10682 case "$host_os" in
10683 aix3*|aix4.1.*|aix4.2.*)
10684 # Unknown whether this is true for these versions of AIX, but
10685 # we want this `case' here to explicitly catch those versions.
10686 libltdl_cv_sys_dlopen_deplibs=unknown
10687 ;;
10688 aix[45]*)
10689 libltdl_cv_sys_dlopen_deplibs=yes
10690 ;;
10691 darwin*)
10692 # Assuming the user has installed a libdl from somewhere, this is true
10693 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10694 libltdl_cv_sys_dlopen_deplibs=yes
10695 ;;
10696 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10697 # GNU and its variants, using gnu ld.so (Glibc)
10698 libltdl_cv_sys_dlopen_deplibs=yes
10699 ;;
10700 hpux10*|hpux11*)
10701 libltdl_cv_sys_dlopen_deplibs=yes
10702 ;;
10703 interix*)
10704 libltdl_cv_sys_dlopen_deplibs=yes
10705 ;;
10706 irix[12345]*|irix6.[01]*)
10707 # Catch all versions of IRIX before 6.2, and indicate that we don't
10708 # know how it worked for any of those versions.
10709 libltdl_cv_sys_dlopen_deplibs=unknown
10710 ;;
10711 irix*)
10712 # The case above catches anything before 6.2, and it's known that
10713 # at 6.2 and later dlopen does load deplibs.
10714 libltdl_cv_sys_dlopen_deplibs=yes
10715 ;;
10716 netbsd*)
10717 libltdl_cv_sys_dlopen_deplibs=yes
10718 ;;
10719 openbsd*)
10720 libltdl_cv_sys_dlopen_deplibs=yes
10721 ;;
10722 osf[1234]*)
10723 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10724 # it did *not* use an RPATH in a shared library to find objects the
10725 # library depends on, so we explictly say `no'.
10726 libltdl_cv_sys_dlopen_deplibs=no
10727 ;;
10728 osf5.0|osf5.0a|osf5.1)
10729 # dlopen *does* load deplibs and with the right loader patch applied
10730 # it even uses RPATH in a shared library to search for shared objects
10731 # that the library depends on, but there's no easy way to know if that
10732 # patch is installed. Since this is the case, all we can really
10733 # say is unknown -- it depends on the patch being installed. If
10734 # it is, this changes to `yes'. Without it, it would be `no'.
10735 libltdl_cv_sys_dlopen_deplibs=unknown
10736 ;;
10737 osf*)
10738 # the two cases above should catch all versions of osf <= 5.1. Read
10739 # the comments above for what we know about them.
10740 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10741 # is used to find them so we can finally say `yes'.
10742 libltdl_cv_sys_dlopen_deplibs=yes
10743 ;;
10744 solaris*)
10745 libltdl_cv_sys_dlopen_deplibs=yes
10746 ;;
10747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10748 libltdl_cv_sys_dlopen_deplibs=yes
10749 ;;
10750 esac
10751
10752fi
10753{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10754echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10755if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10756
10757cat >>confdefs.h <<\_ACEOF
10758#define LTDL_DLOPEN_DEPLIBS 1
10759_ACEOF
10760
10761fi
10762
10763
10764for ac_header in argz.h
10765do
10766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772fi
10773ac_res=`eval echo '${'$as_ac_Header'}'`
10774 { echo "$as_me:$LINENO: result: $ac_res" >&5
10775echo "${ECHO_T}$ac_res" >&6; }
10776else
10777 # Is the header compilable?
10778{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10780cat >conftest.$ac_ext <<_ACEOF
10781/* confdefs.h. */
10782_ACEOF
10783cat confdefs.h >>conftest.$ac_ext
10784cat >>conftest.$ac_ext <<_ACEOF
10785/* end confdefs.h. */
10786$ac_includes_default
10787#include <$ac_header>
10788_ACEOF
10789rm -f conftest.$ac_objext
10790if { (ac_try="$ac_compile"
10791case "(($ac_try" in
10792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793 *) ac_try_echo=$ac_try;;
10794esac
10795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796 (eval "$ac_compile") 2>conftest.er1
10797 ac_status=$?
10798 grep -v '^ *+' conftest.er1 >conftest.err
10799 rm -f conftest.er1
10800 cat conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010802 (exit $ac_status); } &&
10803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10804 { (case "(($ac_try" in
10805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10806 *) ac_try_echo=$ac_try;;
10807esac
10808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10809 (eval "$ac_try") 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; } &&
10813 { ac_try='test -s conftest.$ac_objext'
10814 { (case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10817esac
10818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10819 (eval "$ac_try") 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010823 ac_header_compiler=yes
10824else
10825 echo "$as_me: failed program was:" >&5
10826sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 ac_header_compiler=no
10829fi
10830
10831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10833echo "${ECHO_T}$ac_header_compiler" >&6; }
10834
10835# Is the header present?
10836{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10838cat >conftest.$ac_ext <<_ACEOF
10839/* confdefs.h. */
10840_ACEOF
10841cat confdefs.h >>conftest.$ac_ext
10842cat >>conftest.$ac_ext <<_ACEOF
10843/* end confdefs.h. */
10844#include <$ac_header>
10845_ACEOF
10846if { (ac_try="$ac_cpp conftest.$ac_ext"
10847case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10850esac
10851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010858 (exit $ac_status); } >/dev/null; then
10859 if test -s conftest.err; then
10860 ac_cpp_err=$ac_c_preproc_warn_flag
10861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10862 else
10863 ac_cpp_err=
10864 fi
10865else
10866 ac_cpp_err=yes
10867fi
10868if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010869 ac_header_preproc=yes
10870else
10871 echo "$as_me: failed program was:" >&5
10872sed 's/^/| /' conftest.$ac_ext >&5
10873
10874 ac_header_preproc=no
10875fi
10876
10877rm -f conftest.err conftest.$ac_ext
10878{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10879echo "${ECHO_T}$ac_header_preproc" >&6; }
10880
10881# So? What about this header?
10882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10883 yes:no: )
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10885echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10887echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10888 ac_header_preproc=yes
10889 ;;
10890 no:yes:* )
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10892echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10894echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10896echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10898echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10900echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10902echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10903 ( cat <<\_ASBOX
10904## ----------------------------------- ##
10905## Report this to llvmbugs@cs.uiuc.edu ##
10906## ----------------------------------- ##
10907_ASBOX
10908 ) | sed "s/^/$as_me: WARNING: /" >&2
10909 ;;
10910esac
10911{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915else
10916 eval "$as_ac_Header=\$ac_header_preproc"
10917fi
10918ac_res=`eval echo '${'$as_ac_Header'}'`
10919 { echo "$as_me:$LINENO: result: $ac_res" >&5
10920echo "${ECHO_T}$ac_res" >&6; }
10921
10922fi
10923if test `eval echo '${'$as_ac_Header'}'` = yes; then
10924 cat >>confdefs.h <<_ACEOF
10925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10926_ACEOF
10927
10928fi
10929
10930done
10931
10932
10933{ echo "$as_me:$LINENO: checking for error_t" >&5
10934echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10935if test "${ac_cv_type_error_t+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10937else
10938 cat >conftest.$ac_ext <<_ACEOF
10939/* confdefs.h. */
10940_ACEOF
10941cat confdefs.h >>conftest.$ac_ext
10942cat >>conftest.$ac_ext <<_ACEOF
10943/* end confdefs.h. */
10944#if HAVE_ARGZ_H
10945# include <argz.h>
10946#endif
10947
10948typedef error_t ac__type_new_;
10949int
10950main ()
10951{
10952if ((ac__type_new_ *) 0)
10953 return 0;
10954if (sizeof (ac__type_new_))
10955 return 0;
10956 ;
10957 return 0;
10958}
10959_ACEOF
10960rm -f conftest.$ac_objext
10961if { (ac_try="$ac_compile"
10962case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965esac
10966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_compile") 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000010973 (exit $ac_status); } &&
10974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10975 { (case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10978esac
10979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_try") 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try='test -s conftest.$ac_objext'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10988esac
10989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010994 ac_cv_type_error_t=yes
10995else
10996 echo "$as_me: failed program was:" >&5
10997sed 's/^/| /' conftest.$ac_ext >&5
10998
10999 ac_cv_type_error_t=no
11000fi
11001
11002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003fi
11004{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11005echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11006if test $ac_cv_type_error_t = yes; then
11007
11008cat >>confdefs.h <<_ACEOF
11009#define HAVE_ERROR_T 1
11010_ACEOF
11011
11012
11013else
11014
11015cat >>confdefs.h <<\_ACEOF
11016#define error_t int
11017_ACEOF
11018
11019fi
11020
11021
11022
11023
11024
11025
11026
11027for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11028do
11029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11030{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11032if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034else
11035 cat >conftest.$ac_ext <<_ACEOF
11036/* confdefs.h. */
11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
11040/* end confdefs.h. */
11041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11043#define $ac_func innocuous_$ac_func
11044
11045/* System header to define __stub macros and hopefully few prototypes,
11046 which can conflict with char $ac_func (); below.
11047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11048 <limits.h> exists even on freestanding compilers. */
11049
11050#ifdef __STDC__
11051# include <limits.h>
11052#else
11053# include <assert.h>
11054#endif
11055
11056#undef $ac_func
11057
11058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061#ifdef __cplusplus
11062extern "C"
11063#endif
11064char $ac_func ();
11065/* The GNU C library defines this for functions which it implements
11066 to always fail with ENOSYS. Some functions are actually named
11067 something starting with __ and the normal name is an alias. */
11068#if defined __stub_$ac_func || defined __stub___$ac_func
11069choke me
11070#endif
11071
11072int
11073main ()
11074{
11075return $ac_func ();
11076 ;
11077 return 0;
11078}
11079_ACEOF
11080rm -f conftest.$ac_objext conftest$ac_exeext
11081if { (ac_try="$ac_link"
11082case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_link") 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098esac
11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest$ac_exeext'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108esac
11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011114 eval "$as_ac_var=yes"
11115else
11116 echo "$as_me: failed program was:" >&5
11117sed 's/^/| /' conftest.$ac_ext >&5
11118
11119 eval "$as_ac_var=no"
11120fi
11121
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011122rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011123 conftest$ac_exeext conftest.$ac_ext
11124fi
11125ac_res=`eval echo '${'$as_ac_var'}'`
11126 { echo "$as_me:$LINENO: result: $ac_res" >&5
11127echo "${ECHO_T}$ac_res" >&6; }
11128if test `eval echo '${'$as_ac_var'}'` = yes; then
11129 cat >>confdefs.h <<_ACEOF
11130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11131_ACEOF
11132
11133fi
11134done
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11164 stdio.h unistd.h
11165do
11166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172fi
11173ac_res=`eval echo '${'$as_ac_Header'}'`
11174 { echo "$as_me:$LINENO: result: $ac_res" >&5
11175echo "${ECHO_T}$ac_res" >&6; }
11176else
11177 # Is the header compilable?
11178{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11180cat >conftest.$ac_ext <<_ACEOF
11181/* confdefs.h. */
11182_ACEOF
11183cat confdefs.h >>conftest.$ac_ext
11184cat >>conftest.$ac_ext <<_ACEOF
11185/* end confdefs.h. */
11186$ac_includes_default
11187#include <$ac_header>
11188_ACEOF
11189rm -f conftest.$ac_objext
11190if { (ac_try="$ac_compile"
11191case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11194esac
11195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_compile") 2>conftest.er1
11197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011202 (exit $ac_status); } &&
11203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11204 { (case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11207esac
11208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_try") 2>&5
11210 ac_status=$?
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; } &&
11213 { ac_try='test -s conftest.$ac_objext'
11214 { (case "(($ac_try" in
11215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11217esac
11218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219 (eval "$ac_try") 2>&5
11220 ac_status=$?
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011223 ac_header_compiler=yes
11224else
11225 echo "$as_me: failed program was:" >&5
11226sed 's/^/| /' conftest.$ac_ext >&5
11227
11228 ac_header_compiler=no
11229fi
11230
11231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11232{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11233echo "${ECHO_T}$ac_header_compiler" >&6; }
11234
11235# Is the header present?
11236{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11238cat >conftest.$ac_ext <<_ACEOF
11239/* confdefs.h. */
11240_ACEOF
11241cat confdefs.h >>conftest.$ac_ext
11242cat >>conftest.$ac_ext <<_ACEOF
11243/* end confdefs.h. */
11244#include <$ac_header>
11245_ACEOF
11246if { (ac_try="$ac_cpp conftest.$ac_ext"
11247case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250esac
11251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011258 (exit $ac_status); } >/dev/null; then
11259 if test -s conftest.err; then
11260 ac_cpp_err=$ac_c_preproc_warn_flag
11261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11262 else
11263 ac_cpp_err=
11264 fi
11265else
11266 ac_cpp_err=yes
11267fi
11268if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011269 ac_header_preproc=yes
11270else
11271 echo "$as_me: failed program was:" >&5
11272sed 's/^/| /' conftest.$ac_ext >&5
11273
11274 ac_header_preproc=no
11275fi
11276
11277rm -f conftest.err conftest.$ac_ext
11278{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11279echo "${ECHO_T}$ac_header_preproc" >&6; }
11280
11281# So? What about this header?
11282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11283 yes:no: )
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11285echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11287echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11288 ac_header_preproc=yes
11289 ;;
11290 no:yes:* )
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11292echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11294echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11296echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11298echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11300echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11302echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11303 ( cat <<\_ASBOX
11304## ----------------------------------- ##
11305## Report this to llvmbugs@cs.uiuc.edu ##
11306## ----------------------------------- ##
11307_ASBOX
11308 ) | sed "s/^/$as_me: WARNING: /" >&2
11309 ;;
11310esac
11311{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315else
11316 eval "$as_ac_Header=\$ac_header_preproc"
11317fi
11318ac_res=`eval echo '${'$as_ac_Header'}'`
11319 { echo "$as_me:$LINENO: result: $ac_res" >&5
11320echo "${ECHO_T}$ac_res" >&6; }
11321
11322fi
11323if test `eval echo '${'$as_ac_Header'}'` = yes; then
11324 cat >>confdefs.h <<_ACEOF
11325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11326_ACEOF
11327
11328fi
11329
11330done
11331
11332
11333
11334
11335
11336for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11337do
11338as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344fi
11345ac_res=`eval echo '${'$as_ac_Header'}'`
11346 { echo "$as_me:$LINENO: result: $ac_res" >&5
11347echo "${ECHO_T}$ac_res" >&6; }
11348else
11349 # Is the header compilable?
11350{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11351echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11352cat >conftest.$ac_ext <<_ACEOF
11353/* confdefs.h. */
11354_ACEOF
11355cat confdefs.h >>conftest.$ac_ext
11356cat >>conftest.$ac_ext <<_ACEOF
11357/* end confdefs.h. */
11358$ac_includes_default
11359#include <$ac_header>
11360_ACEOF
11361rm -f conftest.$ac_objext
11362if { (ac_try="$ac_compile"
11363case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366esac
11367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_compile") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011374 (exit $ac_status); } &&
11375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11376 { (case "(($ac_try" in
11377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11379esac
11380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_try") 2>&5
11382 ac_status=$?
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); }; } &&
11385 { ac_try='test -s conftest.$ac_objext'
11386 { (case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389esac
11390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_try") 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011395 ac_header_compiler=yes
11396else
11397 echo "$as_me: failed program was:" >&5
11398sed 's/^/| /' conftest.$ac_ext >&5
11399
11400 ac_header_compiler=no
11401fi
11402
11403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11405echo "${ECHO_T}$ac_header_compiler" >&6; }
11406
11407# Is the header present?
11408{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11410cat >conftest.$ac_ext <<_ACEOF
11411/* confdefs.h. */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h. */
11416#include <$ac_header>
11417_ACEOF
11418if { (ac_try="$ac_cpp conftest.$ac_ext"
11419case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422esac
11423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11425 ac_status=$?
11426 grep -v '^ *+' conftest.er1 >conftest.err
11427 rm -f conftest.er1
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011430 (exit $ac_status); } >/dev/null; then
11431 if test -s conftest.err; then
11432 ac_cpp_err=$ac_c_preproc_warn_flag
11433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11434 else
11435 ac_cpp_err=
11436 fi
11437else
11438 ac_cpp_err=yes
11439fi
11440if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011441 ac_header_preproc=yes
11442else
11443 echo "$as_me: failed program was:" >&5
11444sed 's/^/| /' conftest.$ac_ext >&5
11445
11446 ac_header_preproc=no
11447fi
11448
11449rm -f conftest.err conftest.$ac_ext
11450{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11451echo "${ECHO_T}$ac_header_preproc" >&6; }
11452
11453# So? What about this header?
11454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11455 yes:no: )
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11457echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11459echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11460 ac_header_preproc=yes
11461 ;;
11462 no:yes:* )
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11464echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11466echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11468echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11470echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11472echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11474echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11475 ( cat <<\_ASBOX
11476## ----------------------------------- ##
11477## Report this to llvmbugs@cs.uiuc.edu ##
11478## ----------------------------------- ##
11479_ASBOX
11480 ) | sed "s/^/$as_me: WARNING: /" >&2
11481 ;;
11482esac
11483{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487else
11488 eval "$as_ac_Header=\$ac_header_preproc"
11489fi
11490ac_res=`eval echo '${'$as_ac_Header'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492echo "${ECHO_T}$ac_res" >&6; }
11493
11494fi
11495if test `eval echo '${'$as_ac_Header'}'` = yes; then
11496 cat >>confdefs.h <<_ACEOF
11497#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11498_ACEOF
11499
11500fi
11501
11502done
11503
11504
11505
11506for ac_header in string.h strings.h
11507do
11508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514fi
11515ac_res=`eval echo '${'$as_ac_Header'}'`
11516 { echo "$as_me:$LINENO: result: $ac_res" >&5
11517echo "${ECHO_T}$ac_res" >&6; }
11518else
11519 # Is the header compilable?
11520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11522cat >conftest.$ac_ext <<_ACEOF
11523/* confdefs.h. */
11524_ACEOF
11525cat confdefs.h >>conftest.$ac_ext
11526cat >>conftest.$ac_ext <<_ACEOF
11527/* end confdefs.h. */
11528$ac_includes_default
11529#include <$ac_header>
11530_ACEOF
11531rm -f conftest.$ac_objext
11532if { (ac_try="$ac_compile"
11533case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536esac
11537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11538 (eval "$ac_compile") 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011544 (exit $ac_status); } &&
11545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549esac
11550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; } &&
11555 { ac_try='test -s conftest.$ac_objext'
11556 { (case "(($ac_try" in
11557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558 *) ac_try_echo=$ac_try;;
11559esac
11560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561 (eval "$ac_try") 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011565 ac_header_compiler=yes
11566else
11567 echo "$as_me: failed program was:" >&5
11568sed 's/^/| /' conftest.$ac_ext >&5
11569
11570 ac_header_compiler=no
11571fi
11572
11573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575echo "${ECHO_T}$ac_header_compiler" >&6; }
11576
11577# Is the header present?
11578{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11580cat >conftest.$ac_ext <<_ACEOF
11581/* confdefs.h. */
11582_ACEOF
11583cat confdefs.h >>conftest.$ac_ext
11584cat >>conftest.$ac_ext <<_ACEOF
11585/* end confdefs.h. */
11586#include <$ac_header>
11587_ACEOF
11588if { (ac_try="$ac_cpp conftest.$ac_ext"
11589case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11592esac
11593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11595 ac_status=$?
11596 grep -v '^ *+' conftest.er1 >conftest.err
11597 rm -f conftest.er1
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011600 (exit $ac_status); } >/dev/null; then
11601 if test -s conftest.err; then
11602 ac_cpp_err=$ac_c_preproc_warn_flag
11603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11604 else
11605 ac_cpp_err=
11606 fi
11607else
11608 ac_cpp_err=yes
11609fi
11610if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011611 ac_header_preproc=yes
11612else
11613 echo "$as_me: failed program was:" >&5
11614sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 ac_header_preproc=no
11617fi
11618
11619rm -f conftest.err conftest.$ac_ext
11620{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11621echo "${ECHO_T}$ac_header_preproc" >&6; }
11622
11623# So? What about this header?
11624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11625 yes:no: )
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11630 ac_header_preproc=yes
11631 ;;
11632 no:yes:* )
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11640echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11645 ( cat <<\_ASBOX
11646## ----------------------------------- ##
11647## Report this to llvmbugs@cs.uiuc.edu ##
11648## ----------------------------------- ##
11649_ASBOX
11650 ) | sed "s/^/$as_me: WARNING: /" >&2
11651 ;;
11652esac
11653{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11657else
11658 eval "$as_ac_Header=\$ac_header_preproc"
11659fi
11660ac_res=`eval echo '${'$as_ac_Header'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662echo "${ECHO_T}$ac_res" >&6; }
11663
11664fi
11665if test `eval echo '${'$as_ac_Header'}'` = yes; then
11666 cat >>confdefs.h <<_ACEOF
11667#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11668_ACEOF
11669 break
11670fi
11671
11672done
11673
11674
11675
11676
11677for ac_func in strchr index
11678do
11679as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11680{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11682if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11684else
11685 cat >conftest.$ac_ext <<_ACEOF
11686/* confdefs.h. */
11687_ACEOF
11688cat confdefs.h >>conftest.$ac_ext
11689cat >>conftest.$ac_ext <<_ACEOF
11690/* end confdefs.h. */
11691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11693#define $ac_func innocuous_$ac_func
11694
11695/* System header to define __stub macros and hopefully few prototypes,
11696 which can conflict with char $ac_func (); below.
11697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11698 <limits.h> exists even on freestanding compilers. */
11699
11700#ifdef __STDC__
11701# include <limits.h>
11702#else
11703# include <assert.h>
11704#endif
11705
11706#undef $ac_func
11707
11708/* Override any GCC internal prototype to avoid an error.
11709 Use char because int might match the return type of a GCC
11710 builtin and then its argument prototype would still apply. */
11711#ifdef __cplusplus
11712extern "C"
11713#endif
11714char $ac_func ();
11715/* The GNU C library defines this for functions which it implements
11716 to always fail with ENOSYS. Some functions are actually named
11717 something starting with __ and the normal name is an alias. */
11718#if defined __stub_$ac_func || defined __stub___$ac_func
11719choke me
11720#endif
11721
11722int
11723main ()
11724{
11725return $ac_func ();
11726 ;
11727 return 0;
11728}
11729_ACEOF
11730rm -f conftest.$ac_objext conftest$ac_exeext
11731if { (ac_try="$ac_link"
11732case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11735esac
11736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_link") 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748esac
11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try='test -s conftest$ac_exeext'
11755 { (case "(($ac_try" in
11756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11757 *) ac_try_echo=$ac_try;;
11758esac
11759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11760 (eval "$ac_try") 2>&5
11761 ac_status=$?
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011764 eval "$as_ac_var=yes"
11765else
11766 echo "$as_me: failed program was:" >&5
11767sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 eval "$as_ac_var=no"
11770fi
11771
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011772rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011773 conftest$ac_exeext conftest.$ac_ext
11774fi
11775ac_res=`eval echo '${'$as_ac_var'}'`
11776 { echo "$as_me:$LINENO: result: $ac_res" >&5
11777echo "${ECHO_T}$ac_res" >&6; }
11778if test `eval echo '${'$as_ac_var'}'` = yes; then
11779 cat >>confdefs.h <<_ACEOF
11780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11781_ACEOF
11782 break
11783fi
11784done
11785
11786
11787
11788for ac_func in strrchr rindex
11789do
11790as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11791{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11792echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11793if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h. */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h. */
11802/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11804#define $ac_func innocuous_$ac_func
11805
11806/* System header to define __stub macros and hopefully few prototypes,
11807 which can conflict with char $ac_func (); below.
11808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809 <limits.h> exists even on freestanding compilers. */
11810
11811#ifdef __STDC__
11812# include <limits.h>
11813#else
11814# include <assert.h>
11815#endif
11816
11817#undef $ac_func
11818
11819/* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11822#ifdef __cplusplus
11823extern "C"
11824#endif
11825char $ac_func ();
11826/* The GNU C library defines this for functions which it implements
11827 to always fail with ENOSYS. Some functions are actually named
11828 something starting with __ and the normal name is an alias. */
11829#if defined __stub_$ac_func || defined __stub___$ac_func
11830choke me
11831#endif
11832
11833int
11834main ()
11835{
11836return $ac_func ();
11837 ;
11838 return 0;
11839}
11840_ACEOF
11841rm -f conftest.$ac_objext conftest$ac_exeext
11842if { (ac_try="$ac_link"
11843case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846esac
11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_link") 2>conftest.er1
11849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011854 (exit $ac_status); } &&
11855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11856 { (case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859esac
11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_try") 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest$ac_exeext'
11866 { (case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869esac
11870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_try") 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011875 eval "$as_ac_var=yes"
11876else
11877 echo "$as_me: failed program was:" >&5
11878sed 's/^/| /' conftest.$ac_ext >&5
11879
11880 eval "$as_ac_var=no"
11881fi
11882
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011883rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011884 conftest$ac_exeext conftest.$ac_ext
11885fi
11886ac_res=`eval echo '${'$as_ac_var'}'`
11887 { echo "$as_me:$LINENO: result: $ac_res" >&5
11888echo "${ECHO_T}$ac_res" >&6; }
11889if test `eval echo '${'$as_ac_var'}'` = yes; then
11890 cat >>confdefs.h <<_ACEOF
11891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11892_ACEOF
11893 break
11894fi
11895done
11896
11897
11898
11899for ac_func in memcpy bcopy
11900do
11901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11902{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11904if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11906else
11907 cat >conftest.$ac_ext <<_ACEOF
11908/* confdefs.h. */
11909_ACEOF
11910cat confdefs.h >>conftest.$ac_ext
11911cat >>conftest.$ac_ext <<_ACEOF
11912/* end confdefs.h. */
11913/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11915#define $ac_func innocuous_$ac_func
11916
11917/* System header to define __stub macros and hopefully few prototypes,
11918 which can conflict with char $ac_func (); below.
11919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11920 <limits.h> exists even on freestanding compilers. */
11921
11922#ifdef __STDC__
11923# include <limits.h>
11924#else
11925# include <assert.h>
11926#endif
11927
11928#undef $ac_func
11929
11930/* Override any GCC internal prototype to avoid an error.
11931 Use char because int might match the return type of a GCC
11932 builtin and then its argument prototype would still apply. */
11933#ifdef __cplusplus
11934extern "C"
11935#endif
11936char $ac_func ();
11937/* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
11940#if defined __stub_$ac_func || defined __stub___$ac_func
11941choke me
11942#endif
11943
11944int
11945main ()
11946{
11947return $ac_func ();
11948 ;
11949 return 0;
11950}
11951_ACEOF
11952rm -f conftest.$ac_objext conftest$ac_exeext
11953if { (ac_try="$ac_link"
11954case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957esac
11958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_link") 2>conftest.er1
11960 ac_status=$?
11961 grep -v '^ *+' conftest.er1 >conftest.err
11962 rm -f conftest.er1
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011965 (exit $ac_status); } &&
11966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970esac
11971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest$ac_exeext'
11977 { (case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11980esac
11981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_try") 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011986 eval "$as_ac_var=yes"
11987else
11988 echo "$as_me: failed program was:" >&5
11989sed 's/^/| /' conftest.$ac_ext >&5
11990
11991 eval "$as_ac_var=no"
11992fi
11993
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000011994rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011995 conftest$ac_exeext conftest.$ac_ext
11996fi
11997ac_res=`eval echo '${'$as_ac_var'}'`
11998 { echo "$as_me:$LINENO: result: $ac_res" >&5
11999echo "${ECHO_T}$ac_res" >&6; }
12000if test `eval echo '${'$as_ac_var'}'` = yes; then
12001 cat >>confdefs.h <<_ACEOF
12002#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12003_ACEOF
12004 break
12005fi
12006done
12007
12008
12009
12010for ac_func in memmove strcmp
12011do
12012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017else
12018 cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h. */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h. */
12024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12026#define $ac_func innocuous_$ac_func
12027
12028/* System header to define __stub macros and hopefully few prototypes,
12029 which can conflict with char $ac_func (); below.
12030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12031 <limits.h> exists even on freestanding compilers. */
12032
12033#ifdef __STDC__
12034# include <limits.h>
12035#else
12036# include <assert.h>
12037#endif
12038
12039#undef $ac_func
12040
12041/* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12044#ifdef __cplusplus
12045extern "C"
12046#endif
12047char $ac_func ();
12048/* The GNU C library defines this for functions which it implements
12049 to always fail with ENOSYS. Some functions are actually named
12050 something starting with __ and the normal name is an alias. */
12051#if defined __stub_$ac_func || defined __stub___$ac_func
12052choke me
12053#endif
12054
12055int
12056main ()
12057{
12058return $ac_func ();
12059 ;
12060 return 0;
12061}
12062_ACEOF
12063rm -f conftest.$ac_objext conftest$ac_exeext
12064if { (ac_try="$ac_link"
12065case "(($ac_try" in
12066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12068esac
12069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_link") 2>conftest.er1
12071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012076 (exit $ac_status); } &&
12077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081esac
12082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091esac
12092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012097 eval "$as_ac_var=yes"
12098else
12099 echo "$as_me: failed program was:" >&5
12100sed 's/^/| /' conftest.$ac_ext >&5
12101
12102 eval "$as_ac_var=no"
12103fi
12104
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012105rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012106 conftest$ac_exeext conftest.$ac_ext
12107fi
12108ac_res=`eval echo '${'$as_ac_var'}'`
12109 { echo "$as_me:$LINENO: result: $ac_res" >&5
12110echo "${ECHO_T}$ac_res" >&6; }
12111if test `eval echo '${'$as_ac_var'}'` = yes; then
12112 cat >>confdefs.h <<_ACEOF
12113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12114_ACEOF
12115
12116fi
12117done
12118
12119
12120
12121
12122for ac_func in closedir opendir readdir
12123do
12124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12129else
12130 cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h. */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h. */
12136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12138#define $ac_func innocuous_$ac_func
12139
12140/* System header to define __stub macros and hopefully few prototypes,
12141 which can conflict with char $ac_func (); below.
12142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12143 <limits.h> exists even on freestanding compilers. */
12144
12145#ifdef __STDC__
12146# include <limits.h>
12147#else
12148# include <assert.h>
12149#endif
12150
12151#undef $ac_func
12152
12153/* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
12156#ifdef __cplusplus
12157extern "C"
12158#endif
12159char $ac_func ();
12160/* The GNU C library defines this for functions which it implements
12161 to always fail with ENOSYS. Some functions are actually named
12162 something starting with __ and the normal name is an alias. */
12163#if defined __stub_$ac_func || defined __stub___$ac_func
12164choke me
12165#endif
12166
12167int
12168main ()
12169{
12170return $ac_func ();
12171 ;
12172 return 0;
12173}
12174_ACEOF
12175rm -f conftest.$ac_objext conftest$ac_exeext
12176if { (ac_try="$ac_link"
12177case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180esac
12181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_link") 2>conftest.er1
12183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012188 (exit $ac_status); } &&
12189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12190 { (case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193esac
12194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_try") 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest$ac_exeext'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203esac
12204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012209 eval "$as_ac_var=yes"
12210else
12211 echo "$as_me: failed program was:" >&5
12212sed 's/^/| /' conftest.$ac_ext >&5
12213
12214 eval "$as_ac_var=no"
12215fi
12216
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012217rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012218 conftest$ac_exeext conftest.$ac_ext
12219fi
12220ac_res=`eval echo '${'$as_ac_var'}'`
12221 { echo "$as_me:$LINENO: result: $ac_res" >&5
12222echo "${ECHO_T}$ac_res" >&6; }
12223if test `eval echo '${'$as_ac_var'}'` = yes; then
12224 cat >>confdefs.h <<_ACEOF
12225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12226_ACEOF
12227
12228fi
12229done
12230
12231
12232# Check whether --enable-shared was given.
12233if test "${enable_shared+set}" = set; then
12234 enableval=$enable_shared; p=${PACKAGE-default}
12235 case $enableval in
12236 yes) enable_shared=yes ;;
12237 no) enable_shared=no ;;
12238 *)
12239 enable_shared=no
12240 # Look at the argument we got. We use all the common list separators.
12241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12242 for pkg in $enableval; do
12243 IFS="$lt_save_ifs"
12244 if test "X$pkg" = "X$p"; then
12245 enable_shared=yes
12246 fi
12247 done
12248 IFS="$lt_save_ifs"
12249 ;;
12250 esac
12251else
12252 enable_shared=yes
12253fi
12254
12255
12256# Check whether --enable-static was given.
12257if test "${enable_static+set}" = set; then
12258 enableval=$enable_static; p=${PACKAGE-default}
12259 case $enableval in
12260 yes) enable_static=yes ;;
12261 no) enable_static=no ;;
12262 *)
12263 enable_static=no
12264 # Look at the argument we got. We use all the common list separators.
12265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12266 for pkg in $enableval; do
12267 IFS="$lt_save_ifs"
12268 if test "X$pkg" = "X$p"; then
12269 enable_static=yes
12270 fi
12271 done
12272 IFS="$lt_save_ifs"
12273 ;;
12274 esac
12275else
12276 enable_static=yes
12277fi
12278
12279
12280# Check whether --enable-fast-install was given.
12281if test "${enable_fast_install+set}" = set; then
12282 enableval=$enable_fast_install; p=${PACKAGE-default}
12283 case $enableval in
12284 yes) enable_fast_install=yes ;;
12285 no) enable_fast_install=no ;;
12286 *)
12287 enable_fast_install=no
12288 # Look at the argument we got. We use all the common list separators.
12289 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12290 for pkg in $enableval; do
12291 IFS="$lt_save_ifs"
12292 if test "X$pkg" = "X$p"; then
12293 enable_fast_install=yes
12294 fi
12295 done
12296 IFS="$lt_save_ifs"
12297 ;;
12298 esac
12299else
12300 enable_fast_install=yes
12301fi
12302
12303
12304{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12305echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12306if test "${lt_cv_path_SED+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 # Loop through the user's path and test for sed and gsed.
12310# Then use that list of sed's as ones to test for truncation.
12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312for as_dir in $PATH
12313do
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
12316 for lt_ac_prog in sed gsed; do
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12319 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12320 fi
12321 done
12322 done
12323done
12324lt_ac_max=0
12325lt_ac_count=0
12326# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12327# along with /bin/sed that truncates output.
12328for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12329 test ! -f $lt_ac_sed && continue
12330 cat /dev/null > conftest.in
12331 lt_ac_count=0
12332 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12333 # Check for GNU sed and select it if it is found.
12334 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12335 lt_cv_path_SED=$lt_ac_sed
12336 break
12337 fi
12338 while true; do
12339 cat conftest.in conftest.in >conftest.tmp
12340 mv conftest.tmp conftest.in
12341 cp conftest.in conftest.nl
12342 echo >>conftest.nl
12343 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12344 cmp -s conftest.out conftest.nl || break
12345 # 10000 chars as input seems more than enough
12346 test $lt_ac_count -gt 10 && break
12347 lt_ac_count=`expr $lt_ac_count + 1`
12348 if test $lt_ac_count -gt $lt_ac_max; then
12349 lt_ac_max=$lt_ac_count
12350 lt_cv_path_SED=$lt_ac_sed
12351 fi
12352 done
12353done
12354
12355fi
12356
12357SED=$lt_cv_path_SED
12358{ echo "$as_me:$LINENO: result: $SED" >&5
12359echo "${ECHO_T}$SED" >&6; }
12360
12361
12362# Check whether --with-gnu-ld was given.
12363if test "${with_gnu_ld+set}" = set; then
12364 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12365else
12366 with_gnu_ld=no
12367fi
12368
12369ac_prog=ld
12370if test "$GCC" = yes; then
12371 # Check if gcc -print-prog-name=ld gives a path.
12372 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12373echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12374 case $host in
12375 *-*-mingw*)
12376 # gcc leaves a trailing carriage return which upsets mingw
12377 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12378 *)
12379 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12380 esac
12381 case $ac_prog in
12382 # Accept absolute paths.
12383 [\\/]* | ?:[\\/]*)
12384 re_direlt='/[^/][^/]*/\.\./'
12385 # Canonicalize the pathname of ld
12386 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12387 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12388 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12389 done
12390 test -z "$LD" && LD="$ac_prog"
12391 ;;
12392 "")
12393 # If it fails, then pretend we aren't using GCC.
12394 ac_prog=ld
12395 ;;
12396 *)
12397 # If it is relative, then search for the first ld in PATH.
12398 with_gnu_ld=unknown
12399 ;;
12400 esac
12401elif test "$with_gnu_ld" = yes; then
12402 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12403echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12404else
12405 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12406echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12407fi
12408if test "${lt_cv_path_LD+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12410else
12411 if test -z "$LD"; then
12412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12413 for ac_dir in $PATH; do
12414 IFS="$lt_save_ifs"
12415 test -z "$ac_dir" && ac_dir=.
12416 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12417 lt_cv_path_LD="$ac_dir/$ac_prog"
12418 # Check to see if the program is GNU ld. I'd rather use --version,
12419 # but apparently some variants of GNU ld only accept -v.
12420 # Break only if it was the GNU/non-GNU ld that we prefer.
12421 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12422 *GNU* | *'with BFD'*)
12423 test "$with_gnu_ld" != no && break
12424 ;;
12425 *)
12426 test "$with_gnu_ld" != yes && break
12427 ;;
12428 esac
12429 fi
12430 done
12431 IFS="$lt_save_ifs"
12432else
12433 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12434fi
12435fi
12436
12437LD="$lt_cv_path_LD"
12438if test -n "$LD"; then
12439 { echo "$as_me:$LINENO: result: $LD" >&5
12440echo "${ECHO_T}$LD" >&6; }
12441else
12442 { echo "$as_me:$LINENO: result: no" >&5
12443echo "${ECHO_T}no" >&6; }
12444fi
12445test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12446echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12447 { (exit 1); exit 1; }; }
12448{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12449echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12450if test "${lt_cv_prog_gnu_ld+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12452else
12453 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12454case `$LD -v 2>&1 </dev/null` in
12455*GNU* | *'with BFD'*)
12456 lt_cv_prog_gnu_ld=yes
12457 ;;
12458*)
12459 lt_cv_prog_gnu_ld=no
12460 ;;
12461esac
12462fi
12463{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12464echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12465with_gnu_ld=$lt_cv_prog_gnu_ld
12466
12467
12468{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12469echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12470if test "${lt_cv_ld_reload_flag+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473 lt_cv_ld_reload_flag='-r'
12474fi
12475{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12476echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12477reload_flag=$lt_cv_ld_reload_flag
12478case $reload_flag in
12479"" | " "*) ;;
12480*) reload_flag=" $reload_flag" ;;
12481esac
12482reload_cmds='$LD$reload_flag -o $output$reload_objs'
12483case $host_os in
12484 darwin*)
12485 if test "$GCC" = yes; then
12486 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12487 else
12488 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12489 fi
12490 ;;
12491esac
12492
12493{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12494echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12495if test "${lt_cv_deplibs_check_method+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497else
12498 lt_cv_file_magic_cmd='$MAGIC_CMD'
12499lt_cv_file_magic_test_file=
12500lt_cv_deplibs_check_method='unknown'
12501# Need to set the preceding variable on all platforms that support
12502# interlibrary dependencies.
12503# 'none' -- dependencies not supported.
12504# `unknown' -- same as none, but documents that we really don't know.
12505# 'pass_all' -- all dependencies passed with no checks.
12506# 'test_compile' -- check by making test program.
12507# 'file_magic [[regex]]' -- check by looking for files in library path
12508# which responds to the $file_magic_cmd with a given extended regex.
12509# If you have `file' or equivalent on your system and you're not sure
12510# whether `pass_all' will *always* work, you probably want this one.
12511
12512case $host_os in
12513aix4* | aix5*)
12514 lt_cv_deplibs_check_method=pass_all
12515 ;;
12516
12517beos*)
12518 lt_cv_deplibs_check_method=pass_all
12519 ;;
12520
12521bsdi[45]*)
12522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12523 lt_cv_file_magic_cmd='/usr/bin/file -L'
12524 lt_cv_file_magic_test_file=/shlib/libc.so
12525 ;;
12526
12527cygwin*)
12528 # func_win32_libid is a shell function defined in ltmain.sh
12529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12530 lt_cv_file_magic_cmd='func_win32_libid'
12531 ;;
12532
12533mingw* | pw32*)
12534 # Base MSYS/MinGW do not provide the 'file' command needed by
12535 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12536 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12537 lt_cv_file_magic_cmd='$OBJDUMP -f'
12538 ;;
12539
12540darwin* | rhapsody*)
12541 lt_cv_deplibs_check_method=pass_all
12542 ;;
12543
12544freebsd* | kfreebsd*-gnu | dragonfly*)
12545 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12546 case $host_cpu in
12547 i*86 )
12548 # Not sure whether the presence of OpenBSD here was a mistake.
12549 # Let's accept both of them until this is cleared up.
12550 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12551 lt_cv_file_magic_cmd=/usr/bin/file
12552 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12553 ;;
12554 esac
12555 else
12556 lt_cv_deplibs_check_method=pass_all
12557 fi
12558 ;;
12559
12560gnu*)
12561 lt_cv_deplibs_check_method=pass_all
12562 ;;
12563
12564hpux10.20* | hpux11*)
12565 lt_cv_file_magic_cmd=/usr/bin/file
12566 case $host_cpu in
12567 ia64*)
12568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12569 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12570 ;;
12571 hppa*64*)
12572 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]'
12573 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12574 ;;
12575 *)
12576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12577 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12578 ;;
12579 esac
12580 ;;
12581
12582interix3*)
12583 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12585 ;;
12586
12587irix5* | irix6* | nonstopux*)
12588 case $LD in
12589 *-32|*"-32 ") libmagic=32-bit;;
12590 *-n32|*"-n32 ") libmagic=N32;;
12591 *-64|*"-64 ") libmagic=64-bit;;
12592 *) libmagic=never-match;;
12593 esac
12594 lt_cv_deplibs_check_method=pass_all
12595 ;;
12596
12597# This must be Linux ELF.
12598linux*)
12599 lt_cv_deplibs_check_method=pass_all
12600 ;;
12601
12602netbsd*)
12603 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12605 else
12606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12607 fi
12608 ;;
12609
12610newos6*)
12611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12612 lt_cv_file_magic_cmd=/usr/bin/file
12613 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12614 ;;
12615
12616nto-qnx*)
12617 lt_cv_deplibs_check_method=unknown
12618 ;;
12619
12620openbsd*)
12621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12623 else
12624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12625 fi
12626 ;;
12627
12628osf3* | osf4* | osf5*)
12629 lt_cv_deplibs_check_method=pass_all
12630 ;;
12631
12632solaris*)
12633 lt_cv_deplibs_check_method=pass_all
12634 ;;
12635
12636sysv4 | sysv4.3*)
12637 case $host_vendor in
12638 motorola)
12639 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]'
12640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12641 ;;
12642 ncr)
12643 lt_cv_deplibs_check_method=pass_all
12644 ;;
12645 sequent)
12646 lt_cv_file_magic_cmd='/bin/file'
12647 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12648 ;;
12649 sni)
12650 lt_cv_file_magic_cmd='/bin/file'
12651 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12652 lt_cv_file_magic_test_file=/lib/libc.so
12653 ;;
12654 siemens)
12655 lt_cv_deplibs_check_method=pass_all
12656 ;;
12657 pc)
12658 lt_cv_deplibs_check_method=pass_all
12659 ;;
12660 esac
12661 ;;
12662
12663sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12664 lt_cv_deplibs_check_method=pass_all
12665 ;;
12666esac
12667
12668fi
12669{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12670echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12671file_magic_cmd=$lt_cv_file_magic_cmd
12672deplibs_check_method=$lt_cv_deplibs_check_method
12673test -z "$deplibs_check_method" && deplibs_check_method=unknown
12674
12675
12676
12677# If no C compiler was specified, use CC.
12678LTCC=${LTCC-"$CC"}
12679
12680# If no C compiler flags were specified, use CFLAGS.
12681LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12682
12683# Allow CC to be a program name with arguments.
12684compiler=$CC
12685
12686# Check whether --enable-libtool-lock was given.
12687if test "${enable_libtool_lock+set}" = set; then
12688 enableval=$enable_libtool_lock;
12689fi
12690
12691test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12692
12693# Some flags need to be propagated to the compiler or linker for good
12694# libtool support.
12695case $host in
12696ia64-*-hpux*)
12697 # Find out which ABI we are using.
12698 echo 'int i;' > conftest.$ac_ext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12700 (eval $ac_compile) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; then
12704 case `/usr/bin/file conftest.$ac_objext` in
12705 *ELF-32*)
12706 HPUX_IA64_MODE="32"
12707 ;;
12708 *ELF-64*)
12709 HPUX_IA64_MODE="64"
12710 ;;
12711 esac
12712 fi
12713 rm -rf conftest*
12714 ;;
12715*-*-irix6*)
12716 # Find out which ABI we are using.
Owen Andersonff0f88e2009-05-18 23:58:51 +000012717 echo '#line 12717 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12719 (eval $ac_compile) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; then
12723 if test "$lt_cv_prog_gnu_ld" = yes; then
12724 case `/usr/bin/file conftest.$ac_objext` in
12725 *32-bit*)
12726 LD="${LD-ld} -melf32bsmip"
12727 ;;
12728 *N32*)
12729 LD="${LD-ld} -melf32bmipn32"
12730 ;;
12731 *64-bit*)
12732 LD="${LD-ld} -melf64bmip"
12733 ;;
12734 esac
12735 else
12736 case `/usr/bin/file conftest.$ac_objext` in
12737 *32-bit*)
12738 LD="${LD-ld} -32"
12739 ;;
12740 *N32*)
12741 LD="${LD-ld} -n32"
12742 ;;
12743 *64-bit*)
12744 LD="${LD-ld} -64"
12745 ;;
12746 esac
12747 fi
12748 fi
12749 rm -rf conftest*
12750 ;;
12751
12752x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12753 # Find out which ABI we are using.
12754 echo 'int i;' > conftest.$ac_ext
12755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756 (eval $ac_compile) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; then
12760 case `/usr/bin/file conftest.o` in
12761 *32-bit*)
12762 case $host in
12763 x86_64-*linux*)
12764 LD="${LD-ld} -m elf_i386"
12765 ;;
12766 ppc64-*linux*|powerpc64-*linux*)
12767 LD="${LD-ld} -m elf32ppclinux"
12768 ;;
12769 s390x-*linux*)
12770 LD="${LD-ld} -m elf_s390"
12771 ;;
12772 sparc64-*linux*)
12773 LD="${LD-ld} -m elf32_sparc"
12774 ;;
12775 esac
12776 ;;
12777 *64-bit*)
12778 case $host in
12779 x86_64-*linux*)
12780 LD="${LD-ld} -m elf_x86_64"
12781 ;;
12782 ppc*-*linux*|powerpc*-*linux*)
12783 LD="${LD-ld} -m elf64ppc"
12784 ;;
12785 s390*-*linux*)
12786 LD="${LD-ld} -m elf64_s390"
12787 ;;
12788 sparc*-*linux*)
12789 LD="${LD-ld} -m elf64_sparc"
12790 ;;
12791 esac
12792 ;;
12793 esac
12794 fi
12795 rm -rf conftest*
12796 ;;
12797
12798*-*-sco3.2v5*)
12799 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12800 SAVE_CFLAGS="$CFLAGS"
12801 CFLAGS="$CFLAGS -belf"
12802 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12803echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12804if test "${lt_cv_cc_needs_belf+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12806else
12807 ac_ext=c
12808ac_cpp='$CPP $CPPFLAGS'
12809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12811ac_compiler_gnu=$ac_cv_c_compiler_gnu
12812
12813 cat >conftest.$ac_ext <<_ACEOF
12814/* confdefs.h. */
12815_ACEOF
12816cat confdefs.h >>conftest.$ac_ext
12817cat >>conftest.$ac_ext <<_ACEOF
12818/* end confdefs.h. */
12819
12820int
12821main ()
12822{
12823
12824 ;
12825 return 0;
12826}
12827_ACEOF
12828rm -f conftest.$ac_objext conftest$ac_exeext
12829if { (ac_try="$ac_link"
12830case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12833esac
12834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_link") 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012841 (exit $ac_status); } &&
12842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12843 { (case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846esac
12847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_try") 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest$ac_exeext'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12856esac
12857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012862 lt_cv_cc_needs_belf=yes
12863else
12864 echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
12866
12867 lt_cv_cc_needs_belf=no
12868fi
12869
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012870rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012871 conftest$ac_exeext conftest.$ac_ext
12872 ac_ext=c
12873ac_cpp='$CPP $CPPFLAGS'
12874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876ac_compiler_gnu=$ac_cv_c_compiler_gnu
12877
12878fi
12879{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12880echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12881 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12883 CFLAGS="$SAVE_CFLAGS"
12884 fi
12885 ;;
12886sparc*-*solaris*)
12887 # Find out which ABI we are using.
12888 echo 'int i;' > conftest.$ac_ext
12889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12890 (eval $ac_compile) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; then
12894 case `/usr/bin/file conftest.o` in
12895 *64-bit*)
12896 case $lt_cv_prog_gnu_ld in
12897 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12898 *) LD="${LD-ld} -64" ;;
12899 esac
12900 ;;
12901 esac
12902 fi
12903 rm -rf conftest*
12904 ;;
12905
12906
12907esac
12908
12909need_locks="$enable_libtool_lock"
12910
12911
12912
12913
12914if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12915 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12916 (test "X$CXX" != "Xg++"))) ; then
12917 ac_ext=cpp
12918ac_cpp='$CXXCPP $CPPFLAGS'
12919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12922{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12923echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12924if test -z "$CXXCPP"; then
12925 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12927else
12928 # Double quotes because CXXCPP needs to be expanded
12929 for CXXCPP in "$CXX -E" "/lib/cpp"
12930 do
12931 ac_preproc_ok=false
12932for ac_cxx_preproc_warn_flag in '' yes
12933do
12934 # Use a header file that comes with gcc, so configuring glibc
12935 # with a fresh cross-compiler works.
12936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12937 # <limits.h> exists even on freestanding compilers.
12938 # On the NeXT, cc -E runs the code through the compiler's parser,
12939 # not just through cpp. "Syntax error" is here to catch this case.
12940 cat >conftest.$ac_ext <<_ACEOF
12941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h. */
12946#ifdef __STDC__
12947# include <limits.h>
12948#else
12949# include <assert.h>
12950#endif
12951 Syntax error
12952_ACEOF
12953if { (ac_try="$ac_cpp conftest.$ac_ext"
12954case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957esac
12958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12960 ac_status=$?
12961 grep -v '^ *+' conftest.er1 >conftest.err
12962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000012965 (exit $ac_status); } >/dev/null; then
12966 if test -s conftest.err; then
12967 ac_cpp_err=$ac_cxx_preproc_warn_flag
12968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12969 else
12970 ac_cpp_err=
12971 fi
12972else
12973 ac_cpp_err=yes
12974fi
12975if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012976 :
12977else
12978 echo "$as_me: failed program was:" >&5
12979sed 's/^/| /' conftest.$ac_ext >&5
12980
12981 # Broken: fails on valid input.
12982continue
12983fi
12984
12985rm -f conftest.err conftest.$ac_ext
12986
12987 # OK, works on sane cases. Now check whether nonexistent headers
12988 # can be detected and how.
12989 cat >conftest.$ac_ext <<_ACEOF
12990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
12995#include <ac_nonexistent.h>
12996_ACEOF
12997if { (ac_try="$ac_cpp conftest.$ac_ext"
12998case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13004 ac_status=$?
13005 grep -v '^ *+' conftest.er1 >conftest.err
13006 rm -f conftest.er1
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013009 (exit $ac_status); } >/dev/null; then
13010 if test -s conftest.err; then
13011 ac_cpp_err=$ac_cxx_preproc_warn_flag
13012 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13013 else
13014 ac_cpp_err=
13015 fi
13016else
13017 ac_cpp_err=yes
13018fi
13019if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013020 # Broken: success on invalid input.
13021continue
13022else
13023 echo "$as_me: failed program was:" >&5
13024sed 's/^/| /' conftest.$ac_ext >&5
13025
13026 # Passes both tests.
13027ac_preproc_ok=:
13028break
13029fi
13030
13031rm -f conftest.err conftest.$ac_ext
13032
13033done
13034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13035rm -f conftest.err conftest.$ac_ext
13036if $ac_preproc_ok; then
13037 break
13038fi
13039
13040 done
13041 ac_cv_prog_CXXCPP=$CXXCPP
13042
13043fi
13044 CXXCPP=$ac_cv_prog_CXXCPP
13045else
13046 ac_cv_prog_CXXCPP=$CXXCPP
13047fi
13048{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13049echo "${ECHO_T}$CXXCPP" >&6; }
13050ac_preproc_ok=false
13051for ac_cxx_preproc_warn_flag in '' yes
13052do
13053 # Use a header file that comes with gcc, so configuring glibc
13054 # with a fresh cross-compiler works.
13055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13056 # <limits.h> exists even on freestanding compilers.
13057 # On the NeXT, cc -E runs the code through the compiler's parser,
13058 # not just through cpp. "Syntax error" is here to catch this case.
13059 cat >conftest.$ac_ext <<_ACEOF
13060/* confdefs.h. */
13061_ACEOF
13062cat confdefs.h >>conftest.$ac_ext
13063cat >>conftest.$ac_ext <<_ACEOF
13064/* end confdefs.h. */
13065#ifdef __STDC__
13066# include <limits.h>
13067#else
13068# include <assert.h>
13069#endif
13070 Syntax error
13071_ACEOF
13072if { (ac_try="$ac_cpp conftest.$ac_ext"
13073case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13076esac
13077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13079 ac_status=$?
13080 grep -v '^ *+' conftest.er1 >conftest.err
13081 rm -f conftest.er1
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013084 (exit $ac_status); } >/dev/null; then
13085 if test -s conftest.err; then
13086 ac_cpp_err=$ac_cxx_preproc_warn_flag
13087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13088 else
13089 ac_cpp_err=
13090 fi
13091else
13092 ac_cpp_err=yes
13093fi
13094if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013095 :
13096else
13097 echo "$as_me: failed program was:" >&5
13098sed 's/^/| /' conftest.$ac_ext >&5
13099
13100 # Broken: fails on valid input.
13101continue
13102fi
13103
13104rm -f conftest.err conftest.$ac_ext
13105
13106 # OK, works on sane cases. Now check whether nonexistent headers
13107 # can be detected and how.
13108 cat >conftest.$ac_ext <<_ACEOF
13109/* confdefs.h. */
13110_ACEOF
13111cat confdefs.h >>conftest.$ac_ext
13112cat >>conftest.$ac_ext <<_ACEOF
13113/* end confdefs.h. */
13114#include <ac_nonexistent.h>
13115_ACEOF
13116if { (ac_try="$ac_cpp conftest.$ac_ext"
13117case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13120esac
13121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13123 ac_status=$?
13124 grep -v '^ *+' conftest.er1 >conftest.err
13125 rm -f conftest.er1
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013128 (exit $ac_status); } >/dev/null; then
13129 if test -s conftest.err; then
13130 ac_cpp_err=$ac_cxx_preproc_warn_flag
13131 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13132 else
13133 ac_cpp_err=
13134 fi
13135else
13136 ac_cpp_err=yes
13137fi
13138if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013139 # Broken: success on invalid input.
13140continue
13141else
13142 echo "$as_me: failed program was:" >&5
13143sed 's/^/| /' conftest.$ac_ext >&5
13144
13145 # Passes both tests.
13146ac_preproc_ok=:
13147break
13148fi
13149
13150rm -f conftest.err conftest.$ac_ext
13151
13152done
13153# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13154rm -f conftest.err conftest.$ac_ext
13155if $ac_preproc_ok; then
13156 :
13157else
13158 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13159See \`config.log' for more details." >&5
13160echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13161See \`config.log' for more details." >&2;}
13162 { (exit 1); exit 1; }; }
13163fi
13164
13165ac_ext=cpp
13166ac_cpp='$CXXCPP $CPPFLAGS'
13167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13170
13171fi
13172
13173
13174ac_ext=f
13175ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13176ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13178if test -n "$ac_tool_prefix"; then
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013179 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 +000013180 do
13181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13185if test "${ac_cv_prog_F77+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187else
13188 if test -n "$F77"; then
13189 ac_cv_prog_F77="$F77" # Let the user override the test.
13190else
13191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192for as_dir in $PATH
13193do
13194 IFS=$as_save_IFS
13195 test -z "$as_dir" && as_dir=.
13196 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013197 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 +000013198 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13200 break 2
13201 fi
13202done
13203done
13204IFS=$as_save_IFS
13205
13206fi
13207fi
13208F77=$ac_cv_prog_F77
13209if test -n "$F77"; then
13210 { echo "$as_me:$LINENO: result: $F77" >&5
13211echo "${ECHO_T}$F77" >&6; }
13212else
13213 { echo "$as_me:$LINENO: result: no" >&5
13214echo "${ECHO_T}no" >&6; }
13215fi
13216
13217
13218 test -n "$F77" && break
13219 done
13220fi
13221if test -z "$F77"; then
13222 ac_ct_F77=$F77
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013223 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 +000013224do
13225 # Extract the first word of "$ac_prog", so it can be a program name with args.
13226set dummy $ac_prog; ac_word=$2
13227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13229if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13231else
13232 if test -n "$ac_ct_F77"; then
13233 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13234else
13235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236for as_dir in $PATH
13237do
13238 IFS=$as_save_IFS
13239 test -z "$as_dir" && as_dir=.
13240 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013241 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 +000013242 ac_cv_prog_ac_ct_F77="$ac_prog"
13243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13244 break 2
13245 fi
13246done
13247done
13248IFS=$as_save_IFS
13249
13250fi
13251fi
13252ac_ct_F77=$ac_cv_prog_ac_ct_F77
13253if test -n "$ac_ct_F77"; then
13254 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13255echo "${ECHO_T}$ac_ct_F77" >&6; }
13256else
13257 { echo "$as_me:$LINENO: result: no" >&5
13258echo "${ECHO_T}no" >&6; }
13259fi
13260
13261
13262 test -n "$ac_ct_F77" && break
13263done
13264
13265 if test "x$ac_ct_F77" = x; then
13266 F77=""
13267 else
13268 case $cross_compiling:$ac_tool_warned in
13269yes:)
13270{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13271whose name does not start with the host triplet. If you think this
13272configuration is useful to you, please write to autoconf@gnu.org." >&5
13273echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13274whose name does not start with the host triplet. If you think this
13275configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13276ac_tool_warned=yes ;;
13277esac
13278 F77=$ac_ct_F77
13279 fi
13280fi
13281
13282
13283# Provide some information about the compiler.
13284echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13285ac_compiler=`set X $ac_compile; echo $2`
13286{ (ac_try="$ac_compiler --version >&5"
13287case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13290esac
13291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_compiler --version >&5") 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }
13296{ (ac_try="$ac_compiler -v >&5"
13297case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300esac
13301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_compiler -v >&5") 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }
13306{ (ac_try="$ac_compiler -V >&5"
13307case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310esac
13311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_compiler -V >&5") 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }
13316rm -f a.out
13317
13318# If we don't use `.F' as extension, the preprocessor is not run on the
13319# input file. (Note that this only needs to work for GNU compilers.)
13320ac_save_ext=$ac_ext
13321ac_ext=F
13322{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13323echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13324if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326else
13327 cat >conftest.$ac_ext <<_ACEOF
13328 program main
13329#ifndef __GNUC__
13330 choke me
13331#endif
13332
13333 end
13334_ACEOF
13335rm -f conftest.$ac_objext
13336if { (ac_try="$ac_compile"
13337case "(($ac_try" in
13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13339 *) ac_try_echo=$ac_try;;
13340esac
13341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13342 (eval "$ac_compile") 2>conftest.er1
13343 ac_status=$?
13344 grep -v '^ *+' conftest.er1 >conftest.err
13345 rm -f conftest.er1
13346 cat conftest.err >&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013348 (exit $ac_status); } &&
13349 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13350 { (case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13353esac
13354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; } &&
13359 { ac_try='test -s conftest.$ac_objext'
13360 { (case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363esac
13364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_try") 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013369 ac_compiler_gnu=yes
13370else
13371 echo "$as_me: failed program was:" >&5
13372sed 's/^/| /' conftest.$ac_ext >&5
13373
13374 ac_compiler_gnu=no
13375fi
13376
13377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13379
13380fi
13381{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13382echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13383ac_ext=$ac_save_ext
13384ac_test_FFLAGS=${FFLAGS+set}
13385ac_save_FFLAGS=$FFLAGS
13386FFLAGS=
13387{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13388echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13389if test "${ac_cv_prog_f77_g+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391else
13392 FFLAGS=-g
13393cat >conftest.$ac_ext <<_ACEOF
13394 program main
13395
13396 end
13397_ACEOF
13398rm -f conftest.$ac_objext
13399if { (ac_try="$ac_compile"
13400case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13403esac
13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_compile") 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013432 ac_cv_prog_f77_g=yes
13433else
13434 echo "$as_me: failed program was:" >&5
13435sed 's/^/| /' conftest.$ac_ext >&5
13436
13437 ac_cv_prog_f77_g=no
13438fi
13439
13440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441
13442fi
13443{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13444echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13445if test "$ac_test_FFLAGS" = set; then
13446 FFLAGS=$ac_save_FFLAGS
13447elif test $ac_cv_prog_f77_g = yes; then
13448 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13449 FFLAGS="-g -O2"
13450 else
13451 FFLAGS="-g"
13452 fi
13453else
13454 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13455 FFLAGS="-O2"
13456 else
13457 FFLAGS=
13458 fi
13459fi
13460
13461G77=`test $ac_compiler_gnu = yes && echo yes`
13462ac_ext=c
13463ac_cpp='$CPP $CPPFLAGS'
13464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466ac_compiler_gnu=$ac_cv_c_compiler_gnu
13467
13468
13469
13470# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13471
13472# find the maximum length of command line arguments
13473{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13474echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13475if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477else
13478 i=0
13479 teststring="ABCD"
13480
13481 case $build_os in
13482 msdosdjgpp*)
13483 # On DJGPP, this test can blow up pretty badly due to problems in libc
13484 # (any single argument exceeding 2000 bytes causes a buffer overrun
13485 # during glob expansion). Even if it were fixed, the result of this
13486 # check would be larger than it should be.
13487 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13488 ;;
13489
13490 gnu*)
13491 # Under GNU Hurd, this test is not required because there is
13492 # no limit to the length of command line arguments.
13493 # Libtool will interpret -1 as no limit whatsoever
13494 lt_cv_sys_max_cmd_len=-1;
13495 ;;
13496
13497 cygwin* | mingw*)
13498 # On Win9x/ME, this test blows up -- it succeeds, but takes
13499 # about 5 minutes as the teststring grows exponentially.
13500 # Worse, since 9x/ME are not pre-emptively multitasking,
13501 # you end up with a "frozen" computer, even though with patience
13502 # the test eventually succeeds (with a max line length of 256k).
13503 # Instead, let's just punt: use the minimum linelength reported by
13504 # all of the supported platforms: 8192 (on NT/2K/XP).
13505 lt_cv_sys_max_cmd_len=8192;
13506 ;;
13507
13508 amigaos*)
13509 # On AmigaOS with pdksh, this test takes hours, literally.
13510 # So we just punt and use a minimum line length of 8192.
13511 lt_cv_sys_max_cmd_len=8192;
13512 ;;
13513
13514 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13515 # This has been around since 386BSD, at least. Likely further.
13516 if test -x /sbin/sysctl; then
13517 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13518 elif test -x /usr/sbin/sysctl; then
13519 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13520 else
13521 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13522 fi
13523 # And add a safety zone
13524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13526 ;;
13527
13528 interix*)
13529 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13530 lt_cv_sys_max_cmd_len=196608
13531 ;;
13532
13533 osf*)
13534 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13535 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13536 # nice to cause kernel panics so lets avoid the loop below.
13537 # First set a reasonable default.
13538 lt_cv_sys_max_cmd_len=16384
13539 #
13540 if test -x /sbin/sysconfig; then
13541 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13542 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13543 esac
13544 fi
13545 ;;
13546 sco3.2v5*)
13547 lt_cv_sys_max_cmd_len=102400
13548 ;;
13549 sysv5* | sco5v6* | sysv4.2uw2*)
13550 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13551 if test -n "$kargmax"; then
13552 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13553 else
13554 lt_cv_sys_max_cmd_len=32768
13555 fi
13556 ;;
13557 *)
13558 # If test is not a shell built-in, we'll probably end up computing a
13559 # maximum length that is only half of the actual maximum length, but
13560 # we can't tell.
13561 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13562 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13563 = "XX$teststring") >/dev/null 2>&1 &&
13564 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13565 lt_cv_sys_max_cmd_len=$new_result &&
13566 test $i != 17 # 1/2 MB should be enough
13567 do
13568 i=`expr $i + 1`
13569 teststring=$teststring$teststring
13570 done
13571 teststring=
13572 # Add a significant safety factor because C++ compilers can tack on massive
13573 # amounts of additional arguments before passing them to the linker.
13574 # It appears as though 1/2 is a usable value.
13575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13576 ;;
13577 esac
13578
13579fi
13580
13581if test -n $lt_cv_sys_max_cmd_len ; then
13582 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13583echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13584else
13585 { echo "$as_me:$LINENO: result: none" >&5
13586echo "${ECHO_T}none" >&6; }
13587fi
13588
13589
13590
13591
13592# Check for command to grab the raw symbol name followed by C symbol from nm.
13593{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13594echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13595if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13597else
13598
13599# These are sane defaults that work on at least a few old systems.
13600# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13601
13602# Character class describing NM global symbol codes.
13603symcode='[BCDEGRST]'
13604
13605# Regexp to match symbols that can be accessed directly from C.
13606sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13607
13608# Transform an extracted symbol line into a proper C declaration
13609lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13610
13611# Transform an extracted symbol line into symbol name and symbol address
13612lt_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'"
13613
13614# Define system-specific variables.
13615case $host_os in
13616aix*)
13617 symcode='[BCDT]'
13618 ;;
13619cygwin* | mingw* | pw32*)
13620 symcode='[ABCDGISTW]'
13621 ;;
13622hpux*) # Its linker distinguishes data from code symbols
13623 if test "$host_cpu" = ia64; then
13624 symcode='[ABCDEGRST]'
13625 fi
13626 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13627 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'"
13628 ;;
13629linux*)
13630 if test "$host_cpu" = ia64; then
13631 symcode='[ABCDGIRSTW]'
13632 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13633 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'"
13634 fi
13635 ;;
13636irix* | nonstopux*)
13637 symcode='[BCDEGRST]'
13638 ;;
13639osf*)
13640 symcode='[BCDEGQRST]'
13641 ;;
13642solaris*)
13643 symcode='[BDRT]'
13644 ;;
13645sco3.2v5*)
13646 symcode='[DT]'
13647 ;;
13648sysv4.2uw2*)
13649 symcode='[DT]'
13650 ;;
13651sysv5* | sco5v6* | unixware* | OpenUNIX*)
13652 symcode='[ABDT]'
13653 ;;
13654sysv4)
13655 symcode='[DFNSTU]'
13656 ;;
13657esac
13658
13659# Handle CRLF in mingw tool chain
13660opt_cr=
13661case $build_os in
13662mingw*)
13663 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13664 ;;
13665esac
13666
13667# If we're using GNU nm, then use its standard symbol codes.
13668case `$NM -V 2>&1` in
13669*GNU* | *'with BFD'*)
13670 symcode='[ABCDGIRSTW]' ;;
13671esac
13672
13673# Try without a prefix undercore, then with it.
13674for ac_symprfx in "" "_"; do
13675
13676 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13677 symxfrm="\\1 $ac_symprfx\\2 \\2"
13678
13679 # Write the raw and C identifiers.
13680 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13681
13682 # Check to see that the pipe works correctly.
13683 pipe_works=no
13684
13685 rm -f conftest*
13686 cat > conftest.$ac_ext <<EOF
13687#ifdef __cplusplus
13688extern "C" {
13689#endif
13690char nm_test_var;
13691void nm_test_func(){}
13692#ifdef __cplusplus
13693}
13694#endif
13695int main(){nm_test_var='a';nm_test_func();return(0);}
13696EOF
13697
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; then
13703 # Now try to grab the symbols.
13704 nlist=conftest.nm
13705 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13706 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13707 ac_status=$?
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } && test -s "$nlist"; then
13710 # Try sorting and uniquifying the output.
13711 if sort "$nlist" | uniq > "$nlist"T; then
13712 mv -f "$nlist"T "$nlist"
13713 else
13714 rm -f "$nlist"T
13715 fi
13716
13717 # Make sure that we snagged all the symbols we need.
13718 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13719 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13720 cat <<EOF > conftest.$ac_ext
13721#ifdef __cplusplus
13722extern "C" {
13723#endif
13724
13725EOF
13726 # Now generate the symbol file.
13727 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13728
13729 cat <<EOF >> conftest.$ac_ext
13730#if defined (__STDC__) && __STDC__
13731# define lt_ptr_t void *
13732#else
13733# define lt_ptr_t char *
13734# define const
13735#endif
13736
13737/* The mapping between symbol names and symbols. */
13738const struct {
13739 const char *name;
13740 lt_ptr_t address;
13741}
13742lt_preloaded_symbols[] =
13743{
13744EOF
13745 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13746 cat <<\EOF >> conftest.$ac_ext
13747 {0, (lt_ptr_t) 0}
13748};
13749
13750#ifdef __cplusplus
13751}
13752#endif
13753EOF
13754 # Now try linking the two files.
13755 mv conftest.$ac_objext conftstm.$ac_objext
13756 lt_save_LIBS="$LIBS"
13757 lt_save_CFLAGS="$CFLAGS"
13758 LIBS="conftstm.$ac_objext"
13759 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761 (eval $ac_link) 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13765 pipe_works=yes
13766 fi
13767 LIBS="$lt_save_LIBS"
13768 CFLAGS="$lt_save_CFLAGS"
13769 else
13770 echo "cannot find nm_test_func in $nlist" >&5
13771 fi
13772 else
13773 echo "cannot find nm_test_var in $nlist" >&5
13774 fi
13775 else
13776 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13777 fi
13778 else
13779 echo "$progname: failed program was:" >&5
13780 cat conftest.$ac_ext >&5
13781 fi
13782 rm -f conftest* conftst*
13783
13784 # Do not use the global_symbol_pipe unless it works.
13785 if test "$pipe_works" = yes; then
13786 break
13787 else
13788 lt_cv_sys_global_symbol_pipe=
13789 fi
13790done
13791
13792fi
13793
13794if test -z "$lt_cv_sys_global_symbol_pipe"; then
13795 lt_cv_sys_global_symbol_to_cdecl=
13796fi
13797if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13798 { echo "$as_me:$LINENO: result: failed" >&5
13799echo "${ECHO_T}failed" >&6; }
13800else
13801 { echo "$as_me:$LINENO: result: ok" >&5
13802echo "${ECHO_T}ok" >&6; }
13803fi
13804
13805{ echo "$as_me:$LINENO: checking for objdir" >&5
13806echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13807if test "${lt_cv_objdir+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810 rm -f .libs 2>/dev/null
13811mkdir .libs 2>/dev/null
13812if test -d .libs; then
13813 lt_cv_objdir=.libs
13814else
13815 # MS-DOS does not allow filenames that begin with a dot.
13816 lt_cv_objdir=_libs
13817fi
13818rmdir .libs 2>/dev/null
13819fi
13820{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13821echo "${ECHO_T}$lt_cv_objdir" >&6; }
13822objdir=$lt_cv_objdir
13823
13824
13825
13826
13827
13828case $host_os in
13829aix3*)
13830 # AIX sometimes has problems with the GCC collect2 program. For some
13831 # reason, if we set the COLLECT_NAMES environment variable, the problems
13832 # vanish in a puff of smoke.
13833 if test "X${COLLECT_NAMES+set}" != Xset; then
13834 COLLECT_NAMES=
13835 export COLLECT_NAMES
13836 fi
13837 ;;
13838esac
13839
13840# Sed substitution that helps us do robust quoting. It backslashifies
13841# metacharacters that are still active within double-quoted strings.
13842Xsed='sed -e 1s/^X//'
13843sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13844
13845# Same as above, but do not quote variable references.
13846double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13847
13848# Sed substitution to delay expansion of an escaped shell variable in a
13849# double_quote_subst'ed string.
13850delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13851
13852# Sed substitution to avoid accidental globbing in evaled expressions
13853no_glob_subst='s/\*/\\\*/g'
13854
13855# Constants:
13856rm="rm -f"
13857
13858# Global variables:
13859default_ofile=mklib
13860can_build_shared=yes
13861
13862# All known linkers require a `.a' archive for static linking (except MSVC,
13863# which needs '.lib').
13864libext=a
13865ltmain="$ac_aux_dir/ltmain.sh"
13866ofile="$default_ofile"
13867with_gnu_ld="$lt_cv_prog_gnu_ld"
13868
13869if test -n "$ac_tool_prefix"; then
13870 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13871set dummy ${ac_tool_prefix}ar; ac_word=$2
13872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13874if test "${ac_cv_prog_AR+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 if test -n "$AR"; then
13878 ac_cv_prog_AR="$AR" # Let the user override the test.
13879else
13880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881for as_dir in $PATH
13882do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013886 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 +000013887 ac_cv_prog_AR="${ac_tool_prefix}ar"
13888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 break 2
13890 fi
13891done
13892done
13893IFS=$as_save_IFS
13894
13895fi
13896fi
13897AR=$ac_cv_prog_AR
13898if test -n "$AR"; then
13899 { echo "$as_me:$LINENO: result: $AR" >&5
13900echo "${ECHO_T}$AR" >&6; }
13901else
13902 { echo "$as_me:$LINENO: result: no" >&5
13903echo "${ECHO_T}no" >&6; }
13904fi
13905
13906
13907fi
13908if test -z "$ac_cv_prog_AR"; then
13909 ac_ct_AR=$AR
13910 # Extract the first word of "ar", so it can be a program name with args.
13911set dummy ar; ac_word=$2
13912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13914if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916else
13917 if test -n "$ac_ct_AR"; then
13918 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13919else
13920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921for as_dir in $PATH
13922do
13923 IFS=$as_save_IFS
13924 test -z "$as_dir" && as_dir=.
13925 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013926 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 +000013927 ac_cv_prog_ac_ct_AR="ar"
13928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13929 break 2
13930 fi
13931done
13932done
13933IFS=$as_save_IFS
13934
13935fi
13936fi
13937ac_ct_AR=$ac_cv_prog_ac_ct_AR
13938if test -n "$ac_ct_AR"; then
13939 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13940echo "${ECHO_T}$ac_ct_AR" >&6; }
13941else
13942 { echo "$as_me:$LINENO: result: no" >&5
13943echo "${ECHO_T}no" >&6; }
13944fi
13945
13946 if test "x$ac_ct_AR" = x; then
13947 AR="false"
13948 else
13949 case $cross_compiling:$ac_tool_warned in
13950yes:)
13951{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13952whose name does not start with the host triplet. If you think this
13953configuration is useful to you, please write to autoconf@gnu.org." >&5
13954echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13955whose name does not start with the host triplet. If you think this
13956configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13957ac_tool_warned=yes ;;
13958esac
13959 AR=$ac_ct_AR
13960 fi
13961else
13962 AR="$ac_cv_prog_AR"
13963fi
13964
13965if test -n "$ac_tool_prefix"; then
13966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13967set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13970if test "${ac_cv_prog_RANLIB+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972else
13973 if test -n "$RANLIB"; then
13974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13975else
13976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13977for as_dir in $PATH
13978do
13979 IFS=$as_save_IFS
13980 test -z "$as_dir" && as_dir=.
13981 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000013982 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 +000013983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13985 break 2
13986 fi
13987done
13988done
13989IFS=$as_save_IFS
13990
13991fi
13992fi
13993RANLIB=$ac_cv_prog_RANLIB
13994if test -n "$RANLIB"; then
13995 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13996echo "${ECHO_T}$RANLIB" >&6; }
13997else
13998 { echo "$as_me:$LINENO: result: no" >&5
13999echo "${ECHO_T}no" >&6; }
14000fi
14001
14002
14003fi
14004if test -z "$ac_cv_prog_RANLIB"; then
14005 ac_ct_RANLIB=$RANLIB
14006 # Extract the first word of "ranlib", so it can be a program name with args.
14007set dummy ranlib; ac_word=$2
14008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14010if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012else
14013 if test -n "$ac_ct_RANLIB"; then
14014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14015else
14016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017for as_dir in $PATH
14018do
14019 IFS=$as_save_IFS
14020 test -z "$as_dir" && as_dir=.
14021 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014022 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 +000014023 ac_cv_prog_ac_ct_RANLIB="ranlib"
14024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14025 break 2
14026 fi
14027done
14028done
14029IFS=$as_save_IFS
14030
14031fi
14032fi
14033ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14034if test -n "$ac_ct_RANLIB"; then
14035 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14036echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
14037else
14038 { echo "$as_me:$LINENO: result: no" >&5
14039echo "${ECHO_T}no" >&6; }
14040fi
14041
14042 if test "x$ac_ct_RANLIB" = x; then
14043 RANLIB=":"
14044 else
14045 case $cross_compiling:$ac_tool_warned in
14046yes:)
14047{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14048whose name does not start with the host triplet. If you think this
14049configuration is useful to you, please write to autoconf@gnu.org." >&5
14050echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14051whose name does not start with the host triplet. If you think this
14052configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14053ac_tool_warned=yes ;;
14054esac
14055 RANLIB=$ac_ct_RANLIB
14056 fi
14057else
14058 RANLIB="$ac_cv_prog_RANLIB"
14059fi
14060
14061if test -n "$ac_tool_prefix"; then
14062 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14063set dummy ${ac_tool_prefix}strip; ac_word=$2
14064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14066if test "${ac_cv_prog_STRIP+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14068else
14069 if test -n "$STRIP"; then
14070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14071else
14072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14073for as_dir in $PATH
14074do
14075 IFS=$as_save_IFS
14076 test -z "$as_dir" && as_dir=.
14077 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014078 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 +000014079 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14081 break 2
14082 fi
14083done
14084done
14085IFS=$as_save_IFS
14086
14087fi
14088fi
14089STRIP=$ac_cv_prog_STRIP
14090if test -n "$STRIP"; then
14091 { echo "$as_me:$LINENO: result: $STRIP" >&5
14092echo "${ECHO_T}$STRIP" >&6; }
14093else
14094 { echo "$as_me:$LINENO: result: no" >&5
14095echo "${ECHO_T}no" >&6; }
14096fi
14097
14098
14099fi
14100if test -z "$ac_cv_prog_STRIP"; then
14101 ac_ct_STRIP=$STRIP
14102 # Extract the first word of "strip", so it can be a program name with args.
14103set dummy strip; ac_word=$2
14104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14106if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14108else
14109 if test -n "$ac_ct_STRIP"; then
14110 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14111else
14112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113for as_dir in $PATH
14114do
14115 IFS=$as_save_IFS
14116 test -z "$as_dir" && as_dir=.
14117 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000014118 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 +000014119 ac_cv_prog_ac_ct_STRIP="strip"
14120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14121 break 2
14122 fi
14123done
14124done
14125IFS=$as_save_IFS
14126
14127fi
14128fi
14129ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14130if test -n "$ac_ct_STRIP"; then
14131 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14132echo "${ECHO_T}$ac_ct_STRIP" >&6; }
14133else
14134 { echo "$as_me:$LINENO: result: no" >&5
14135echo "${ECHO_T}no" >&6; }
14136fi
14137
14138 if test "x$ac_ct_STRIP" = x; then
14139 STRIP=":"
14140 else
14141 case $cross_compiling:$ac_tool_warned in
14142yes:)
14143{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14144whose name does not start with the host triplet. If you think this
14145configuration is useful to you, please write to autoconf@gnu.org." >&5
14146echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14147whose name does not start with the host triplet. If you think this
14148configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14149ac_tool_warned=yes ;;
14150esac
14151 STRIP=$ac_ct_STRIP
14152 fi
14153else
14154 STRIP="$ac_cv_prog_STRIP"
14155fi
14156
14157
14158old_CC="$CC"
14159old_CFLAGS="$CFLAGS"
14160
14161# Set sane defaults for various variables
14162test -z "$AR" && AR=ar
14163test -z "$AR_FLAGS" && AR_FLAGS=cru
14164test -z "$AS" && AS=as
14165test -z "$CC" && CC=cc
14166test -z "$LTCC" && LTCC=$CC
14167test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14168test -z "$DLLTOOL" && DLLTOOL=dlltool
14169test -z "$LD" && LD=ld
14170test -z "$LN_S" && LN_S="ln -s"
14171test -z "$MAGIC_CMD" && MAGIC_CMD=file
14172test -z "$NM" && NM=nm
14173test -z "$SED" && SED=sed
14174test -z "$OBJDUMP" && OBJDUMP=objdump
14175test -z "$RANLIB" && RANLIB=:
14176test -z "$STRIP" && STRIP=:
14177test -z "$ac_objext" && ac_objext=o
14178
14179# Determine commands to create old-style static archives.
14180old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14181old_postinstall_cmds='chmod 644 $oldlib'
14182old_postuninstall_cmds=
14183
14184if test -n "$RANLIB"; then
14185 case $host_os in
14186 openbsd*)
14187 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14188 ;;
14189 *)
14190 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14191 ;;
14192 esac
14193 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14194fi
14195
14196for cc_temp in $compiler""; do
14197 case $cc_temp in
14198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14200 \-*) ;;
14201 *) break;;
14202 esac
14203done
14204cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14205
14206
14207# Only perform the check for file, if the check method requires it
14208case $deplibs_check_method in
14209file_magic*)
14210 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14211 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14212echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14213if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215else
14216 case $MAGIC_CMD in
14217[\\/*] | ?:[\\/]*)
14218 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14219 ;;
14220*)
14221 lt_save_MAGIC_CMD="$MAGIC_CMD"
14222 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14223 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14224 for ac_dir in $ac_dummy; do
14225 IFS="$lt_save_ifs"
14226 test -z "$ac_dir" && ac_dir=.
14227 if test -f $ac_dir/${ac_tool_prefix}file; then
14228 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14229 if test -n "$file_magic_test_file"; then
14230 case $deplibs_check_method in
14231 "file_magic "*)
14232 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14234 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14235 $EGREP "$file_magic_regex" > /dev/null; then
14236 :
14237 else
14238 cat <<EOF 1>&2
14239
14240*** Warning: the command libtool uses to detect shared libraries,
14241*** $file_magic_cmd, produces output that libtool cannot recognize.
14242*** The result is that libtool may fail to recognize shared libraries
14243*** as such. This will affect the creation of libtool libraries that
14244*** depend on shared libraries, but programs linked with such libtool
14245*** libraries will work regardless of this problem. Nevertheless, you
14246*** may want to report the problem to your system manager and/or to
14247*** bug-libtool@gnu.org
14248
14249EOF
14250 fi ;;
14251 esac
14252 fi
14253 break
14254 fi
14255 done
14256 IFS="$lt_save_ifs"
14257 MAGIC_CMD="$lt_save_MAGIC_CMD"
14258 ;;
14259esac
14260fi
14261
14262MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14263if test -n "$MAGIC_CMD"; then
14264 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14265echo "${ECHO_T}$MAGIC_CMD" >&6; }
14266else
14267 { echo "$as_me:$LINENO: result: no" >&5
14268echo "${ECHO_T}no" >&6; }
14269fi
14270
14271if test -z "$lt_cv_path_MAGIC_CMD"; then
14272 if test -n "$ac_tool_prefix"; then
14273 { echo "$as_me:$LINENO: checking for file" >&5
14274echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14275if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14277else
14278 case $MAGIC_CMD in
14279[\\/*] | ?:[\\/]*)
14280 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14281 ;;
14282*)
14283 lt_save_MAGIC_CMD="$MAGIC_CMD"
14284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14285 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14286 for ac_dir in $ac_dummy; do
14287 IFS="$lt_save_ifs"
14288 test -z "$ac_dir" && ac_dir=.
14289 if test -f $ac_dir/file; then
14290 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14291 if test -n "$file_magic_test_file"; then
14292 case $deplibs_check_method in
14293 "file_magic "*)
14294 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14297 $EGREP "$file_magic_regex" > /dev/null; then
14298 :
14299 else
14300 cat <<EOF 1>&2
14301
14302*** Warning: the command libtool uses to detect shared libraries,
14303*** $file_magic_cmd, produces output that libtool cannot recognize.
14304*** The result is that libtool may fail to recognize shared libraries
14305*** as such. This will affect the creation of libtool libraries that
14306*** depend on shared libraries, but programs linked with such libtool
14307*** libraries will work regardless of this problem. Nevertheless, you
14308*** may want to report the problem to your system manager and/or to
14309*** bug-libtool@gnu.org
14310
14311EOF
14312 fi ;;
14313 esac
14314 fi
14315 break
14316 fi
14317 done
14318 IFS="$lt_save_ifs"
14319 MAGIC_CMD="$lt_save_MAGIC_CMD"
14320 ;;
14321esac
14322fi
14323
14324MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14325if test -n "$MAGIC_CMD"; then
14326 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14327echo "${ECHO_T}$MAGIC_CMD" >&6; }
14328else
14329 { echo "$as_me:$LINENO: result: no" >&5
14330echo "${ECHO_T}no" >&6; }
14331fi
14332
14333 else
14334 MAGIC_CMD=:
14335 fi
14336fi
14337
14338 fi
14339 ;;
14340esac
14341
14342enable_dlopen=yes
14343enable_win32_dll=no
14344
14345# Check whether --enable-libtool-lock was given.
14346if test "${enable_libtool_lock+set}" = set; then
14347 enableval=$enable_libtool_lock;
14348fi
14349
14350test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14351
14352
14353# Check whether --with-pic was given.
14354if test "${with_pic+set}" = set; then
14355 withval=$with_pic; pic_mode="$withval"
14356else
14357 pic_mode=default
14358fi
14359
14360test -z "$pic_mode" && pic_mode=default
14361
14362# Use C for the default configuration in the libtool script
14363tagname=
14364lt_save_CC="$CC"
14365ac_ext=c
14366ac_cpp='$CPP $CPPFLAGS'
14367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14369ac_compiler_gnu=$ac_cv_c_compiler_gnu
14370
14371
14372# Source file extension for C test sources.
14373ac_ext=c
14374
14375# Object file extension for compiled C test sources.
14376objext=o
14377objext=$objext
14378
14379# Code to be used in simple compile tests
14380lt_simple_compile_test_code="int some_variable = 0;\n"
14381
14382# Code to be used in simple link tests
14383lt_simple_link_test_code='int main(){return(0);}\n'
14384
14385
14386# If no C compiler was specified, use CC.
14387LTCC=${LTCC-"$CC"}
14388
14389# If no C compiler flags were specified, use CFLAGS.
14390LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14391
14392# Allow CC to be a program name with arguments.
14393compiler=$CC
14394
14395
14396# save warnings/boilerplate of simple test code
14397ac_outfile=conftest.$ac_objext
14398printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14399eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14400_lt_compiler_boilerplate=`cat conftest.err`
14401$rm conftest*
14402
14403ac_outfile=conftest.$ac_objext
14404printf "$lt_simple_link_test_code" >conftest.$ac_ext
14405eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14406_lt_linker_boilerplate=`cat conftest.err`
14407$rm conftest*
14408
14409
14410
14411lt_prog_compiler_no_builtin_flag=
14412
14413if test "$GCC" = yes; then
14414 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14415
14416
14417{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14418echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14419if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421else
14422 lt_cv_prog_compiler_rtti_exceptions=no
14423 ac_outfile=conftest.$ac_objext
14424 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14425 lt_compiler_flag="-fno-rtti -fno-exceptions"
14426 # Insert the option either (1) after the last *FLAGS variable, or
14427 # (2) before a word containing "conftest.", or (3) at the end.
14428 # Note that $ac_compile itself does not contain backslashes and begins
14429 # with a dollar sign (not a hyphen), so the echo should work correctly.
14430 # The option is referenced via a variable to avoid confusing sed.
14431 lt_compile=`echo "$ac_compile" | $SED \
14432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14434 -e 's:$: $lt_compiler_flag:'`
Owen Andersonff0f88e2009-05-18 23:58:51 +000014435 (eval echo "\"\$as_me:14435: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014436 (eval "$lt_compile" 2>conftest.err)
14437 ac_status=$?
14438 cat conftest.err >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000014439 echo "$as_me:14439: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014440 if (exit $ac_status) && test -s "$ac_outfile"; then
14441 # The compiler can only warn and ignore the option if not recognized
14442 # So say no if there are warnings other than the usual output.
14443 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14444 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14445 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14446 lt_cv_prog_compiler_rtti_exceptions=yes
14447 fi
14448 fi
14449 $rm conftest*
14450
14451fi
14452{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14453echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14454
14455if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14456 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14457else
14458 :
14459fi
14460
14461fi
14462
14463lt_prog_compiler_wl=
14464lt_prog_compiler_pic=
14465lt_prog_compiler_static=
14466
14467{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14468echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14469
14470 if test "$GCC" = yes; then
14471 lt_prog_compiler_wl='-Wl,'
14472 lt_prog_compiler_static='-static'
14473
14474 case $host_os in
14475 aix*)
14476 # All AIX code is PIC.
14477 if test "$host_cpu" = ia64; then
14478 # AIX 5 now supports IA64 processor
14479 lt_prog_compiler_static='-Bstatic'
14480 fi
14481 ;;
14482
14483 amigaos*)
14484 # FIXME: we need at least 68020 code to build shared libraries, but
14485 # adding the `-m68020' flag to GCC prevents building anything better,
14486 # like `-m68040'.
14487 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14488 ;;
14489
14490 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14491 # PIC is the default for these OSes.
14492 ;;
14493
14494 mingw* | pw32* | os2*)
14495 # This hack is so that the source file can tell whether it is being
14496 # built for inclusion in a dll (and should export symbols for example).
14497 lt_prog_compiler_pic='-DDLL_EXPORT'
14498 ;;
14499
14500 darwin* | rhapsody*)
14501 # PIC is the default on this platform
14502 # Common symbols not allowed in MH_DYLIB files
14503 lt_prog_compiler_pic='-fno-common'
14504 ;;
14505
14506 interix3*)
14507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14508 # Instead, we relocate shared libraries at runtime.
14509 ;;
14510
14511 msdosdjgpp*)
14512 # Just because we use GCC doesn't mean we suddenly get shared libraries
14513 # on systems that don't support them.
14514 lt_prog_compiler_can_build_shared=no
14515 enable_shared=no
14516 ;;
14517
14518 sysv4*MP*)
14519 if test -d /usr/nec; then
14520 lt_prog_compiler_pic=-Kconform_pic
14521 fi
14522 ;;
14523
14524 hpux*)
14525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14526 # not for PA HP-UX.
14527 case $host_cpu in
14528 hppa*64*|ia64*)
14529 # +Z the default
14530 ;;
14531 *)
14532 lt_prog_compiler_pic='-fPIC'
14533 ;;
14534 esac
14535 ;;
14536
14537 *)
14538 lt_prog_compiler_pic='-fPIC'
14539 ;;
14540 esac
14541 else
14542 # PORTME Check for flag to pass linker flags through the system compiler.
14543 case $host_os in
14544 aix*)
14545 lt_prog_compiler_wl='-Wl,'
14546 if test "$host_cpu" = ia64; then
14547 # AIX 5 now supports IA64 processor
14548 lt_prog_compiler_static='-Bstatic'
14549 else
14550 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14551 fi
14552 ;;
14553 darwin*)
14554 # PIC is the default on this platform
14555 # Common symbols not allowed in MH_DYLIB files
14556 case $cc_basename in
14557 xlc*)
14558 lt_prog_compiler_pic='-qnocommon'
14559 lt_prog_compiler_wl='-Wl,'
14560 ;;
14561 esac
14562 ;;
14563
14564 mingw* | pw32* | os2*)
14565 # This hack is so that the source file can tell whether it is being
14566 # built for inclusion in a dll (and should export symbols for example).
14567 lt_prog_compiler_pic='-DDLL_EXPORT'
14568 ;;
14569
14570 hpux9* | hpux10* | hpux11*)
14571 lt_prog_compiler_wl='-Wl,'
14572 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14573 # not for PA HP-UX.
14574 case $host_cpu in
14575 hppa*64*|ia64*)
14576 # +Z the default
14577 ;;
14578 *)
14579 lt_prog_compiler_pic='+Z'
14580 ;;
14581 esac
14582 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14583 lt_prog_compiler_static='${wl}-a ${wl}archive'
14584 ;;
14585
14586 irix5* | irix6* | nonstopux*)
14587 lt_prog_compiler_wl='-Wl,'
14588 # PIC (with -KPIC) is the default.
14589 lt_prog_compiler_static='-non_shared'
14590 ;;
14591
14592 newsos6)
14593 lt_prog_compiler_pic='-KPIC'
14594 lt_prog_compiler_static='-Bstatic'
14595 ;;
14596
14597 linux*)
14598 case $cc_basename in
14599 icc* | ecc*)
14600 lt_prog_compiler_wl='-Wl,'
14601 lt_prog_compiler_pic='-KPIC'
14602 lt_prog_compiler_static='-static'
14603 ;;
14604 pgcc* | pgf77* | pgf90* | pgf95*)
14605 # Portland Group compilers (*not* the Pentium gcc compiler,
14606 # which looks to be a dead project)
14607 lt_prog_compiler_wl='-Wl,'
14608 lt_prog_compiler_pic='-fpic'
14609 lt_prog_compiler_static='-Bstatic'
14610 ;;
14611 ccc*)
14612 lt_prog_compiler_wl='-Wl,'
14613 # All Alpha code is PIC.
14614 lt_prog_compiler_static='-non_shared'
14615 ;;
14616 esac
14617 ;;
14618
14619 osf3* | osf4* | osf5*)
14620 lt_prog_compiler_wl='-Wl,'
14621 # All OSF/1 code is PIC.
14622 lt_prog_compiler_static='-non_shared'
14623 ;;
14624
14625 solaris*)
14626 lt_prog_compiler_pic='-KPIC'
14627 lt_prog_compiler_static='-Bstatic'
14628 case $cc_basename in
14629 f77* | f90* | f95*)
14630 lt_prog_compiler_wl='-Qoption ld ';;
14631 *)
14632 lt_prog_compiler_wl='-Wl,';;
14633 esac
14634 ;;
14635
14636 sunos4*)
14637 lt_prog_compiler_wl='-Qoption ld '
14638 lt_prog_compiler_pic='-PIC'
14639 lt_prog_compiler_static='-Bstatic'
14640 ;;
14641
14642 sysv4 | sysv4.2uw2* | sysv4.3*)
14643 lt_prog_compiler_wl='-Wl,'
14644 lt_prog_compiler_pic='-KPIC'
14645 lt_prog_compiler_static='-Bstatic'
14646 ;;
14647
14648 sysv4*MP*)
14649 if test -d /usr/nec ;then
14650 lt_prog_compiler_pic='-Kconform_pic'
14651 lt_prog_compiler_static='-Bstatic'
14652 fi
14653 ;;
14654
14655 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14656 lt_prog_compiler_wl='-Wl,'
14657 lt_prog_compiler_pic='-KPIC'
14658 lt_prog_compiler_static='-Bstatic'
14659 ;;
14660
14661 unicos*)
14662 lt_prog_compiler_wl='-Wl,'
14663 lt_prog_compiler_can_build_shared=no
14664 ;;
14665
14666 uts4*)
14667 lt_prog_compiler_pic='-pic'
14668 lt_prog_compiler_static='-Bstatic'
14669 ;;
14670
14671 *)
14672 lt_prog_compiler_can_build_shared=no
14673 ;;
14674 esac
14675 fi
14676
14677{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14678echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14679
14680#
14681# Check to make sure the PIC flag actually works.
14682#
14683if test -n "$lt_prog_compiler_pic"; then
14684
14685{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14686echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14687if test "${lt_prog_compiler_pic_works+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14689else
14690 lt_prog_compiler_pic_works=no
14691 ac_outfile=conftest.$ac_objext
14692 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14693 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14694 # Insert the option either (1) after the last *FLAGS variable, or
14695 # (2) before a word containing "conftest.", or (3) at the end.
14696 # Note that $ac_compile itself does not contain backslashes and begins
14697 # with a dollar sign (not a hyphen), so the echo should work correctly.
14698 # The option is referenced via a variable to avoid confusing sed.
14699 lt_compile=`echo "$ac_compile" | $SED \
14700 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14701 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14702 -e 's:$: $lt_compiler_flag:'`
Owen Andersonff0f88e2009-05-18 23:58:51 +000014703 (eval echo "\"\$as_me:14703: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014704 (eval "$lt_compile" 2>conftest.err)
14705 ac_status=$?
14706 cat conftest.err >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000014707 echo "$as_me:14707: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014708 if (exit $ac_status) && test -s "$ac_outfile"; then
14709 # The compiler can only warn and ignore the option if not recognized
14710 # So say no if there are warnings other than the usual output.
14711 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14713 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14714 lt_prog_compiler_pic_works=yes
14715 fi
14716 fi
14717 $rm conftest*
14718
14719fi
14720{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14721echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14722
14723if test x"$lt_prog_compiler_pic_works" = xyes; then
14724 case $lt_prog_compiler_pic in
14725 "" | " "*) ;;
14726 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14727 esac
14728else
14729 lt_prog_compiler_pic=
14730 lt_prog_compiler_can_build_shared=no
14731fi
14732
14733fi
14734case $host_os in
14735 # For platforms which do not support PIC, -DPIC is meaningless:
14736 *djgpp*)
14737 lt_prog_compiler_pic=
14738 ;;
14739 *)
14740 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14741 ;;
14742esac
14743
14744#
14745# Check to make sure the static flag actually works.
14746#
14747wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14748{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14749echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14750if test "${lt_prog_compiler_static_works+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
14753 lt_prog_compiler_static_works=no
14754 save_LDFLAGS="$LDFLAGS"
14755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14756 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14758 # The linker can only warn and ignore the option if not recognized
14759 # So say no if there are warnings
14760 if test -s conftest.err; then
14761 # Append any errors to the config.log.
14762 cat conftest.err 1>&5
14763 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14765 if diff conftest.exp conftest.er2 >/dev/null; then
14766 lt_prog_compiler_static_works=yes
14767 fi
14768 else
14769 lt_prog_compiler_static_works=yes
14770 fi
14771 fi
14772 $rm conftest*
14773 LDFLAGS="$save_LDFLAGS"
14774
14775fi
14776{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14777echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14778
14779if test x"$lt_prog_compiler_static_works" = xyes; then
14780 :
14781else
14782 lt_prog_compiler_static=
14783fi
14784
14785
14786{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14787echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14788if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14790else
14791 lt_cv_prog_compiler_c_o=no
14792 $rm -r conftest 2>/dev/null
14793 mkdir conftest
14794 cd conftest
14795 mkdir out
14796 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14797
14798 lt_compiler_flag="-o out/conftest2.$ac_objext"
14799 # Insert the option either (1) after the last *FLAGS variable, or
14800 # (2) before a word containing "conftest.", or (3) at the end.
14801 # Note that $ac_compile itself does not contain backslashes and begins
14802 # with a dollar sign (not a hyphen), so the echo should work correctly.
14803 lt_compile=`echo "$ac_compile" | $SED \
14804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14806 -e 's:$: $lt_compiler_flag:'`
Owen Andersonff0f88e2009-05-18 23:58:51 +000014807 (eval echo "\"\$as_me:14807: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014808 (eval "$lt_compile" 2>out/conftest.err)
14809 ac_status=$?
14810 cat out/conftest.err >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000014811 echo "$as_me:14811: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14813 then
14814 # The compiler can only warn and ignore the option if not recognized
14815 # So say no if there are warnings
14816 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14819 lt_cv_prog_compiler_c_o=yes
14820 fi
14821 fi
14822 chmod u+w . 2>&5
14823 $rm conftest*
14824 # SGI C++ compiler will create directory out/ii_files/ for
14825 # template instantiation
14826 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14827 $rm out/* && rmdir out
14828 cd ..
14829 rmdir conftest
14830 $rm conftest*
14831
14832fi
14833{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14834echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14835
14836
14837hard_links="nottested"
14838if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14839 # do not overwrite the value of need_locks provided by the user
14840 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14841echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14842 hard_links=yes
14843 $rm conftest*
14844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14845 touch conftest.a
14846 ln conftest.a conftest.b 2>&5 || hard_links=no
14847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14848 { echo "$as_me:$LINENO: result: $hard_links" >&5
14849echo "${ECHO_T}$hard_links" >&6; }
14850 if test "$hard_links" = no; then
14851 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14852echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14853 need_locks=warn
14854 fi
14855else
14856 need_locks=no
14857fi
14858
14859{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14860echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14861
14862 runpath_var=
14863 allow_undefined_flag=
14864 enable_shared_with_static_runtimes=no
14865 archive_cmds=
14866 archive_expsym_cmds=
14867 old_archive_From_new_cmds=
14868 old_archive_from_expsyms_cmds=
14869 export_dynamic_flag_spec=
14870 whole_archive_flag_spec=
14871 thread_safe_flag_spec=
14872 hardcode_libdir_flag_spec=
14873 hardcode_libdir_flag_spec_ld=
14874 hardcode_libdir_separator=
14875 hardcode_direct=no
14876 hardcode_minus_L=no
14877 hardcode_shlibpath_var=unsupported
14878 link_all_deplibs=unknown
14879 hardcode_automatic=no
14880 module_cmds=
14881 module_expsym_cmds=
14882 always_export_symbols=no
14883 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14884 # include_expsyms should be a list of space-separated symbols to be *always*
14885 # included in the symbol list
14886 include_expsyms=
14887 # exclude_expsyms can be an extended regexp of symbols to exclude
14888 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14889 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14890 # as well as any symbol that contains `d'.
14891 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14892 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14893 # platforms (ab)use it in PIC code, but their linkers get confused if
14894 # the symbol is explicitly referenced. Since portable code cannot
14895 # rely on this symbol name, it's probably fine to never include it in
14896 # preloaded symbol tables.
14897 extract_expsyms_cmds=
14898 # Just being paranoid about ensuring that cc_basename is set.
14899 for cc_temp in $compiler""; do
14900 case $cc_temp in
14901 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14902 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14903 \-*) ;;
14904 *) break;;
14905 esac
14906done
14907cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14908
14909 case $host_os in
14910 cygwin* | mingw* | pw32*)
14911 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14912 # When not using gcc, we currently assume that we are using
14913 # Microsoft Visual C++.
14914 if test "$GCC" != yes; then
14915 with_gnu_ld=no
14916 fi
14917 ;;
14918 interix*)
14919 # we just hope/assume this is gcc and not c89 (= MSVC++)
14920 with_gnu_ld=yes
14921 ;;
14922 openbsd*)
14923 with_gnu_ld=no
14924 ;;
14925 esac
14926
14927 ld_shlibs=yes
14928 if test "$with_gnu_ld" = yes; then
14929 # If archive_cmds runs LD, not CC, wlarc should be empty
14930 wlarc='${wl}'
14931
14932 # Set some defaults for GNU ld with shared library support. These
14933 # are reset later if shared libraries are not supported. Putting them
14934 # here allows them to be overridden if necessary.
14935 runpath_var=LD_RUN_PATH
14936 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14937 export_dynamic_flag_spec='${wl}--export-dynamic'
14938 # ancient GNU ld didn't support --whole-archive et. al.
14939 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14940 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14941 else
14942 whole_archive_flag_spec=
14943 fi
14944 supports_anon_versioning=no
14945 case `$LD -v 2>/dev/null` in
14946 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14947 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14948 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14949 *\ 2.11.*) ;; # other 2.11 versions
14950 *) supports_anon_versioning=yes ;;
14951 esac
14952
14953 # See if GNU ld supports shared libraries.
14954 case $host_os in
14955 aix3* | aix4* | aix5*)
14956 # On AIX/PPC, the GNU linker is very broken
14957 if test "$host_cpu" != ia64; then
14958 ld_shlibs=no
14959 cat <<EOF 1>&2
14960
14961*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14962*** to be unable to reliably create shared libraries on AIX.
14963*** Therefore, libtool is disabling shared libraries support. If you
14964*** really care for shared libraries, you may want to modify your PATH
14965*** so that a non-GNU linker is found, and then restart.
14966
14967EOF
14968 fi
14969 ;;
14970
14971 amigaos*)
14972 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)'
14973 hardcode_libdir_flag_spec='-L$libdir'
14974 hardcode_minus_L=yes
14975
14976 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14977 # that the semantics of dynamic libraries on AmigaOS, at least up
14978 # to version 4, is to share data among multiple programs linked
14979 # with the same dynamic library. Since this doesn't match the
14980 # behavior of shared libraries on other platforms, we can't use
14981 # them.
14982 ld_shlibs=no
14983 ;;
14984
14985 beos*)
14986 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14987 allow_undefined_flag=unsupported
14988 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14989 # support --undefined. This deserves some investigation. FIXME
14990 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14991 else
14992 ld_shlibs=no
14993 fi
14994 ;;
14995
14996 cygwin* | mingw* | pw32*)
14997 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14998 # as there is no search path for DLLs.
14999 hardcode_libdir_flag_spec='-L$libdir'
15000 allow_undefined_flag=unsupported
15001 always_export_symbols=no
15002 enable_shared_with_static_runtimes=yes
15003 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15004
15005 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15007 # If the export-symbols file already is a .def file (1st line
15008 # is EXPORTS), use it as is; otherwise, prepend...
15009 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15010 cp $export_symbols $output_objdir/$soname.def;
15011 else
15012 echo EXPORTS > $output_objdir/$soname.def;
15013 cat $export_symbols >> $output_objdir/$soname.def;
15014 fi~
15015 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15016 else
15017 ld_shlibs=no
15018 fi
15019 ;;
15020
15021 interix3*)
15022 hardcode_direct=no
15023 hardcode_shlibpath_var=no
15024 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15025 export_dynamic_flag_spec='${wl}-E'
15026 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15027 # Instead, shared libraries are loaded at an image base (0x10000000 by
15028 # default) and relocated if they conflict, which is a slow very memory
15029 # consuming and fragmenting process. To avoid this, we pick a random,
15030 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15031 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15032 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15033 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'
15034 ;;
15035
15036 linux*)
15037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15038 tmp_addflag=
15039 case $cc_basename,$host_cpu in
15040 pgcc*) # Portland Group C compiler
15041 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'
15042 tmp_addflag=' $pic_flag'
15043 ;;
15044 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15045 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'
15046 tmp_addflag=' $pic_flag -Mnomain' ;;
15047 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15048 tmp_addflag=' -i_dynamic' ;;
15049 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15050 tmp_addflag=' -i_dynamic -nofor_main' ;;
15051 ifc* | ifort*) # Intel Fortran compiler
15052 tmp_addflag=' -nofor_main' ;;
15053 esac
15054 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15055
15056 if test $supports_anon_versioning = yes; then
15057 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15059 $echo "local: *; };" >> $output_objdir/$libname.ver~
15060 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15061 fi
15062 else
15063 ld_shlibs=no
15064 fi
15065 ;;
15066
15067 netbsd*)
15068 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15069 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15070 wlarc=
15071 else
15072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15074 fi
15075 ;;
15076
15077 solaris*)
15078 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15079 ld_shlibs=no
15080 cat <<EOF 1>&2
15081
15082*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15083*** create shared libraries on Solaris systems. Therefore, libtool
15084*** is disabling shared libraries support. We urge you to upgrade GNU
15085*** binutils to release 2.9.1 or newer. Another option is to modify
15086*** your PATH or compiler configuration so that the native linker is
15087*** used, and then restart.
15088
15089EOF
15090 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15093 else
15094 ld_shlibs=no
15095 fi
15096 ;;
15097
15098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15099 case `$LD -v 2>&1` in
15100 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15101 ld_shlibs=no
15102 cat <<_LT_EOF 1>&2
15103
15104*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15105*** reliably create shared libraries on SCO systems. Therefore, libtool
15106*** is disabling shared libraries support. We urge you to upgrade GNU
15107*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15108*** your PATH or compiler configuration so that the native linker is
15109*** used, and then restart.
15110
15111_LT_EOF
15112 ;;
15113 *)
15114 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15115 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15117 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15118 else
15119 ld_shlibs=no
15120 fi
15121 ;;
15122 esac
15123 ;;
15124
15125 sunos4*)
15126 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15127 wlarc=
15128 hardcode_direct=yes
15129 hardcode_shlibpath_var=no
15130 ;;
15131
15132 *)
15133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15135 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15136 else
15137 ld_shlibs=no
15138 fi
15139 ;;
15140 esac
15141
15142 if test "$ld_shlibs" = no; then
15143 runpath_var=
15144 hardcode_libdir_flag_spec=
15145 export_dynamic_flag_spec=
15146 whole_archive_flag_spec=
15147 fi
15148 else
15149 # PORTME fill in a description of your system's linker (not GNU ld)
15150 case $host_os in
15151 aix3*)
15152 allow_undefined_flag=unsupported
15153 always_export_symbols=yes
15154 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'
15155 # Note: this linker hardcodes the directories in LIBPATH if there
15156 # are no directories specified by -L.
15157 hardcode_minus_L=yes
15158 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15159 # Neither direct hardcoding nor static linking is supported with a
15160 # broken collect2.
15161 hardcode_direct=unsupported
15162 fi
15163 ;;
15164
15165 aix4* | aix5*)
15166 if test "$host_cpu" = ia64; then
15167 # On IA64, the linker does run time linking by default, so we don't
15168 # have to do anything special.
15169 aix_use_runtimelinking=no
15170 exp_sym_flag='-Bexport'
15171 no_entry_flag=""
15172 else
15173 # If we're using GNU nm, then we don't want the "-C" option.
15174 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15175 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15176 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'
15177 else
15178 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'
15179 fi
15180 aix_use_runtimelinking=no
15181
15182 # Test if we are trying to use run time linking or normal
15183 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15184 # need to do runtime linking.
15185 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15186 for ld_flag in $LDFLAGS; do
15187 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15188 aix_use_runtimelinking=yes
15189 break
15190 fi
15191 done
15192 ;;
15193 esac
15194
15195 exp_sym_flag='-bexport'
15196 no_entry_flag='-bnoentry'
15197 fi
15198
15199 # When large executables or shared objects are built, AIX ld can
15200 # have problems creating the table of contents. If linking a library
15201 # or program results in "error TOC overflow" add -mminimal-toc to
15202 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15203 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15204
15205 archive_cmds=''
15206 hardcode_direct=yes
15207 hardcode_libdir_separator=':'
15208 link_all_deplibs=yes
15209
15210 if test "$GCC" = yes; then
15211 case $host_os in aix4.[012]|aix4.[012].*)
15212 # We only want to do this on AIX 4.2 and lower, the check
15213 # below for broken collect2 doesn't work under 4.3+
15214 collect2name=`${CC} -print-prog-name=collect2`
15215 if test -f "$collect2name" && \
15216 strings "$collect2name" | grep resolve_lib_name >/dev/null
15217 then
15218 # We have reworked collect2
15219 hardcode_direct=yes
15220 else
15221 # We have old collect2
15222 hardcode_direct=unsupported
15223 # It fails to find uninstalled libraries when the uninstalled
15224 # path is not listed in the libpath. Setting hardcode_minus_L
15225 # to unsupported forces relinking
15226 hardcode_minus_L=yes
15227 hardcode_libdir_flag_spec='-L$libdir'
15228 hardcode_libdir_separator=
15229 fi
15230 ;;
15231 esac
15232 shared_flag='-shared'
15233 if test "$aix_use_runtimelinking" = yes; then
15234 shared_flag="$shared_flag "'${wl}-G'
15235 fi
15236 else
15237 # not using gcc
15238 if test "$host_cpu" = ia64; then
15239 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15240 # chokes on -Wl,-G. The following line is correct:
15241 shared_flag='-G'
15242 else
15243 if test "$aix_use_runtimelinking" = yes; then
15244 shared_flag='${wl}-G'
15245 else
15246 shared_flag='${wl}-bM:SRE'
15247 fi
15248 fi
15249 fi
15250
15251 # It seems that -bexpall does not export symbols beginning with
15252 # underscore (_), so it is better to generate a list of symbols to export.
15253 always_export_symbols=yes
15254 if test "$aix_use_runtimelinking" = yes; then
15255 # Warning - without using the other runtime loading flags (-brtl),
15256 # -berok will link without error, but may produce a broken library.
15257 allow_undefined_flag='-berok'
15258 # Determine the default libpath from the value encoded in an empty executable.
15259 cat >conftest.$ac_ext <<_ACEOF
15260/* confdefs.h. */
15261_ACEOF
15262cat confdefs.h >>conftest.$ac_ext
15263cat >>conftest.$ac_ext <<_ACEOF
15264/* end confdefs.h. */
15265
15266int
15267main ()
15268{
15269
15270 ;
15271 return 0;
15272}
15273_ACEOF
15274rm -f conftest.$ac_objext conftest$ac_exeext
15275if { (ac_try="$ac_link"
15276case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15279esac
15280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_link") 2>conftest.er1
15282 ac_status=$?
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015287 (exit $ac_status); } &&
15288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15289 { (case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292esac
15293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_try") 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try='test -s conftest$ac_exeext'
15299 { (case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302esac
15303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
15305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015308
15309aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15310}'`
15311# Check for a 64-bit object if we didn't find anything.
15312if 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; }
15313}'`; fi
15314else
15315 echo "$as_me: failed program was:" >&5
15316sed 's/^/| /' conftest.$ac_ext >&5
15317
15318
15319fi
15320
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015321rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015322 conftest$ac_exeext conftest.$ac_ext
15323if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15324
15325 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15326 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"
15327 else
15328 if test "$host_cpu" = ia64; then
15329 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15330 allow_undefined_flag="-z nodefs"
15331 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"
15332 else
15333 # Determine the default libpath from the value encoded in an empty executable.
15334 cat >conftest.$ac_ext <<_ACEOF
15335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
15339/* end confdefs.h. */
15340
15341int
15342main ()
15343{
15344
15345 ;
15346 return 0;
15347}
15348_ACEOF
15349rm -f conftest.$ac_objext conftest$ac_exeext
15350if { (ac_try="$ac_link"
15351case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354esac
15355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_link") 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015362 (exit $ac_status); } &&
15363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364 { (case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367esac
15368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_try") 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest$ac_exeext'
15374 { (case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15377esac
15378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_try") 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015383
15384aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15385}'`
15386# Check for a 64-bit object if we didn't find anything.
15387if 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; }
15388}'`; fi
15389else
15390 echo "$as_me: failed program was:" >&5
15391sed 's/^/| /' conftest.$ac_ext >&5
15392
15393
15394fi
15395
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000015396rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015397 conftest$ac_exeext conftest.$ac_ext
15398if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15399
15400 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15401 # Warning - without using the other run time loading flags,
15402 # -berok will link without error, but may produce a broken library.
15403 no_undefined_flag=' ${wl}-bernotok'
15404 allow_undefined_flag=' ${wl}-berok'
15405 # Exported symbols can be pulled into shared objects from archives
15406 whole_archive_flag_spec='$convenience'
15407 archive_cmds_need_lc=yes
15408 # This is similar to how AIX traditionally builds its shared libraries.
15409 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'
15410 fi
15411 fi
15412 ;;
15413
15414 amigaos*)
15415 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)'
15416 hardcode_libdir_flag_spec='-L$libdir'
15417 hardcode_minus_L=yes
15418 # see comment about different semantics on the GNU ld section
15419 ld_shlibs=no
15420 ;;
15421
15422 bsdi[45]*)
15423 export_dynamic_flag_spec=-rdynamic
15424 ;;
15425
15426 cygwin* | mingw* | pw32*)
15427 # When not using gcc, we currently assume that we are using
15428 # Microsoft Visual C++.
15429 # hardcode_libdir_flag_spec is actually meaningless, as there is
15430 # no search path for DLLs.
15431 hardcode_libdir_flag_spec=' '
15432 allow_undefined_flag=unsupported
15433 # Tell ltmain to make .lib files, not .a files.
15434 libext=lib
15435 # Tell ltmain to make .dll files, not .so files.
15436 shrext_cmds=".dll"
15437 # FIXME: Setting linknames here is a bad hack.
15438 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15439 # The linker will automatically build a .lib file if we build a DLL.
15440 old_archive_From_new_cmds='true'
15441 # FIXME: Should let the user specify the lib program.
15442 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15443 fix_srcfile_path='`cygpath -w "$srcfile"`'
15444 enable_shared_with_static_runtimes=yes
15445 ;;
15446
15447 darwin* | rhapsody*)
15448 case $host_os in
15449 rhapsody* | darwin1.[012])
15450 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15451 ;;
15452 *) # Darwin 1.3 on
15453 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15454 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15455 else
15456 case ${MACOSX_DEPLOYMENT_TARGET} in
15457 10.[012])
15458 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15459 ;;
15460 10.*)
15461 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15462 ;;
15463 esac
15464 fi
15465 ;;
15466 esac
15467 archive_cmds_need_lc=no
15468 hardcode_direct=no
15469 hardcode_automatic=yes
15470 hardcode_shlibpath_var=unsupported
15471 whole_archive_flag_spec=''
15472 link_all_deplibs=yes
15473 if test "$GCC" = yes ; then
15474 output_verbose_link_cmd='echo'
15475 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15476 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15477 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15478 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}'
15479 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}'
15480 else
15481 case $cc_basename in
15482 xlc*)
15483 output_verbose_link_cmd='echo'
15484 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15485 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15486 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15487 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}'
15488 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}'
15489 ;;
15490 *)
15491 ld_shlibs=no
15492 ;;
15493 esac
15494 fi
15495 ;;
15496
15497 dgux*)
15498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15499 hardcode_libdir_flag_spec='-L$libdir'
15500 hardcode_shlibpath_var=no
15501 ;;
15502
15503 freebsd1*)
15504 ld_shlibs=no
15505 ;;
15506
15507 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15508 # support. Future versions do this automatically, but an explicit c++rt0.o
15509 # does not break anything, and helps significantly (at the cost of a little
15510 # extra space).
15511 freebsd2.2*)
15512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15513 hardcode_libdir_flag_spec='-R$libdir'
15514 hardcode_direct=yes
15515 hardcode_shlibpath_var=no
15516 ;;
15517
15518 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15519 freebsd2*)
15520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct=yes
15522 hardcode_minus_L=yes
15523 hardcode_shlibpath_var=no
15524 ;;
15525
15526 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15527 freebsd* | kfreebsd*-gnu | dragonfly*)
15528 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15529 hardcode_libdir_flag_spec='-R$libdir'
15530 hardcode_direct=yes
15531 hardcode_shlibpath_var=no
15532 ;;
15533
15534 hpux9*)
15535 if test "$GCC" = yes; then
15536 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'
15537 else
15538 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'
15539 fi
15540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15541 hardcode_libdir_separator=:
15542 hardcode_direct=yes
15543
15544 # hardcode_minus_L: Not really in the search PATH,
15545 # but as the default location of the library.
15546 hardcode_minus_L=yes
15547 export_dynamic_flag_spec='${wl}-E'
15548 ;;
15549
15550 hpux10*)
15551 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15552 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15553 else
15554 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15555 fi
15556 if test "$with_gnu_ld" = no; then
15557 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15558 hardcode_libdir_separator=:
15559
15560 hardcode_direct=yes
15561 export_dynamic_flag_spec='${wl}-E'
15562
15563 # hardcode_minus_L: Not really in the search PATH,
15564 # but as the default location of the library.
15565 hardcode_minus_L=yes
15566 fi
15567 ;;
15568
15569 hpux11*)
15570 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15571 case $host_cpu in
15572 hppa*64*)
15573 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15574 ;;
15575 ia64*)
15576 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15577 ;;
15578 *)
15579 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15580 ;;
15581 esac
15582 else
15583 case $host_cpu in
15584 hppa*64*)
15585 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 ;;
15587 ia64*)
15588 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15589 ;;
15590 *)
15591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15592 ;;
15593 esac
15594 fi
15595 if test "$with_gnu_ld" = no; then
15596 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15597 hardcode_libdir_separator=:
15598
15599 case $host_cpu in
15600 hppa*64*|ia64*)
15601 hardcode_libdir_flag_spec_ld='+b $libdir'
15602 hardcode_direct=no
15603 hardcode_shlibpath_var=no
15604 ;;
15605 *)
15606 hardcode_direct=yes
15607 export_dynamic_flag_spec='${wl}-E'
15608
15609 # hardcode_minus_L: Not really in the search PATH,
15610 # but as the default location of the library.
15611 hardcode_minus_L=yes
15612 ;;
15613 esac
15614 fi
15615 ;;
15616
15617 irix5* | irix6* | nonstopux*)
15618 if test "$GCC" = yes; then
15619 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'
15620 else
15621 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'
15622 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15623 fi
15624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15625 hardcode_libdir_separator=:
15626 link_all_deplibs=yes
15627 ;;
15628
15629 netbsd*)
15630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15632 else
15633 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15634 fi
15635 hardcode_libdir_flag_spec='-R$libdir'
15636 hardcode_direct=yes
15637 hardcode_shlibpath_var=no
15638 ;;
15639
15640 newsos6)
15641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15642 hardcode_direct=yes
15643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15644 hardcode_libdir_separator=:
15645 hardcode_shlibpath_var=no
15646 ;;
15647
15648 openbsd*)
15649 hardcode_direct=yes
15650 hardcode_shlibpath_var=no
15651 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15653 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15654 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15655 export_dynamic_flag_spec='${wl}-E'
15656 else
15657 case $host_os in
15658 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15660 hardcode_libdir_flag_spec='-R$libdir'
15661 ;;
15662 *)
15663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15665 ;;
15666 esac
15667 fi
15668 ;;
15669
15670 os2*)
15671 hardcode_libdir_flag_spec='-L$libdir'
15672 hardcode_minus_L=yes
15673 allow_undefined_flag=unsupported
15674 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'
15675 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15676 ;;
15677
15678 osf3*)
15679 if test "$GCC" = yes; then
15680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15681 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'
15682 else
15683 allow_undefined_flag=' -expect_unresolved \*'
15684 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'
15685 fi
15686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15687 hardcode_libdir_separator=:
15688 ;;
15689
15690 osf4* | osf5*) # as osf3* with the addition of -msym flag
15691 if test "$GCC" = yes; then
15692 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15693 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'
15694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15695 else
15696 allow_undefined_flag=' -expect_unresolved \*'
15697 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'
15698 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15699 $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'
15700
15701 # Both c and cxx compiler support -rpath directly
15702 hardcode_libdir_flag_spec='-rpath $libdir'
15703 fi
15704 hardcode_libdir_separator=:
15705 ;;
15706
15707 solaris*)
15708 no_undefined_flag=' -z text'
15709 if test "$GCC" = yes; then
15710 wlarc='${wl}'
15711 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15712 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15713 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15714 else
15715 wlarc=''
15716 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15717 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15718 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15719 fi
15720 hardcode_libdir_flag_spec='-R$libdir'
15721 hardcode_shlibpath_var=no
15722 case $host_os in
15723 solaris2.[0-5] | solaris2.[0-5].*) ;;
15724 *)
15725 # The compiler driver will combine linker options so we
15726 # cannot just pass the convience library names through
15727 # without $wl, iff we do not link with $LD.
15728 # Luckily, gcc supports the same syntax we need for Sun Studio.
15729 # Supported since Solaris 2.6 (maybe 2.5.1?)
15730 case $wlarc in
15731 '')
15732 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15733 *)
15734 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' ;;
15735 esac ;;
15736 esac
15737 link_all_deplibs=yes
15738 ;;
15739
15740 sunos4*)
15741 if test "x$host_vendor" = xsequent; then
15742 # Use $CC to link under sequent, because it throws in some extra .o
15743 # files that make .init and .fini sections work.
15744 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15745 else
15746 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15747 fi
15748 hardcode_libdir_flag_spec='-L$libdir'
15749 hardcode_direct=yes
15750 hardcode_minus_L=yes
15751 hardcode_shlibpath_var=no
15752 ;;
15753
15754 sysv4)
15755 case $host_vendor in
15756 sni)
15757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15758 hardcode_direct=yes # is this really true???
15759 ;;
15760 siemens)
15761 ## LD is ld it makes a PLAMLIB
15762 ## CC just makes a GrossModule.
15763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15764 reload_cmds='$CC -r -o $output$reload_objs'
15765 hardcode_direct=no
15766 ;;
15767 motorola)
15768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15769 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15770 ;;
15771 esac
15772 runpath_var='LD_RUN_PATH'
15773 hardcode_shlibpath_var=no
15774 ;;
15775
15776 sysv4.3*)
15777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778 hardcode_shlibpath_var=no
15779 export_dynamic_flag_spec='-Bexport'
15780 ;;
15781
15782 sysv4*MP*)
15783 if test -d /usr/nec; then
15784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15785 hardcode_shlibpath_var=no
15786 runpath_var=LD_RUN_PATH
15787 hardcode_runpath_var=yes
15788 ld_shlibs=yes
15789 fi
15790 ;;
15791
15792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15793 no_undefined_flag='${wl}-z,text'
15794 archive_cmds_need_lc=no
15795 hardcode_shlibpath_var=no
15796 runpath_var='LD_RUN_PATH'
15797
15798 if test "$GCC" = yes; then
15799 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15800 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15801 else
15802 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15803 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15804 fi
15805 ;;
15806
15807 sysv5* | sco3.2v5* | sco5v6*)
15808 # Note: We can NOT use -z defs as we might desire, because we do not
15809 # link with -lc, and that would cause any symbols used from libc to
15810 # always be unresolved, which means just about no library would
15811 # ever link correctly. If we're not using GNU ld we use -z text
15812 # though, which does catch some bad symbols but isn't as heavy-handed
15813 # as -z defs.
15814 no_undefined_flag='${wl}-z,text'
15815 allow_undefined_flag='${wl}-z,nodefs'
15816 archive_cmds_need_lc=no
15817 hardcode_shlibpath_var=no
15818 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15819 hardcode_libdir_separator=':'
15820 link_all_deplibs=yes
15821 export_dynamic_flag_spec='${wl}-Bexport'
15822 runpath_var='LD_RUN_PATH'
15823
15824 if test "$GCC" = yes; then
15825 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15826 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15827 else
15828 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15829 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15830 fi
15831 ;;
15832
15833 uts4*)
15834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15835 hardcode_libdir_flag_spec='-L$libdir'
15836 hardcode_shlibpath_var=no
15837 ;;
15838
15839 *)
15840 ld_shlibs=no
15841 ;;
15842 esac
15843 fi
15844
15845{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15846echo "${ECHO_T}$ld_shlibs" >&6; }
15847test "$ld_shlibs" = no && can_build_shared=no
15848
15849#
15850# Do we need to explicitly link libc?
15851#
15852case "x$archive_cmds_need_lc" in
15853x|xyes)
15854 # Assume -lc should be added
15855 archive_cmds_need_lc=yes
15856
15857 if test "$enable_shared" = yes && test "$GCC" = yes; then
15858 case $archive_cmds in
15859 *'~'*)
15860 # FIXME: we may have to deal with multi-command sequences.
15861 ;;
15862 '$CC '*)
15863 # Test whether the compiler implicitly links with -lc since on some
15864 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15865 # to ld, don't add -lc before -lgcc.
15866 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15867echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15868 $rm conftest*
15869 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15870
15871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15872 (eval $ac_compile) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } 2>conftest.err; then
15876 soname=conftest
15877 lib=conftest
15878 libobjs=conftest.$ac_objext
15879 deplibs=
15880 wl=$lt_prog_compiler_wl
15881 pic_flag=$lt_prog_compiler_pic
15882 compiler_flags=-v
15883 linker_flags=-v
15884 verstring=
15885 output_objdir=.
15886 libname=conftest
15887 lt_save_allow_undefined_flag=$allow_undefined_flag
15888 allow_undefined_flag=
15889 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15890 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }
15894 then
15895 archive_cmds_need_lc=no
15896 else
15897 archive_cmds_need_lc=yes
15898 fi
15899 allow_undefined_flag=$lt_save_allow_undefined_flag
15900 else
15901 cat conftest.err 1>&5
15902 fi
15903 $rm conftest*
15904 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15905echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15906 ;;
15907 esac
15908 fi
15909 ;;
15910esac
15911
15912{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15913echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15914library_names_spec=
15915libname_spec='lib$name'
15916soname_spec=
15917shrext_cmds=".so"
15918postinstall_cmds=
15919postuninstall_cmds=
15920finish_cmds=
15921finish_eval=
15922shlibpath_var=
15923shlibpath_overrides_runpath=unknown
15924version_type=none
15925dynamic_linker="$host_os ld.so"
15926sys_lib_dlsearch_path_spec="/lib /usr/lib"
15927if test "$GCC" = yes; then
15928 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15929 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15930 # if the path contains ";" then we assume it to be the separator
15931 # otherwise default to the standard path separator (i.e. ":") - it is
15932 # assumed that no part of a normal pathname contains ";" but that should
15933 # okay in the real world where ";" in dirpaths is itself problematic.
15934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15935 else
15936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15937 fi
15938else
15939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15940fi
15941need_lib_prefix=unknown
15942hardcode_into_libs=no
15943
15944# when you set need_version to no, make sure it does not cause -set_version
15945# flags to be left without arguments
15946need_version=unknown
15947
15948case $host_os in
15949aix3*)
15950 version_type=linux
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15952 shlibpath_var=LIBPATH
15953
15954 # AIX 3 has no versioning support, so we append a major version to the name.
15955 soname_spec='${libname}${release}${shared_ext}$major'
15956 ;;
15957
15958aix4* | aix5*)
15959 version_type=linux
15960 need_lib_prefix=no
15961 need_version=no
15962 hardcode_into_libs=yes
15963 if test "$host_cpu" = ia64; then
15964 # AIX 5 supports IA64
15965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15966 shlibpath_var=LD_LIBRARY_PATH
15967 else
15968 # With GCC up to 2.95.x, collect2 would create an import file
15969 # for dependence libraries. The import file would start with
15970 # the line `#! .'. This would cause the generated library to
15971 # depend on `.', always an invalid library. This was fixed in
15972 # development snapshots of GCC prior to 3.0.
15973 case $host_os in
15974 aix4 | aix4.[01] | aix4.[01].*)
15975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15976 echo ' yes '
15977 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15978 :
15979 else
15980 can_build_shared=no
15981 fi
15982 ;;
15983 esac
15984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15985 # soname into executable. Probably we can add versioning support to
15986 # collect2, so additional links can be useful in future.
15987 if test "$aix_use_runtimelinking" = yes; then
15988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15989 # instead of lib<name>.a to let people know that these are not
15990 # typical AIX shared libraries.
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992 else
15993 # We preserve .a as extension for shared libraries through AIX4.2
15994 # and later when we are not doing run time linking.
15995 library_names_spec='${libname}${release}.a $libname.a'
15996 soname_spec='${libname}${release}${shared_ext}$major'
15997 fi
15998 shlibpath_var=LIBPATH
15999 fi
16000 ;;
16001
16002amigaos*)
16003 library_names_spec='$libname.ixlibrary $libname.a'
16004 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16005 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'
16006 ;;
16007
16008beos*)
16009 library_names_spec='${libname}${shared_ext}'
16010 dynamic_linker="$host_os ld.so"
16011 shlibpath_var=LIBRARY_PATH
16012 ;;
16013
16014bsdi[45]*)
16015 version_type=linux
16016 need_version=no
16017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16018 soname_spec='${libname}${release}${shared_ext}$major'
16019 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16023 # the default ld.so.conf also contains /usr/contrib/lib and
16024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16025 # libtool to hard-code these into programs
16026 ;;
16027
16028cygwin* | mingw* | pw32*)
16029 version_type=windows
16030 shrext_cmds=".dll"
16031 need_version=no
16032 need_lib_prefix=no
16033
16034 case $GCC,$host_os in
16035 yes,cygwin* | yes,mingw* | yes,pw32*)
16036 library_names_spec='$libname.dll.a'
16037 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16038 postinstall_cmds='base_file=`basename \${file}`~
16039 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16040 dldir=$destdir/`dirname \$dlpath`~
16041 test -d \$dldir || mkdir -p \$dldir~
16042 $install_prog $dir/$dlname \$dldir/$dlname~
16043 chmod a+x \$dldir/$dlname'
16044 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16045 dlpath=$dir/\$dldll~
16046 $rm \$dlpath'
16047 shlibpath_overrides_runpath=yes
16048
16049 case $host_os in
16050 cygwin*)
16051 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16052 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16053 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16054 ;;
16055 mingw*)
16056 # MinGW DLLs use traditional 'lib' prefix
16057 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16059 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16060 # It is most probably a Windows format PATH printed by
16061 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16062 # path with ; separators, and with drive letters. We can handle the
16063 # drive letters (cygwin fileutils understands them), so leave them,
16064 # especially as we might pass files found there to a mingw objdump,
16065 # which wouldn't understand a cygwinified path. Ahh.
16066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16067 else
16068 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16069 fi
16070 ;;
16071 pw32*)
16072 # pw32 DLLs use 'pw' prefix rather than 'lib'
16073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16074 ;;
16075 esac
16076 ;;
16077
16078 *)
16079 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16080 ;;
16081 esac
16082 dynamic_linker='Win32 ld.exe'
16083 # FIXME: first we should search . and the directory the executable is in
16084 shlibpath_var=PATH
16085 ;;
16086
16087darwin* | rhapsody*)
16088 dynamic_linker="$host_os dyld"
16089 version_type=darwin
16090 need_lib_prefix=no
16091 need_version=no
16092 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16093 soname_spec='${libname}${release}${major}$shared_ext'
16094 shlibpath_overrides_runpath=yes
16095 shlibpath_var=DYLD_LIBRARY_PATH
16096 shrext_cmds='.dylib'
16097 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16098 if test "$GCC" = yes; then
16099 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"`
16100 else
16101 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16102 fi
16103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16104 ;;
16105
16106dgux*)
16107 version_type=linux
16108 need_lib_prefix=no
16109 need_version=no
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 ;;
16114
16115freebsd1*)
16116 dynamic_linker=no
16117 ;;
16118
16119kfreebsd*-gnu)
16120 version_type=linux
16121 need_lib_prefix=no
16122 need_version=no
16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16124 soname_spec='${libname}${release}${shared_ext}$major'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=no
16127 hardcode_into_libs=yes
16128 dynamic_linker='GNU ld.so'
16129 ;;
16130
16131freebsd* | dragonfly*)
16132 # DragonFly does not have aout. When/if they implement a new
16133 # versioning mechanism, adjust this.
16134 if test -x /usr/bin/objformat; then
16135 objformat=`/usr/bin/objformat`
16136 else
16137 case $host_os in
16138 freebsd[123]*) objformat=aout ;;
16139 *) objformat=elf ;;
16140 esac
16141 fi
16142 version_type=freebsd-$objformat
16143 case $version_type in
16144 freebsd-elf*)
16145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16146 need_version=no
16147 need_lib_prefix=no
16148 ;;
16149 freebsd-*)
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16151 need_version=yes
16152 ;;
16153 esac
16154 shlibpath_var=LD_LIBRARY_PATH
16155 case $host_os in
16156 freebsd2*)
16157 shlibpath_overrides_runpath=yes
16158 ;;
16159 freebsd3.[01]* | freebsdelf3.[01]*)
16160 shlibpath_overrides_runpath=yes
16161 hardcode_into_libs=yes
16162 ;;
16163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16165 shlibpath_overrides_runpath=no
16166 hardcode_into_libs=yes
16167 ;;
16168 freebsd*) # from 4.6 on
16169 shlibpath_overrides_runpath=yes
16170 hardcode_into_libs=yes
16171 ;;
16172 esac
16173 ;;
16174
16175gnu*)
16176 version_type=linux
16177 need_lib_prefix=no
16178 need_version=no
16179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16180 soname_spec='${libname}${release}${shared_ext}$major'
16181 shlibpath_var=LD_LIBRARY_PATH
16182 hardcode_into_libs=yes
16183 ;;
16184
16185hpux9* | hpux10* | hpux11*)
16186 # Give a soname corresponding to the major version so that dld.sl refuses to
16187 # link against other versions.
16188 version_type=sunos
16189 need_lib_prefix=no
16190 need_version=no
16191 case $host_cpu in
16192 ia64*)
16193 shrext_cmds='.so'
16194 hardcode_into_libs=yes
16195 dynamic_linker="$host_os dld.so"
16196 shlibpath_var=LD_LIBRARY_PATH
16197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199 soname_spec='${libname}${release}${shared_ext}$major'
16200 if test "X$HPUX_IA64_MODE" = X32; then
16201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16202 else
16203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16204 fi
16205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16206 ;;
16207 hppa*64*)
16208 shrext_cmds='.sl'
16209 hardcode_into_libs=yes
16210 dynamic_linker="$host_os dld.sl"
16211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16217 ;;
16218 *)
16219 shrext_cmds='.sl'
16220 dynamic_linker="$host_os dld.sl"
16221 shlibpath_var=SHLIB_PATH
16222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 ;;
16226 esac
16227 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16228 postinstall_cmds='chmod 555 $lib'
16229 ;;
16230
16231interix3*)
16232 version_type=linux
16233 need_lib_prefix=no
16234 need_version=no
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16238 shlibpath_var=LD_LIBRARY_PATH
16239 shlibpath_overrides_runpath=no
16240 hardcode_into_libs=yes
16241 ;;
16242
16243irix5* | irix6* | nonstopux*)
16244 case $host_os in
16245 nonstopux*) version_type=nonstopux ;;
16246 *)
16247 if test "$lt_cv_prog_gnu_ld" = yes; then
16248 version_type=linux
16249 else
16250 version_type=irix
16251 fi ;;
16252 esac
16253 need_lib_prefix=no
16254 need_version=no
16255 soname_spec='${libname}${release}${shared_ext}$major'
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16257 case $host_os in
16258 irix5* | nonstopux*)
16259 libsuff= shlibsuff=
16260 ;;
16261 *)
16262 case $LD in # libtool.m4 will add one of these switches to LD
16263 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16264 libsuff= shlibsuff= libmagic=32-bit;;
16265 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16266 libsuff=32 shlibsuff=N32 libmagic=N32;;
16267 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16268 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16269 *) libsuff= shlibsuff= libmagic=never-match;;
16270 esac
16271 ;;
16272 esac
16273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16274 shlibpath_overrides_runpath=no
16275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16277 hardcode_into_libs=yes
16278 ;;
16279
16280# No shared lib support for Linux oldld, aout, or coff.
16281linux*oldld* | linux*aout* | linux*coff*)
16282 dynamic_linker=no
16283 ;;
16284
16285# This must be Linux ELF.
16286linux*)
16287 version_type=linux
16288 need_lib_prefix=no
16289 need_version=no
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291 soname_spec='${libname}${release}${shared_ext}$major'
16292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16293 shlibpath_var=LD_LIBRARY_PATH
16294 shlibpath_overrides_runpath=no
16295 # This implies no fast_install, which is unacceptable.
16296 # Some rework will be needed to allow for fast_install
16297 # before this can be enabled.
16298 hardcode_into_libs=yes
16299
16300 # Append ld.so.conf contents to the search path
16301 if test -f /etc/ld.so.conf; then
16302 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' ' '`
16303 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16304 fi
16305
16306 # We used to test for /lib/ld.so.1 and disable shared libraries on
16307 # powerpc, because MkLinux only supported shared libraries with the
16308 # GNU dynamic linker. Since this was broken with cross compilers,
16309 # most powerpc-linux boxes support dynamic linking these days and
16310 # people can always --disable-shared, the test was removed, and we
16311 # assume the GNU/Linux dynamic linker is in use.
16312 dynamic_linker='GNU/Linux ld.so'
16313 ;;
16314
16315knetbsd*-gnu)
16316 version_type=linux
16317 need_lib_prefix=no
16318 need_version=no
16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16320 soname_spec='${libname}${release}${shared_ext}$major'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 shlibpath_overrides_runpath=no
16323 hardcode_into_libs=yes
16324 dynamic_linker='GNU ld.so'
16325 ;;
16326
16327netbsd*)
16328 version_type=sunos
16329 need_lib_prefix=no
16330 need_version=no
16331 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16334 dynamic_linker='NetBSD (a.out) ld.so'
16335 else
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 dynamic_linker='NetBSD ld.elf_so'
16339 fi
16340 shlibpath_var=LD_LIBRARY_PATH
16341 shlibpath_overrides_runpath=yes
16342 hardcode_into_libs=yes
16343 ;;
16344
16345newsos6)
16346 version_type=linux
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 shlibpath_overrides_runpath=yes
16350 ;;
16351
16352nto-qnx*)
16353 version_type=linux
16354 need_lib_prefix=no
16355 need_version=no
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 shlibpath_var=LD_LIBRARY_PATH
16359 shlibpath_overrides_runpath=yes
16360 ;;
16361
16362openbsd*)
16363 version_type=sunos
16364 sys_lib_dlsearch_path_spec="/usr/lib"
16365 need_lib_prefix=no
16366 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16367 case $host_os in
16368 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16369 *) need_version=no ;;
16370 esac
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16373 shlibpath_var=LD_LIBRARY_PATH
16374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16375 case $host_os in
16376 openbsd2.[89] | openbsd2.[89].*)
16377 shlibpath_overrides_runpath=no
16378 ;;
16379 *)
16380 shlibpath_overrides_runpath=yes
16381 ;;
16382 esac
16383 else
16384 shlibpath_overrides_runpath=yes
16385 fi
16386 ;;
16387
16388os2*)
16389 libname_spec='$name'
16390 shrext_cmds=".dll"
16391 need_lib_prefix=no
16392 library_names_spec='$libname${shared_ext} $libname.a'
16393 dynamic_linker='OS/2 ld.exe'
16394 shlibpath_var=LIBPATH
16395 ;;
16396
16397osf3* | osf4* | osf5*)
16398 version_type=osf
16399 need_lib_prefix=no
16400 need_version=no
16401 soname_spec='${libname}${release}${shared_ext}$major'
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 shlibpath_var=LD_LIBRARY_PATH
16404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16406 ;;
16407
16408solaris*)
16409 version_type=linux
16410 need_lib_prefix=no
16411 need_version=no
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413 soname_spec='${libname}${release}${shared_ext}$major'
16414 shlibpath_var=LD_LIBRARY_PATH
16415 shlibpath_overrides_runpath=yes
16416 hardcode_into_libs=yes
16417 # ldd complains unless libraries are executable
16418 postinstall_cmds='chmod +x $lib'
16419 ;;
16420
16421sunos4*)
16422 version_type=sunos
16423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16424 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 shlibpath_overrides_runpath=yes
16427 if test "$with_gnu_ld" = yes; then
16428 need_lib_prefix=no
16429 fi
16430 need_version=yes
16431 ;;
16432
16433sysv4 | sysv4.3*)
16434 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
16438 case $host_vendor in
16439 sni)
16440 shlibpath_overrides_runpath=no
16441 need_lib_prefix=no
16442 export_dynamic_flag_spec='${wl}-Blargedynsym'
16443 runpath_var=LD_RUN_PATH
16444 ;;
16445 siemens)
16446 need_lib_prefix=no
16447 ;;
16448 motorola)
16449 need_lib_prefix=no
16450 need_version=no
16451 shlibpath_overrides_runpath=no
16452 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16453 ;;
16454 esac
16455 ;;
16456
16457sysv4*MP*)
16458 if test -d /usr/nec ;then
16459 version_type=linux
16460 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16461 soname_spec='$libname${shared_ext}.$major'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 fi
16464 ;;
16465
16466sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16467 version_type=freebsd-elf
16468 need_lib_prefix=no
16469 need_version=no
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16471 soname_spec='${libname}${release}${shared_ext}$major'
16472 shlibpath_var=LD_LIBRARY_PATH
16473 hardcode_into_libs=yes
16474 if test "$with_gnu_ld" = yes; then
16475 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16476 shlibpath_overrides_runpath=no
16477 else
16478 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16479 shlibpath_overrides_runpath=yes
16480 case $host_os in
16481 sco3.2v5*)
16482 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16483 ;;
16484 esac
16485 fi
16486 sys_lib_dlsearch_path_spec='/usr/lib'
16487 ;;
16488
16489uts4*)
16490 version_type=linux
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 shlibpath_var=LD_LIBRARY_PATH
16494 ;;
16495
16496*)
16497 dynamic_linker=no
16498 ;;
16499esac
16500{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16501echo "${ECHO_T}$dynamic_linker" >&6; }
16502test "$dynamic_linker" = no && can_build_shared=no
16503
16504variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16505if test "$GCC" = yes; then
16506 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16507fi
16508
16509{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16510echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16511hardcode_action=
16512if test -n "$hardcode_libdir_flag_spec" || \
16513 test -n "$runpath_var" || \
16514 test "X$hardcode_automatic" = "Xyes" ; then
16515
16516 # We can hardcode non-existant directories.
16517 if test "$hardcode_direct" != no &&
16518 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16519 # have to relink, otherwise we might link with an installed library
16520 # when we should be linking with a yet-to-be-installed one
16521 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16522 test "$hardcode_minus_L" != no; then
16523 # Linking always hardcodes the temporary library directory.
16524 hardcode_action=relink
16525 else
16526 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16527 hardcode_action=immediate
16528 fi
16529else
16530 # We cannot hardcode anything, or else we can only hardcode existing
16531 # directories.
16532 hardcode_action=unsupported
16533fi
16534{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16535echo "${ECHO_T}$hardcode_action" >&6; }
16536
16537if test "$hardcode_action" = relink; then
16538 # Fast installation is not supported
16539 enable_fast_install=no
16540elif test "$shlibpath_overrides_runpath" = yes ||
16541 test "$enable_shared" = no; then
16542 # Fast installation is not necessary
16543 enable_fast_install=needless
16544fi
16545
16546striplib=
16547old_striplib=
16548{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16549echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16550if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16551 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16552 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16553 { echo "$as_me:$LINENO: result: yes" >&5
16554echo "${ECHO_T}yes" >&6; }
16555else
16556# FIXME - insert some real tests, host_os isn't really good enough
16557 case $host_os in
16558 darwin*)
16559 if test -n "$STRIP" ; then
16560 striplib="$STRIP -x"
16561 { echo "$as_me:$LINENO: result: yes" >&5
16562echo "${ECHO_T}yes" >&6; }
16563 else
16564 { echo "$as_me:$LINENO: result: no" >&5
16565echo "${ECHO_T}no" >&6; }
16566fi
16567 ;;
16568 *)
16569 { echo "$as_me:$LINENO: result: no" >&5
16570echo "${ECHO_T}no" >&6; }
16571 ;;
16572 esac
16573fi
16574
16575if test "x$enable_dlopen" != xyes; then
16576 enable_dlopen=unknown
16577 enable_dlopen_self=unknown
16578 enable_dlopen_self_static=unknown
16579else
16580 lt_cv_dlopen=no
16581 lt_cv_dlopen_libs=
16582
16583 case $host_os in
16584 beos*)
16585 lt_cv_dlopen="load_add_on"
16586 lt_cv_dlopen_libs=
16587 lt_cv_dlopen_self=yes
16588 ;;
16589
16590 mingw* | pw32*)
16591 lt_cv_dlopen="LoadLibrary"
16592 lt_cv_dlopen_libs=
16593 ;;
16594
16595 cygwin*)
16596 lt_cv_dlopen="dlopen"
16597 lt_cv_dlopen_libs=
16598 ;;
16599
16600 darwin*)
16601 # if libdl is installed we need to link against it
16602 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16603echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16604if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16606else
16607 ac_check_lib_save_LIBS=$LIBS
16608LIBS="-ldl $LIBS"
16609cat >conftest.$ac_ext <<_ACEOF
16610/* confdefs.h. */
16611_ACEOF
16612cat confdefs.h >>conftest.$ac_ext
16613cat >>conftest.$ac_ext <<_ACEOF
16614/* end confdefs.h. */
16615
16616/* Override any GCC internal prototype to avoid an error.
16617 Use char because int might match the return type of a GCC
16618 builtin and then its argument prototype would still apply. */
16619#ifdef __cplusplus
16620extern "C"
16621#endif
16622char dlopen ();
16623int
16624main ()
16625{
16626return dlopen ();
16627 ;
16628 return 0;
16629}
16630_ACEOF
16631rm -f conftest.$ac_objext conftest$ac_exeext
16632if { (ac_try="$ac_link"
16633case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636esac
16637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_link") 2>conftest.er1
16639 ac_status=$?
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000016644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649esac
16650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest$ac_exeext'
16656 { (case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16659esac
16660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016665 ac_cv_lib_dl_dlopen=yes
16666else
16667 echo "$as_me: failed program was:" >&5
16668sed 's/^/| /' conftest.$ac_ext >&5
16669
16670 ac_cv_lib_dl_dlopen=no
16671fi
16672
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000016673rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016674 conftest$ac_exeext conftest.$ac_ext
16675LIBS=$ac_check_lib_save_LIBS
16676fi
16677{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16678echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16679if test $ac_cv_lib_dl_dlopen = yes; then
16680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16681else
16682
16683 lt_cv_dlopen="dyld"
16684 lt_cv_dlopen_libs=
16685 lt_cv_dlopen_self=yes
16686
16687fi
16688
16689 ;;
16690
16691 *)
16692 { echo "$as_me:$LINENO: checking for shl_load" >&5
16693echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16694if test "${ac_cv_func_shl_load+set}" = set; then
16695 echo $ECHO_N "(cached) $ECHO_C" >&6
16696else
16697 cat >conftest.$ac_ext <<_ACEOF
16698/* confdefs.h. */
16699_ACEOF
16700cat confdefs.h >>conftest.$ac_ext
16701cat >>conftest.$ac_ext <<_ACEOF
16702/* end confdefs.h. */
16703/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16705#define shl_load innocuous_shl_load
16706
16707/* System header to define __stub macros and hopefully few prototypes,
16708 which can conflict with char shl_load (); below.
16709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16710 <limits.h> exists even on freestanding compilers. */
16711
16712#ifdef __STDC__
16713# include <limits.h>
16714#else
16715# include <assert.h>
16716#endif
16717
16718#undef shl_load
16719
16720/* Override any GCC internal prototype to avoid an error.
16721 Use char because int might match the return type of a GCC
16722 builtin and then its argument prototype would still apply. */
16723#ifdef __cplusplus
16724extern "C"
16725#endif
16726char shl_load ();
16727/* The GNU C library defines this for functions which it implements
16728 to always fail with ENOSYS. Some functions are actually named
16729 something starting with __ and the normal name is an alias. */
16730#if defined __stub_shl_load || defined __stub___shl_load
16731choke me
16732#endif
16733
16734int
16735main ()
16736{
16737return shl_load ();
16738 ;
16739 return 0;
16740}
16741_ACEOF
16742rm -f conftest.$ac_objext conftest$ac_exeext
16743if { (ac_try="$ac_link"
16744case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747esac
16748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_link") 2>conftest.er1
16750 ac_status=$?
16751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000016755 (exit $ac_status); } &&
16756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16757 { (case "(($ac_try" in
16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759 *) ac_try_echo=$ac_try;;
16760esac
16761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762 (eval "$ac_try") 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; } &&
16766 { ac_try='test -s conftest$ac_exeext'
16767 { (case "(($ac_try" in
16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16770esac
16771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_try") 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016776 ac_cv_func_shl_load=yes
16777else
16778 echo "$as_me: failed program was:" >&5
16779sed 's/^/| /' conftest.$ac_ext >&5
16780
16781 ac_cv_func_shl_load=no
16782fi
16783
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000016784rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016785 conftest$ac_exeext conftest.$ac_ext
16786fi
16787{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16788echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16789if test $ac_cv_func_shl_load = yes; then
16790 lt_cv_dlopen="shl_load"
16791else
16792 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16793echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16794if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16796else
16797 ac_check_lib_save_LIBS=$LIBS
16798LIBS="-ldld $LIBS"
16799cat >conftest.$ac_ext <<_ACEOF
16800/* confdefs.h. */
16801_ACEOF
16802cat confdefs.h >>conftest.$ac_ext
16803cat >>conftest.$ac_ext <<_ACEOF
16804/* end confdefs.h. */
16805
16806/* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
16809#ifdef __cplusplus
16810extern "C"
16811#endif
16812char shl_load ();
16813int
16814main ()
16815{
16816return shl_load ();
16817 ;
16818 return 0;
16819}
16820_ACEOF
16821rm -f conftest.$ac_objext conftest$ac_exeext
16822if { (ac_try="$ac_link"
16823case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826esac
16827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_link") 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000016834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16836 { (case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839esac
16840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_try") 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try='test -s conftest$ac_exeext'
16846 { (case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16849esac
16850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_try") 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016855 ac_cv_lib_dld_shl_load=yes
16856else
16857 echo "$as_me: failed program was:" >&5
16858sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 ac_cv_lib_dld_shl_load=no
16861fi
16862
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000016863rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016864 conftest$ac_exeext conftest.$ac_ext
16865LIBS=$ac_check_lib_save_LIBS
16866fi
16867{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16868echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16869if test $ac_cv_lib_dld_shl_load = yes; then
16870 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16871else
16872 { echo "$as_me:$LINENO: checking for dlopen" >&5
16873echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16874if test "${ac_cv_func_dlopen+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16876else
16877 cat >conftest.$ac_ext <<_ACEOF
16878/* confdefs.h. */
16879_ACEOF
16880cat confdefs.h >>conftest.$ac_ext
16881cat >>conftest.$ac_ext <<_ACEOF
16882/* end confdefs.h. */
16883/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16885#define dlopen innocuous_dlopen
16886
16887/* System header to define __stub macros and hopefully few prototypes,
16888 which can conflict with char dlopen (); below.
16889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16890 <limits.h> exists even on freestanding compilers. */
16891
16892#ifdef __STDC__
16893# include <limits.h>
16894#else
16895# include <assert.h>
16896#endif
16897
16898#undef dlopen
16899
16900/* Override any GCC internal prototype to avoid an error.
16901 Use char because int might match the return type of a GCC
16902 builtin and then its argument prototype would still apply. */
16903#ifdef __cplusplus
16904extern "C"
16905#endif
16906char dlopen ();
16907/* The GNU C library defines this for functions which it implements
16908 to always fail with ENOSYS. Some functions are actually named
16909 something starting with __ and the normal name is an alias. */
16910#if defined __stub_dlopen || defined __stub___dlopen
16911choke me
16912#endif
16913
16914int
16915main ()
16916{
16917return dlopen ();
16918 ;
16919 return 0;
16920}
16921_ACEOF
16922rm -f conftest.$ac_objext conftest$ac_exeext
16923if { (ac_try="$ac_link"
16924case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16927esac
16928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_link") 2>conftest.er1
16930 ac_status=$?
16931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000016935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937 { (case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16940esac
16941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_try") 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; } &&
16946 { ac_try='test -s conftest$ac_exeext'
16947 { (case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950esac
16951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_try") 2>&5
16953 ac_status=$?
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016956 ac_cv_func_dlopen=yes
16957else
16958 echo "$as_me: failed program was:" >&5
16959sed 's/^/| /' conftest.$ac_ext >&5
16960
16961 ac_cv_func_dlopen=no
16962fi
16963
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000016964rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016965 conftest$ac_exeext conftest.$ac_ext
16966fi
16967{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16968echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16969if test $ac_cv_func_dlopen = yes; then
16970 lt_cv_dlopen="dlopen"
16971else
16972 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16973echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16974if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16976else
16977 ac_check_lib_save_LIBS=$LIBS
16978LIBS="-ldl $LIBS"
16979cat >conftest.$ac_ext <<_ACEOF
16980/* confdefs.h. */
16981_ACEOF
16982cat confdefs.h >>conftest.$ac_ext
16983cat >>conftest.$ac_ext <<_ACEOF
16984/* end confdefs.h. */
16985
16986/* Override any GCC internal prototype to avoid an error.
16987 Use char because int might match the return type of a GCC
16988 builtin and then its argument prototype would still apply. */
16989#ifdef __cplusplus
16990extern "C"
16991#endif
16992char dlopen ();
16993int
16994main ()
16995{
16996return dlopen ();
16997 ;
16998 return 0;
16999}
17000_ACEOF
17001rm -f conftest.$ac_objext conftest$ac_exeext
17002if { (ac_try="$ac_link"
17003case "(($ac_try" in
17004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17005 *) ac_try_echo=$ac_try;;
17006esac
17007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17008 (eval "$ac_link") 2>conftest.er1
17009 ac_status=$?
17010 grep -v '^ *+' conftest.er1 >conftest.err
17011 rm -f conftest.er1
17012 cat conftest.err >&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017014 (exit $ac_status); } &&
17015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17016 { (case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17019esac
17020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021 (eval "$ac_try") 2>&5
17022 ac_status=$?
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028 *) ac_try_echo=$ac_try;;
17029esac
17030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017035 ac_cv_lib_dl_dlopen=yes
17036else
17037 echo "$as_me: failed program was:" >&5
17038sed 's/^/| /' conftest.$ac_ext >&5
17039
17040 ac_cv_lib_dl_dlopen=no
17041fi
17042
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017043rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017044 conftest$ac_exeext conftest.$ac_ext
17045LIBS=$ac_check_lib_save_LIBS
17046fi
17047{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17048echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17049if test $ac_cv_lib_dl_dlopen = yes; then
17050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17051else
17052 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17053echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17054if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056else
17057 ac_check_lib_save_LIBS=$LIBS
17058LIBS="-lsvld $LIBS"
17059cat >conftest.$ac_ext <<_ACEOF
17060/* confdefs.h. */
17061_ACEOF
17062cat confdefs.h >>conftest.$ac_ext
17063cat >>conftest.$ac_ext <<_ACEOF
17064/* end confdefs.h. */
17065
17066/* Override any GCC internal prototype to avoid an error.
17067 Use char because int might match the return type of a GCC
17068 builtin and then its argument prototype would still apply. */
17069#ifdef __cplusplus
17070extern "C"
17071#endif
17072char dlopen ();
17073int
17074main ()
17075{
17076return dlopen ();
17077 ;
17078 return 0;
17079}
17080_ACEOF
17081rm -f conftest.$ac_objext conftest$ac_exeext
17082if { (ac_try="$ac_link"
17083case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17086esac
17087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_link") 2>conftest.er1
17089 ac_status=$?
17090 grep -v '^ *+' conftest.er1 >conftest.err
17091 rm -f conftest.er1
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017094 (exit $ac_status); } &&
17095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest$ac_exeext'
17106 { (case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109esac
17110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_try") 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017115 ac_cv_lib_svld_dlopen=yes
17116else
17117 echo "$as_me: failed program was:" >&5
17118sed 's/^/| /' conftest.$ac_ext >&5
17119
17120 ac_cv_lib_svld_dlopen=no
17121fi
17122
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017123rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017124 conftest$ac_exeext conftest.$ac_ext
17125LIBS=$ac_check_lib_save_LIBS
17126fi
17127{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17128echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17129if test $ac_cv_lib_svld_dlopen = yes; then
17130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17131else
17132 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17133echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17134if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17136else
17137 ac_check_lib_save_LIBS=$LIBS
17138LIBS="-ldld $LIBS"
17139cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
17145
17146/* Override any GCC internal prototype to avoid an error.
17147 Use char because int might match the return type of a GCC
17148 builtin and then its argument prototype would still apply. */
17149#ifdef __cplusplus
17150extern "C"
17151#endif
17152char dld_link ();
17153int
17154main ()
17155{
17156return dld_link ();
17157 ;
17158 return 0;
17159}
17160_ACEOF
17161rm -f conftest.$ac_objext conftest$ac_exeext
17162if { (ac_try="$ac_link"
17163case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17166esac
17167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_link") 2>conftest.er1
17169 ac_status=$?
17170 grep -v '^ *+' conftest.er1 >conftest.err
17171 rm -f conftest.er1
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017174 (exit $ac_status); } &&
17175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17176 { (case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179esac
17180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17181 (eval "$ac_try") 2>&5
17182 ac_status=$?
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; } &&
17185 { ac_try='test -s conftest$ac_exeext'
17186 { (case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17189esac
17190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_try") 2>&5
17192 ac_status=$?
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017195 ac_cv_lib_dld_dld_link=yes
17196else
17197 echo "$as_me: failed program was:" >&5
17198sed 's/^/| /' conftest.$ac_ext >&5
17199
17200 ac_cv_lib_dld_dld_link=no
17201fi
17202
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000017203rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017204 conftest$ac_exeext conftest.$ac_ext
17205LIBS=$ac_check_lib_save_LIBS
17206fi
17207{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17208echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17209if test $ac_cv_lib_dld_dld_link = yes; then
17210 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17211fi
17212
17213
17214fi
17215
17216
17217fi
17218
17219
17220fi
17221
17222
17223fi
17224
17225
17226fi
17227
17228 ;;
17229 esac
17230
17231 if test "x$lt_cv_dlopen" != xno; then
17232 enable_dlopen=yes
17233 else
17234 enable_dlopen=no
17235 fi
17236
17237 case $lt_cv_dlopen in
17238 dlopen)
17239 save_CPPFLAGS="$CPPFLAGS"
17240 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17241
17242 save_LDFLAGS="$LDFLAGS"
17243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17244
17245 save_LIBS="$LIBS"
17246 LIBS="$lt_cv_dlopen_libs $LIBS"
17247
17248 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17249echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17250if test "${lt_cv_dlopen_self+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17252else
17253 if test "$cross_compiling" = yes; then :
17254 lt_cv_dlopen_self=cross
17255else
17256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17257 lt_status=$lt_dlunknown
17258 cat > conftest.$ac_ext <<EOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000017259#line 17259 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017260#include "confdefs.h"
17261
17262#if HAVE_DLFCN_H
17263#include <dlfcn.h>
17264#endif
17265
17266#include <stdio.h>
17267
17268#ifdef RTLD_GLOBAL
17269# define LT_DLGLOBAL RTLD_GLOBAL
17270#else
17271# ifdef DL_GLOBAL
17272# define LT_DLGLOBAL DL_GLOBAL
17273# else
17274# define LT_DLGLOBAL 0
17275# endif
17276#endif
17277
17278/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17279 find out it does not work in some platform. */
17280#ifndef LT_DLLAZY_OR_NOW
17281# ifdef RTLD_LAZY
17282# define LT_DLLAZY_OR_NOW RTLD_LAZY
17283# else
17284# ifdef DL_LAZY
17285# define LT_DLLAZY_OR_NOW DL_LAZY
17286# else
17287# ifdef RTLD_NOW
17288# define LT_DLLAZY_OR_NOW RTLD_NOW
17289# else
17290# ifdef DL_NOW
17291# define LT_DLLAZY_OR_NOW DL_NOW
17292# else
17293# define LT_DLLAZY_OR_NOW 0
17294# endif
17295# endif
17296# endif
17297# endif
17298#endif
17299
17300#ifdef __cplusplus
17301extern "C" void exit (int);
17302#endif
17303
17304void fnord() { int i=42;}
17305int main ()
17306{
17307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17308 int status = $lt_dlunknown;
17309
17310 if (self)
17311 {
17312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17313 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17314 /* dlclose (self); */
17315 }
17316 else
17317 puts (dlerror ());
17318
17319 exit (status);
17320}
17321EOF
17322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17323 (eval $ac_link) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17327 (./conftest; exit; ) >&5 2>/dev/null
17328 lt_status=$?
17329 case x$lt_status in
17330 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17331 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17332 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17333 esac
17334 else :
17335 # compilation failed
17336 lt_cv_dlopen_self=no
17337 fi
17338fi
17339rm -fr conftest*
17340
17341
17342fi
17343{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17344echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17345
17346 if test "x$lt_cv_dlopen_self" = xyes; then
17347 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17348 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17349echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17350if test "${lt_cv_dlopen_self_static+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17352else
17353 if test "$cross_compiling" = yes; then :
17354 lt_cv_dlopen_self_static=cross
17355else
17356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17357 lt_status=$lt_dlunknown
17358 cat > conftest.$ac_ext <<EOF
Owen Andersonff0f88e2009-05-18 23:58:51 +000017359#line 17359 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017360#include "confdefs.h"
17361
17362#if HAVE_DLFCN_H
17363#include <dlfcn.h>
17364#endif
17365
17366#include <stdio.h>
17367
17368#ifdef RTLD_GLOBAL
17369# define LT_DLGLOBAL RTLD_GLOBAL
17370#else
17371# ifdef DL_GLOBAL
17372# define LT_DLGLOBAL DL_GLOBAL
17373# else
17374# define LT_DLGLOBAL 0
17375# endif
17376#endif
17377
17378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17379 find out it does not work in some platform. */
17380#ifndef LT_DLLAZY_OR_NOW
17381# ifdef RTLD_LAZY
17382# define LT_DLLAZY_OR_NOW RTLD_LAZY
17383# else
17384# ifdef DL_LAZY
17385# define LT_DLLAZY_OR_NOW DL_LAZY
17386# else
17387# ifdef RTLD_NOW
17388# define LT_DLLAZY_OR_NOW RTLD_NOW
17389# else
17390# ifdef DL_NOW
17391# define LT_DLLAZY_OR_NOW DL_NOW
17392# else
17393# define LT_DLLAZY_OR_NOW 0
17394# endif
17395# endif
17396# endif
17397# endif
17398#endif
17399
17400#ifdef __cplusplus
17401extern "C" void exit (int);
17402#endif
17403
17404void fnord() { int i=42;}
17405int main ()
17406{
17407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17408 int status = $lt_dlunknown;
17409
17410 if (self)
17411 {
17412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17413 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17414 /* dlclose (self); */
17415 }
17416 else
17417 puts (dlerror ());
17418
17419 exit (status);
17420}
17421EOF
17422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17423 (eval $ac_link) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17427 (./conftest; exit; ) >&5 2>/dev/null
17428 lt_status=$?
17429 case x$lt_status in
17430 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17431 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17432 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17433 esac
17434 else :
17435 # compilation failed
17436 lt_cv_dlopen_self_static=no
17437 fi
17438fi
17439rm -fr conftest*
17440
17441
17442fi
17443{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17444echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17445 fi
17446
17447 CPPFLAGS="$save_CPPFLAGS"
17448 LDFLAGS="$save_LDFLAGS"
17449 LIBS="$save_LIBS"
17450 ;;
17451 esac
17452
17453 case $lt_cv_dlopen_self in
17454 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17455 *) enable_dlopen_self=unknown ;;
17456 esac
17457
17458 case $lt_cv_dlopen_self_static in
17459 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17460 *) enable_dlopen_self_static=unknown ;;
17461 esac
17462fi
17463
17464
17465# Report which library types will actually be built
17466{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17467echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17468{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17469echo "${ECHO_T}$can_build_shared" >&6; }
17470
17471{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17472echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17473test "$can_build_shared" = "no" && enable_shared=no
17474
17475# On AIX, shared libraries and static libraries use the same namespace, and
17476# are all built from PIC.
17477case $host_os in
17478aix3*)
17479 test "$enable_shared" = yes && enable_static=no
17480 if test -n "$RANLIB"; then
17481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17482 postinstall_cmds='$RANLIB $lib'
17483 fi
17484 ;;
17485
17486aix4* | aix5*)
17487 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17488 test "$enable_shared" = yes && enable_static=no
17489 fi
17490 ;;
17491esac
17492{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17493echo "${ECHO_T}$enable_shared" >&6; }
17494
17495{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17496echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17497# Make sure either enable_shared or enable_static is yes.
17498test "$enable_shared" = yes || enable_static=yes
17499{ echo "$as_me:$LINENO: result: $enable_static" >&5
17500echo "${ECHO_T}$enable_static" >&6; }
17501
17502# The else clause should only fire when bootstrapping the
17503# libtool distribution, otherwise you forgot to ship ltmain.sh
17504# with your package, and you will get complaints that there are
17505# no rules to generate ltmain.sh.
17506if test -f "$ltmain"; then
17507 # See if we are running on zsh, and set the options which allow our commands through
17508 # without removal of \ escapes.
17509 if test -n "${ZSH_VERSION+set}" ; then
17510 setopt NO_GLOB_SUBST
17511 fi
17512 # Now quote all the things that may contain metacharacters while being
17513 # careful not to overquote the AC_SUBSTed values. We take copies of the
17514 # variables and quote the copies for generation of the libtool script.
17515 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17516 SED SHELL STRIP \
17517 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17518 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17519 deplibs_check_method reload_flag reload_cmds need_locks \
17520 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17521 lt_cv_sys_global_symbol_to_c_name_address \
17522 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17523 old_postinstall_cmds old_postuninstall_cmds \
17524 compiler \
17525 CC \
17526 LD \
17527 lt_prog_compiler_wl \
17528 lt_prog_compiler_pic \
17529 lt_prog_compiler_static \
17530 lt_prog_compiler_no_builtin_flag \
17531 export_dynamic_flag_spec \
17532 thread_safe_flag_spec \
17533 whole_archive_flag_spec \
17534 enable_shared_with_static_runtimes \
17535 old_archive_cmds \
17536 old_archive_from_new_cmds \
17537 predep_objects \
17538 postdep_objects \
17539 predeps \
17540 postdeps \
17541 compiler_lib_search_path \
17542 archive_cmds \
17543 archive_expsym_cmds \
17544 postinstall_cmds \
17545 postuninstall_cmds \
17546 old_archive_from_expsyms_cmds \
17547 allow_undefined_flag \
17548 no_undefined_flag \
17549 export_symbols_cmds \
17550 hardcode_libdir_flag_spec \
17551 hardcode_libdir_flag_spec_ld \
17552 hardcode_libdir_separator \
17553 hardcode_automatic \
17554 module_cmds \
17555 module_expsym_cmds \
17556 lt_cv_prog_compiler_c_o \
17557 exclude_expsyms \
17558 include_expsyms; do
17559
17560 case $var in
17561 old_archive_cmds | \
17562 old_archive_from_new_cmds | \
17563 archive_cmds | \
17564 archive_expsym_cmds | \
17565 module_cmds | \
17566 module_expsym_cmds | \
17567 old_archive_from_expsyms_cmds | \
17568 export_symbols_cmds | \
17569 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17570 postinstall_cmds | postuninstall_cmds | \
17571 old_postinstall_cmds | old_postuninstall_cmds | \
17572 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17573 # Double-quote double-evaled strings.
17574 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17575 ;;
17576 *)
17577 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17578 ;;
17579 esac
17580 done
17581
17582 case $lt_echo in
17583 *'\$0 --fallback-echo"')
17584 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17585 ;;
17586 esac
17587
17588cfgfile="${ofile}T"
17589 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17590 $rm -f "$cfgfile"
17591 { echo "$as_me:$LINENO: creating $ofile" >&5
17592echo "$as_me: creating $ofile" >&6;}
17593
17594 cat <<__EOF__ >> "$cfgfile"
17595#! $SHELL
17596
17597# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17598# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17599# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17600#
17601# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17602# Free Software Foundation, Inc.
17603#
17604# This file is part of GNU Libtool:
17605# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17606#
17607# This program is free software; you can redistribute it and/or modify
17608# it under the terms of the GNU General Public License as published by
17609# the Free Software Foundation; either version 2 of the License, or
17610# (at your option) any later version.
17611#
17612# This program is distributed in the hope that it will be useful, but
17613# WITHOUT ANY WARRANTY; without even the implied warranty of
17614# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17615# General Public License for more details.
17616#
17617# You should have received a copy of the GNU General Public License
17618# along with this program; if not, write to the Free Software
17619# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17620#
17621# As a special exception to the GNU General Public License, if you
17622# distribute this file as part of a program that contains a
17623# configuration script generated by Autoconf, you may include it under
17624# the same distribution terms that you use for the rest of that program.
17625
17626# A sed program that does not truncate output.
17627SED=$lt_SED
17628
17629# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17630Xsed="$SED -e 1s/^X//"
17631
17632# The HP-UX ksh and POSIX shell print the target directory to stdout
17633# if CDPATH is set.
17634(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17635
17636# The names of the tagged configurations supported by this script.
17637available_tags=
17638
17639# ### BEGIN LIBTOOL CONFIG
17640
17641# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17642
17643# Shell to use when invoking shell scripts.
17644SHELL=$lt_SHELL
17645
17646# Whether or not to build shared libraries.
17647build_libtool_libs=$enable_shared
17648
17649# Whether or not to build static libraries.
17650build_old_libs=$enable_static
17651
17652# Whether or not to add -lc for building shared libraries.
17653build_libtool_need_lc=$archive_cmds_need_lc
17654
17655# Whether or not to disallow shared libs when runtime libs are static
17656allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17657
17658# Whether or not to optimize for fast installation.
17659fast_install=$enable_fast_install
17660
17661# The host system.
17662host_alias=$host_alias
17663host=$host
17664host_os=$host_os
17665
17666# The build system.
17667build_alias=$build_alias
17668build=$build
17669build_os=$build_os
17670
17671# An echo program that does not interpret backslashes.
17672echo=$lt_echo
17673
17674# The archiver.
17675AR=$lt_AR
17676AR_FLAGS=$lt_AR_FLAGS
17677
17678# A C compiler.
17679LTCC=$lt_LTCC
17680
17681# LTCC compiler flags.
17682LTCFLAGS=$lt_LTCFLAGS
17683
17684# A language-specific compiler.
17685CC=$lt_compiler
17686
17687# Is the compiler the GNU C compiler?
17688with_gcc=$GCC
17689
17690# An ERE matcher.
17691EGREP=$lt_EGREP
17692
17693# The linker used to build libraries.
17694LD=$lt_LD
17695
17696# Whether we need hard or soft links.
17697LN_S=$lt_LN_S
17698
17699# A BSD-compatible nm program.
17700NM=$lt_NM
17701
17702# A symbol stripping program
17703STRIP=$lt_STRIP
17704
17705# Used to examine libraries when file_magic_cmd begins "file"
17706MAGIC_CMD=$MAGIC_CMD
17707
17708# Used on cygwin: DLL creation program.
17709DLLTOOL="$DLLTOOL"
17710
17711# Used on cygwin: object dumper.
17712OBJDUMP="$OBJDUMP"
17713
17714# Used on cygwin: assembler.
17715AS="$AS"
17716
17717# The name of the directory that contains temporary libtool files.
17718objdir=$objdir
17719
17720# How to create reloadable object files.
17721reload_flag=$lt_reload_flag
17722reload_cmds=$lt_reload_cmds
17723
17724# How to pass a linker flag through the compiler.
17725wl=$lt_lt_prog_compiler_wl
17726
17727# Object file suffix (normally "o").
17728objext="$ac_objext"
17729
17730# Old archive suffix (normally "a").
17731libext="$libext"
17732
17733# Shared library suffix (normally ".so").
17734shrext_cmds='$shrext_cmds'
17735
17736# Executable file suffix (normally "").
17737exeext="$exeext"
17738
17739# Additional compiler flags for building library objects.
17740pic_flag=$lt_lt_prog_compiler_pic
17741pic_mode=$pic_mode
17742
17743# What is the maximum length of a command?
17744max_cmd_len=$lt_cv_sys_max_cmd_len
17745
17746# Does compiler simultaneously support -c and -o options?
17747compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17748
17749# Must we lock files when doing compilation?
17750need_locks=$lt_need_locks
17751
17752# Do we need the lib prefix for modules?
17753need_lib_prefix=$need_lib_prefix
17754
17755# Do we need a version for libraries?
17756need_version=$need_version
17757
17758# Whether dlopen is supported.
17759dlopen_support=$enable_dlopen
17760
17761# Whether dlopen of programs is supported.
17762dlopen_self=$enable_dlopen_self
17763
17764# Whether dlopen of statically linked programs is supported.
17765dlopen_self_static=$enable_dlopen_self_static
17766
17767# Compiler flag to prevent dynamic linking.
17768link_static_flag=$lt_lt_prog_compiler_static
17769
17770# Compiler flag to turn off builtin functions.
17771no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17772
17773# Compiler flag to allow reflexive dlopens.
17774export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17775
17776# Compiler flag to generate shared objects directly from archives.
17777whole_archive_flag_spec=$lt_whole_archive_flag_spec
17778
17779# Compiler flag to generate thread-safe objects.
17780thread_safe_flag_spec=$lt_thread_safe_flag_spec
17781
17782# Library versioning type.
17783version_type=$version_type
17784
17785# Format of library name prefix.
17786libname_spec=$lt_libname_spec
17787
17788# List of archive names. First name is the real one, the rest are links.
17789# The last name is the one that the linker finds with -lNAME.
17790library_names_spec=$lt_library_names_spec
17791
17792# The coded name of the library, if different from the real name.
17793soname_spec=$lt_soname_spec
17794
17795# Commands used to build and install an old-style archive.
17796RANLIB=$lt_RANLIB
17797old_archive_cmds=$lt_old_archive_cmds
17798old_postinstall_cmds=$lt_old_postinstall_cmds
17799old_postuninstall_cmds=$lt_old_postuninstall_cmds
17800
17801# Create an old-style archive from a shared archive.
17802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17803
17804# Create a temporary old-style archive to link instead of a shared archive.
17805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17806
17807# Commands used to build and install a shared archive.
17808archive_cmds=$lt_archive_cmds
17809archive_expsym_cmds=$lt_archive_expsym_cmds
17810postinstall_cmds=$lt_postinstall_cmds
17811postuninstall_cmds=$lt_postuninstall_cmds
17812
17813# Commands used to build a loadable module (assumed same as above if empty)
17814module_cmds=$lt_module_cmds
17815module_expsym_cmds=$lt_module_expsym_cmds
17816
17817# Commands to strip libraries.
17818old_striplib=$lt_old_striplib
17819striplib=$lt_striplib
17820
17821# Dependencies to place before the objects being linked to create a
17822# shared library.
17823predep_objects=$lt_predep_objects
17824
17825# Dependencies to place after the objects being linked to create a
17826# shared library.
17827postdep_objects=$lt_postdep_objects
17828
17829# Dependencies to place before the objects being linked to create a
17830# shared library.
17831predeps=$lt_predeps
17832
17833# Dependencies to place after the objects being linked to create a
17834# shared library.
17835postdeps=$lt_postdeps
17836
17837# The library search path used internally by the compiler when linking
17838# a shared library.
17839compiler_lib_search_path=$lt_compiler_lib_search_path
17840
17841# Method to check whether dependent libraries are shared objects.
17842deplibs_check_method=$lt_deplibs_check_method
17843
17844# Command to use when deplibs_check_method == file_magic.
17845file_magic_cmd=$lt_file_magic_cmd
17846
17847# Flag that allows shared libraries with undefined symbols to be built.
17848allow_undefined_flag=$lt_allow_undefined_flag
17849
17850# Flag that forces no undefined symbols.
17851no_undefined_flag=$lt_no_undefined_flag
17852
17853# Commands used to finish a libtool library installation in a directory.
17854finish_cmds=$lt_finish_cmds
17855
17856# Same as above, but a single script fragment to be evaled but not shown.
17857finish_eval=$lt_finish_eval
17858
17859# Take the output of nm and produce a listing of raw symbols and C names.
17860global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17861
17862# Transform the output of nm in a proper C declaration
17863global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17864
17865# Transform the output of nm in a C name address pair
17866global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17867
17868# This is the shared library runtime path variable.
17869runpath_var=$runpath_var
17870
17871# This is the shared library path variable.
17872shlibpath_var=$shlibpath_var
17873
17874# Is shlibpath searched before the hard-coded library search path?
17875shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17876
17877# How to hardcode a shared library path into an executable.
17878hardcode_action=$hardcode_action
17879
17880# Whether we should hardcode library paths into libraries.
17881hardcode_into_libs=$hardcode_into_libs
17882
17883# Flag to hardcode \$libdir into a binary during linking.
17884# This must work even if \$libdir does not exist.
17885hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17886
17887# If ld is used when linking, flag to hardcode \$libdir into
17888# a binary during linking. This must work even if \$libdir does
17889# not exist.
17890hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17891
17892# Whether we need a single -rpath flag with a separated argument.
17893hardcode_libdir_separator=$lt_hardcode_libdir_separator
17894
17895# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17896# resulting binary.
17897hardcode_direct=$hardcode_direct
17898
17899# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17900# resulting binary.
17901hardcode_minus_L=$hardcode_minus_L
17902
17903# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17904# the resulting binary.
17905hardcode_shlibpath_var=$hardcode_shlibpath_var
17906
17907# Set to yes if building a shared library automatically hardcodes DIR into the library
17908# and all subsequent libraries and executables linked against it.
17909hardcode_automatic=$hardcode_automatic
17910
17911# Variables whose values should be saved in libtool wrapper scripts and
17912# restored at relink time.
17913variables_saved_for_relink="$variables_saved_for_relink"
17914
17915# Whether libtool must link a program against all its dependency libraries.
17916link_all_deplibs=$link_all_deplibs
17917
17918# Compile-time system search path for libraries
17919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17920
17921# Run-time system search path for libraries
17922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17923
17924# Fix the shell variable \$srcfile for the compiler.
17925fix_srcfile_path="$fix_srcfile_path"
17926
17927# Set to yes if exported symbols are required.
17928always_export_symbols=$always_export_symbols
17929
17930# The commands to list exported symbols.
17931export_symbols_cmds=$lt_export_symbols_cmds
17932
17933# The commands to extract the exported symbol list from a shared archive.
17934extract_expsyms_cmds=$lt_extract_expsyms_cmds
17935
17936# Symbols that should not be listed in the preloaded symbols.
17937exclude_expsyms=$lt_exclude_expsyms
17938
17939# Symbols that must always be exported.
17940include_expsyms=$lt_include_expsyms
17941
17942# ### END LIBTOOL CONFIG
17943
17944__EOF__
17945
17946
17947 case $host_os in
17948 aix3*)
17949 cat <<\EOF >> "$cfgfile"
17950
17951# AIX sometimes has problems with the GCC collect2 program. For some
17952# reason, if we set the COLLECT_NAMES environment variable, the problems
17953# vanish in a puff of smoke.
17954if test "X${COLLECT_NAMES+set}" != Xset; then
17955 COLLECT_NAMES=
17956 export COLLECT_NAMES
17957fi
17958EOF
17959 ;;
17960 esac
17961
17962 # We use sed instead of cat because bash on DJGPP gets confused if
17963 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17964 # text mode, it properly converts lines to CR/LF. This bash problem
17965 # is reportedly fixed, but why not run on old versions too?
17966 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17967
17968 mv -f "$cfgfile" "$ofile" || \
17969 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17970 chmod +x "$ofile"
17971
17972else
17973 # If there is no Makefile yet, we rely on a make rule to execute
17974 # `config.status --recheck' to rerun these tests and create the
17975 # libtool script then.
17976 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17977 if test -f "$ltmain_in"; then
17978 test -f Makefile && make "$ltmain"
17979 fi
17980fi
17981
17982
17983ac_ext=c
17984ac_cpp='$CPP $CPPFLAGS'
17985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17987ac_compiler_gnu=$ac_cv_c_compiler_gnu
17988
17989CC="$lt_save_CC"
17990
17991
17992# Check whether --with-tags was given.
17993if test "${with_tags+set}" = set; then
17994 withval=$with_tags; tagnames="$withval"
17995fi
17996
17997
17998if test -f "$ltmain" && test -n "$tagnames"; then
17999 if test ! -f "${ofile}"; then
18000 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18001echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18002 fi
18003
18004 if test -z "$LTCC"; then
18005 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18006 if test -z "$LTCC"; then
18007 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18008echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18009 else
18010 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18011echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18012 fi
18013 fi
18014 if test -z "$LTCFLAGS"; then
18015 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18016 fi
18017
18018 # Extract list of available tagged configurations in $ofile.
18019 # Note that this assumes the entire list is on one line.
18020 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18021
18022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18023 for tagname in $tagnames; do
18024 IFS="$lt_save_ifs"
18025 # Check whether tagname contains only valid characters
18026 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18027 "") ;;
18028 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18029echo "$as_me: error: invalid tag name: $tagname" >&2;}
18030 { (exit 1); exit 1; }; }
18031 ;;
18032 esac
18033
18034 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18035 then
18036 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18037echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18038 { (exit 1); exit 1; }; }
18039 fi
18040
18041 # Update the list of available tags.
18042 if test -n "$tagname"; then
18043 echo appending configuration tag \"$tagname\" to $ofile
18044
18045 case $tagname in
18046 CXX)
18047 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18048 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18049 (test "X$CXX" != "Xg++"))) ; then
18050 ac_ext=cpp
18051ac_cpp='$CXXCPP $CPPFLAGS'
18052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18055
18056
18057
18058
18059archive_cmds_need_lc_CXX=no
18060allow_undefined_flag_CXX=
18061always_export_symbols_CXX=no
18062archive_expsym_cmds_CXX=
18063export_dynamic_flag_spec_CXX=
18064hardcode_direct_CXX=no
18065hardcode_libdir_flag_spec_CXX=
18066hardcode_libdir_flag_spec_ld_CXX=
18067hardcode_libdir_separator_CXX=
18068hardcode_minus_L_CXX=no
18069hardcode_shlibpath_var_CXX=unsupported
18070hardcode_automatic_CXX=no
18071module_cmds_CXX=
18072module_expsym_cmds_CXX=
18073link_all_deplibs_CXX=unknown
18074old_archive_cmds_CXX=$old_archive_cmds
18075no_undefined_flag_CXX=
18076whole_archive_flag_spec_CXX=
18077enable_shared_with_static_runtimes_CXX=no
18078
18079# Dependencies to place before and after the object being linked:
18080predep_objects_CXX=
18081postdep_objects_CXX=
18082predeps_CXX=
18083postdeps_CXX=
18084compiler_lib_search_path_CXX=
18085
18086# Source file extension for C++ test sources.
18087ac_ext=cpp
18088
18089# Object file extension for compiled C++ test sources.
18090objext=o
18091objext_CXX=$objext
18092
18093# Code to be used in simple compile tests
18094lt_simple_compile_test_code="int some_variable = 0;\n"
18095
18096# Code to be used in simple link tests
18097lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
18098
18099# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18100
18101# If no C compiler was specified, use CC.
18102LTCC=${LTCC-"$CC"}
18103
18104# If no C compiler flags were specified, use CFLAGS.
18105LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18106
18107# Allow CC to be a program name with arguments.
18108compiler=$CC
18109
18110
18111# save warnings/boilerplate of simple test code
18112ac_outfile=conftest.$ac_objext
18113printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18114eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18115_lt_compiler_boilerplate=`cat conftest.err`
18116$rm conftest*
18117
18118ac_outfile=conftest.$ac_objext
18119printf "$lt_simple_link_test_code" >conftest.$ac_ext
18120eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18121_lt_linker_boilerplate=`cat conftest.err`
18122$rm conftest*
18123
18124
18125# Allow CC to be a program name with arguments.
18126lt_save_CC=$CC
18127lt_save_LD=$LD
18128lt_save_GCC=$GCC
18129GCC=$GXX
18130lt_save_with_gnu_ld=$with_gnu_ld
18131lt_save_path_LD=$lt_cv_path_LD
18132if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18133 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18134else
18135 $as_unset lt_cv_prog_gnu_ld
18136fi
18137if test -n "${lt_cv_path_LDCXX+set}"; then
18138 lt_cv_path_LD=$lt_cv_path_LDCXX
18139else
18140 $as_unset lt_cv_path_LD
18141fi
18142test -z "${LDCXX+set}" || LD=$LDCXX
18143CC=${CXX-"c++"}
18144compiler=$CC
18145compiler_CXX=$CC
18146for cc_temp in $compiler""; do
18147 case $cc_temp in
18148 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18149 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18150 \-*) ;;
18151 *) break;;
18152 esac
18153done
18154cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18155
18156
18157# We don't want -fno-exception wen compiling C++ code, so set the
18158# no_builtin_flag separately
18159if test "$GXX" = yes; then
18160 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18161else
18162 lt_prog_compiler_no_builtin_flag_CXX=
18163fi
18164
18165if test "$GXX" = yes; then
18166 # Set up default GNU C++ configuration
18167
18168
18169# Check whether --with-gnu-ld was given.
18170if test "${with_gnu_ld+set}" = set; then
18171 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18172else
18173 with_gnu_ld=no
18174fi
18175
18176ac_prog=ld
18177if test "$GCC" = yes; then
18178 # Check if gcc -print-prog-name=ld gives a path.
18179 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18180echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18181 case $host in
18182 *-*-mingw*)
18183 # gcc leaves a trailing carriage return which upsets mingw
18184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18185 *)
18186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18187 esac
18188 case $ac_prog in
18189 # Accept absolute paths.
18190 [\\/]* | ?:[\\/]*)
18191 re_direlt='/[^/][^/]*/\.\./'
18192 # Canonicalize the pathname of ld
18193 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18194 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18195 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18196 done
18197 test -z "$LD" && LD="$ac_prog"
18198 ;;
18199 "")
18200 # If it fails, then pretend we aren't using GCC.
18201 ac_prog=ld
18202 ;;
18203 *)
18204 # If it is relative, then search for the first ld in PATH.
18205 with_gnu_ld=unknown
18206 ;;
18207 esac
18208elif test "$with_gnu_ld" = yes; then
18209 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18210echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18211else
18212 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18213echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18214fi
18215if test "${lt_cv_path_LD+set}" = set; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18217else
18218 if test -z "$LD"; then
18219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18220 for ac_dir in $PATH; do
18221 IFS="$lt_save_ifs"
18222 test -z "$ac_dir" && ac_dir=.
18223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18224 lt_cv_path_LD="$ac_dir/$ac_prog"
18225 # Check to see if the program is GNU ld. I'd rather use --version,
18226 # but apparently some variants of GNU ld only accept -v.
18227 # Break only if it was the GNU/non-GNU ld that we prefer.
18228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18229 *GNU* | *'with BFD'*)
18230 test "$with_gnu_ld" != no && break
18231 ;;
18232 *)
18233 test "$with_gnu_ld" != yes && break
18234 ;;
18235 esac
18236 fi
18237 done
18238 IFS="$lt_save_ifs"
18239else
18240 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18241fi
18242fi
18243
18244LD="$lt_cv_path_LD"
18245if test -n "$LD"; then
18246 { echo "$as_me:$LINENO: result: $LD" >&5
18247echo "${ECHO_T}$LD" >&6; }
18248else
18249 { echo "$as_me:$LINENO: result: no" >&5
18250echo "${ECHO_T}no" >&6; }
18251fi
18252test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18253echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18254 { (exit 1); exit 1; }; }
18255{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18256echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18257if test "${lt_cv_prog_gnu_ld+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18259else
18260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18261case `$LD -v 2>&1 </dev/null` in
18262*GNU* | *'with BFD'*)
18263 lt_cv_prog_gnu_ld=yes
18264 ;;
18265*)
18266 lt_cv_prog_gnu_ld=no
18267 ;;
18268esac
18269fi
18270{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18271echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18272with_gnu_ld=$lt_cv_prog_gnu_ld
18273
18274
18275
18276 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18277 # archiving commands below assume that GNU ld is being used.
18278 if test "$with_gnu_ld" = yes; then
18279 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18280 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'
18281
18282 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18283 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18284
18285 # If archive_cmds runs LD, not CC, wlarc should be empty
18286 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18287 # investigate it a little bit more. (MM)
18288 wlarc='${wl}'
18289
18290 # ancient GNU ld didn't support --whole-archive et. al.
18291 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18292 grep 'no-whole-archive' > /dev/null; then
18293 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18294 else
18295 whole_archive_flag_spec_CXX=
18296 fi
18297 else
18298 with_gnu_ld=no
18299 wlarc=
18300
18301 # A generic and very simple default shared library creation
18302 # command for GNU C++ for the case where it uses the native
18303 # linker, instead of GNU ld. If possible, this setting should
18304 # overridden to take advantage of the native linker features on
18305 # the platform it is being used on.
18306 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18307 fi
18308
18309 # Commands to make compiler produce verbose output that lists
18310 # what "hidden" libraries, object files and flags are used when
18311 # linking a shared library.
18312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18313
18314else
18315 GXX=no
18316 with_gnu_ld=no
18317 wlarc=
18318fi
18319
18320# PORTME: fill in a description of your system's C++ link characteristics
18321{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18322echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18323ld_shlibs_CXX=yes
18324case $host_os in
18325 aix3*)
18326 # FIXME: insert proper C++ library support
18327 ld_shlibs_CXX=no
18328 ;;
18329 aix4* | aix5*)
18330 if test "$host_cpu" = ia64; then
18331 # On IA64, the linker does run time linking by default, so we don't
18332 # have to do anything special.
18333 aix_use_runtimelinking=no
18334 exp_sym_flag='-Bexport'
18335 no_entry_flag=""
18336 else
18337 aix_use_runtimelinking=no
18338
18339 # Test if we are trying to use run time linking or normal
18340 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18341 # need to do runtime linking.
18342 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18343 for ld_flag in $LDFLAGS; do
18344 case $ld_flag in
18345 *-brtl*)
18346 aix_use_runtimelinking=yes
18347 break
18348 ;;
18349 esac
18350 done
18351 ;;
18352 esac
18353
18354 exp_sym_flag='-bexport'
18355 no_entry_flag='-bnoentry'
18356 fi
18357
18358 # When large executables or shared objects are built, AIX ld can
18359 # have problems creating the table of contents. If linking a library
18360 # or program results in "error TOC overflow" add -mminimal-toc to
18361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18363
18364 archive_cmds_CXX=''
18365 hardcode_direct_CXX=yes
18366 hardcode_libdir_separator_CXX=':'
18367 link_all_deplibs_CXX=yes
18368
18369 if test "$GXX" = yes; then
18370 case $host_os in aix4.[012]|aix4.[012].*)
18371 # We only want to do this on AIX 4.2 and lower, the check
18372 # below for broken collect2 doesn't work under 4.3+
18373 collect2name=`${CC} -print-prog-name=collect2`
18374 if test -f "$collect2name" && \
18375 strings "$collect2name" | grep resolve_lib_name >/dev/null
18376 then
18377 # We have reworked collect2
18378 hardcode_direct_CXX=yes
18379 else
18380 # We have old collect2
18381 hardcode_direct_CXX=unsupported
18382 # It fails to find uninstalled libraries when the uninstalled
18383 # path is not listed in the libpath. Setting hardcode_minus_L
18384 # to unsupported forces relinking
18385 hardcode_minus_L_CXX=yes
18386 hardcode_libdir_flag_spec_CXX='-L$libdir'
18387 hardcode_libdir_separator_CXX=
18388 fi
18389 ;;
18390 esac
18391 shared_flag='-shared'
18392 if test "$aix_use_runtimelinking" = yes; then
18393 shared_flag="$shared_flag "'${wl}-G'
18394 fi
18395 else
18396 # not using gcc
18397 if test "$host_cpu" = ia64; then
18398 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18399 # chokes on -Wl,-G. The following line is correct:
18400 shared_flag='-G'
18401 else
18402 if test "$aix_use_runtimelinking" = yes; then
18403 shared_flag='${wl}-G'
18404 else
18405 shared_flag='${wl}-bM:SRE'
18406 fi
18407 fi
18408 fi
18409
18410 # It seems that -bexpall does not export symbols beginning with
18411 # underscore (_), so it is better to generate a list of symbols to export.
18412 always_export_symbols_CXX=yes
18413 if test "$aix_use_runtimelinking" = yes; then
18414 # Warning - without using the other runtime loading flags (-brtl),
18415 # -berok will link without error, but may produce a broken library.
18416 allow_undefined_flag_CXX='-berok'
18417 # Determine the default libpath from the value encoded in an empty executable.
18418 cat >conftest.$ac_ext <<_ACEOF
18419/* confdefs.h. */
18420_ACEOF
18421cat confdefs.h >>conftest.$ac_ext
18422cat >>conftest.$ac_ext <<_ACEOF
18423/* end confdefs.h. */
18424
18425int
18426main ()
18427{
18428
18429 ;
18430 return 0;
18431}
18432_ACEOF
18433rm -f conftest.$ac_objext conftest$ac_exeext
18434if { (ac_try="$ac_link"
18435case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18438esac
18439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_link") 2>conftest.er1
18441 ac_status=$?
18442 grep -v '^ *+' conftest.er1 >conftest.err
18443 rm -f conftest.er1
18444 cat conftest.err >&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018446 (exit $ac_status); } &&
18447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18451esac
18452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; } &&
18457 { ac_try='test -s conftest$ac_exeext'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18461esac
18462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018467
18468aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18469}'`
18470# Check for a 64-bit object if we didn't find anything.
18471if 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; }
18472}'`; fi
18473else
18474 echo "$as_me: failed program was:" >&5
18475sed 's/^/| /' conftest.$ac_ext >&5
18476
18477
18478fi
18479
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018480rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018481 conftest$ac_exeext conftest.$ac_ext
18482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18483
18484 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18485
18486 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"
18487 else
18488 if test "$host_cpu" = ia64; then
18489 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18490 allow_undefined_flag_CXX="-z nodefs"
18491 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"
18492 else
18493 # Determine the default libpath from the value encoded in an empty executable.
18494 cat >conftest.$ac_ext <<_ACEOF
18495/* confdefs.h. */
18496_ACEOF
18497cat confdefs.h >>conftest.$ac_ext
18498cat >>conftest.$ac_ext <<_ACEOF
18499/* end confdefs.h. */
18500
18501int
18502main ()
18503{
18504
18505 ;
18506 return 0;
18507}
18508_ACEOF
18509rm -f conftest.$ac_objext conftest$ac_exeext
18510if { (ac_try="$ac_link"
18511case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514esac
18515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_link") 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18524 { (case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18527esac
18528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_try") 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; } &&
18533 { ac_try='test -s conftest$ac_exeext'
18534 { (case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18537esac
18538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_try") 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018543
18544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18545}'`
18546# Check for a 64-bit object if we didn't find anything.
18547if 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; }
18548}'`; fi
18549else
18550 echo "$as_me: failed program was:" >&5
18551sed 's/^/| /' conftest.$ac_ext >&5
18552
18553
18554fi
18555
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000018556rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018557 conftest$ac_exeext conftest.$ac_ext
18558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18559
18560 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18561 # Warning - without using the other run time loading flags,
18562 # -berok will link without error, but may produce a broken library.
18563 no_undefined_flag_CXX=' ${wl}-bernotok'
18564 allow_undefined_flag_CXX=' ${wl}-berok'
18565 # Exported symbols can be pulled into shared objects from archives
18566 whole_archive_flag_spec_CXX='$convenience'
18567 archive_cmds_need_lc_CXX=yes
18568 # This is similar to how AIX traditionally builds its shared libraries.
18569 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'
18570 fi
18571 fi
18572 ;;
18573
18574 beos*)
18575 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18576 allow_undefined_flag_CXX=unsupported
18577 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18578 # support --undefined. This deserves some investigation. FIXME
18579 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18580 else
18581 ld_shlibs_CXX=no
18582 fi
18583 ;;
18584
18585 chorus*)
18586 case $cc_basename in
18587 *)
18588 # FIXME: insert proper C++ library support
18589 ld_shlibs_CXX=no
18590 ;;
18591 esac
18592 ;;
18593
18594 cygwin* | mingw* | pw32*)
18595 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18596 # as there is no search path for DLLs.
18597 hardcode_libdir_flag_spec_CXX='-L$libdir'
18598 allow_undefined_flag_CXX=unsupported
18599 always_export_symbols_CXX=no
18600 enable_shared_with_static_runtimes_CXX=yes
18601
18602 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18603 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'
18604 # If the export-symbols file already is a .def file (1st line
18605 # is EXPORTS), use it as is; otherwise, prepend...
18606 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18607 cp $export_symbols $output_objdir/$soname.def;
18608 else
18609 echo EXPORTS > $output_objdir/$soname.def;
18610 cat $export_symbols >> $output_objdir/$soname.def;
18611 fi~
18612 $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'
18613 else
18614 ld_shlibs_CXX=no
18615 fi
18616 ;;
18617 darwin* | rhapsody*)
18618 case $host_os in
18619 rhapsody* | darwin1.[012])
18620 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18621 ;;
18622 *) # Darwin 1.3 on
18623 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18624 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18625 else
18626 case ${MACOSX_DEPLOYMENT_TARGET} in
18627 10.[012])
18628 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18629 ;;
18630 10.*)
18631 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18632 ;;
18633 esac
18634 fi
18635 ;;
18636 esac
18637 archive_cmds_need_lc_CXX=no
18638 hardcode_direct_CXX=no
18639 hardcode_automatic_CXX=yes
18640 hardcode_shlibpath_var_CXX=unsupported
18641 whole_archive_flag_spec_CXX=''
18642 link_all_deplibs_CXX=yes
18643
18644 if test "$GXX" = yes ; then
18645 lt_int_apple_cc_single_mod=no
18646 output_verbose_link_cmd='echo'
18647 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18648 lt_int_apple_cc_single_mod=yes
18649 fi
18650 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18651 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18652 else
18653 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'
18654 fi
18655 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18657 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18658 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}'
18659 else
18660 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}'
18661 fi
18662 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}'
18663 else
18664 case $cc_basename in
18665 xlc*)
18666 output_verbose_link_cmd='echo'
18667 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'
18668 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18669 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18670 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}'
18671 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}'
18672 ;;
18673 *)
18674 ld_shlibs_CXX=no
18675 ;;
18676 esac
18677 fi
18678 ;;
18679
18680 dgux*)
18681 case $cc_basename in
18682 ec++*)
18683 # FIXME: insert proper C++ library support
18684 ld_shlibs_CXX=no
18685 ;;
18686 ghcx*)
18687 # Green Hills C++ Compiler
18688 # FIXME: insert proper C++ library support
18689 ld_shlibs_CXX=no
18690 ;;
18691 *)
18692 # FIXME: insert proper C++ library support
18693 ld_shlibs_CXX=no
18694 ;;
18695 esac
18696 ;;
18697 freebsd[12]*)
18698 # C++ shared libraries reported to be fairly broken before switch to ELF
18699 ld_shlibs_CXX=no
18700 ;;
18701 freebsd-elf*)
18702 archive_cmds_need_lc_CXX=no
18703 ;;
18704 freebsd* | kfreebsd*-gnu | dragonfly*)
18705 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18706 # conventions
18707 ld_shlibs_CXX=yes
18708 ;;
18709 gnu*)
18710 ;;
18711 hpux9*)
18712 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18713 hardcode_libdir_separator_CXX=:
18714 export_dynamic_flag_spec_CXX='${wl}-E'
18715 hardcode_direct_CXX=yes
18716 hardcode_minus_L_CXX=yes # Not in the search PATH,
18717 # but as the default
18718 # location of the library.
18719
18720 case $cc_basename in
18721 CC*)
18722 # FIXME: insert proper C++ library support
18723 ld_shlibs_CXX=no
18724 ;;
18725 aCC*)
18726 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'
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 #
18731 # There doesn't appear to be a way to prevent this compiler from
18732 # explicitly linking system object files so we need to strip them
18733 # from the output so that they don't get included in the library
18734 # dependencies.
18735 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'
18736 ;;
18737 *)
18738 if test "$GXX" = yes; then
18739 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'
18740 else
18741 # FIXME: insert proper C++ library support
18742 ld_shlibs_CXX=no
18743 fi
18744 ;;
18745 esac
18746 ;;
18747 hpux10*|hpux11*)
18748 if test $with_gnu_ld = no; then
18749 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18750 hardcode_libdir_separator_CXX=:
18751
18752 case $host_cpu in
18753 hppa*64*|ia64*)
18754 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18755 ;;
18756 *)
18757 export_dynamic_flag_spec_CXX='${wl}-E'
18758 ;;
18759 esac
18760 fi
18761 case $host_cpu in
18762 hppa*64*|ia64*)
18763 hardcode_direct_CXX=no
18764 hardcode_shlibpath_var_CXX=no
18765 ;;
18766 *)
18767 hardcode_direct_CXX=yes
18768 hardcode_minus_L_CXX=yes # Not in the search PATH,
18769 # but as the default
18770 # location of the library.
18771 ;;
18772 esac
18773
18774 case $cc_basename in
18775 CC*)
18776 # FIXME: insert proper C++ library support
18777 ld_shlibs_CXX=no
18778 ;;
18779 aCC*)
18780 case $host_cpu in
18781 hppa*64*)
18782 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18783 ;;
18784 ia64*)
18785 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18786 ;;
18787 *)
18788 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18789 ;;
18790 esac
18791 # Commands to make compiler produce verbose output that lists
18792 # what "hidden" libraries, object files and flags are used when
18793 # linking a shared library.
18794 #
18795 # There doesn't appear to be a way to prevent this compiler from
18796 # explicitly linking system object files so we need to strip them
18797 # from the output so that they don't get included in the library
18798 # dependencies.
18799 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'
18800 ;;
18801 *)
18802 if test "$GXX" = yes; then
18803 if test $with_gnu_ld = no; then
18804 case $host_cpu in
18805 hppa*64*)
18806 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18807 ;;
18808 ia64*)
18809 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18810 ;;
18811 *)
18812 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'
18813 ;;
18814 esac
18815 fi
18816 else
18817 # FIXME: insert proper C++ library support
18818 ld_shlibs_CXX=no
18819 fi
18820 ;;
18821 esac
18822 ;;
18823 interix3*)
18824 hardcode_direct_CXX=no
18825 hardcode_shlibpath_var_CXX=no
18826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18827 export_dynamic_flag_spec_CXX='${wl}-E'
18828 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18829 # Instead, shared libraries are loaded at an image base (0x10000000 by
18830 # default) and relocated if they conflict, which is a slow very memory
18831 # consuming and fragmenting process. To avoid this, we pick a random,
18832 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18833 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18834 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'
18835 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'
18836 ;;
18837 irix5* | irix6*)
18838 case $cc_basename in
18839 CC*)
18840 # SGI C++
18841 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'
18842
18843 # Archives containing C++ object files must be created using
18844 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18845 # necessary to make sure instantiated templates are included
18846 # in the archive.
18847 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18848 ;;
18849 *)
18850 if test "$GXX" = yes; then
18851 if test "$with_gnu_ld" = no; then
18852 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'
18853 else
18854 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'
18855 fi
18856 fi
18857 link_all_deplibs_CXX=yes
18858 ;;
18859 esac
18860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18861 hardcode_libdir_separator_CXX=:
18862 ;;
18863 linux*)
18864 case $cc_basename in
18865 KCC*)
18866 # Kuck and Associates, Inc. (KAI) C++ Compiler
18867
18868 # KCC will only create a shared library if the output file
18869 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18870 # to its proper name (with version) after linking.
18871 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'
18872 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'
18873 # Commands to make compiler produce verbose output that lists
18874 # what "hidden" libraries, object files and flags are used when
18875 # linking a shared library.
18876 #
18877 # There doesn't appear to be a way to prevent this compiler from
18878 # explicitly linking system object files so we need to strip them
18879 # from the output so that they don't get included in the library
18880 # dependencies.
18881 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'
18882
18883 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18885
18886 # Archives containing C++ object files must be created using
18887 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18888 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18889 ;;
18890 icpc*)
18891 # Intel C++
18892 with_gnu_ld=yes
18893 # version 8.0 and above of icpc choke on multiply defined symbols
18894 # if we add $predep_objects and $postdep_objects, however 7.1 and
18895 # earlier do not add the objects themselves.
18896 case `$CC -V 2>&1` in
18897 *"Version 7."*)
18898 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18899 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'
18900 ;;
18901 *) # Version 8.0 or newer
18902 tmp_idyn=
18903 case $host_cpu in
18904 ia64*) tmp_idyn=' -i_dynamic';;
18905 esac
18906 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18907 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'
18908 ;;
18909 esac
18910 archive_cmds_need_lc_CXX=no
18911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18912 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18913 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18914 ;;
18915 pgCC*)
18916 # Portland Group C++ compiler
18917 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18918 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'
18919
18920 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18921 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18922 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'
18923 ;;
18924 cxx*)
18925 # Compaq C++
18926 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18927 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'
18928
18929 runpath_var=LD_RUN_PATH
18930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18931 hardcode_libdir_separator_CXX=:
18932
18933 # Commands to make compiler produce verbose output that lists
18934 # what "hidden" libraries, object files and flags are used when
18935 # linking a shared library.
18936 #
18937 # There doesn't appear to be a way to prevent this compiler from
18938 # explicitly linking system object files so we need to strip them
18939 # from the output so that they don't get included in the library
18940 # dependencies.
18941 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'
18942 ;;
18943 esac
18944 ;;
18945 lynxos*)
18946 # FIXME: insert proper C++ library support
18947 ld_shlibs_CXX=no
18948 ;;
18949 m88k*)
18950 # FIXME: insert proper C++ library support
18951 ld_shlibs_CXX=no
18952 ;;
18953 mvs*)
18954 case $cc_basename in
18955 cxx*)
18956 # FIXME: insert proper C++ library support
18957 ld_shlibs_CXX=no
18958 ;;
18959 *)
18960 # FIXME: insert proper C++ library support
18961 ld_shlibs_CXX=no
18962 ;;
18963 esac
18964 ;;
18965 netbsd*)
18966 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18967 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18968 wlarc=
18969 hardcode_libdir_flag_spec_CXX='-R$libdir'
18970 hardcode_direct_CXX=yes
18971 hardcode_shlibpath_var_CXX=no
18972 fi
18973 # Workaround some broken pre-1.5 toolchains
18974 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18975 ;;
18976 openbsd2*)
18977 # C++ shared libraries are fairly broken
18978 ld_shlibs_CXX=no
18979 ;;
18980 openbsd*)
18981 hardcode_direct_CXX=yes
18982 hardcode_shlibpath_var_CXX=no
18983 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18984 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18985 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18986 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18987 export_dynamic_flag_spec_CXX='${wl}-E'
18988 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18989 fi
18990 output_verbose_link_cmd='echo'
18991 ;;
18992 osf3*)
18993 case $cc_basename in
18994 KCC*)
18995 # Kuck and Associates, Inc. (KAI) C++ Compiler
18996
18997 # KCC will only create a shared library if the output file
18998 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18999 # to its proper name (with version) after linking.
19000 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'
19001
19002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19003 hardcode_libdir_separator_CXX=:
19004
19005 # Archives containing C++ object files must be created using
19006 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19007 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19008
19009 ;;
19010 RCC*)
19011 # Rational C++ 2.4.1
19012 # FIXME: insert proper C++ library support
19013 ld_shlibs_CXX=no
19014 ;;
19015 cxx*)
19016 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19017 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'
19018
19019 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19020 hardcode_libdir_separator_CXX=:
19021
19022 # Commands to make compiler produce verbose output that lists
19023 # what "hidden" libraries, object files and flags are used when
19024 # linking a shared library.
19025 #
19026 # There doesn't appear to be a way to prevent this compiler from
19027 # explicitly linking system object files so we need to strip them
19028 # from the output so that they don't get included in the library
19029 # dependencies.
19030 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'
19031 ;;
19032 *)
19033 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19034 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19035 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'
19036
19037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19038 hardcode_libdir_separator_CXX=:
19039
19040 # Commands to make compiler produce verbose output that lists
19041 # what "hidden" libraries, object files and flags are used when
19042 # linking a shared library.
19043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19044
19045 else
19046 # FIXME: insert proper C++ library support
19047 ld_shlibs_CXX=no
19048 fi
19049 ;;
19050 esac
19051 ;;
19052 osf4* | osf5*)
19053 case $cc_basename in
19054 KCC*)
19055 # Kuck and Associates, Inc. (KAI) C++ Compiler
19056
19057 # KCC will only create a shared library if the output file
19058 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19059 # to its proper name (with version) after linking.
19060 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'
19061
19062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19063 hardcode_libdir_separator_CXX=:
19064
19065 # Archives containing C++ object files must be created using
19066 # the KAI C++ compiler.
19067 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19068 ;;
19069 RCC*)
19070 # Rational C++ 2.4.1
19071 # FIXME: insert proper C++ library support
19072 ld_shlibs_CXX=no
19073 ;;
19074 cxx*)
19075 allow_undefined_flag_CXX=' -expect_unresolved \*'
19076 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'
19077 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19078 echo "-hidden">> $lib.exp~
19079 $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~
19080 $rm $lib.exp'
19081
19082 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19083 hardcode_libdir_separator_CXX=:
19084
19085 # Commands to make compiler produce verbose output that lists
19086 # what "hidden" libraries, object files and flags are used when
19087 # linking a shared library.
19088 #
19089 # There doesn't appear to be a way to prevent this compiler from
19090 # explicitly linking system object files so we need to strip them
19091 # from the output so that they don't get included in the library
19092 # dependencies.
19093 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'
19094 ;;
19095 *)
19096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19098 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'
19099
19100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19101 hardcode_libdir_separator_CXX=:
19102
19103 # Commands to make compiler produce verbose output that lists
19104 # what "hidden" libraries, object files and flags are used when
19105 # linking a shared library.
19106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19107
19108 else
19109 # FIXME: insert proper C++ library support
19110 ld_shlibs_CXX=no
19111 fi
19112 ;;
19113 esac
19114 ;;
19115 psos*)
19116 # FIXME: insert proper C++ library support
19117 ld_shlibs_CXX=no
19118 ;;
19119 sunos4*)
19120 case $cc_basename in
19121 CC*)
19122 # Sun C++ 4.x
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 ;;
19126 lcc*)
19127 # Lucid
19128 # FIXME: insert proper C++ library support
19129 ld_shlibs_CXX=no
19130 ;;
19131 *)
19132 # FIXME: insert proper C++ library support
19133 ld_shlibs_CXX=no
19134 ;;
19135 esac
19136 ;;
19137 solaris*)
19138 case $cc_basename in
19139 CC*)
19140 # Sun C++ 4.2, 5.x and Centerline C++
19141 archive_cmds_need_lc_CXX=yes
19142 no_undefined_flag_CXX=' -zdefs'
19143 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19144 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19145 $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'
19146
19147 hardcode_libdir_flag_spec_CXX='-R$libdir'
19148 hardcode_shlibpath_var_CXX=no
19149 case $host_os in
19150 solaris2.[0-5] | solaris2.[0-5].*) ;;
19151 *)
19152 # The C++ compiler is used as linker so we must use $wl
19153 # flag to pass the commands to the underlying system
19154 # linker. We must also pass each convience library through
19155 # to the system linker between allextract/defaultextract.
19156 # The C++ compiler will combine linker options so we
19157 # cannot just pass the convience library names through
19158 # without $wl.
19159 # Supported since Solaris 2.6 (maybe 2.5.1?)
19160 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'
19161 ;;
19162 esac
19163 link_all_deplibs_CXX=yes
19164
19165 output_verbose_link_cmd='echo'
19166
19167 # Archives containing C++ object files must be created using
19168 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19169 # necessary to make sure instantiated templates are included
19170 # in the archive.
19171 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19172 ;;
19173 gcx*)
19174 # Green Hills C++ Compiler
19175 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19176
19177 # The C++ compiler must be used to create the archive.
19178 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19179 ;;
19180 *)
19181 # GNU C++ compiler with Solaris linker
19182 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19183 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19184 if $CC --version | grep -v '^2\.7' > /dev/null; then
19185 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19186 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19187 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19188
19189 # Commands to make compiler produce verbose output that lists
19190 # what "hidden" libraries, object files and flags are used when
19191 # linking a shared library.
19192 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19193 else
19194 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19195 # platform.
19196 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19197 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19198 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19199
19200 # Commands to make compiler produce verbose output that lists
19201 # what "hidden" libraries, object files and flags are used when
19202 # linking a shared library.
19203 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19204 fi
19205
19206 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19207 fi
19208 ;;
19209 esac
19210 ;;
19211 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19212 no_undefined_flag_CXX='${wl}-z,text'
19213 archive_cmds_need_lc_CXX=no
19214 hardcode_shlibpath_var_CXX=no
19215 runpath_var='LD_RUN_PATH'
19216
19217 case $cc_basename in
19218 CC*)
19219 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19220 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19221 ;;
19222 *)
19223 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19224 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19225 ;;
19226 esac
19227 ;;
19228 sysv5* | sco3.2v5* | sco5v6*)
19229 # Note: We can NOT use -z defs as we might desire, because we do not
19230 # link with -lc, and that would cause any symbols used from libc to
19231 # always be unresolved, which means just about no library would
19232 # ever link correctly. If we're not using GNU ld we use -z text
19233 # though, which does catch some bad symbols but isn't as heavy-handed
19234 # as -z defs.
19235 # For security reasons, it is highly recommended that you always
19236 # use absolute paths for naming shared libraries, and exclude the
19237 # DT_RUNPATH tag from executables and libraries. But doing so
19238 # requires that you compile everything twice, which is a pain.
19239 # So that behaviour is only enabled if SCOABSPATH is set to a
19240 # non-empty value in the environment. Most likely only useful for
19241 # creating official distributions of packages.
19242 # This is a hack until libtool officially supports absolute path
19243 # names for shared libraries.
19244 no_undefined_flag_CXX='${wl}-z,text'
19245 allow_undefined_flag_CXX='${wl}-z,nodefs'
19246 archive_cmds_need_lc_CXX=no
19247 hardcode_shlibpath_var_CXX=no
19248 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19249 hardcode_libdir_separator_CXX=':'
19250 link_all_deplibs_CXX=yes
19251 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19252 runpath_var='LD_RUN_PATH'
19253
19254 case $cc_basename in
19255 CC*)
19256 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19257 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19258 ;;
19259 *)
19260 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19261 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19262 ;;
19263 esac
19264 ;;
19265 tandem*)
19266 case $cc_basename in
19267 NCC*)
19268 # NonStop-UX NCC 3.20
19269 # FIXME: insert proper C++ library support
19270 ld_shlibs_CXX=no
19271 ;;
19272 *)
19273 # FIXME: insert proper C++ library support
19274 ld_shlibs_CXX=no
19275 ;;
19276 esac
19277 ;;
19278 vxworks*)
19279 # FIXME: insert proper C++ library support
19280 ld_shlibs_CXX=no
19281 ;;
19282 *)
19283 # FIXME: insert proper C++ library support
19284 ld_shlibs_CXX=no
19285 ;;
19286esac
19287{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19288echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19289test "$ld_shlibs_CXX" = no && can_build_shared=no
19290
19291GCC_CXX="$GXX"
19292LD_CXX="$LD"
19293
19294
19295cat > conftest.$ac_ext <<EOF
19296class Foo
19297{
19298public:
19299 Foo (void) { a = 0; }
19300private:
19301 int a;
19302};
19303EOF
19304
19305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19306 (eval $ac_compile) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; then
19310 # Parse the compiler output and extract the necessary
19311 # objects, libraries and library flags.
19312
19313 # Sentinel used to keep track of whether or not we are before
19314 # the conftest object file.
19315 pre_test_object_deps_done=no
19316
19317 # The `*' in the case matches for architectures that use `case' in
19318 # $output_verbose_cmd can trigger glob expansion during the loop
19319 # eval without this substitution.
19320 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19321
19322 for p in `eval $output_verbose_link_cmd`; do
19323 case $p in
19324
19325 -L* | -R* | -l*)
19326 # Some compilers place space between "-{L,R}" and the path.
19327 # Remove the space.
19328 if test $p = "-L" \
19329 || test $p = "-R"; then
19330 prev=$p
19331 continue
19332 else
19333 prev=
19334 fi
19335
19336 if test "$pre_test_object_deps_done" = no; then
19337 case $p in
19338 -L* | -R*)
19339 # Internal compiler library paths should come after those
19340 # provided the user. The postdeps already come after the
19341 # user supplied libs so there is no need to process them.
19342 if test -z "$compiler_lib_search_path_CXX"; then
19343 compiler_lib_search_path_CXX="${prev}${p}"
19344 else
19345 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19346 fi
19347 ;;
19348 # The "-l" case would never come before the object being
19349 # linked, so don't bother handling this case.
19350 esac
19351 else
19352 if test -z "$postdeps_CXX"; then
19353 postdeps_CXX="${prev}${p}"
19354 else
19355 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19356 fi
19357 fi
19358 ;;
19359
19360 *.$objext)
19361 # This assumes that the test object file only shows up
19362 # once in the compiler output.
19363 if test "$p" = "conftest.$objext"; then
19364 pre_test_object_deps_done=yes
19365 continue
19366 fi
19367
19368 if test "$pre_test_object_deps_done" = no; then
19369 if test -z "$predep_objects_CXX"; then
19370 predep_objects_CXX="$p"
19371 else
19372 predep_objects_CXX="$predep_objects_CXX $p"
19373 fi
19374 else
19375 if test -z "$postdep_objects_CXX"; then
19376 postdep_objects_CXX="$p"
19377 else
19378 postdep_objects_CXX="$postdep_objects_CXX $p"
19379 fi
19380 fi
19381 ;;
19382
19383 *) ;; # Ignore the rest.
19384
19385 esac
19386 done
19387
19388 # Clean up.
19389 rm -f a.out a.exe
19390else
19391 echo "libtool.m4: error: problem compiling CXX test program"
19392fi
19393
19394$rm -f confest.$objext
19395
19396# PORTME: override above test on systems where it is broken
19397case $host_os in
19398interix3*)
19399 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19400 # hack all around it, let's just trust "g++" to DTRT.
19401 predep_objects_CXX=
19402 postdep_objects_CXX=
19403 postdeps_CXX=
19404 ;;
19405
19406solaris*)
19407 case $cc_basename in
19408 CC*)
19409 # Adding this requires a known-good setup of shared libraries for
19410 # Sun compiler versions before 5.6, else PIC objects from an old
19411 # archive will be linked into the output, leading to subtle bugs.
19412 postdeps_CXX='-lCstd -lCrun'
19413 ;;
19414 esac
19415 ;;
19416esac
19417
19418
19419case " $postdeps_CXX " in
19420*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19421esac
19422
19423lt_prog_compiler_wl_CXX=
19424lt_prog_compiler_pic_CXX=
19425lt_prog_compiler_static_CXX=
19426
19427{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19428echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19429
19430 # C++ specific cases for pic, static, wl, etc.
19431 if test "$GXX" = yes; then
19432 lt_prog_compiler_wl_CXX='-Wl,'
19433 lt_prog_compiler_static_CXX='-static'
19434
19435 case $host_os in
19436 aix*)
19437 # All AIX code is PIC.
19438 if test "$host_cpu" = ia64; then
19439 # AIX 5 now supports IA64 processor
19440 lt_prog_compiler_static_CXX='-Bstatic'
19441 fi
19442 ;;
19443 amigaos*)
19444 # FIXME: we need at least 68020 code to build shared libraries, but
19445 # adding the `-m68020' flag to GCC prevents building anything better,
19446 # like `-m68040'.
19447 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19448 ;;
19449 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19450 # PIC is the default for these OSes.
19451 ;;
19452 mingw* | os2* | pw32*)
19453 # This hack is so that the source file can tell whether it is being
19454 # built for inclusion in a dll (and should export symbols for example).
19455 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19456 ;;
19457 darwin* | rhapsody*)
19458 # PIC is the default on this platform
19459 # Common symbols not allowed in MH_DYLIB files
19460 lt_prog_compiler_pic_CXX='-fno-common'
19461 ;;
19462 *djgpp*)
19463 # DJGPP does not support shared libraries at all
19464 lt_prog_compiler_pic_CXX=
19465 ;;
19466 interix3*)
19467 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19468 # Instead, we relocate shared libraries at runtime.
19469 ;;
19470 sysv4*MP*)
19471 if test -d /usr/nec; then
19472 lt_prog_compiler_pic_CXX=-Kconform_pic
19473 fi
19474 ;;
19475 hpux*)
19476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19477 # not for PA HP-UX.
19478 case $host_cpu in
19479 hppa*64*|ia64*)
19480 ;;
19481 *)
19482 lt_prog_compiler_pic_CXX='-fPIC'
19483 ;;
19484 esac
19485 ;;
19486 *)
19487 lt_prog_compiler_pic_CXX='-fPIC'
19488 ;;
19489 esac
19490 else
19491 case $host_os in
19492 aix4* | aix5*)
19493 # All AIX code is PIC.
19494 if test "$host_cpu" = ia64; then
19495 # AIX 5 now supports IA64 processor
19496 lt_prog_compiler_static_CXX='-Bstatic'
19497 else
19498 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19499 fi
19500 ;;
19501 chorus*)
19502 case $cc_basename in
19503 cxch68*)
19504 # Green Hills C++ Compiler
19505 # _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"
19506 ;;
19507 esac
19508 ;;
19509 darwin*)
19510 # PIC is the default on this platform
19511 # Common symbols not allowed in MH_DYLIB files
19512 case $cc_basename in
19513 xlc*)
19514 lt_prog_compiler_pic_CXX='-qnocommon'
19515 lt_prog_compiler_wl_CXX='-Wl,'
19516 ;;
19517 esac
19518 ;;
19519 dgux*)
19520 case $cc_basename in
19521 ec++*)
19522 lt_prog_compiler_pic_CXX='-KPIC'
19523 ;;
19524 ghcx*)
19525 # Green Hills C++ Compiler
19526 lt_prog_compiler_pic_CXX='-pic'
19527 ;;
19528 *)
19529 ;;
19530 esac
19531 ;;
19532 freebsd* | kfreebsd*-gnu | dragonfly*)
19533 # FreeBSD uses GNU C++
19534 ;;
19535 hpux9* | hpux10* | hpux11*)
19536 case $cc_basename in
19537 CC*)
19538 lt_prog_compiler_wl_CXX='-Wl,'
19539 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19540 if test "$host_cpu" != ia64; then
19541 lt_prog_compiler_pic_CXX='+Z'
19542 fi
19543 ;;
19544 aCC*)
19545 lt_prog_compiler_wl_CXX='-Wl,'
19546 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19547 case $host_cpu in
19548 hppa*64*|ia64*)
19549 # +Z the default
19550 ;;
19551 *)
19552 lt_prog_compiler_pic_CXX='+Z'
19553 ;;
19554 esac
19555 ;;
19556 *)
19557 ;;
19558 esac
19559 ;;
19560 interix*)
19561 # This is c89, which is MS Visual C++ (no shared libs)
19562 # Anyone wants to do a port?
19563 ;;
19564 irix5* | irix6* | nonstopux*)
19565 case $cc_basename in
19566 CC*)
19567 lt_prog_compiler_wl_CXX='-Wl,'
19568 lt_prog_compiler_static_CXX='-non_shared'
19569 # CC pic flag -KPIC is the default.
19570 ;;
19571 *)
19572 ;;
19573 esac
19574 ;;
19575 linux*)
19576 case $cc_basename in
19577 KCC*)
19578 # KAI C++ Compiler
19579 lt_prog_compiler_wl_CXX='--backend -Wl,'
19580 lt_prog_compiler_pic_CXX='-fPIC'
19581 ;;
19582 icpc* | ecpc*)
19583 # Intel C++
19584 lt_prog_compiler_wl_CXX='-Wl,'
19585 lt_prog_compiler_pic_CXX='-KPIC'
19586 lt_prog_compiler_static_CXX='-static'
19587 ;;
19588 pgCC*)
19589 # Portland Group C++ compiler.
19590 lt_prog_compiler_wl_CXX='-Wl,'
19591 lt_prog_compiler_pic_CXX='-fpic'
19592 lt_prog_compiler_static_CXX='-Bstatic'
19593 ;;
19594 cxx*)
19595 # Compaq C++
19596 # Make sure the PIC flag is empty. It appears that all Alpha
19597 # Linux and Compaq Tru64 Unix objects are PIC.
19598 lt_prog_compiler_pic_CXX=
19599 lt_prog_compiler_static_CXX='-non_shared'
19600 ;;
19601 *)
19602 ;;
19603 esac
19604 ;;
19605 lynxos*)
19606 ;;
19607 m88k*)
19608 ;;
19609 mvs*)
19610 case $cc_basename in
19611 cxx*)
19612 lt_prog_compiler_pic_CXX='-W c,exportall'
19613 ;;
19614 *)
19615 ;;
19616 esac
19617 ;;
19618 netbsd*)
19619 ;;
19620 osf3* | osf4* | osf5*)
19621 case $cc_basename in
19622 KCC*)
19623 lt_prog_compiler_wl_CXX='--backend -Wl,'
19624 ;;
19625 RCC*)
19626 # Rational C++ 2.4.1
19627 lt_prog_compiler_pic_CXX='-pic'
19628 ;;
19629 cxx*)
19630 # Digital/Compaq C++
19631 lt_prog_compiler_wl_CXX='-Wl,'
19632 # Make sure the PIC flag is empty. It appears that all Alpha
19633 # Linux and Compaq Tru64 Unix objects are PIC.
19634 lt_prog_compiler_pic_CXX=
19635 lt_prog_compiler_static_CXX='-non_shared'
19636 ;;
19637 *)
19638 ;;
19639 esac
19640 ;;
19641 psos*)
19642 ;;
19643 solaris*)
19644 case $cc_basename in
19645 CC*)
19646 # Sun C++ 4.2, 5.x and Centerline C++
19647 lt_prog_compiler_pic_CXX='-KPIC'
19648 lt_prog_compiler_static_CXX='-Bstatic'
19649 lt_prog_compiler_wl_CXX='-Qoption ld '
19650 ;;
19651 gcx*)
19652 # Green Hills C++ Compiler
19653 lt_prog_compiler_pic_CXX='-PIC'
19654 ;;
19655 *)
19656 ;;
19657 esac
19658 ;;
19659 sunos4*)
19660 case $cc_basename in
19661 CC*)
19662 # Sun C++ 4.x
19663 lt_prog_compiler_pic_CXX='-pic'
19664 lt_prog_compiler_static_CXX='-Bstatic'
19665 ;;
19666 lcc*)
19667 # Lucid
19668 lt_prog_compiler_pic_CXX='-pic'
19669 ;;
19670 *)
19671 ;;
19672 esac
19673 ;;
19674 tandem*)
19675 case $cc_basename in
19676 NCC*)
19677 # NonStop-UX NCC 3.20
19678 lt_prog_compiler_pic_CXX='-KPIC'
19679 ;;
19680 *)
19681 ;;
19682 esac
19683 ;;
19684 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19685 case $cc_basename in
19686 CC*)
19687 lt_prog_compiler_wl_CXX='-Wl,'
19688 lt_prog_compiler_pic_CXX='-KPIC'
19689 lt_prog_compiler_static_CXX='-Bstatic'
19690 ;;
19691 esac
19692 ;;
19693 vxworks*)
19694 ;;
19695 *)
19696 lt_prog_compiler_can_build_shared_CXX=no
19697 ;;
19698 esac
19699 fi
19700
19701{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19702echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19703
19704#
19705# Check to make sure the PIC flag actually works.
19706#
19707if test -n "$lt_prog_compiler_pic_CXX"; then
19708
19709{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19710echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19711if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713else
19714 lt_prog_compiler_pic_works_CXX=no
19715 ac_outfile=conftest.$ac_objext
19716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19717 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19718 # Insert the option either (1) after the last *FLAGS variable, or
19719 # (2) before a word containing "conftest.", or (3) at the end.
19720 # Note that $ac_compile itself does not contain backslashes and begins
19721 # with a dollar sign (not a hyphen), so the echo should work correctly.
19722 # The option is referenced via a variable to avoid confusing sed.
19723 lt_compile=`echo "$ac_compile" | $SED \
19724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19726 -e 's:$: $lt_compiler_flag:'`
Owen Andersonff0f88e2009-05-18 23:58:51 +000019727 (eval echo "\"\$as_me:19727: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019728 (eval "$lt_compile" 2>conftest.err)
19729 ac_status=$?
19730 cat conftest.err >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000019731 echo "$as_me:19731: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019732 if (exit $ac_status) && test -s "$ac_outfile"; then
19733 # The compiler can only warn and ignore the option if not recognized
19734 # So say no if there are warnings other than the usual output.
19735 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19738 lt_prog_compiler_pic_works_CXX=yes
19739 fi
19740 fi
19741 $rm conftest*
19742
19743fi
19744{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19745echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19746
19747if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19748 case $lt_prog_compiler_pic_CXX in
19749 "" | " "*) ;;
19750 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19751 esac
19752else
19753 lt_prog_compiler_pic_CXX=
19754 lt_prog_compiler_can_build_shared_CXX=no
19755fi
19756
19757fi
19758case $host_os in
19759 # For platforms which do not support PIC, -DPIC is meaningless:
19760 *djgpp*)
19761 lt_prog_compiler_pic_CXX=
19762 ;;
19763 *)
19764 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19765 ;;
19766esac
19767
19768#
19769# Check to make sure the static flag actually works.
19770#
19771wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19772{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19773echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19774if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19776else
19777 lt_prog_compiler_static_works_CXX=no
19778 save_LDFLAGS="$LDFLAGS"
19779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19780 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19782 # The linker can only warn and ignore the option if not recognized
19783 # So say no if there are warnings
19784 if test -s conftest.err; then
19785 # Append any errors to the config.log.
19786 cat conftest.err 1>&5
19787 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19789 if diff conftest.exp conftest.er2 >/dev/null; then
19790 lt_prog_compiler_static_works_CXX=yes
19791 fi
19792 else
19793 lt_prog_compiler_static_works_CXX=yes
19794 fi
19795 fi
19796 $rm conftest*
19797 LDFLAGS="$save_LDFLAGS"
19798
19799fi
19800{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19801echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19802
19803if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19804 :
19805else
19806 lt_prog_compiler_static_CXX=
19807fi
19808
19809
19810{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19811echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19812if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19814else
19815 lt_cv_prog_compiler_c_o_CXX=no
19816 $rm -r conftest 2>/dev/null
19817 mkdir conftest
19818 cd conftest
19819 mkdir out
19820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19821
19822 lt_compiler_flag="-o out/conftest2.$ac_objext"
19823 # Insert the option either (1) after the last *FLAGS variable, or
19824 # (2) before a word containing "conftest.", or (3) at the end.
19825 # Note that $ac_compile itself does not contain backslashes and begins
19826 # with a dollar sign (not a hyphen), so the echo should work correctly.
19827 lt_compile=`echo "$ac_compile" | $SED \
19828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19830 -e 's:$: $lt_compiler_flag:'`
Owen Andersonff0f88e2009-05-18 23:58:51 +000019831 (eval echo "\"\$as_me:19831: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019832 (eval "$lt_compile" 2>out/conftest.err)
19833 ac_status=$?
19834 cat out/conftest.err >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000019835 echo "$as_me:19835: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19837 then
19838 # The compiler can only warn and ignore the option if not recognized
19839 # So say no if there are warnings
19840 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19841 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19842 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19843 lt_cv_prog_compiler_c_o_CXX=yes
19844 fi
19845 fi
19846 chmod u+w . 2>&5
19847 $rm conftest*
19848 # SGI C++ compiler will create directory out/ii_files/ for
19849 # template instantiation
19850 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19851 $rm out/* && rmdir out
19852 cd ..
19853 rmdir conftest
19854 $rm conftest*
19855
19856fi
19857{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19858echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19859
19860
19861hard_links="nottested"
19862if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19863 # do not overwrite the value of need_locks provided by the user
19864 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19865echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19866 hard_links=yes
19867 $rm conftest*
19868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19869 touch conftest.a
19870 ln conftest.a conftest.b 2>&5 || hard_links=no
19871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19872 { echo "$as_me:$LINENO: result: $hard_links" >&5
19873echo "${ECHO_T}$hard_links" >&6; }
19874 if test "$hard_links" = no; then
19875 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19876echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19877 need_locks=warn
19878 fi
19879else
19880 need_locks=no
19881fi
19882
19883{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19884echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19885
19886 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19887 case $host_os in
19888 aix4* | aix5*)
19889 # If we're using GNU nm, then we don't want the "-C" option.
19890 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19891 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19892 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'
19893 else
19894 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'
19895 fi
19896 ;;
19897 pw32*)
19898 export_symbols_cmds_CXX="$ltdll_cmds"
19899 ;;
19900 cygwin* | mingw*)
19901 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'
19902 ;;
19903 *)
19904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19905 ;;
19906 esac
19907
19908{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19909echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19910test "$ld_shlibs_CXX" = no && can_build_shared=no
19911
19912#
19913# Do we need to explicitly link libc?
19914#
19915case "x$archive_cmds_need_lc_CXX" in
19916x|xyes)
19917 # Assume -lc should be added
19918 archive_cmds_need_lc_CXX=yes
19919
19920 if test "$enable_shared" = yes && test "$GCC" = yes; then
19921 case $archive_cmds_CXX in
19922 *'~'*)
19923 # FIXME: we may have to deal with multi-command sequences.
19924 ;;
19925 '$CC '*)
19926 # Test whether the compiler implicitly links with -lc since on some
19927 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19928 # to ld, don't add -lc before -lgcc.
19929 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19930echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19931 $rm conftest*
19932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19933
19934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19935 (eval $ac_compile) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } 2>conftest.err; then
19939 soname=conftest
19940 lib=conftest
19941 libobjs=conftest.$ac_objext
19942 deplibs=
19943 wl=$lt_prog_compiler_wl_CXX
19944 pic_flag=$lt_prog_compiler_pic_CXX
19945 compiler_flags=-v
19946 linker_flags=-v
19947 verstring=
19948 output_objdir=.
19949 libname=conftest
19950 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19951 allow_undefined_flag_CXX=
19952 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19953 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19954 ac_status=$?
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }
19957 then
19958 archive_cmds_need_lc_CXX=no
19959 else
19960 archive_cmds_need_lc_CXX=yes
19961 fi
19962 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19963 else
19964 cat conftest.err 1>&5
19965 fi
19966 $rm conftest*
19967 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19968echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19969 ;;
19970 esac
19971 fi
19972 ;;
19973esac
19974
19975{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19976echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19977library_names_spec=
19978libname_spec='lib$name'
19979soname_spec=
19980shrext_cmds=".so"
19981postinstall_cmds=
19982postuninstall_cmds=
19983finish_cmds=
19984finish_eval=
19985shlibpath_var=
19986shlibpath_overrides_runpath=unknown
19987version_type=none
19988dynamic_linker="$host_os ld.so"
19989sys_lib_dlsearch_path_spec="/lib /usr/lib"
19990if test "$GCC" = yes; then
19991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19992 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19993 # if the path contains ";" then we assume it to be the separator
19994 # otherwise default to the standard path separator (i.e. ":") - it is
19995 # assumed that no part of a normal pathname contains ";" but that should
19996 # okay in the real world where ";" in dirpaths is itself problematic.
19997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19998 else
19999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20000 fi
20001else
20002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20003fi
20004need_lib_prefix=unknown
20005hardcode_into_libs=no
20006
20007# when you set need_version to no, make sure it does not cause -set_version
20008# flags to be left without arguments
20009need_version=unknown
20010
20011case $host_os in
20012aix3*)
20013 version_type=linux
20014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20015 shlibpath_var=LIBPATH
20016
20017 # AIX 3 has no versioning support, so we append a major version to the name.
20018 soname_spec='${libname}${release}${shared_ext}$major'
20019 ;;
20020
20021aix4* | aix5*)
20022 version_type=linux
20023 need_lib_prefix=no
20024 need_version=no
20025 hardcode_into_libs=yes
20026 if test "$host_cpu" = ia64; then
20027 # AIX 5 supports IA64
20028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20029 shlibpath_var=LD_LIBRARY_PATH
20030 else
20031 # With GCC up to 2.95.x, collect2 would create an import file
20032 # for dependence libraries. The import file would start with
20033 # the line `#! .'. This would cause the generated library to
20034 # depend on `.', always an invalid library. This was fixed in
20035 # development snapshots of GCC prior to 3.0.
20036 case $host_os in
20037 aix4 | aix4.[01] | aix4.[01].*)
20038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20039 echo ' yes '
20040 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20041 :
20042 else
20043 can_build_shared=no
20044 fi
20045 ;;
20046 esac
20047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20048 # soname into executable. Probably we can add versioning support to
20049 # collect2, so additional links can be useful in future.
20050 if test "$aix_use_runtimelinking" = yes; then
20051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20052 # instead of lib<name>.a to let people know that these are not
20053 # typical AIX shared libraries.
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20055 else
20056 # We preserve .a as extension for shared libraries through AIX4.2
20057 # and later when we are not doing run time linking.
20058 library_names_spec='${libname}${release}.a $libname.a'
20059 soname_spec='${libname}${release}${shared_ext}$major'
20060 fi
20061 shlibpath_var=LIBPATH
20062 fi
20063 ;;
20064
20065amigaos*)
20066 library_names_spec='$libname.ixlibrary $libname.a'
20067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20068 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'
20069 ;;
20070
20071beos*)
20072 library_names_spec='${libname}${shared_ext}'
20073 dynamic_linker="$host_os ld.so"
20074 shlibpath_var=LIBRARY_PATH
20075 ;;
20076
20077bsdi[45]*)
20078 version_type=linux
20079 need_version=no
20080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20081 soname_spec='${libname}${release}${shared_ext}$major'
20082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20083 shlibpath_var=LD_LIBRARY_PATH
20084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20086 # the default ld.so.conf also contains /usr/contrib/lib and
20087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20088 # libtool to hard-code these into programs
20089 ;;
20090
20091cygwin* | mingw* | pw32*)
20092 version_type=windows
20093 shrext_cmds=".dll"
20094 need_version=no
20095 need_lib_prefix=no
20096
20097 case $GCC,$host_os in
20098 yes,cygwin* | yes,mingw* | yes,pw32*)
20099 library_names_spec='$libname.dll.a'
20100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20101 postinstall_cmds='base_file=`basename \${file}`~
20102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20103 dldir=$destdir/`dirname \$dlpath`~
20104 test -d \$dldir || mkdir -p \$dldir~
20105 $install_prog $dir/$dlname \$dldir/$dlname~
20106 chmod a+x \$dldir/$dlname'
20107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20108 dlpath=$dir/\$dldll~
20109 $rm \$dlpath'
20110 shlibpath_overrides_runpath=yes
20111
20112 case $host_os in
20113 cygwin*)
20114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20115 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20117 ;;
20118 mingw*)
20119 # MinGW DLLs use traditional 'lib' prefix
20120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20122 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20123 # It is most probably a Windows format PATH printed by
20124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20125 # path with ; separators, and with drive letters. We can handle the
20126 # drive letters (cygwin fileutils understands them), so leave them,
20127 # especially as we might pass files found there to a mingw objdump,
20128 # which wouldn't understand a cygwinified path. Ahh.
20129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20130 else
20131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20132 fi
20133 ;;
20134 pw32*)
20135 # pw32 DLLs use 'pw' prefix rather than 'lib'
20136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20137 ;;
20138 esac
20139 ;;
20140
20141 *)
20142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20143 ;;
20144 esac
20145 dynamic_linker='Win32 ld.exe'
20146 # FIXME: first we should search . and the directory the executable is in
20147 shlibpath_var=PATH
20148 ;;
20149
20150darwin* | rhapsody*)
20151 dynamic_linker="$host_os dyld"
20152 version_type=darwin
20153 need_lib_prefix=no
20154 need_version=no
20155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20156 soname_spec='${libname}${release}${major}$shared_ext'
20157 shlibpath_overrides_runpath=yes
20158 shlibpath_var=DYLD_LIBRARY_PATH
20159 shrext_cmds='.dylib'
20160 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20161 if test "$GCC" = yes; then
20162 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"`
20163 else
20164 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20165 fi
20166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20167 ;;
20168
20169dgux*)
20170 version_type=linux
20171 need_lib_prefix=no
20172 need_version=no
20173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20174 soname_spec='${libname}${release}${shared_ext}$major'
20175 shlibpath_var=LD_LIBRARY_PATH
20176 ;;
20177
20178freebsd1*)
20179 dynamic_linker=no
20180 ;;
20181
20182kfreebsd*-gnu)
20183 version_type=linux
20184 need_lib_prefix=no
20185 need_version=no
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20187 soname_spec='${libname}${release}${shared_ext}$major'
20188 shlibpath_var=LD_LIBRARY_PATH
20189 shlibpath_overrides_runpath=no
20190 hardcode_into_libs=yes
20191 dynamic_linker='GNU ld.so'
20192 ;;
20193
20194freebsd* | dragonfly*)
20195 # DragonFly does not have aout. When/if they implement a new
20196 # versioning mechanism, adjust this.
20197 if test -x /usr/bin/objformat; then
20198 objformat=`/usr/bin/objformat`
20199 else
20200 case $host_os in
20201 freebsd[123]*) objformat=aout ;;
20202 *) objformat=elf ;;
20203 esac
20204 fi
20205 version_type=freebsd-$objformat
20206 case $version_type in
20207 freebsd-elf*)
20208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20209 need_version=no
20210 need_lib_prefix=no
20211 ;;
20212 freebsd-*)
20213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20214 need_version=yes
20215 ;;
20216 esac
20217 shlibpath_var=LD_LIBRARY_PATH
20218 case $host_os in
20219 freebsd2*)
20220 shlibpath_overrides_runpath=yes
20221 ;;
20222 freebsd3.[01]* | freebsdelf3.[01]*)
20223 shlibpath_overrides_runpath=yes
20224 hardcode_into_libs=yes
20225 ;;
20226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20228 shlibpath_overrides_runpath=no
20229 hardcode_into_libs=yes
20230 ;;
20231 freebsd*) # from 4.6 on
20232 shlibpath_overrides_runpath=yes
20233 hardcode_into_libs=yes
20234 ;;
20235 esac
20236 ;;
20237
20238gnu*)
20239 version_type=linux
20240 need_lib_prefix=no
20241 need_version=no
20242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20243 soname_spec='${libname}${release}${shared_ext}$major'
20244 shlibpath_var=LD_LIBRARY_PATH
20245 hardcode_into_libs=yes
20246 ;;
20247
20248hpux9* | hpux10* | hpux11*)
20249 # Give a soname corresponding to the major version so that dld.sl refuses to
20250 # link against other versions.
20251 version_type=sunos
20252 need_lib_prefix=no
20253 need_version=no
20254 case $host_cpu in
20255 ia64*)
20256 shrext_cmds='.so'
20257 hardcode_into_libs=yes
20258 dynamic_linker="$host_os dld.so"
20259 shlibpath_var=LD_LIBRARY_PATH
20260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20263 if test "X$HPUX_IA64_MODE" = X32; then
20264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20265 else
20266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20267 fi
20268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20269 ;;
20270 hppa*64*)
20271 shrext_cmds='.sl'
20272 hardcode_into_libs=yes
20273 dynamic_linker="$host_os dld.sl"
20274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20277 soname_spec='${libname}${release}${shared_ext}$major'
20278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20280 ;;
20281 *)
20282 shrext_cmds='.sl'
20283 dynamic_linker="$host_os dld.sl"
20284 shlibpath_var=SHLIB_PATH
20285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20287 soname_spec='${libname}${release}${shared_ext}$major'
20288 ;;
20289 esac
20290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20291 postinstall_cmds='chmod 555 $lib'
20292 ;;
20293
20294interix3*)
20295 version_type=linux
20296 need_lib_prefix=no
20297 need_version=no
20298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20299 soname_spec='${libname}${release}${shared_ext}$major'
20300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20301 shlibpath_var=LD_LIBRARY_PATH
20302 shlibpath_overrides_runpath=no
20303 hardcode_into_libs=yes
20304 ;;
20305
20306irix5* | irix6* | nonstopux*)
20307 case $host_os in
20308 nonstopux*) version_type=nonstopux ;;
20309 *)
20310 if test "$lt_cv_prog_gnu_ld" = yes; then
20311 version_type=linux
20312 else
20313 version_type=irix
20314 fi ;;
20315 esac
20316 need_lib_prefix=no
20317 need_version=no
20318 soname_spec='${libname}${release}${shared_ext}$major'
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20320 case $host_os in
20321 irix5* | nonstopux*)
20322 libsuff= shlibsuff=
20323 ;;
20324 *)
20325 case $LD in # libtool.m4 will add one of these switches to LD
20326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20327 libsuff= shlibsuff= libmagic=32-bit;;
20328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20329 libsuff=32 shlibsuff=N32 libmagic=N32;;
20330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20332 *) libsuff= shlibsuff= libmagic=never-match;;
20333 esac
20334 ;;
20335 esac
20336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20337 shlibpath_overrides_runpath=no
20338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20340 hardcode_into_libs=yes
20341 ;;
20342
20343# No shared lib support for Linux oldld, aout, or coff.
20344linux*oldld* | linux*aout* | linux*coff*)
20345 dynamic_linker=no
20346 ;;
20347
20348# This must be Linux ELF.
20349linux*)
20350 version_type=linux
20351 need_lib_prefix=no
20352 need_version=no
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 soname_spec='${libname}${release}${shared_ext}$major'
20355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 shlibpath_overrides_runpath=no
20358 # This implies no fast_install, which is unacceptable.
20359 # Some rework will be needed to allow for fast_install
20360 # before this can be enabled.
20361 hardcode_into_libs=yes
20362
20363 # Append ld.so.conf contents to the search path
20364 if test -f /etc/ld.so.conf; then
20365 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' ' '`
20366 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20367 fi
20368
20369 # We used to test for /lib/ld.so.1 and disable shared libraries on
20370 # powerpc, because MkLinux only supported shared libraries with the
20371 # GNU dynamic linker. Since this was broken with cross compilers,
20372 # most powerpc-linux boxes support dynamic linking these days and
20373 # people can always --disable-shared, the test was removed, and we
20374 # assume the GNU/Linux dynamic linker is in use.
20375 dynamic_linker='GNU/Linux ld.so'
20376 ;;
20377
20378knetbsd*-gnu)
20379 version_type=linux
20380 need_lib_prefix=no
20381 need_version=no
20382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20383 soname_spec='${libname}${release}${shared_ext}$major'
20384 shlibpath_var=LD_LIBRARY_PATH
20385 shlibpath_overrides_runpath=no
20386 hardcode_into_libs=yes
20387 dynamic_linker='GNU ld.so'
20388 ;;
20389
20390netbsd*)
20391 version_type=sunos
20392 need_lib_prefix=no
20393 need_version=no
20394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20397 dynamic_linker='NetBSD (a.out) ld.so'
20398 else
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 dynamic_linker='NetBSD ld.elf_so'
20402 fi
20403 shlibpath_var=LD_LIBRARY_PATH
20404 shlibpath_overrides_runpath=yes
20405 hardcode_into_libs=yes
20406 ;;
20407
20408newsos6)
20409 version_type=linux
20410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 shlibpath_overrides_runpath=yes
20413 ;;
20414
20415nto-qnx*)
20416 version_type=linux
20417 need_lib_prefix=no
20418 need_version=no
20419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 shlibpath_var=LD_LIBRARY_PATH
20422 shlibpath_overrides_runpath=yes
20423 ;;
20424
20425openbsd*)
20426 version_type=sunos
20427 sys_lib_dlsearch_path_spec="/usr/lib"
20428 need_lib_prefix=no
20429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20430 case $host_os in
20431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20432 *) need_version=no ;;
20433 esac
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20436 shlibpath_var=LD_LIBRARY_PATH
20437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20438 case $host_os in
20439 openbsd2.[89] | openbsd2.[89].*)
20440 shlibpath_overrides_runpath=no
20441 ;;
20442 *)
20443 shlibpath_overrides_runpath=yes
20444 ;;
20445 esac
20446 else
20447 shlibpath_overrides_runpath=yes
20448 fi
20449 ;;
20450
20451os2*)
20452 libname_spec='$name'
20453 shrext_cmds=".dll"
20454 need_lib_prefix=no
20455 library_names_spec='$libname${shared_ext} $libname.a'
20456 dynamic_linker='OS/2 ld.exe'
20457 shlibpath_var=LIBPATH
20458 ;;
20459
20460osf3* | osf4* | osf5*)
20461 version_type=osf
20462 need_lib_prefix=no
20463 need_version=no
20464 soname_spec='${libname}${release}${shared_ext}$major'
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466 shlibpath_var=LD_LIBRARY_PATH
20467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20469 ;;
20470
20471solaris*)
20472 version_type=linux
20473 need_lib_prefix=no
20474 need_version=no
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20476 soname_spec='${libname}${release}${shared_ext}$major'
20477 shlibpath_var=LD_LIBRARY_PATH
20478 shlibpath_overrides_runpath=yes
20479 hardcode_into_libs=yes
20480 # ldd complains unless libraries are executable
20481 postinstall_cmds='chmod +x $lib'
20482 ;;
20483
20484sunos4*)
20485 version_type=sunos
20486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20487 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20488 shlibpath_var=LD_LIBRARY_PATH
20489 shlibpath_overrides_runpath=yes
20490 if test "$with_gnu_ld" = yes; then
20491 need_lib_prefix=no
20492 fi
20493 need_version=yes
20494 ;;
20495
20496sysv4 | sysv4.3*)
20497 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
20501 case $host_vendor in
20502 sni)
20503 shlibpath_overrides_runpath=no
20504 need_lib_prefix=no
20505 export_dynamic_flag_spec='${wl}-Blargedynsym'
20506 runpath_var=LD_RUN_PATH
20507 ;;
20508 siemens)
20509 need_lib_prefix=no
20510 ;;
20511 motorola)
20512 need_lib_prefix=no
20513 need_version=no
20514 shlibpath_overrides_runpath=no
20515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20516 ;;
20517 esac
20518 ;;
20519
20520sysv4*MP*)
20521 if test -d /usr/nec ;then
20522 version_type=linux
20523 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20524 soname_spec='$libname${shared_ext}.$major'
20525 shlibpath_var=LD_LIBRARY_PATH
20526 fi
20527 ;;
20528
20529sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20530 version_type=freebsd-elf
20531 need_lib_prefix=no
20532 need_version=no
20533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20534 soname_spec='${libname}${release}${shared_ext}$major'
20535 shlibpath_var=LD_LIBRARY_PATH
20536 hardcode_into_libs=yes
20537 if test "$with_gnu_ld" = yes; then
20538 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20539 shlibpath_overrides_runpath=no
20540 else
20541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20542 shlibpath_overrides_runpath=yes
20543 case $host_os in
20544 sco3.2v5*)
20545 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20546 ;;
20547 esac
20548 fi
20549 sys_lib_dlsearch_path_spec='/usr/lib'
20550 ;;
20551
20552uts4*)
20553 version_type=linux
20554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20555 soname_spec='${libname}${release}${shared_ext}$major'
20556 shlibpath_var=LD_LIBRARY_PATH
20557 ;;
20558
20559*)
20560 dynamic_linker=no
20561 ;;
20562esac
20563{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20564echo "${ECHO_T}$dynamic_linker" >&6; }
20565test "$dynamic_linker" = no && can_build_shared=no
20566
20567variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20568if test "$GCC" = yes; then
20569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20570fi
20571
20572{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20573echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20574hardcode_action_CXX=
20575if test -n "$hardcode_libdir_flag_spec_CXX" || \
20576 test -n "$runpath_var_CXX" || \
20577 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20578
20579 # We can hardcode non-existant directories.
20580 if test "$hardcode_direct_CXX" != no &&
20581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20582 # have to relink, otherwise we might link with an installed library
20583 # when we should be linking with a yet-to-be-installed one
20584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20585 test "$hardcode_minus_L_CXX" != no; then
20586 # Linking always hardcodes the temporary library directory.
20587 hardcode_action_CXX=relink
20588 else
20589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20590 hardcode_action_CXX=immediate
20591 fi
20592else
20593 # We cannot hardcode anything, or else we can only hardcode existing
20594 # directories.
20595 hardcode_action_CXX=unsupported
20596fi
20597{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20598echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20599
20600if test "$hardcode_action_CXX" = relink; then
20601 # Fast installation is not supported
20602 enable_fast_install=no
20603elif test "$shlibpath_overrides_runpath" = yes ||
20604 test "$enable_shared" = no; then
20605 # Fast installation is not necessary
20606 enable_fast_install=needless
20607fi
20608
20609
20610# The else clause should only fire when bootstrapping the
20611# libtool distribution, otherwise you forgot to ship ltmain.sh
20612# with your package, and you will get complaints that there are
20613# no rules to generate ltmain.sh.
20614if test -f "$ltmain"; then
20615 # See if we are running on zsh, and set the options which allow our commands through
20616 # without removal of \ escapes.
20617 if test -n "${ZSH_VERSION+set}" ; then
20618 setopt NO_GLOB_SUBST
20619 fi
20620 # Now quote all the things that may contain metacharacters while being
20621 # careful not to overquote the AC_SUBSTed values. We take copies of the
20622 # variables and quote the copies for generation of the libtool script.
20623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20624 SED SHELL STRIP \
20625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20627 deplibs_check_method reload_flag reload_cmds need_locks \
20628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20629 lt_cv_sys_global_symbol_to_c_name_address \
20630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20631 old_postinstall_cmds old_postuninstall_cmds \
20632 compiler_CXX \
20633 CC_CXX \
20634 LD_CXX \
20635 lt_prog_compiler_wl_CXX \
20636 lt_prog_compiler_pic_CXX \
20637 lt_prog_compiler_static_CXX \
20638 lt_prog_compiler_no_builtin_flag_CXX \
20639 export_dynamic_flag_spec_CXX \
20640 thread_safe_flag_spec_CXX \
20641 whole_archive_flag_spec_CXX \
20642 enable_shared_with_static_runtimes_CXX \
20643 old_archive_cmds_CXX \
20644 old_archive_from_new_cmds_CXX \
20645 predep_objects_CXX \
20646 postdep_objects_CXX \
20647 predeps_CXX \
20648 postdeps_CXX \
20649 compiler_lib_search_path_CXX \
20650 archive_cmds_CXX \
20651 archive_expsym_cmds_CXX \
20652 postinstall_cmds_CXX \
20653 postuninstall_cmds_CXX \
20654 old_archive_from_expsyms_cmds_CXX \
20655 allow_undefined_flag_CXX \
20656 no_undefined_flag_CXX \
20657 export_symbols_cmds_CXX \
20658 hardcode_libdir_flag_spec_CXX \
20659 hardcode_libdir_flag_spec_ld_CXX \
20660 hardcode_libdir_separator_CXX \
20661 hardcode_automatic_CXX \
20662 module_cmds_CXX \
20663 module_expsym_cmds_CXX \
20664 lt_cv_prog_compiler_c_o_CXX \
20665 exclude_expsyms_CXX \
20666 include_expsyms_CXX; do
20667
20668 case $var in
20669 old_archive_cmds_CXX | \
20670 old_archive_from_new_cmds_CXX | \
20671 archive_cmds_CXX | \
20672 archive_expsym_cmds_CXX | \
20673 module_cmds_CXX | \
20674 module_expsym_cmds_CXX | \
20675 old_archive_from_expsyms_cmds_CXX | \
20676 export_symbols_cmds_CXX | \
20677 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20678 postinstall_cmds | postuninstall_cmds | \
20679 old_postinstall_cmds | old_postuninstall_cmds | \
20680 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20681 # Double-quote double-evaled strings.
20682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20683 ;;
20684 *)
20685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20686 ;;
20687 esac
20688 done
20689
20690 case $lt_echo in
20691 *'\$0 --fallback-echo"')
20692 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20693 ;;
20694 esac
20695
20696cfgfile="$ofile"
20697
20698 cat <<__EOF__ >> "$cfgfile"
20699# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20700
20701# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20702
20703# Shell to use when invoking shell scripts.
20704SHELL=$lt_SHELL
20705
20706# Whether or not to build shared libraries.
20707build_libtool_libs=$enable_shared
20708
20709# Whether or not to build static libraries.
20710build_old_libs=$enable_static
20711
20712# Whether or not to add -lc for building shared libraries.
20713build_libtool_need_lc=$archive_cmds_need_lc_CXX
20714
20715# Whether or not to disallow shared libs when runtime libs are static
20716allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20717
20718# Whether or not to optimize for fast installation.
20719fast_install=$enable_fast_install
20720
20721# The host system.
20722host_alias=$host_alias
20723host=$host
20724host_os=$host_os
20725
20726# The build system.
20727build_alias=$build_alias
20728build=$build
20729build_os=$build_os
20730
20731# An echo program that does not interpret backslashes.
20732echo=$lt_echo
20733
20734# The archiver.
20735AR=$lt_AR
20736AR_FLAGS=$lt_AR_FLAGS
20737
20738# A C compiler.
20739LTCC=$lt_LTCC
20740
20741# LTCC compiler flags.
20742LTCFLAGS=$lt_LTCFLAGS
20743
20744# A language-specific compiler.
20745CC=$lt_compiler_CXX
20746
20747# Is the compiler the GNU C compiler?
20748with_gcc=$GCC_CXX
20749
20750# An ERE matcher.
20751EGREP=$lt_EGREP
20752
20753# The linker used to build libraries.
20754LD=$lt_LD_CXX
20755
20756# Whether we need hard or soft links.
20757LN_S=$lt_LN_S
20758
20759# A BSD-compatible nm program.
20760NM=$lt_NM
20761
20762# A symbol stripping program
20763STRIP=$lt_STRIP
20764
20765# Used to examine libraries when file_magic_cmd begins "file"
20766MAGIC_CMD=$MAGIC_CMD
20767
20768# Used on cygwin: DLL creation program.
20769DLLTOOL="$DLLTOOL"
20770
20771# Used on cygwin: object dumper.
20772OBJDUMP="$OBJDUMP"
20773
20774# Used on cygwin: assembler.
20775AS="$AS"
20776
20777# The name of the directory that contains temporary libtool files.
20778objdir=$objdir
20779
20780# How to create reloadable object files.
20781reload_flag=$lt_reload_flag
20782reload_cmds=$lt_reload_cmds
20783
20784# How to pass a linker flag through the compiler.
20785wl=$lt_lt_prog_compiler_wl_CXX
20786
20787# Object file suffix (normally "o").
20788objext="$ac_objext"
20789
20790# Old archive suffix (normally "a").
20791libext="$libext"
20792
20793# Shared library suffix (normally ".so").
20794shrext_cmds='$shrext_cmds'
20795
20796# Executable file suffix (normally "").
20797exeext="$exeext"
20798
20799# Additional compiler flags for building library objects.
20800pic_flag=$lt_lt_prog_compiler_pic_CXX
20801pic_mode=$pic_mode
20802
20803# What is the maximum length of a command?
20804max_cmd_len=$lt_cv_sys_max_cmd_len
20805
20806# Does compiler simultaneously support -c and -o options?
20807compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20808
20809# Must we lock files when doing compilation?
20810need_locks=$lt_need_locks
20811
20812# Do we need the lib prefix for modules?
20813need_lib_prefix=$need_lib_prefix
20814
20815# Do we need a version for libraries?
20816need_version=$need_version
20817
20818# Whether dlopen is supported.
20819dlopen_support=$enable_dlopen
20820
20821# Whether dlopen of programs is supported.
20822dlopen_self=$enable_dlopen_self
20823
20824# Whether dlopen of statically linked programs is supported.
20825dlopen_self_static=$enable_dlopen_self_static
20826
20827# Compiler flag to prevent dynamic linking.
20828link_static_flag=$lt_lt_prog_compiler_static_CXX
20829
20830# Compiler flag to turn off builtin functions.
20831no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20832
20833# Compiler flag to allow reflexive dlopens.
20834export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20835
20836# Compiler flag to generate shared objects directly from archives.
20837whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20838
20839# Compiler flag to generate thread-safe objects.
20840thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20841
20842# Library versioning type.
20843version_type=$version_type
20844
20845# Format of library name prefix.
20846libname_spec=$lt_libname_spec
20847
20848# List of archive names. First name is the real one, the rest are links.
20849# The last name is the one that the linker finds with -lNAME.
20850library_names_spec=$lt_library_names_spec
20851
20852# The coded name of the library, if different from the real name.
20853soname_spec=$lt_soname_spec
20854
20855# Commands used to build and install an old-style archive.
20856RANLIB=$lt_RANLIB
20857old_archive_cmds=$lt_old_archive_cmds_CXX
20858old_postinstall_cmds=$lt_old_postinstall_cmds
20859old_postuninstall_cmds=$lt_old_postuninstall_cmds
20860
20861# Create an old-style archive from a shared archive.
20862old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20863
20864# Create a temporary old-style archive to link instead of a shared archive.
20865old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20866
20867# Commands used to build and install a shared archive.
20868archive_cmds=$lt_archive_cmds_CXX
20869archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20870postinstall_cmds=$lt_postinstall_cmds
20871postuninstall_cmds=$lt_postuninstall_cmds
20872
20873# Commands used to build a loadable module (assumed same as above if empty)
20874module_cmds=$lt_module_cmds_CXX
20875module_expsym_cmds=$lt_module_expsym_cmds_CXX
20876
20877# Commands to strip libraries.
20878old_striplib=$lt_old_striplib
20879striplib=$lt_striplib
20880
20881# Dependencies to place before the objects being linked to create a
20882# shared library.
20883predep_objects=$lt_predep_objects_CXX
20884
20885# Dependencies to place after the objects being linked to create a
20886# shared library.
20887postdep_objects=$lt_postdep_objects_CXX
20888
20889# Dependencies to place before the objects being linked to create a
20890# shared library.
20891predeps=$lt_predeps_CXX
20892
20893# Dependencies to place after the objects being linked to create a
20894# shared library.
20895postdeps=$lt_postdeps_CXX
20896
20897# The library search path used internally by the compiler when linking
20898# a shared library.
20899compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20900
20901# Method to check whether dependent libraries are shared objects.
20902deplibs_check_method=$lt_deplibs_check_method
20903
20904# Command to use when deplibs_check_method == file_magic.
20905file_magic_cmd=$lt_file_magic_cmd
20906
20907# Flag that allows shared libraries with undefined symbols to be built.
20908allow_undefined_flag=$lt_allow_undefined_flag_CXX
20909
20910# Flag that forces no undefined symbols.
20911no_undefined_flag=$lt_no_undefined_flag_CXX
20912
20913# Commands used to finish a libtool library installation in a directory.
20914finish_cmds=$lt_finish_cmds
20915
20916# Same as above, but a single script fragment to be evaled but not shown.
20917finish_eval=$lt_finish_eval
20918
20919# Take the output of nm and produce a listing of raw symbols and C names.
20920global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20921
20922# Transform the output of nm in a proper C declaration
20923global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20924
20925# Transform the output of nm in a C name address pair
20926global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20927
20928# This is the shared library runtime path variable.
20929runpath_var=$runpath_var
20930
20931# This is the shared library path variable.
20932shlibpath_var=$shlibpath_var
20933
20934# Is shlibpath searched before the hard-coded library search path?
20935shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20936
20937# How to hardcode a shared library path into an executable.
20938hardcode_action=$hardcode_action_CXX
20939
20940# Whether we should hardcode library paths into libraries.
20941hardcode_into_libs=$hardcode_into_libs
20942
20943# Flag to hardcode \$libdir into a binary during linking.
20944# This must work even if \$libdir does not exist.
20945hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20946
20947# If ld is used when linking, flag to hardcode \$libdir into
20948# a binary during linking. This must work even if \$libdir does
20949# not exist.
20950hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20951
20952# Whether we need a single -rpath flag with a separated argument.
20953hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20954
20955# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20956# resulting binary.
20957hardcode_direct=$hardcode_direct_CXX
20958
20959# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20960# resulting binary.
20961hardcode_minus_L=$hardcode_minus_L_CXX
20962
20963# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20964# the resulting binary.
20965hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20966
20967# Set to yes if building a shared library automatically hardcodes DIR into the library
20968# and all subsequent libraries and executables linked against it.
20969hardcode_automatic=$hardcode_automatic_CXX
20970
20971# Variables whose values should be saved in libtool wrapper scripts and
20972# restored at relink time.
20973variables_saved_for_relink="$variables_saved_for_relink"
20974
20975# Whether libtool must link a program against all its dependency libraries.
20976link_all_deplibs=$link_all_deplibs_CXX
20977
20978# Compile-time system search path for libraries
20979sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20980
20981# Run-time system search path for libraries
20982sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20983
20984# Fix the shell variable \$srcfile for the compiler.
20985fix_srcfile_path="$fix_srcfile_path_CXX"
20986
20987# Set to yes if exported symbols are required.
20988always_export_symbols=$always_export_symbols_CXX
20989
20990# The commands to list exported symbols.
20991export_symbols_cmds=$lt_export_symbols_cmds_CXX
20992
20993# The commands to extract the exported symbol list from a shared archive.
20994extract_expsyms_cmds=$lt_extract_expsyms_cmds
20995
20996# Symbols that should not be listed in the preloaded symbols.
20997exclude_expsyms=$lt_exclude_expsyms_CXX
20998
20999# Symbols that must always be exported.
21000include_expsyms=$lt_include_expsyms_CXX
21001
21002# ### END LIBTOOL TAG CONFIG: $tagname
21003
21004__EOF__
21005
21006
21007else
21008 # If there is no Makefile yet, we rely on a make rule to execute
21009 # `config.status --recheck' to rerun these tests and create the
21010 # libtool script then.
21011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21012 if test -f "$ltmain_in"; then
21013 test -f Makefile && make "$ltmain"
21014 fi
21015fi
21016
21017
21018ac_ext=c
21019ac_cpp='$CPP $CPPFLAGS'
21020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
21024CC=$lt_save_CC
21025LDCXX=$LD
21026LD=$lt_save_LD
21027GCC=$lt_save_GCC
21028with_gnu_ldcxx=$with_gnu_ld
21029with_gnu_ld=$lt_save_with_gnu_ld
21030lt_cv_path_LDCXX=$lt_cv_path_LD
21031lt_cv_path_LD=$lt_save_path_LD
21032lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21033lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21034
21035 else
21036 tagname=""
21037 fi
21038 ;;
21039
21040 F77)
21041 if test -n "$F77" && test "X$F77" != "Xno"; then
21042
21043ac_ext=f
21044ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21045ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21047
21048
21049archive_cmds_need_lc_F77=no
21050allow_undefined_flag_F77=
21051always_export_symbols_F77=no
21052archive_expsym_cmds_F77=
21053export_dynamic_flag_spec_F77=
21054hardcode_direct_F77=no
21055hardcode_libdir_flag_spec_F77=
21056hardcode_libdir_flag_spec_ld_F77=
21057hardcode_libdir_separator_F77=
21058hardcode_minus_L_F77=no
21059hardcode_automatic_F77=no
21060module_cmds_F77=
21061module_expsym_cmds_F77=
21062link_all_deplibs_F77=unknown
21063old_archive_cmds_F77=$old_archive_cmds
21064no_undefined_flag_F77=
21065whole_archive_flag_spec_F77=
21066enable_shared_with_static_runtimes_F77=no
21067
21068# Source file extension for f77 test sources.
21069ac_ext=f
21070
21071# Object file extension for compiled f77 test sources.
21072objext=o
21073objext_F77=$objext
21074
21075# Code to be used in simple compile tests
21076lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21077
21078# Code to be used in simple link tests
21079lt_simple_link_test_code=" program t\n end\n"
21080
21081# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21082
21083# If no C compiler was specified, use CC.
21084LTCC=${LTCC-"$CC"}
21085
21086# If no C compiler flags were specified, use CFLAGS.
21087LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21088
21089# Allow CC to be a program name with arguments.
21090compiler=$CC
21091
21092
21093# save warnings/boilerplate of simple test code
21094ac_outfile=conftest.$ac_objext
21095printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21096eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21097_lt_compiler_boilerplate=`cat conftest.err`
21098$rm conftest*
21099
21100ac_outfile=conftest.$ac_objext
21101printf "$lt_simple_link_test_code" >conftest.$ac_ext
21102eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21103_lt_linker_boilerplate=`cat conftest.err`
21104$rm conftest*
21105
21106
21107# Allow CC to be a program name with arguments.
21108lt_save_CC="$CC"
21109CC=${F77-"f77"}
21110compiler=$CC
21111compiler_F77=$CC
21112for cc_temp in $compiler""; do
21113 case $cc_temp in
21114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21116 \-*) ;;
21117 *) break;;
21118 esac
21119done
21120cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21121
21122
21123{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21124echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21125{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21126echo "${ECHO_T}$can_build_shared" >&6; }
21127
21128{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21129echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21130test "$can_build_shared" = "no" && enable_shared=no
21131
21132# On AIX, shared libraries and static libraries use the same namespace, and
21133# are all built from PIC.
21134case $host_os in
21135aix3*)
21136 test "$enable_shared" = yes && enable_static=no
21137 if test -n "$RANLIB"; then
21138 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21139 postinstall_cmds='$RANLIB $lib'
21140 fi
21141 ;;
21142aix4* | aix5*)
21143 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21144 test "$enable_shared" = yes && enable_static=no
21145 fi
21146 ;;
21147esac
21148{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21149echo "${ECHO_T}$enable_shared" >&6; }
21150
21151{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21152echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21153# Make sure either enable_shared or enable_static is yes.
21154test "$enable_shared" = yes || enable_static=yes
21155{ echo "$as_me:$LINENO: result: $enable_static" >&5
21156echo "${ECHO_T}$enable_static" >&6; }
21157
21158GCC_F77="$G77"
21159LD_F77="$LD"
21160
21161lt_prog_compiler_wl_F77=
21162lt_prog_compiler_pic_F77=
21163lt_prog_compiler_static_F77=
21164
21165{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21166echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21167
21168 if test "$GCC" = yes; then
21169 lt_prog_compiler_wl_F77='-Wl,'
21170 lt_prog_compiler_static_F77='-static'
21171
21172 case $host_os in
21173 aix*)
21174 # All AIX code is PIC.
21175 if test "$host_cpu" = ia64; then
21176 # AIX 5 now supports IA64 processor
21177 lt_prog_compiler_static_F77='-Bstatic'
21178 fi
21179 ;;
21180
21181 amigaos*)
21182 # FIXME: we need at least 68020 code to build shared libraries, but
21183 # adding the `-m68020' flag to GCC prevents building anything better,
21184 # like `-m68040'.
21185 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21186 ;;
21187
21188 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21189 # PIC is the default for these OSes.
21190 ;;
21191
21192 mingw* | pw32* | os2*)
21193 # This hack is so that the source file can tell whether it is being
21194 # built for inclusion in a dll (and should export symbols for example).
21195 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21196 ;;
21197
21198 darwin* | rhapsody*)
21199 # PIC is the default on this platform
21200 # Common symbols not allowed in MH_DYLIB files
21201 lt_prog_compiler_pic_F77='-fno-common'
21202 ;;
21203
21204 interix3*)
21205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21206 # Instead, we relocate shared libraries at runtime.
21207 ;;
21208
21209 msdosdjgpp*)
21210 # Just because we use GCC doesn't mean we suddenly get shared libraries
21211 # on systems that don't support them.
21212 lt_prog_compiler_can_build_shared_F77=no
21213 enable_shared=no
21214 ;;
21215
21216 sysv4*MP*)
21217 if test -d /usr/nec; then
21218 lt_prog_compiler_pic_F77=-Kconform_pic
21219 fi
21220 ;;
21221
21222 hpux*)
21223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21224 # not for PA HP-UX.
21225 case $host_cpu in
21226 hppa*64*|ia64*)
21227 # +Z the default
21228 ;;
21229 *)
21230 lt_prog_compiler_pic_F77='-fPIC'
21231 ;;
21232 esac
21233 ;;
21234
21235 *)
21236 lt_prog_compiler_pic_F77='-fPIC'
21237 ;;
21238 esac
21239 else
21240 # PORTME Check for flag to pass linker flags through the system compiler.
21241 case $host_os in
21242 aix*)
21243 lt_prog_compiler_wl_F77='-Wl,'
21244 if test "$host_cpu" = ia64; then
21245 # AIX 5 now supports IA64 processor
21246 lt_prog_compiler_static_F77='-Bstatic'
21247 else
21248 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21249 fi
21250 ;;
21251 darwin*)
21252 # PIC is the default on this platform
21253 # Common symbols not allowed in MH_DYLIB files
21254 case $cc_basename in
21255 xlc*)
21256 lt_prog_compiler_pic_F77='-qnocommon'
21257 lt_prog_compiler_wl_F77='-Wl,'
21258 ;;
21259 esac
21260 ;;
21261
21262 mingw* | pw32* | os2*)
21263 # This hack is so that the source file can tell whether it is being
21264 # built for inclusion in a dll (and should export symbols for example).
21265 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21266 ;;
21267
21268 hpux9* | hpux10* | hpux11*)
21269 lt_prog_compiler_wl_F77='-Wl,'
21270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21271 # not for PA HP-UX.
21272 case $host_cpu in
21273 hppa*64*|ia64*)
21274 # +Z the default
21275 ;;
21276 *)
21277 lt_prog_compiler_pic_F77='+Z'
21278 ;;
21279 esac
21280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21281 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21282 ;;
21283
21284 irix5* | irix6* | nonstopux*)
21285 lt_prog_compiler_wl_F77='-Wl,'
21286 # PIC (with -KPIC) is the default.
21287 lt_prog_compiler_static_F77='-non_shared'
21288 ;;
21289
21290 newsos6)
21291 lt_prog_compiler_pic_F77='-KPIC'
21292 lt_prog_compiler_static_F77='-Bstatic'
21293 ;;
21294
21295 linux*)
21296 case $cc_basename in
21297 icc* | ecc*)
21298 lt_prog_compiler_wl_F77='-Wl,'
21299 lt_prog_compiler_pic_F77='-KPIC'
21300 lt_prog_compiler_static_F77='-static'
21301 ;;
21302 pgcc* | pgf77* | pgf90* | pgf95*)
21303 # Portland Group compilers (*not* the Pentium gcc compiler,
21304 # which looks to be a dead project)
21305 lt_prog_compiler_wl_F77='-Wl,'
21306 lt_prog_compiler_pic_F77='-fpic'
21307 lt_prog_compiler_static_F77='-Bstatic'
21308 ;;
21309 ccc*)
21310 lt_prog_compiler_wl_F77='-Wl,'
21311 # All Alpha code is PIC.
21312 lt_prog_compiler_static_F77='-non_shared'
21313 ;;
21314 esac
21315 ;;
21316
21317 osf3* | osf4* | osf5*)
21318 lt_prog_compiler_wl_F77='-Wl,'
21319 # All OSF/1 code is PIC.
21320 lt_prog_compiler_static_F77='-non_shared'
21321 ;;
21322
21323 solaris*)
21324 lt_prog_compiler_pic_F77='-KPIC'
21325 lt_prog_compiler_static_F77='-Bstatic'
21326 case $cc_basename in
21327 f77* | f90* | f95*)
21328 lt_prog_compiler_wl_F77='-Qoption ld ';;
21329 *)
21330 lt_prog_compiler_wl_F77='-Wl,';;
21331 esac
21332 ;;
21333
21334 sunos4*)
21335 lt_prog_compiler_wl_F77='-Qoption ld '
21336 lt_prog_compiler_pic_F77='-PIC'
21337 lt_prog_compiler_static_F77='-Bstatic'
21338 ;;
21339
21340 sysv4 | sysv4.2uw2* | sysv4.3*)
21341 lt_prog_compiler_wl_F77='-Wl,'
21342 lt_prog_compiler_pic_F77='-KPIC'
21343 lt_prog_compiler_static_F77='-Bstatic'
21344 ;;
21345
21346 sysv4*MP*)
21347 if test -d /usr/nec ;then
21348 lt_prog_compiler_pic_F77='-Kconform_pic'
21349 lt_prog_compiler_static_F77='-Bstatic'
21350 fi
21351 ;;
21352
21353 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21354 lt_prog_compiler_wl_F77='-Wl,'
21355 lt_prog_compiler_pic_F77='-KPIC'
21356 lt_prog_compiler_static_F77='-Bstatic'
21357 ;;
21358
21359 unicos*)
21360 lt_prog_compiler_wl_F77='-Wl,'
21361 lt_prog_compiler_can_build_shared_F77=no
21362 ;;
21363
21364 uts4*)
21365 lt_prog_compiler_pic_F77='-pic'
21366 lt_prog_compiler_static_F77='-Bstatic'
21367 ;;
21368
21369 *)
21370 lt_prog_compiler_can_build_shared_F77=no
21371 ;;
21372 esac
21373 fi
21374
21375{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21376echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21377
21378#
21379# Check to make sure the PIC flag actually works.
21380#
21381if test -n "$lt_prog_compiler_pic_F77"; then
21382
21383{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21384echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21385if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21387else
21388 lt_prog_compiler_pic_works_F77=no
21389 ac_outfile=conftest.$ac_objext
21390 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21391 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21392 # Insert the option either (1) after the last *FLAGS variable, or
21393 # (2) before a word containing "conftest.", or (3) at the end.
21394 # Note that $ac_compile itself does not contain backslashes and begins
21395 # with a dollar sign (not a hyphen), so the echo should work correctly.
21396 # The option is referenced via a variable to avoid confusing sed.
21397 lt_compile=`echo "$ac_compile" | $SED \
21398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21400 -e 's:$: $lt_compiler_flag:'`
Owen Andersonff0f88e2009-05-18 23:58:51 +000021401 (eval echo "\"\$as_me:21401: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021402 (eval "$lt_compile" 2>conftest.err)
21403 ac_status=$?
21404 cat conftest.err >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000021405 echo "$as_me:21405: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021406 if (exit $ac_status) && test -s "$ac_outfile"; then
21407 # The compiler can only warn and ignore the option if not recognized
21408 # So say no if there are warnings other than the usual output.
21409 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21411 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21412 lt_prog_compiler_pic_works_F77=yes
21413 fi
21414 fi
21415 $rm conftest*
21416
21417fi
21418{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21419echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21420
21421if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21422 case $lt_prog_compiler_pic_F77 in
21423 "" | " "*) ;;
21424 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21425 esac
21426else
21427 lt_prog_compiler_pic_F77=
21428 lt_prog_compiler_can_build_shared_F77=no
21429fi
21430
21431fi
21432case $host_os in
21433 # For platforms which do not support PIC, -DPIC is meaningless:
21434 *djgpp*)
21435 lt_prog_compiler_pic_F77=
21436 ;;
21437 *)
21438 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21439 ;;
21440esac
21441
21442#
21443# Check to make sure the static flag actually works.
21444#
21445wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21446{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21447echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21448if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21450else
21451 lt_prog_compiler_static_works_F77=no
21452 save_LDFLAGS="$LDFLAGS"
21453 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21454 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21455 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21456 # The linker can only warn and ignore the option if not recognized
21457 # So say no if there are warnings
21458 if test -s conftest.err; then
21459 # Append any errors to the config.log.
21460 cat conftest.err 1>&5
21461 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21463 if diff conftest.exp conftest.er2 >/dev/null; then
21464 lt_prog_compiler_static_works_F77=yes
21465 fi
21466 else
21467 lt_prog_compiler_static_works_F77=yes
21468 fi
21469 fi
21470 $rm conftest*
21471 LDFLAGS="$save_LDFLAGS"
21472
21473fi
21474{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21475echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21476
21477if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21478 :
21479else
21480 lt_prog_compiler_static_F77=
21481fi
21482
21483
21484{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21485echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21486if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21487 echo $ECHO_N "(cached) $ECHO_C" >&6
21488else
21489 lt_cv_prog_compiler_c_o_F77=no
21490 $rm -r conftest 2>/dev/null
21491 mkdir conftest
21492 cd conftest
21493 mkdir out
21494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21495
21496 lt_compiler_flag="-o out/conftest2.$ac_objext"
21497 # Insert the option either (1) after the last *FLAGS variable, or
21498 # (2) before a word containing "conftest.", or (3) at the end.
21499 # Note that $ac_compile itself does not contain backslashes and begins
21500 # with a dollar sign (not a hyphen), so the echo should work correctly.
21501 lt_compile=`echo "$ac_compile" | $SED \
21502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21504 -e 's:$: $lt_compiler_flag:'`
Owen Andersonff0f88e2009-05-18 23:58:51 +000021505 (eval echo "\"\$as_me:21505: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021506 (eval "$lt_compile" 2>out/conftest.err)
21507 ac_status=$?
21508 cat out/conftest.err >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000021509 echo "$as_me:21509: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21511 then
21512 # The compiler can only warn and ignore the option if not recognized
21513 # So say no if there are warnings
21514 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21517 lt_cv_prog_compiler_c_o_F77=yes
21518 fi
21519 fi
21520 chmod u+w . 2>&5
21521 $rm conftest*
21522 # SGI C++ compiler will create directory out/ii_files/ for
21523 # template instantiation
21524 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21525 $rm out/* && rmdir out
21526 cd ..
21527 rmdir conftest
21528 $rm conftest*
21529
21530fi
21531{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21532echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21533
21534
21535hard_links="nottested"
21536if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21537 # do not overwrite the value of need_locks provided by the user
21538 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21539echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21540 hard_links=yes
21541 $rm conftest*
21542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21543 touch conftest.a
21544 ln conftest.a conftest.b 2>&5 || hard_links=no
21545 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21546 { echo "$as_me:$LINENO: result: $hard_links" >&5
21547echo "${ECHO_T}$hard_links" >&6; }
21548 if test "$hard_links" = no; then
21549 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21550echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21551 need_locks=warn
21552 fi
21553else
21554 need_locks=no
21555fi
21556
21557{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21558echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21559
21560 runpath_var=
21561 allow_undefined_flag_F77=
21562 enable_shared_with_static_runtimes_F77=no
21563 archive_cmds_F77=
21564 archive_expsym_cmds_F77=
21565 old_archive_From_new_cmds_F77=
21566 old_archive_from_expsyms_cmds_F77=
21567 export_dynamic_flag_spec_F77=
21568 whole_archive_flag_spec_F77=
21569 thread_safe_flag_spec_F77=
21570 hardcode_libdir_flag_spec_F77=
21571 hardcode_libdir_flag_spec_ld_F77=
21572 hardcode_libdir_separator_F77=
21573 hardcode_direct_F77=no
21574 hardcode_minus_L_F77=no
21575 hardcode_shlibpath_var_F77=unsupported
21576 link_all_deplibs_F77=unknown
21577 hardcode_automatic_F77=no
21578 module_cmds_F77=
21579 module_expsym_cmds_F77=
21580 always_export_symbols_F77=no
21581 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21582 # include_expsyms should be a list of space-separated symbols to be *always*
21583 # included in the symbol list
21584 include_expsyms_F77=
21585 # exclude_expsyms can be an extended regexp of symbols to exclude
21586 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21587 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21588 # as well as any symbol that contains `d'.
21589 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21590 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21591 # platforms (ab)use it in PIC code, but their linkers get confused if
21592 # the symbol is explicitly referenced. Since portable code cannot
21593 # rely on this symbol name, it's probably fine to never include it in
21594 # preloaded symbol tables.
21595 extract_expsyms_cmds=
21596 # Just being paranoid about ensuring that cc_basename is set.
21597 for cc_temp in $compiler""; do
21598 case $cc_temp in
21599 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21600 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21601 \-*) ;;
21602 *) break;;
21603 esac
21604done
21605cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21606
21607 case $host_os in
21608 cygwin* | mingw* | pw32*)
21609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21610 # When not using gcc, we currently assume that we are using
21611 # Microsoft Visual C++.
21612 if test "$GCC" != yes; then
21613 with_gnu_ld=no
21614 fi
21615 ;;
21616 interix*)
21617 # we just hope/assume this is gcc and not c89 (= MSVC++)
21618 with_gnu_ld=yes
21619 ;;
21620 openbsd*)
21621 with_gnu_ld=no
21622 ;;
21623 esac
21624
21625 ld_shlibs_F77=yes
21626 if test "$with_gnu_ld" = yes; then
21627 # If archive_cmds runs LD, not CC, wlarc should be empty
21628 wlarc='${wl}'
21629
21630 # Set some defaults for GNU ld with shared library support. These
21631 # are reset later if shared libraries are not supported. Putting them
21632 # here allows them to be overridden if necessary.
21633 runpath_var=LD_RUN_PATH
21634 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21635 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21636 # ancient GNU ld didn't support --whole-archive et. al.
21637 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21638 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21639 else
21640 whole_archive_flag_spec_F77=
21641 fi
21642 supports_anon_versioning=no
21643 case `$LD -v 2>/dev/null` in
21644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21647 *\ 2.11.*) ;; # other 2.11 versions
21648 *) supports_anon_versioning=yes ;;
21649 esac
21650
21651 # See if GNU ld supports shared libraries.
21652 case $host_os in
21653 aix3* | aix4* | aix5*)
21654 # On AIX/PPC, the GNU linker is very broken
21655 if test "$host_cpu" != ia64; then
21656 ld_shlibs_F77=no
21657 cat <<EOF 1>&2
21658
21659*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21660*** to be unable to reliably create shared libraries on AIX.
21661*** Therefore, libtool is disabling shared libraries support. If you
21662*** really care for shared libraries, you may want to modify your PATH
21663*** so that a non-GNU linker is found, and then restart.
21664
21665EOF
21666 fi
21667 ;;
21668
21669 amigaos*)
21670 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)'
21671 hardcode_libdir_flag_spec_F77='-L$libdir'
21672 hardcode_minus_L_F77=yes
21673
21674 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21675 # that the semantics of dynamic libraries on AmigaOS, at least up
21676 # to version 4, is to share data among multiple programs linked
21677 # with the same dynamic library. Since this doesn't match the
21678 # behavior of shared libraries on other platforms, we can't use
21679 # them.
21680 ld_shlibs_F77=no
21681 ;;
21682
21683 beos*)
21684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21685 allow_undefined_flag_F77=unsupported
21686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21687 # support --undefined. This deserves some investigation. FIXME
21688 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21689 else
21690 ld_shlibs_F77=no
21691 fi
21692 ;;
21693
21694 cygwin* | mingw* | pw32*)
21695 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21696 # as there is no search path for DLLs.
21697 hardcode_libdir_flag_spec_F77='-L$libdir'
21698 allow_undefined_flag_F77=unsupported
21699 always_export_symbols_F77=no
21700 enable_shared_with_static_runtimes_F77=yes
21701 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21702
21703 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21704 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21705 # If the export-symbols file already is a .def file (1st line
21706 # is EXPORTS), use it as is; otherwise, prepend...
21707 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21708 cp $export_symbols $output_objdir/$soname.def;
21709 else
21710 echo EXPORTS > $output_objdir/$soname.def;
21711 cat $export_symbols >> $output_objdir/$soname.def;
21712 fi~
21713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21714 else
21715 ld_shlibs_F77=no
21716 fi
21717 ;;
21718
21719 interix3*)
21720 hardcode_direct_F77=no
21721 hardcode_shlibpath_var_F77=no
21722 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21723 export_dynamic_flag_spec_F77='${wl}-E'
21724 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21725 # Instead, shared libraries are loaded at an image base (0x10000000 by
21726 # default) and relocated if they conflict, which is a slow very memory
21727 # consuming and fragmenting process. To avoid this, we pick a random,
21728 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21729 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21730 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'
21731 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'
21732 ;;
21733
21734 linux*)
21735 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21736 tmp_addflag=
21737 case $cc_basename,$host_cpu in
21738 pgcc*) # Portland Group C compiler
21739 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'
21740 tmp_addflag=' $pic_flag'
21741 ;;
21742 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21743 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'
21744 tmp_addflag=' $pic_flag -Mnomain' ;;
21745 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21746 tmp_addflag=' -i_dynamic' ;;
21747 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21748 tmp_addflag=' -i_dynamic -nofor_main' ;;
21749 ifc* | ifort*) # Intel Fortran compiler
21750 tmp_addflag=' -nofor_main' ;;
21751 esac
21752 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21753
21754 if test $supports_anon_versioning = yes; then
21755 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21756 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21757 $echo "local: *; };" >> $output_objdir/$libname.ver~
21758 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21759 fi
21760 else
21761 ld_shlibs_F77=no
21762 fi
21763 ;;
21764
21765 netbsd*)
21766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21767 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21768 wlarc=
21769 else
21770 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21771 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21772 fi
21773 ;;
21774
21775 solaris*)
21776 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21777 ld_shlibs_F77=no
21778 cat <<EOF 1>&2
21779
21780*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21781*** create shared libraries on Solaris systems. Therefore, libtool
21782*** is disabling shared libraries support. We urge you to upgrade GNU
21783*** binutils to release 2.9.1 or newer. Another option is to modify
21784*** your PATH or compiler configuration so that the native linker is
21785*** used, and then restart.
21786
21787EOF
21788 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21789 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21790 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21791 else
21792 ld_shlibs_F77=no
21793 fi
21794 ;;
21795
21796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21797 case `$LD -v 2>&1` in
21798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21799 ld_shlibs_F77=no
21800 cat <<_LT_EOF 1>&2
21801
21802*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21803*** reliably create shared libraries on SCO systems. Therefore, libtool
21804*** is disabling shared libraries support. We urge you to upgrade GNU
21805*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21806*** your PATH or compiler configuration so that the native linker is
21807*** used, and then restart.
21808
21809_LT_EOF
21810 ;;
21811 *)
21812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21813 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21814 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21815 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21816 else
21817 ld_shlibs_F77=no
21818 fi
21819 ;;
21820 esac
21821 ;;
21822
21823 sunos4*)
21824 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21825 wlarc=
21826 hardcode_direct_F77=yes
21827 hardcode_shlibpath_var_F77=no
21828 ;;
21829
21830 *)
21831 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21832 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21833 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21834 else
21835 ld_shlibs_F77=no
21836 fi
21837 ;;
21838 esac
21839
21840 if test "$ld_shlibs_F77" = no; then
21841 runpath_var=
21842 hardcode_libdir_flag_spec_F77=
21843 export_dynamic_flag_spec_F77=
21844 whole_archive_flag_spec_F77=
21845 fi
21846 else
21847 # PORTME fill in a description of your system's linker (not GNU ld)
21848 case $host_os in
21849 aix3*)
21850 allow_undefined_flag_F77=unsupported
21851 always_export_symbols_F77=yes
21852 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'
21853 # Note: this linker hardcodes the directories in LIBPATH if there
21854 # are no directories specified by -L.
21855 hardcode_minus_L_F77=yes
21856 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21857 # Neither direct hardcoding nor static linking is supported with a
21858 # broken collect2.
21859 hardcode_direct_F77=unsupported
21860 fi
21861 ;;
21862
21863 aix4* | aix5*)
21864 if test "$host_cpu" = ia64; then
21865 # On IA64, the linker does run time linking by default, so we don't
21866 # have to do anything special.
21867 aix_use_runtimelinking=no
21868 exp_sym_flag='-Bexport'
21869 no_entry_flag=""
21870 else
21871 # If we're using GNU nm, then we don't want the "-C" option.
21872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21873 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21874 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'
21875 else
21876 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'
21877 fi
21878 aix_use_runtimelinking=no
21879
21880 # Test if we are trying to use run time linking or normal
21881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21882 # need to do runtime linking.
21883 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21884 for ld_flag in $LDFLAGS; do
21885 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21886 aix_use_runtimelinking=yes
21887 break
21888 fi
21889 done
21890 ;;
21891 esac
21892
21893 exp_sym_flag='-bexport'
21894 no_entry_flag='-bnoentry'
21895 fi
21896
21897 # When large executables or shared objects are built, AIX ld can
21898 # have problems creating the table of contents. If linking a library
21899 # or program results in "error TOC overflow" add -mminimal-toc to
21900 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21901 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21902
21903 archive_cmds_F77=''
21904 hardcode_direct_F77=yes
21905 hardcode_libdir_separator_F77=':'
21906 link_all_deplibs_F77=yes
21907
21908 if test "$GCC" = yes; then
21909 case $host_os in aix4.[012]|aix4.[012].*)
21910 # We only want to do this on AIX 4.2 and lower, the check
21911 # below for broken collect2 doesn't work under 4.3+
21912 collect2name=`${CC} -print-prog-name=collect2`
21913 if test -f "$collect2name" && \
21914 strings "$collect2name" | grep resolve_lib_name >/dev/null
21915 then
21916 # We have reworked collect2
21917 hardcode_direct_F77=yes
21918 else
21919 # We have old collect2
21920 hardcode_direct_F77=unsupported
21921 # It fails to find uninstalled libraries when the uninstalled
21922 # path is not listed in the libpath. Setting hardcode_minus_L
21923 # to unsupported forces relinking
21924 hardcode_minus_L_F77=yes
21925 hardcode_libdir_flag_spec_F77='-L$libdir'
21926 hardcode_libdir_separator_F77=
21927 fi
21928 ;;
21929 esac
21930 shared_flag='-shared'
21931 if test "$aix_use_runtimelinking" = yes; then
21932 shared_flag="$shared_flag "'${wl}-G'
21933 fi
21934 else
21935 # not using gcc
21936 if test "$host_cpu" = ia64; then
21937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21938 # chokes on -Wl,-G. The following line is correct:
21939 shared_flag='-G'
21940 else
21941 if test "$aix_use_runtimelinking" = yes; then
21942 shared_flag='${wl}-G'
21943 else
21944 shared_flag='${wl}-bM:SRE'
21945 fi
21946 fi
21947 fi
21948
21949 # It seems that -bexpall does not export symbols beginning with
21950 # underscore (_), so it is better to generate a list of symbols to export.
21951 always_export_symbols_F77=yes
21952 if test "$aix_use_runtimelinking" = yes; then
21953 # Warning - without using the other runtime loading flags (-brtl),
21954 # -berok will link without error, but may produce a broken library.
21955 allow_undefined_flag_F77='-berok'
21956 # Determine the default libpath from the value encoded in an empty executable.
21957 cat >conftest.$ac_ext <<_ACEOF
21958 program main
21959
21960 end
21961_ACEOF
21962rm -f conftest.$ac_objext conftest$ac_exeext
21963if { (ac_try="$ac_link"
21964case "(($ac_try" in
21965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966 *) ac_try_echo=$ac_try;;
21967esac
21968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969 (eval "$ac_link") 2>conftest.er1
21970 ac_status=$?
21971 grep -v '^ *+' conftest.er1 >conftest.err
21972 rm -f conftest.er1
21973 cat conftest.err >&5
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000021975 (exit $ac_status); } &&
21976 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21977 { (case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21980esac
21981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982 (eval "$ac_try") 2>&5
21983 ac_status=$?
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; } &&
21986 { ac_try='test -s conftest$ac_exeext'
21987 { (case "(($ac_try" in
21988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989 *) ac_try_echo=$ac_try;;
21990esac
21991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992 (eval "$ac_try") 2>&5
21993 ac_status=$?
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021996
21997aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21998}'`
21999# Check for a 64-bit object if we didn't find anything.
22000if 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; }
22001}'`; fi
22002else
22003 echo "$as_me: failed program was:" >&5
22004sed 's/^/| /' conftest.$ac_ext >&5
22005
22006
22007fi
22008
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022009rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022010 conftest$ac_exeext conftest.$ac_ext
22011if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22012
22013 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22014 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"
22015 else
22016 if test "$host_cpu" = ia64; then
22017 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22018 allow_undefined_flag_F77="-z nodefs"
22019 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"
22020 else
22021 # Determine the default libpath from the value encoded in an empty executable.
22022 cat >conftest.$ac_ext <<_ACEOF
22023 program main
22024
22025 end
22026_ACEOF
22027rm -f conftest.$ac_objext conftest$ac_exeext
22028if { (ac_try="$ac_link"
22029case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22032esac
22033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_link") 2>conftest.er1
22035 ac_status=$?
22036 grep -v '^ *+' conftest.er1 >conftest.err
22037 rm -f conftest.er1
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022040 (exit $ac_status); } &&
22041 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22042 { (case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22045esac
22046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_try") 2>&5
22048 ac_status=$?
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); }; } &&
22051 { ac_try='test -s conftest$ac_exeext'
22052 { (case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22055esac
22056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22057 (eval "$ac_try") 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022061
22062aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22063}'`
22064# Check for a 64-bit object if we didn't find anything.
22065if 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; }
22066}'`; fi
22067else
22068 echo "$as_me: failed program was:" >&5
22069sed 's/^/| /' conftest.$ac_ext >&5
22070
22071
22072fi
22073
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000022074rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022075 conftest$ac_exeext conftest.$ac_ext
22076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22077
22078 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22079 # Warning - without using the other run time loading flags,
22080 # -berok will link without error, but may produce a broken library.
22081 no_undefined_flag_F77=' ${wl}-bernotok'
22082 allow_undefined_flag_F77=' ${wl}-berok'
22083 # Exported symbols can be pulled into shared objects from archives
22084 whole_archive_flag_spec_F77='$convenience'
22085 archive_cmds_need_lc_F77=yes
22086 # This is similar to how AIX traditionally builds its shared libraries.
22087 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'
22088 fi
22089 fi
22090 ;;
22091
22092 amigaos*)
22093 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)'
22094 hardcode_libdir_flag_spec_F77='-L$libdir'
22095 hardcode_minus_L_F77=yes
22096 # see comment about different semantics on the GNU ld section
22097 ld_shlibs_F77=no
22098 ;;
22099
22100 bsdi[45]*)
22101 export_dynamic_flag_spec_F77=-rdynamic
22102 ;;
22103
22104 cygwin* | mingw* | pw32*)
22105 # When not using gcc, we currently assume that we are using
22106 # Microsoft Visual C++.
22107 # hardcode_libdir_flag_spec is actually meaningless, as there is
22108 # no search path for DLLs.
22109 hardcode_libdir_flag_spec_F77=' '
22110 allow_undefined_flag_F77=unsupported
22111 # Tell ltmain to make .lib files, not .a files.
22112 libext=lib
22113 # Tell ltmain to make .dll files, not .so files.
22114 shrext_cmds=".dll"
22115 # FIXME: Setting linknames here is a bad hack.
22116 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22117 # The linker will automatically build a .lib file if we build a DLL.
22118 old_archive_From_new_cmds_F77='true'
22119 # FIXME: Should let the user specify the lib program.
22120 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
22121 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22122 enable_shared_with_static_runtimes_F77=yes
22123 ;;
22124
22125 darwin* | rhapsody*)
22126 case $host_os in
22127 rhapsody* | darwin1.[012])
22128 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22129 ;;
22130 *) # Darwin 1.3 on
22131 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22132 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22133 else
22134 case ${MACOSX_DEPLOYMENT_TARGET} in
22135 10.[012])
22136 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22137 ;;
22138 10.*)
22139 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22140 ;;
22141 esac
22142 fi
22143 ;;
22144 esac
22145 archive_cmds_need_lc_F77=no
22146 hardcode_direct_F77=no
22147 hardcode_automatic_F77=yes
22148 hardcode_shlibpath_var_F77=unsupported
22149 whole_archive_flag_spec_F77=''
22150 link_all_deplibs_F77=yes
22151 if test "$GCC" = yes ; then
22152 output_verbose_link_cmd='echo'
22153 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22154 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22155 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22156 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}'
22157 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}'
22158 else
22159 case $cc_basename in
22160 xlc*)
22161 output_verbose_link_cmd='echo'
22162 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22163 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22164 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22165 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}'
22166 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}'
22167 ;;
22168 *)
22169 ld_shlibs_F77=no
22170 ;;
22171 esac
22172 fi
22173 ;;
22174
22175 dgux*)
22176 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22177 hardcode_libdir_flag_spec_F77='-L$libdir'
22178 hardcode_shlibpath_var_F77=no
22179 ;;
22180
22181 freebsd1*)
22182 ld_shlibs_F77=no
22183 ;;
22184
22185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22186 # support. Future versions do this automatically, but an explicit c++rt0.o
22187 # does not break anything, and helps significantly (at the cost of a little
22188 # extra space).
22189 freebsd2.2*)
22190 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22191 hardcode_libdir_flag_spec_F77='-R$libdir'
22192 hardcode_direct_F77=yes
22193 hardcode_shlibpath_var_F77=no
22194 ;;
22195
22196 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22197 freebsd2*)
22198 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22199 hardcode_direct_F77=yes
22200 hardcode_minus_L_F77=yes
22201 hardcode_shlibpath_var_F77=no
22202 ;;
22203
22204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22205 freebsd* | kfreebsd*-gnu | dragonfly*)
22206 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22207 hardcode_libdir_flag_spec_F77='-R$libdir'
22208 hardcode_direct_F77=yes
22209 hardcode_shlibpath_var_F77=no
22210 ;;
22211
22212 hpux9*)
22213 if test "$GCC" = yes; then
22214 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'
22215 else
22216 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'
22217 fi
22218 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22219 hardcode_libdir_separator_F77=:
22220 hardcode_direct_F77=yes
22221
22222 # hardcode_minus_L: Not really in the search PATH,
22223 # but as the default location of the library.
22224 hardcode_minus_L_F77=yes
22225 export_dynamic_flag_spec_F77='${wl}-E'
22226 ;;
22227
22228 hpux10*)
22229 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22230 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22231 else
22232 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22233 fi
22234 if test "$with_gnu_ld" = no; then
22235 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22236 hardcode_libdir_separator_F77=:
22237
22238 hardcode_direct_F77=yes
22239 export_dynamic_flag_spec_F77='${wl}-E'
22240
22241 # hardcode_minus_L: Not really in the search PATH,
22242 # but as the default location of the library.
22243 hardcode_minus_L_F77=yes
22244 fi
22245 ;;
22246
22247 hpux11*)
22248 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22249 case $host_cpu in
22250 hppa*64*)
22251 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22252 ;;
22253 ia64*)
22254 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22255 ;;
22256 *)
22257 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22258 ;;
22259 esac
22260 else
22261 case $host_cpu in
22262 hppa*64*)
22263 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264 ;;
22265 ia64*)
22266 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22267 ;;
22268 *)
22269 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22270 ;;
22271 esac
22272 fi
22273 if test "$with_gnu_ld" = no; then
22274 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22275 hardcode_libdir_separator_F77=:
22276
22277 case $host_cpu in
22278 hppa*64*|ia64*)
22279 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22280 hardcode_direct_F77=no
22281 hardcode_shlibpath_var_F77=no
22282 ;;
22283 *)
22284 hardcode_direct_F77=yes
22285 export_dynamic_flag_spec_F77='${wl}-E'
22286
22287 # hardcode_minus_L: Not really in the search PATH,
22288 # but as the default location of the library.
22289 hardcode_minus_L_F77=yes
22290 ;;
22291 esac
22292 fi
22293 ;;
22294
22295 irix5* | irix6* | nonstopux*)
22296 if test "$GCC" = yes; then
22297 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'
22298 else
22299 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'
22300 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22301 fi
22302 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22303 hardcode_libdir_separator_F77=:
22304 link_all_deplibs_F77=yes
22305 ;;
22306
22307 netbsd*)
22308 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22309 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22310 else
22311 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22312 fi
22313 hardcode_libdir_flag_spec_F77='-R$libdir'
22314 hardcode_direct_F77=yes
22315 hardcode_shlibpath_var_F77=no
22316 ;;
22317
22318 newsos6)
22319 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22320 hardcode_direct_F77=yes
22321 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22322 hardcode_libdir_separator_F77=:
22323 hardcode_shlibpath_var_F77=no
22324 ;;
22325
22326 openbsd*)
22327 hardcode_direct_F77=yes
22328 hardcode_shlibpath_var_F77=no
22329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22330 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22331 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22332 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22333 export_dynamic_flag_spec_F77='${wl}-E'
22334 else
22335 case $host_os in
22336 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22337 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22338 hardcode_libdir_flag_spec_F77='-R$libdir'
22339 ;;
22340 *)
22341 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22342 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22343 ;;
22344 esac
22345 fi
22346 ;;
22347
22348 os2*)
22349 hardcode_libdir_flag_spec_F77='-L$libdir'
22350 hardcode_minus_L_F77=yes
22351 allow_undefined_flag_F77=unsupported
22352 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'
22353 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22354 ;;
22355
22356 osf3*)
22357 if test "$GCC" = yes; then
22358 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22359 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'
22360 else
22361 allow_undefined_flag_F77=' -expect_unresolved \*'
22362 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'
22363 fi
22364 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22365 hardcode_libdir_separator_F77=:
22366 ;;
22367
22368 osf4* | osf5*) # as osf3* with the addition of -msym flag
22369 if test "$GCC" = yes; then
22370 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22371 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'
22372 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22373 else
22374 allow_undefined_flag_F77=' -expect_unresolved \*'
22375 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'
22376 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~
22377 $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'
22378
22379 # Both c and cxx compiler support -rpath directly
22380 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22381 fi
22382 hardcode_libdir_separator_F77=:
22383 ;;
22384
22385 solaris*)
22386 no_undefined_flag_F77=' -z text'
22387 if test "$GCC" = yes; then
22388 wlarc='${wl}'
22389 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22390 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22391 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22392 else
22393 wlarc=''
22394 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22395 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22396 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22397 fi
22398 hardcode_libdir_flag_spec_F77='-R$libdir'
22399 hardcode_shlibpath_var_F77=no
22400 case $host_os in
22401 solaris2.[0-5] | solaris2.[0-5].*) ;;
22402 *)
22403 # The compiler driver will combine linker options so we
22404 # cannot just pass the convience library names through
22405 # without $wl, iff we do not link with $LD.
22406 # Luckily, gcc supports the same syntax we need for Sun Studio.
22407 # Supported since Solaris 2.6 (maybe 2.5.1?)
22408 case $wlarc in
22409 '')
22410 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22411 *)
22412 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' ;;
22413 esac ;;
22414 esac
22415 link_all_deplibs_F77=yes
22416 ;;
22417
22418 sunos4*)
22419 if test "x$host_vendor" = xsequent; then
22420 # Use $CC to link under sequent, because it throws in some extra .o
22421 # files that make .init and .fini sections work.
22422 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22423 else
22424 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22425 fi
22426 hardcode_libdir_flag_spec_F77='-L$libdir'
22427 hardcode_direct_F77=yes
22428 hardcode_minus_L_F77=yes
22429 hardcode_shlibpath_var_F77=no
22430 ;;
22431
22432 sysv4)
22433 case $host_vendor in
22434 sni)
22435 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22436 hardcode_direct_F77=yes # is this really true???
22437 ;;
22438 siemens)
22439 ## LD is ld it makes a PLAMLIB
22440 ## CC just makes a GrossModule.
22441 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22442 reload_cmds_F77='$CC -r -o $output$reload_objs'
22443 hardcode_direct_F77=no
22444 ;;
22445 motorola)
22446 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22447 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22448 ;;
22449 esac
22450 runpath_var='LD_RUN_PATH'
22451 hardcode_shlibpath_var_F77=no
22452 ;;
22453
22454 sysv4.3*)
22455 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22456 hardcode_shlibpath_var_F77=no
22457 export_dynamic_flag_spec_F77='-Bexport'
22458 ;;
22459
22460 sysv4*MP*)
22461 if test -d /usr/nec; then
22462 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22463 hardcode_shlibpath_var_F77=no
22464 runpath_var=LD_RUN_PATH
22465 hardcode_runpath_var=yes
22466 ld_shlibs_F77=yes
22467 fi
22468 ;;
22469
22470 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22471 no_undefined_flag_F77='${wl}-z,text'
22472 archive_cmds_need_lc_F77=no
22473 hardcode_shlibpath_var_F77=no
22474 runpath_var='LD_RUN_PATH'
22475
22476 if test "$GCC" = yes; then
22477 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22478 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22479 else
22480 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22481 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22482 fi
22483 ;;
22484
22485 sysv5* | sco3.2v5* | sco5v6*)
22486 # Note: We can NOT use -z defs as we might desire, because we do not
22487 # link with -lc, and that would cause any symbols used from libc to
22488 # always be unresolved, which means just about no library would
22489 # ever link correctly. If we're not using GNU ld we use -z text
22490 # though, which does catch some bad symbols but isn't as heavy-handed
22491 # as -z defs.
22492 no_undefined_flag_F77='${wl}-z,text'
22493 allow_undefined_flag_F77='${wl}-z,nodefs'
22494 archive_cmds_need_lc_F77=no
22495 hardcode_shlibpath_var_F77=no
22496 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22497 hardcode_libdir_separator_F77=':'
22498 link_all_deplibs_F77=yes
22499 export_dynamic_flag_spec_F77='${wl}-Bexport'
22500 runpath_var='LD_RUN_PATH'
22501
22502 if test "$GCC" = yes; then
22503 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22504 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22505 else
22506 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22507 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22508 fi
22509 ;;
22510
22511 uts4*)
22512 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22513 hardcode_libdir_flag_spec_F77='-L$libdir'
22514 hardcode_shlibpath_var_F77=no
22515 ;;
22516
22517 *)
22518 ld_shlibs_F77=no
22519 ;;
22520 esac
22521 fi
22522
22523{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22524echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22525test "$ld_shlibs_F77" = no && can_build_shared=no
22526
22527#
22528# Do we need to explicitly link libc?
22529#
22530case "x$archive_cmds_need_lc_F77" in
22531x|xyes)
22532 # Assume -lc should be added
22533 archive_cmds_need_lc_F77=yes
22534
22535 if test "$enable_shared" = yes && test "$GCC" = yes; then
22536 case $archive_cmds_F77 in
22537 *'~'*)
22538 # FIXME: we may have to deal with multi-command sequences.
22539 ;;
22540 '$CC '*)
22541 # Test whether the compiler implicitly links with -lc since on some
22542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22543 # to ld, don't add -lc before -lgcc.
22544 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22545echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22546 $rm conftest*
22547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22548
22549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22550 (eval $ac_compile) 2>&5
22551 ac_status=$?
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } 2>conftest.err; then
22554 soname=conftest
22555 lib=conftest
22556 libobjs=conftest.$ac_objext
22557 deplibs=
22558 wl=$lt_prog_compiler_wl_F77
22559 pic_flag=$lt_prog_compiler_pic_F77
22560 compiler_flags=-v
22561 linker_flags=-v
22562 verstring=
22563 output_objdir=.
22564 libname=conftest
22565 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22566 allow_undefined_flag_F77=
22567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22568 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }
22572 then
22573 archive_cmds_need_lc_F77=no
22574 else
22575 archive_cmds_need_lc_F77=yes
22576 fi
22577 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22578 else
22579 cat conftest.err 1>&5
22580 fi
22581 $rm conftest*
22582 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22583echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22584 ;;
22585 esac
22586 fi
22587 ;;
22588esac
22589
22590{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22591echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22592library_names_spec=
22593libname_spec='lib$name'
22594soname_spec=
22595shrext_cmds=".so"
22596postinstall_cmds=
22597postuninstall_cmds=
22598finish_cmds=
22599finish_eval=
22600shlibpath_var=
22601shlibpath_overrides_runpath=unknown
22602version_type=none
22603dynamic_linker="$host_os ld.so"
22604sys_lib_dlsearch_path_spec="/lib /usr/lib"
22605if test "$GCC" = yes; then
22606 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22607 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22608 # if the path contains ";" then we assume it to be the separator
22609 # otherwise default to the standard path separator (i.e. ":") - it is
22610 # assumed that no part of a normal pathname contains ";" but that should
22611 # okay in the real world where ";" in dirpaths is itself problematic.
22612 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22613 else
22614 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22615 fi
22616else
22617 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22618fi
22619need_lib_prefix=unknown
22620hardcode_into_libs=no
22621
22622# when you set need_version to no, make sure it does not cause -set_version
22623# flags to be left without arguments
22624need_version=unknown
22625
22626case $host_os in
22627aix3*)
22628 version_type=linux
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22630 shlibpath_var=LIBPATH
22631
22632 # AIX 3 has no versioning support, so we append a major version to the name.
22633 soname_spec='${libname}${release}${shared_ext}$major'
22634 ;;
22635
22636aix4* | aix5*)
22637 version_type=linux
22638 need_lib_prefix=no
22639 need_version=no
22640 hardcode_into_libs=yes
22641 if test "$host_cpu" = ia64; then
22642 # AIX 5 supports IA64
22643 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22644 shlibpath_var=LD_LIBRARY_PATH
22645 else
22646 # With GCC up to 2.95.x, collect2 would create an import file
22647 # for dependence libraries. The import file would start with
22648 # the line `#! .'. This would cause the generated library to
22649 # depend on `.', always an invalid library. This was fixed in
22650 # development snapshots of GCC prior to 3.0.
22651 case $host_os in
22652 aix4 | aix4.[01] | aix4.[01].*)
22653 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22654 echo ' yes '
22655 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22656 :
22657 else
22658 can_build_shared=no
22659 fi
22660 ;;
22661 esac
22662 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22663 # soname into executable. Probably we can add versioning support to
22664 # collect2, so additional links can be useful in future.
22665 if test "$aix_use_runtimelinking" = yes; then
22666 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22667 # instead of lib<name>.a to let people know that these are not
22668 # typical AIX shared libraries.
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22670 else
22671 # We preserve .a as extension for shared libraries through AIX4.2
22672 # and later when we are not doing run time linking.
22673 library_names_spec='${libname}${release}.a $libname.a'
22674 soname_spec='${libname}${release}${shared_ext}$major'
22675 fi
22676 shlibpath_var=LIBPATH
22677 fi
22678 ;;
22679
22680amigaos*)
22681 library_names_spec='$libname.ixlibrary $libname.a'
22682 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22683 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'
22684 ;;
22685
22686beos*)
22687 library_names_spec='${libname}${shared_ext}'
22688 dynamic_linker="$host_os ld.so"
22689 shlibpath_var=LIBRARY_PATH
22690 ;;
22691
22692bsdi[45]*)
22693 version_type=linux
22694 need_version=no
22695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22698 shlibpath_var=LD_LIBRARY_PATH
22699 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22700 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22701 # the default ld.so.conf also contains /usr/contrib/lib and
22702 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22703 # libtool to hard-code these into programs
22704 ;;
22705
22706cygwin* | mingw* | pw32*)
22707 version_type=windows
22708 shrext_cmds=".dll"
22709 need_version=no
22710 need_lib_prefix=no
22711
22712 case $GCC,$host_os in
22713 yes,cygwin* | yes,mingw* | yes,pw32*)
22714 library_names_spec='$libname.dll.a'
22715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22716 postinstall_cmds='base_file=`basename \${file}`~
22717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22718 dldir=$destdir/`dirname \$dlpath`~
22719 test -d \$dldir || mkdir -p \$dldir~
22720 $install_prog $dir/$dlname \$dldir/$dlname~
22721 chmod a+x \$dldir/$dlname'
22722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22723 dlpath=$dir/\$dldll~
22724 $rm \$dlpath'
22725 shlibpath_overrides_runpath=yes
22726
22727 case $host_os in
22728 cygwin*)
22729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22730 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22731 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22732 ;;
22733 mingw*)
22734 # MinGW DLLs use traditional 'lib' prefix
22735 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22736 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22737 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22738 # It is most probably a Windows format PATH printed by
22739 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22740 # path with ; separators, and with drive letters. We can handle the
22741 # drive letters (cygwin fileutils understands them), so leave them,
22742 # especially as we might pass files found there to a mingw objdump,
22743 # which wouldn't understand a cygwinified path. Ahh.
22744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22745 else
22746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22747 fi
22748 ;;
22749 pw32*)
22750 # pw32 DLLs use 'pw' prefix rather than 'lib'
22751 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22752 ;;
22753 esac
22754 ;;
22755
22756 *)
22757 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22758 ;;
22759 esac
22760 dynamic_linker='Win32 ld.exe'
22761 # FIXME: first we should search . and the directory the executable is in
22762 shlibpath_var=PATH
22763 ;;
22764
22765darwin* | rhapsody*)
22766 dynamic_linker="$host_os dyld"
22767 version_type=darwin
22768 need_lib_prefix=no
22769 need_version=no
22770 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22771 soname_spec='${libname}${release}${major}$shared_ext'
22772 shlibpath_overrides_runpath=yes
22773 shlibpath_var=DYLD_LIBRARY_PATH
22774 shrext_cmds='.dylib'
22775 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22776 if test "$GCC" = yes; then
22777 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"`
22778 else
22779 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22780 fi
22781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22782 ;;
22783
22784dgux*)
22785 version_type=linux
22786 need_lib_prefix=no
22787 need_version=no
22788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22789 soname_spec='${libname}${release}${shared_ext}$major'
22790 shlibpath_var=LD_LIBRARY_PATH
22791 ;;
22792
22793freebsd1*)
22794 dynamic_linker=no
22795 ;;
22796
22797kfreebsd*-gnu)
22798 version_type=linux
22799 need_lib_prefix=no
22800 need_version=no
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22802 soname_spec='${libname}${release}${shared_ext}$major'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=no
22805 hardcode_into_libs=yes
22806 dynamic_linker='GNU ld.so'
22807 ;;
22808
22809freebsd* | dragonfly*)
22810 # DragonFly does not have aout. When/if they implement a new
22811 # versioning mechanism, adjust this.
22812 if test -x /usr/bin/objformat; then
22813 objformat=`/usr/bin/objformat`
22814 else
22815 case $host_os in
22816 freebsd[123]*) objformat=aout ;;
22817 *) objformat=elf ;;
22818 esac
22819 fi
22820 version_type=freebsd-$objformat
22821 case $version_type in
22822 freebsd-elf*)
22823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22824 need_version=no
22825 need_lib_prefix=no
22826 ;;
22827 freebsd-*)
22828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22829 need_version=yes
22830 ;;
22831 esac
22832 shlibpath_var=LD_LIBRARY_PATH
22833 case $host_os in
22834 freebsd2*)
22835 shlibpath_overrides_runpath=yes
22836 ;;
22837 freebsd3.[01]* | freebsdelf3.[01]*)
22838 shlibpath_overrides_runpath=yes
22839 hardcode_into_libs=yes
22840 ;;
22841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22843 shlibpath_overrides_runpath=no
22844 hardcode_into_libs=yes
22845 ;;
22846 freebsd*) # from 4.6 on
22847 shlibpath_overrides_runpath=yes
22848 hardcode_into_libs=yes
22849 ;;
22850 esac
22851 ;;
22852
22853gnu*)
22854 version_type=linux
22855 need_lib_prefix=no
22856 need_version=no
22857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22858 soname_spec='${libname}${release}${shared_ext}$major'
22859 shlibpath_var=LD_LIBRARY_PATH
22860 hardcode_into_libs=yes
22861 ;;
22862
22863hpux9* | hpux10* | hpux11*)
22864 # Give a soname corresponding to the major version so that dld.sl refuses to
22865 # link against other versions.
22866 version_type=sunos
22867 need_lib_prefix=no
22868 need_version=no
22869 case $host_cpu in
22870 ia64*)
22871 shrext_cmds='.so'
22872 hardcode_into_libs=yes
22873 dynamic_linker="$host_os dld.so"
22874 shlibpath_var=LD_LIBRARY_PATH
22875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877 soname_spec='${libname}${release}${shared_ext}$major'
22878 if test "X$HPUX_IA64_MODE" = X32; then
22879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22880 else
22881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22882 fi
22883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22884 ;;
22885 hppa*64*)
22886 shrext_cmds='.sl'
22887 hardcode_into_libs=yes
22888 dynamic_linker="$host_os dld.sl"
22889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22892 soname_spec='${libname}${release}${shared_ext}$major'
22893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22895 ;;
22896 *)
22897 shrext_cmds='.sl'
22898 dynamic_linker="$host_os dld.sl"
22899 shlibpath_var=SHLIB_PATH
22900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22902 soname_spec='${libname}${release}${shared_ext}$major'
22903 ;;
22904 esac
22905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22906 postinstall_cmds='chmod 555 $lib'
22907 ;;
22908
22909interix3*)
22910 version_type=linux
22911 need_lib_prefix=no
22912 need_version=no
22913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22914 soname_spec='${libname}${release}${shared_ext}$major'
22915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22916 shlibpath_var=LD_LIBRARY_PATH
22917 shlibpath_overrides_runpath=no
22918 hardcode_into_libs=yes
22919 ;;
22920
22921irix5* | irix6* | nonstopux*)
22922 case $host_os in
22923 nonstopux*) version_type=nonstopux ;;
22924 *)
22925 if test "$lt_cv_prog_gnu_ld" = yes; then
22926 version_type=linux
22927 else
22928 version_type=irix
22929 fi ;;
22930 esac
22931 need_lib_prefix=no
22932 need_version=no
22933 soname_spec='${libname}${release}${shared_ext}$major'
22934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22935 case $host_os in
22936 irix5* | nonstopux*)
22937 libsuff= shlibsuff=
22938 ;;
22939 *)
22940 case $LD in # libtool.m4 will add one of these switches to LD
22941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22942 libsuff= shlibsuff= libmagic=32-bit;;
22943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22944 libsuff=32 shlibsuff=N32 libmagic=N32;;
22945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22947 *) libsuff= shlibsuff= libmagic=never-match;;
22948 esac
22949 ;;
22950 esac
22951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22952 shlibpath_overrides_runpath=no
22953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22955 hardcode_into_libs=yes
22956 ;;
22957
22958# No shared lib support for Linux oldld, aout, or coff.
22959linux*oldld* | linux*aout* | linux*coff*)
22960 dynamic_linker=no
22961 ;;
22962
22963# This must be Linux ELF.
22964linux*)
22965 version_type=linux
22966 need_lib_prefix=no
22967 need_version=no
22968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22969 soname_spec='${libname}${release}${shared_ext}$major'
22970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22971 shlibpath_var=LD_LIBRARY_PATH
22972 shlibpath_overrides_runpath=no
22973 # This implies no fast_install, which is unacceptable.
22974 # Some rework will be needed to allow for fast_install
22975 # before this can be enabled.
22976 hardcode_into_libs=yes
22977
22978 # Append ld.so.conf contents to the search path
22979 if test -f /etc/ld.so.conf; then
22980 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' ' '`
22981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22982 fi
22983
22984 # We used to test for /lib/ld.so.1 and disable shared libraries on
22985 # powerpc, because MkLinux only supported shared libraries with the
22986 # GNU dynamic linker. Since this was broken with cross compilers,
22987 # most powerpc-linux boxes support dynamic linking these days and
22988 # people can always --disable-shared, the test was removed, and we
22989 # assume the GNU/Linux dynamic linker is in use.
22990 dynamic_linker='GNU/Linux ld.so'
22991 ;;
22992
22993knetbsd*-gnu)
22994 version_type=linux
22995 need_lib_prefix=no
22996 need_version=no
22997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22998 soname_spec='${libname}${release}${shared_ext}$major'
22999 shlibpath_var=LD_LIBRARY_PATH
23000 shlibpath_overrides_runpath=no
23001 hardcode_into_libs=yes
23002 dynamic_linker='GNU ld.so'
23003 ;;
23004
23005netbsd*)
23006 version_type=sunos
23007 need_lib_prefix=no
23008 need_version=no
23009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23012 dynamic_linker='NetBSD (a.out) ld.so'
23013 else
23014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23015 soname_spec='${libname}${release}${shared_ext}$major'
23016 dynamic_linker='NetBSD ld.elf_so'
23017 fi
23018 shlibpath_var=LD_LIBRARY_PATH
23019 shlibpath_overrides_runpath=yes
23020 hardcode_into_libs=yes
23021 ;;
23022
23023newsos6)
23024 version_type=linux
23025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23026 shlibpath_var=LD_LIBRARY_PATH
23027 shlibpath_overrides_runpath=yes
23028 ;;
23029
23030nto-qnx*)
23031 version_type=linux
23032 need_lib_prefix=no
23033 need_version=no
23034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23035 soname_spec='${libname}${release}${shared_ext}$major'
23036 shlibpath_var=LD_LIBRARY_PATH
23037 shlibpath_overrides_runpath=yes
23038 ;;
23039
23040openbsd*)
23041 version_type=sunos
23042 sys_lib_dlsearch_path_spec="/usr/lib"
23043 need_lib_prefix=no
23044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23045 case $host_os in
23046 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23047 *) need_version=no ;;
23048 esac
23049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23051 shlibpath_var=LD_LIBRARY_PATH
23052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23053 case $host_os in
23054 openbsd2.[89] | openbsd2.[89].*)
23055 shlibpath_overrides_runpath=no
23056 ;;
23057 *)
23058 shlibpath_overrides_runpath=yes
23059 ;;
23060 esac
23061 else
23062 shlibpath_overrides_runpath=yes
23063 fi
23064 ;;
23065
23066os2*)
23067 libname_spec='$name'
23068 shrext_cmds=".dll"
23069 need_lib_prefix=no
23070 library_names_spec='$libname${shared_ext} $libname.a'
23071 dynamic_linker='OS/2 ld.exe'
23072 shlibpath_var=LIBPATH
23073 ;;
23074
23075osf3* | osf4* | osf5*)
23076 version_type=osf
23077 need_lib_prefix=no
23078 need_version=no
23079 soname_spec='${libname}${release}${shared_ext}$major'
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23081 shlibpath_var=LD_LIBRARY_PATH
23082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23084 ;;
23085
23086solaris*)
23087 version_type=linux
23088 need_lib_prefix=no
23089 need_version=no
23090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23091 soname_spec='${libname}${release}${shared_ext}$major'
23092 shlibpath_var=LD_LIBRARY_PATH
23093 shlibpath_overrides_runpath=yes
23094 hardcode_into_libs=yes
23095 # ldd complains unless libraries are executable
23096 postinstall_cmds='chmod +x $lib'
23097 ;;
23098
23099sunos4*)
23100 version_type=sunos
23101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23102 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23103 shlibpath_var=LD_LIBRARY_PATH
23104 shlibpath_overrides_runpath=yes
23105 if test "$with_gnu_ld" = yes; then
23106 need_lib_prefix=no
23107 fi
23108 need_version=yes
23109 ;;
23110
23111sysv4 | sysv4.3*)
23112 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
23116 case $host_vendor in
23117 sni)
23118 shlibpath_overrides_runpath=no
23119 need_lib_prefix=no
23120 export_dynamic_flag_spec='${wl}-Blargedynsym'
23121 runpath_var=LD_RUN_PATH
23122 ;;
23123 siemens)
23124 need_lib_prefix=no
23125 ;;
23126 motorola)
23127 need_lib_prefix=no
23128 need_version=no
23129 shlibpath_overrides_runpath=no
23130 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23131 ;;
23132 esac
23133 ;;
23134
23135sysv4*MP*)
23136 if test -d /usr/nec ;then
23137 version_type=linux
23138 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23139 soname_spec='$libname${shared_ext}.$major'
23140 shlibpath_var=LD_LIBRARY_PATH
23141 fi
23142 ;;
23143
23144sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23145 version_type=freebsd-elf
23146 need_lib_prefix=no
23147 need_version=no
23148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23149 soname_spec='${libname}${release}${shared_ext}$major'
23150 shlibpath_var=LD_LIBRARY_PATH
23151 hardcode_into_libs=yes
23152 if test "$with_gnu_ld" = yes; then
23153 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23154 shlibpath_overrides_runpath=no
23155 else
23156 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23157 shlibpath_overrides_runpath=yes
23158 case $host_os in
23159 sco3.2v5*)
23160 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23161 ;;
23162 esac
23163 fi
23164 sys_lib_dlsearch_path_spec='/usr/lib'
23165 ;;
23166
23167uts4*)
23168 version_type=linux
23169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23170 soname_spec='${libname}${release}${shared_ext}$major'
23171 shlibpath_var=LD_LIBRARY_PATH
23172 ;;
23173
23174*)
23175 dynamic_linker=no
23176 ;;
23177esac
23178{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23179echo "${ECHO_T}$dynamic_linker" >&6; }
23180test "$dynamic_linker" = no && can_build_shared=no
23181
23182variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23183if test "$GCC" = yes; then
23184 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23185fi
23186
23187{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23188echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23189hardcode_action_F77=
23190if test -n "$hardcode_libdir_flag_spec_F77" || \
23191 test -n "$runpath_var_F77" || \
23192 test "X$hardcode_automatic_F77" = "Xyes" ; then
23193
23194 # We can hardcode non-existant directories.
23195 if test "$hardcode_direct_F77" != no &&
23196 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23197 # have to relink, otherwise we might link with an installed library
23198 # when we should be linking with a yet-to-be-installed one
23199 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23200 test "$hardcode_minus_L_F77" != no; then
23201 # Linking always hardcodes the temporary library directory.
23202 hardcode_action_F77=relink
23203 else
23204 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23205 hardcode_action_F77=immediate
23206 fi
23207else
23208 # We cannot hardcode anything, or else we can only hardcode existing
23209 # directories.
23210 hardcode_action_F77=unsupported
23211fi
23212{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23213echo "${ECHO_T}$hardcode_action_F77" >&6; }
23214
23215if test "$hardcode_action_F77" = relink; then
23216 # Fast installation is not supported
23217 enable_fast_install=no
23218elif test "$shlibpath_overrides_runpath" = yes ||
23219 test "$enable_shared" = no; then
23220 # Fast installation is not necessary
23221 enable_fast_install=needless
23222fi
23223
23224
23225# The else clause should only fire when bootstrapping the
23226# libtool distribution, otherwise you forgot to ship ltmain.sh
23227# with your package, and you will get complaints that there are
23228# no rules to generate ltmain.sh.
23229if test -f "$ltmain"; then
23230 # See if we are running on zsh, and set the options which allow our commands through
23231 # without removal of \ escapes.
23232 if test -n "${ZSH_VERSION+set}" ; then
23233 setopt NO_GLOB_SUBST
23234 fi
23235 # Now quote all the things that may contain metacharacters while being
23236 # careful not to overquote the AC_SUBSTed values. We take copies of the
23237 # variables and quote the copies for generation of the libtool script.
23238 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23239 SED SHELL STRIP \
23240 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23241 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23242 deplibs_check_method reload_flag reload_cmds need_locks \
23243 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23244 lt_cv_sys_global_symbol_to_c_name_address \
23245 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23246 old_postinstall_cmds old_postuninstall_cmds \
23247 compiler_F77 \
23248 CC_F77 \
23249 LD_F77 \
23250 lt_prog_compiler_wl_F77 \
23251 lt_prog_compiler_pic_F77 \
23252 lt_prog_compiler_static_F77 \
23253 lt_prog_compiler_no_builtin_flag_F77 \
23254 export_dynamic_flag_spec_F77 \
23255 thread_safe_flag_spec_F77 \
23256 whole_archive_flag_spec_F77 \
23257 enable_shared_with_static_runtimes_F77 \
23258 old_archive_cmds_F77 \
23259 old_archive_from_new_cmds_F77 \
23260 predep_objects_F77 \
23261 postdep_objects_F77 \
23262 predeps_F77 \
23263 postdeps_F77 \
23264 compiler_lib_search_path_F77 \
23265 archive_cmds_F77 \
23266 archive_expsym_cmds_F77 \
23267 postinstall_cmds_F77 \
23268 postuninstall_cmds_F77 \
23269 old_archive_from_expsyms_cmds_F77 \
23270 allow_undefined_flag_F77 \
23271 no_undefined_flag_F77 \
23272 export_symbols_cmds_F77 \
23273 hardcode_libdir_flag_spec_F77 \
23274 hardcode_libdir_flag_spec_ld_F77 \
23275 hardcode_libdir_separator_F77 \
23276 hardcode_automatic_F77 \
23277 module_cmds_F77 \
23278 module_expsym_cmds_F77 \
23279 lt_cv_prog_compiler_c_o_F77 \
23280 exclude_expsyms_F77 \
23281 include_expsyms_F77; do
23282
23283 case $var in
23284 old_archive_cmds_F77 | \
23285 old_archive_from_new_cmds_F77 | \
23286 archive_cmds_F77 | \
23287 archive_expsym_cmds_F77 | \
23288 module_cmds_F77 | \
23289 module_expsym_cmds_F77 | \
23290 old_archive_from_expsyms_cmds_F77 | \
23291 export_symbols_cmds_F77 | \
23292 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23293 postinstall_cmds | postuninstall_cmds | \
23294 old_postinstall_cmds | old_postuninstall_cmds | \
23295 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23296 # Double-quote double-evaled strings.
23297 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23298 ;;
23299 *)
23300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23301 ;;
23302 esac
23303 done
23304
23305 case $lt_echo in
23306 *'\$0 --fallback-echo"')
23307 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23308 ;;
23309 esac
23310
23311cfgfile="$ofile"
23312
23313 cat <<__EOF__ >> "$cfgfile"
23314# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23315
23316# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23317
23318# Shell to use when invoking shell scripts.
23319SHELL=$lt_SHELL
23320
23321# Whether or not to build shared libraries.
23322build_libtool_libs=$enable_shared
23323
23324# Whether or not to build static libraries.
23325build_old_libs=$enable_static
23326
23327# Whether or not to add -lc for building shared libraries.
23328build_libtool_need_lc=$archive_cmds_need_lc_F77
23329
23330# Whether or not to disallow shared libs when runtime libs are static
23331allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23332
23333# Whether or not to optimize for fast installation.
23334fast_install=$enable_fast_install
23335
23336# The host system.
23337host_alias=$host_alias
23338host=$host
23339host_os=$host_os
23340
23341# The build system.
23342build_alias=$build_alias
23343build=$build
23344build_os=$build_os
23345
23346# An echo program that does not interpret backslashes.
23347echo=$lt_echo
23348
23349# The archiver.
23350AR=$lt_AR
23351AR_FLAGS=$lt_AR_FLAGS
23352
23353# A C compiler.
23354LTCC=$lt_LTCC
23355
23356# LTCC compiler flags.
23357LTCFLAGS=$lt_LTCFLAGS
23358
23359# A language-specific compiler.
23360CC=$lt_compiler_F77
23361
23362# Is the compiler the GNU C compiler?
23363with_gcc=$GCC_F77
23364
23365# An ERE matcher.
23366EGREP=$lt_EGREP
23367
23368# The linker used to build libraries.
23369LD=$lt_LD_F77
23370
23371# Whether we need hard or soft links.
23372LN_S=$lt_LN_S
23373
23374# A BSD-compatible nm program.
23375NM=$lt_NM
23376
23377# A symbol stripping program
23378STRIP=$lt_STRIP
23379
23380# Used to examine libraries when file_magic_cmd begins "file"
23381MAGIC_CMD=$MAGIC_CMD
23382
23383# Used on cygwin: DLL creation program.
23384DLLTOOL="$DLLTOOL"
23385
23386# Used on cygwin: object dumper.
23387OBJDUMP="$OBJDUMP"
23388
23389# Used on cygwin: assembler.
23390AS="$AS"
23391
23392# The name of the directory that contains temporary libtool files.
23393objdir=$objdir
23394
23395# How to create reloadable object files.
23396reload_flag=$lt_reload_flag
23397reload_cmds=$lt_reload_cmds
23398
23399# How to pass a linker flag through the compiler.
23400wl=$lt_lt_prog_compiler_wl_F77
23401
23402# Object file suffix (normally "o").
23403objext="$ac_objext"
23404
23405# Old archive suffix (normally "a").
23406libext="$libext"
23407
23408# Shared library suffix (normally ".so").
23409shrext_cmds='$shrext_cmds'
23410
23411# Executable file suffix (normally "").
23412exeext="$exeext"
23413
23414# Additional compiler flags for building library objects.
23415pic_flag=$lt_lt_prog_compiler_pic_F77
23416pic_mode=$pic_mode
23417
23418# What is the maximum length of a command?
23419max_cmd_len=$lt_cv_sys_max_cmd_len
23420
23421# Does compiler simultaneously support -c and -o options?
23422compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23423
23424# Must we lock files when doing compilation?
23425need_locks=$lt_need_locks
23426
23427# Do we need the lib prefix for modules?
23428need_lib_prefix=$need_lib_prefix
23429
23430# Do we need a version for libraries?
23431need_version=$need_version
23432
23433# Whether dlopen is supported.
23434dlopen_support=$enable_dlopen
23435
23436# Whether dlopen of programs is supported.
23437dlopen_self=$enable_dlopen_self
23438
23439# Whether dlopen of statically linked programs is supported.
23440dlopen_self_static=$enable_dlopen_self_static
23441
23442# Compiler flag to prevent dynamic linking.
23443link_static_flag=$lt_lt_prog_compiler_static_F77
23444
23445# Compiler flag to turn off builtin functions.
23446no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23447
23448# Compiler flag to allow reflexive dlopens.
23449export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23450
23451# Compiler flag to generate shared objects directly from archives.
23452whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23453
23454# Compiler flag to generate thread-safe objects.
23455thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23456
23457# Library versioning type.
23458version_type=$version_type
23459
23460# Format of library name prefix.
23461libname_spec=$lt_libname_spec
23462
23463# List of archive names. First name is the real one, the rest are links.
23464# The last name is the one that the linker finds with -lNAME.
23465library_names_spec=$lt_library_names_spec
23466
23467# The coded name of the library, if different from the real name.
23468soname_spec=$lt_soname_spec
23469
23470# Commands used to build and install an old-style archive.
23471RANLIB=$lt_RANLIB
23472old_archive_cmds=$lt_old_archive_cmds_F77
23473old_postinstall_cmds=$lt_old_postinstall_cmds
23474old_postuninstall_cmds=$lt_old_postuninstall_cmds
23475
23476# Create an old-style archive from a shared archive.
23477old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23478
23479# Create a temporary old-style archive to link instead of a shared archive.
23480old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23481
23482# Commands used to build and install a shared archive.
23483archive_cmds=$lt_archive_cmds_F77
23484archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23485postinstall_cmds=$lt_postinstall_cmds
23486postuninstall_cmds=$lt_postuninstall_cmds
23487
23488# Commands used to build a loadable module (assumed same as above if empty)
23489module_cmds=$lt_module_cmds_F77
23490module_expsym_cmds=$lt_module_expsym_cmds_F77
23491
23492# Commands to strip libraries.
23493old_striplib=$lt_old_striplib
23494striplib=$lt_striplib
23495
23496# Dependencies to place before the objects being linked to create a
23497# shared library.
23498predep_objects=$lt_predep_objects_F77
23499
23500# Dependencies to place after the objects being linked to create a
23501# shared library.
23502postdep_objects=$lt_postdep_objects_F77
23503
23504# Dependencies to place before the objects being linked to create a
23505# shared library.
23506predeps=$lt_predeps_F77
23507
23508# Dependencies to place after the objects being linked to create a
23509# shared library.
23510postdeps=$lt_postdeps_F77
23511
23512# The library search path used internally by the compiler when linking
23513# a shared library.
23514compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23515
23516# Method to check whether dependent libraries are shared objects.
23517deplibs_check_method=$lt_deplibs_check_method
23518
23519# Command to use when deplibs_check_method == file_magic.
23520file_magic_cmd=$lt_file_magic_cmd
23521
23522# Flag that allows shared libraries with undefined symbols to be built.
23523allow_undefined_flag=$lt_allow_undefined_flag_F77
23524
23525# Flag that forces no undefined symbols.
23526no_undefined_flag=$lt_no_undefined_flag_F77
23527
23528# Commands used to finish a libtool library installation in a directory.
23529finish_cmds=$lt_finish_cmds
23530
23531# Same as above, but a single script fragment to be evaled but not shown.
23532finish_eval=$lt_finish_eval
23533
23534# Take the output of nm and produce a listing of raw symbols and C names.
23535global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23536
23537# Transform the output of nm in a proper C declaration
23538global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23539
23540# Transform the output of nm in a C name address pair
23541global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23542
23543# This is the shared library runtime path variable.
23544runpath_var=$runpath_var
23545
23546# This is the shared library path variable.
23547shlibpath_var=$shlibpath_var
23548
23549# Is shlibpath searched before the hard-coded library search path?
23550shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23551
23552# How to hardcode a shared library path into an executable.
23553hardcode_action=$hardcode_action_F77
23554
23555# Whether we should hardcode library paths into libraries.
23556hardcode_into_libs=$hardcode_into_libs
23557
23558# Flag to hardcode \$libdir into a binary during linking.
23559# This must work even if \$libdir does not exist.
23560hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23561
23562# If ld is used when linking, flag to hardcode \$libdir into
23563# a binary during linking. This must work even if \$libdir does
23564# not exist.
23565hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23566
23567# Whether we need a single -rpath flag with a separated argument.
23568hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23569
23570# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23571# resulting binary.
23572hardcode_direct=$hardcode_direct_F77
23573
23574# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23575# resulting binary.
23576hardcode_minus_L=$hardcode_minus_L_F77
23577
23578# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23579# the resulting binary.
23580hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23581
23582# Set to yes if building a shared library automatically hardcodes DIR into the library
23583# and all subsequent libraries and executables linked against it.
23584hardcode_automatic=$hardcode_automatic_F77
23585
23586# Variables whose values should be saved in libtool wrapper scripts and
23587# restored at relink time.
23588variables_saved_for_relink="$variables_saved_for_relink"
23589
23590# Whether libtool must link a program against all its dependency libraries.
23591link_all_deplibs=$link_all_deplibs_F77
23592
23593# Compile-time system search path for libraries
23594sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23595
23596# Run-time system search path for libraries
23597sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23598
23599# Fix the shell variable \$srcfile for the compiler.
23600fix_srcfile_path="$fix_srcfile_path_F77"
23601
23602# Set to yes if exported symbols are required.
23603always_export_symbols=$always_export_symbols_F77
23604
23605# The commands to list exported symbols.
23606export_symbols_cmds=$lt_export_symbols_cmds_F77
23607
23608# The commands to extract the exported symbol list from a shared archive.
23609extract_expsyms_cmds=$lt_extract_expsyms_cmds
23610
23611# Symbols that should not be listed in the preloaded symbols.
23612exclude_expsyms=$lt_exclude_expsyms_F77
23613
23614# Symbols that must always be exported.
23615include_expsyms=$lt_include_expsyms_F77
23616
23617# ### END LIBTOOL TAG CONFIG: $tagname
23618
23619__EOF__
23620
23621
23622else
23623 # If there is no Makefile yet, we rely on a make rule to execute
23624 # `config.status --recheck' to rerun these tests and create the
23625 # libtool script then.
23626 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23627 if test -f "$ltmain_in"; then
23628 test -f Makefile && make "$ltmain"
23629 fi
23630fi
23631
23632
23633ac_ext=c
23634ac_cpp='$CPP $CPPFLAGS'
23635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23637ac_compiler_gnu=$ac_cv_c_compiler_gnu
23638
23639CC="$lt_save_CC"
23640
23641 else
23642 tagname=""
23643 fi
23644 ;;
23645
23646 GCJ)
23647 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23648 ac_ext=c
23649ac_cpp='$CPP $CPPFLAGS'
23650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23652ac_compiler_gnu=$ac_cv_c_compiler_gnu
23653
23654
23655# Source file extension for Java test sources.
23656ac_ext=java
23657
23658# Object file extension for compiled Java test sources.
23659objext=o
23660objext_GCJ=$objext
23661
23662# Code to be used in simple compile tests
23663lt_simple_compile_test_code="class foo {}\n"
23664
23665# Code to be used in simple link tests
23666lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23667
23668# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23669
23670# If no C compiler was specified, use CC.
23671LTCC=${LTCC-"$CC"}
23672
23673# If no C compiler flags were specified, use CFLAGS.
23674LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23675
23676# Allow CC to be a program name with arguments.
23677compiler=$CC
23678
23679
23680# save warnings/boilerplate of simple test code
23681ac_outfile=conftest.$ac_objext
23682printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23683eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23684_lt_compiler_boilerplate=`cat conftest.err`
23685$rm conftest*
23686
23687ac_outfile=conftest.$ac_objext
23688printf "$lt_simple_link_test_code" >conftest.$ac_ext
23689eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23690_lt_linker_boilerplate=`cat conftest.err`
23691$rm conftest*
23692
23693
23694# Allow CC to be a program name with arguments.
23695lt_save_CC="$CC"
23696CC=${GCJ-"gcj"}
23697compiler=$CC
23698compiler_GCJ=$CC
23699for cc_temp in $compiler""; do
23700 case $cc_temp in
23701 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23702 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23703 \-*) ;;
23704 *) break;;
23705 esac
23706done
23707cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23708
23709
23710# GCJ did not exist at the time GCC didn't implicitly link libc in.
23711archive_cmds_need_lc_GCJ=no
23712
23713old_archive_cmds_GCJ=$old_archive_cmds
23714
23715
23716lt_prog_compiler_no_builtin_flag_GCJ=
23717
23718if test "$GCC" = yes; then
23719 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23720
23721
23722{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23723echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23724if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23725 echo $ECHO_N "(cached) $ECHO_C" >&6
23726else
23727 lt_cv_prog_compiler_rtti_exceptions=no
23728 ac_outfile=conftest.$ac_objext
23729 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23730 lt_compiler_flag="-fno-rtti -fno-exceptions"
23731 # Insert the option either (1) after the last *FLAGS variable, or
23732 # (2) before a word containing "conftest.", or (3) at the end.
23733 # Note that $ac_compile itself does not contain backslashes and begins
23734 # with a dollar sign (not a hyphen), so the echo should work correctly.
23735 # The option is referenced via a variable to avoid confusing sed.
23736 lt_compile=`echo "$ac_compile" | $SED \
23737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23739 -e 's:$: $lt_compiler_flag:'`
Owen Andersonff0f88e2009-05-18 23:58:51 +000023740 (eval echo "\"\$as_me:23740: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023741 (eval "$lt_compile" 2>conftest.err)
23742 ac_status=$?
23743 cat conftest.err >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000023744 echo "$as_me:23744: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023745 if (exit $ac_status) && test -s "$ac_outfile"; then
23746 # The compiler can only warn and ignore the option if not recognized
23747 # So say no if there are warnings other than the usual output.
23748 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23750 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23751 lt_cv_prog_compiler_rtti_exceptions=yes
23752 fi
23753 fi
23754 $rm conftest*
23755
23756fi
23757{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23758echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23759
23760if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23761 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23762else
23763 :
23764fi
23765
23766fi
23767
23768lt_prog_compiler_wl_GCJ=
23769lt_prog_compiler_pic_GCJ=
23770lt_prog_compiler_static_GCJ=
23771
23772{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23773echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23774
23775 if test "$GCC" = yes; then
23776 lt_prog_compiler_wl_GCJ='-Wl,'
23777 lt_prog_compiler_static_GCJ='-static'
23778
23779 case $host_os in
23780 aix*)
23781 # All AIX code is PIC.
23782 if test "$host_cpu" = ia64; then
23783 # AIX 5 now supports IA64 processor
23784 lt_prog_compiler_static_GCJ='-Bstatic'
23785 fi
23786 ;;
23787
23788 amigaos*)
23789 # FIXME: we need at least 68020 code to build shared libraries, but
23790 # adding the `-m68020' flag to GCC prevents building anything better,
23791 # like `-m68040'.
23792 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23793 ;;
23794
23795 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23796 # PIC is the default for these OSes.
23797 ;;
23798
23799 mingw* | pw32* | os2*)
23800 # This hack is so that the source file can tell whether it is being
23801 # built for inclusion in a dll (and should export symbols for example).
23802 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23803 ;;
23804
23805 darwin* | rhapsody*)
23806 # PIC is the default on this platform
23807 # Common symbols not allowed in MH_DYLIB files
23808 lt_prog_compiler_pic_GCJ='-fno-common'
23809 ;;
23810
23811 interix3*)
23812 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23813 # Instead, we relocate shared libraries at runtime.
23814 ;;
23815
23816 msdosdjgpp*)
23817 # Just because we use GCC doesn't mean we suddenly get shared libraries
23818 # on systems that don't support them.
23819 lt_prog_compiler_can_build_shared_GCJ=no
23820 enable_shared=no
23821 ;;
23822
23823 sysv4*MP*)
23824 if test -d /usr/nec; then
23825 lt_prog_compiler_pic_GCJ=-Kconform_pic
23826 fi
23827 ;;
23828
23829 hpux*)
23830 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23831 # not for PA HP-UX.
23832 case $host_cpu in
23833 hppa*64*|ia64*)
23834 # +Z the default
23835 ;;
23836 *)
23837 lt_prog_compiler_pic_GCJ='-fPIC'
23838 ;;
23839 esac
23840 ;;
23841
23842 *)
23843 lt_prog_compiler_pic_GCJ='-fPIC'
23844 ;;
23845 esac
23846 else
23847 # PORTME Check for flag to pass linker flags through the system compiler.
23848 case $host_os in
23849 aix*)
23850 lt_prog_compiler_wl_GCJ='-Wl,'
23851 if test "$host_cpu" = ia64; then
23852 # AIX 5 now supports IA64 processor
23853 lt_prog_compiler_static_GCJ='-Bstatic'
23854 else
23855 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23856 fi
23857 ;;
23858 darwin*)
23859 # PIC is the default on this platform
23860 # Common symbols not allowed in MH_DYLIB files
23861 case $cc_basename in
23862 xlc*)
23863 lt_prog_compiler_pic_GCJ='-qnocommon'
23864 lt_prog_compiler_wl_GCJ='-Wl,'
23865 ;;
23866 esac
23867 ;;
23868
23869 mingw* | pw32* | os2*)
23870 # This hack is so that the source file can tell whether it is being
23871 # built for inclusion in a dll (and should export symbols for example).
23872 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23873 ;;
23874
23875 hpux9* | hpux10* | hpux11*)
23876 lt_prog_compiler_wl_GCJ='-Wl,'
23877 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23878 # not for PA HP-UX.
23879 case $host_cpu in
23880 hppa*64*|ia64*)
23881 # +Z the default
23882 ;;
23883 *)
23884 lt_prog_compiler_pic_GCJ='+Z'
23885 ;;
23886 esac
23887 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23888 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23889 ;;
23890
23891 irix5* | irix6* | nonstopux*)
23892 lt_prog_compiler_wl_GCJ='-Wl,'
23893 # PIC (with -KPIC) is the default.
23894 lt_prog_compiler_static_GCJ='-non_shared'
23895 ;;
23896
23897 newsos6)
23898 lt_prog_compiler_pic_GCJ='-KPIC'
23899 lt_prog_compiler_static_GCJ='-Bstatic'
23900 ;;
23901
23902 linux*)
23903 case $cc_basename in
23904 icc* | ecc*)
23905 lt_prog_compiler_wl_GCJ='-Wl,'
23906 lt_prog_compiler_pic_GCJ='-KPIC'
23907 lt_prog_compiler_static_GCJ='-static'
23908 ;;
23909 pgcc* | pgf77* | pgf90* | pgf95*)
23910 # Portland Group compilers (*not* the Pentium gcc compiler,
23911 # which looks to be a dead project)
23912 lt_prog_compiler_wl_GCJ='-Wl,'
23913 lt_prog_compiler_pic_GCJ='-fpic'
23914 lt_prog_compiler_static_GCJ='-Bstatic'
23915 ;;
23916 ccc*)
23917 lt_prog_compiler_wl_GCJ='-Wl,'
23918 # All Alpha code is PIC.
23919 lt_prog_compiler_static_GCJ='-non_shared'
23920 ;;
23921 esac
23922 ;;
23923
23924 osf3* | osf4* | osf5*)
23925 lt_prog_compiler_wl_GCJ='-Wl,'
23926 # All OSF/1 code is PIC.
23927 lt_prog_compiler_static_GCJ='-non_shared'
23928 ;;
23929
23930 solaris*)
23931 lt_prog_compiler_pic_GCJ='-KPIC'
23932 lt_prog_compiler_static_GCJ='-Bstatic'
23933 case $cc_basename in
23934 f77* | f90* | f95*)
23935 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23936 *)
23937 lt_prog_compiler_wl_GCJ='-Wl,';;
23938 esac
23939 ;;
23940
23941 sunos4*)
23942 lt_prog_compiler_wl_GCJ='-Qoption ld '
23943 lt_prog_compiler_pic_GCJ='-PIC'
23944 lt_prog_compiler_static_GCJ='-Bstatic'
23945 ;;
23946
23947 sysv4 | sysv4.2uw2* | sysv4.3*)
23948 lt_prog_compiler_wl_GCJ='-Wl,'
23949 lt_prog_compiler_pic_GCJ='-KPIC'
23950 lt_prog_compiler_static_GCJ='-Bstatic'
23951 ;;
23952
23953 sysv4*MP*)
23954 if test -d /usr/nec ;then
23955 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23956 lt_prog_compiler_static_GCJ='-Bstatic'
23957 fi
23958 ;;
23959
23960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23961 lt_prog_compiler_wl_GCJ='-Wl,'
23962 lt_prog_compiler_pic_GCJ='-KPIC'
23963 lt_prog_compiler_static_GCJ='-Bstatic'
23964 ;;
23965
23966 unicos*)
23967 lt_prog_compiler_wl_GCJ='-Wl,'
23968 lt_prog_compiler_can_build_shared_GCJ=no
23969 ;;
23970
23971 uts4*)
23972 lt_prog_compiler_pic_GCJ='-pic'
23973 lt_prog_compiler_static_GCJ='-Bstatic'
23974 ;;
23975
23976 *)
23977 lt_prog_compiler_can_build_shared_GCJ=no
23978 ;;
23979 esac
23980 fi
23981
23982{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23983echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23984
23985#
23986# Check to make sure the PIC flag actually works.
23987#
23988if test -n "$lt_prog_compiler_pic_GCJ"; then
23989
23990{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23991echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23992if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23993 echo $ECHO_N "(cached) $ECHO_C" >&6
23994else
23995 lt_prog_compiler_pic_works_GCJ=no
23996 ac_outfile=conftest.$ac_objext
23997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23998 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23999 # Insert the option either (1) after the last *FLAGS variable, or
24000 # (2) before a word containing "conftest.", or (3) at the end.
24001 # Note that $ac_compile itself does not contain backslashes and begins
24002 # with a dollar sign (not a hyphen), so the echo should work correctly.
24003 # The option is referenced via a variable to avoid confusing sed.
24004 lt_compile=`echo "$ac_compile" | $SED \
24005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24007 -e 's:$: $lt_compiler_flag:'`
Owen Andersonff0f88e2009-05-18 23:58:51 +000024008 (eval echo "\"\$as_me:24008: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024009 (eval "$lt_compile" 2>conftest.err)
24010 ac_status=$?
24011 cat conftest.err >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000024012 echo "$as_me:24012: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024013 if (exit $ac_status) && test -s "$ac_outfile"; then
24014 # The compiler can only warn and ignore the option if not recognized
24015 # So say no if there are warnings other than the usual output.
24016 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24018 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24019 lt_prog_compiler_pic_works_GCJ=yes
24020 fi
24021 fi
24022 $rm conftest*
24023
24024fi
24025{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24026echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
24027
24028if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24029 case $lt_prog_compiler_pic_GCJ in
24030 "" | " "*) ;;
24031 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24032 esac
24033else
24034 lt_prog_compiler_pic_GCJ=
24035 lt_prog_compiler_can_build_shared_GCJ=no
24036fi
24037
24038fi
24039case $host_os in
24040 # For platforms which do not support PIC, -DPIC is meaningless:
24041 *djgpp*)
24042 lt_prog_compiler_pic_GCJ=
24043 ;;
24044 *)
24045 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24046 ;;
24047esac
24048
24049#
24050# Check to make sure the static flag actually works.
24051#
24052wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24053{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24054echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24055if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24057else
24058 lt_prog_compiler_static_works_GCJ=no
24059 save_LDFLAGS="$LDFLAGS"
24060 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24061 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24062 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24063 # The linker can only warn and ignore the option if not recognized
24064 # So say no if there are warnings
24065 if test -s conftest.err; then
24066 # Append any errors to the config.log.
24067 cat conftest.err 1>&5
24068 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24069 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24070 if diff conftest.exp conftest.er2 >/dev/null; then
24071 lt_prog_compiler_static_works_GCJ=yes
24072 fi
24073 else
24074 lt_prog_compiler_static_works_GCJ=yes
24075 fi
24076 fi
24077 $rm conftest*
24078 LDFLAGS="$save_LDFLAGS"
24079
24080fi
24081{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24082echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24083
24084if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24085 :
24086else
24087 lt_prog_compiler_static_GCJ=
24088fi
24089
24090
24091{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24092echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24093if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24095else
24096 lt_cv_prog_compiler_c_o_GCJ=no
24097 $rm -r conftest 2>/dev/null
24098 mkdir conftest
24099 cd conftest
24100 mkdir out
24101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24102
24103 lt_compiler_flag="-o out/conftest2.$ac_objext"
24104 # Insert the option either (1) after the last *FLAGS variable, or
24105 # (2) before a word containing "conftest.", or (3) at the end.
24106 # Note that $ac_compile itself does not contain backslashes and begins
24107 # with a dollar sign (not a hyphen), so the echo should work correctly.
24108 lt_compile=`echo "$ac_compile" | $SED \
24109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24111 -e 's:$: $lt_compiler_flag:'`
Owen Andersonff0f88e2009-05-18 23:58:51 +000024112 (eval echo "\"\$as_me:24112: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024113 (eval "$lt_compile" 2>out/conftest.err)
24114 ac_status=$?
24115 cat out/conftest.err >&5
Owen Andersonff0f88e2009-05-18 23:58:51 +000024116 echo "$as_me:24116: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024117 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24118 then
24119 # The compiler can only warn and ignore the option if not recognized
24120 # So say no if there are warnings
24121 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24124 lt_cv_prog_compiler_c_o_GCJ=yes
24125 fi
24126 fi
24127 chmod u+w . 2>&5
24128 $rm conftest*
24129 # SGI C++ compiler will create directory out/ii_files/ for
24130 # template instantiation
24131 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24132 $rm out/* && rmdir out
24133 cd ..
24134 rmdir conftest
24135 $rm conftest*
24136
24137fi
24138{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24139echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24140
24141
24142hard_links="nottested"
24143if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24144 # do not overwrite the value of need_locks provided by the user
24145 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24146echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24147 hard_links=yes
24148 $rm conftest*
24149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24150 touch conftest.a
24151 ln conftest.a conftest.b 2>&5 || hard_links=no
24152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24153 { echo "$as_me:$LINENO: result: $hard_links" >&5
24154echo "${ECHO_T}$hard_links" >&6; }
24155 if test "$hard_links" = no; then
24156 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24157echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24158 need_locks=warn
24159 fi
24160else
24161 need_locks=no
24162fi
24163
24164{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24165echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24166
24167 runpath_var=
24168 allow_undefined_flag_GCJ=
24169 enable_shared_with_static_runtimes_GCJ=no
24170 archive_cmds_GCJ=
24171 archive_expsym_cmds_GCJ=
24172 old_archive_From_new_cmds_GCJ=
24173 old_archive_from_expsyms_cmds_GCJ=
24174 export_dynamic_flag_spec_GCJ=
24175 whole_archive_flag_spec_GCJ=
24176 thread_safe_flag_spec_GCJ=
24177 hardcode_libdir_flag_spec_GCJ=
24178 hardcode_libdir_flag_spec_ld_GCJ=
24179 hardcode_libdir_separator_GCJ=
24180 hardcode_direct_GCJ=no
24181 hardcode_minus_L_GCJ=no
24182 hardcode_shlibpath_var_GCJ=unsupported
24183 link_all_deplibs_GCJ=unknown
24184 hardcode_automatic_GCJ=no
24185 module_cmds_GCJ=
24186 module_expsym_cmds_GCJ=
24187 always_export_symbols_GCJ=no
24188 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24189 # include_expsyms should be a list of space-separated symbols to be *always*
24190 # included in the symbol list
24191 include_expsyms_GCJ=
24192 # exclude_expsyms can be an extended regexp of symbols to exclude
24193 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24194 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24195 # as well as any symbol that contains `d'.
24196 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24197 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24198 # platforms (ab)use it in PIC code, but their linkers get confused if
24199 # the symbol is explicitly referenced. Since portable code cannot
24200 # rely on this symbol name, it's probably fine to never include it in
24201 # preloaded symbol tables.
24202 extract_expsyms_cmds=
24203 # Just being paranoid about ensuring that cc_basename is set.
24204 for cc_temp in $compiler""; do
24205 case $cc_temp in
24206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24208 \-*) ;;
24209 *) break;;
24210 esac
24211done
24212cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24213
24214 case $host_os in
24215 cygwin* | mingw* | pw32*)
24216 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24217 # When not using gcc, we currently assume that we are using
24218 # Microsoft Visual C++.
24219 if test "$GCC" != yes; then
24220 with_gnu_ld=no
24221 fi
24222 ;;
24223 interix*)
24224 # we just hope/assume this is gcc and not c89 (= MSVC++)
24225 with_gnu_ld=yes
24226 ;;
24227 openbsd*)
24228 with_gnu_ld=no
24229 ;;
24230 esac
24231
24232 ld_shlibs_GCJ=yes
24233 if test "$with_gnu_ld" = yes; then
24234 # If archive_cmds runs LD, not CC, wlarc should be empty
24235 wlarc='${wl}'
24236
24237 # Set some defaults for GNU ld with shared library support. These
24238 # are reset later if shared libraries are not supported. Putting them
24239 # here allows them to be overridden if necessary.
24240 runpath_var=LD_RUN_PATH
24241 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24242 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24243 # ancient GNU ld didn't support --whole-archive et. al.
24244 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24245 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24246 else
24247 whole_archive_flag_spec_GCJ=
24248 fi
24249 supports_anon_versioning=no
24250 case `$LD -v 2>/dev/null` in
24251 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24252 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24253 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24254 *\ 2.11.*) ;; # other 2.11 versions
24255 *) supports_anon_versioning=yes ;;
24256 esac
24257
24258 # See if GNU ld supports shared libraries.
24259 case $host_os in
24260 aix3* | aix4* | aix5*)
24261 # On AIX/PPC, the GNU linker is very broken
24262 if test "$host_cpu" != ia64; then
24263 ld_shlibs_GCJ=no
24264 cat <<EOF 1>&2
24265
24266*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24267*** to be unable to reliably create shared libraries on AIX.
24268*** Therefore, libtool is disabling shared libraries support. If you
24269*** really care for shared libraries, you may want to modify your PATH
24270*** so that a non-GNU linker is found, and then restart.
24271
24272EOF
24273 fi
24274 ;;
24275
24276 amigaos*)
24277 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)'
24278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24279 hardcode_minus_L_GCJ=yes
24280
24281 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24282 # that the semantics of dynamic libraries on AmigaOS, at least up
24283 # to version 4, is to share data among multiple programs linked
24284 # with the same dynamic library. Since this doesn't match the
24285 # behavior of shared libraries on other platforms, we can't use
24286 # them.
24287 ld_shlibs_GCJ=no
24288 ;;
24289
24290 beos*)
24291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24292 allow_undefined_flag_GCJ=unsupported
24293 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24294 # support --undefined. This deserves some investigation. FIXME
24295 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24296 else
24297 ld_shlibs_GCJ=no
24298 fi
24299 ;;
24300
24301 cygwin* | mingw* | pw32*)
24302 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24303 # as there is no search path for DLLs.
24304 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24305 allow_undefined_flag_GCJ=unsupported
24306 always_export_symbols_GCJ=no
24307 enable_shared_with_static_runtimes_GCJ=yes
24308 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24309
24310 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24311 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24312 # If the export-symbols file already is a .def file (1st line
24313 # is EXPORTS), use it as is; otherwise, prepend...
24314 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24315 cp $export_symbols $output_objdir/$soname.def;
24316 else
24317 echo EXPORTS > $output_objdir/$soname.def;
24318 cat $export_symbols >> $output_objdir/$soname.def;
24319 fi~
24320 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24321 else
24322 ld_shlibs_GCJ=no
24323 fi
24324 ;;
24325
24326 interix3*)
24327 hardcode_direct_GCJ=no
24328 hardcode_shlibpath_var_GCJ=no
24329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24330 export_dynamic_flag_spec_GCJ='${wl}-E'
24331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24332 # Instead, shared libraries are loaded at an image base (0x10000000 by
24333 # default) and relocated if they conflict, which is a slow very memory
24334 # consuming and fragmenting process. To avoid this, we pick a random,
24335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24337 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'
24338 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'
24339 ;;
24340
24341 linux*)
24342 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24343 tmp_addflag=
24344 case $cc_basename,$host_cpu in
24345 pgcc*) # Portland Group C compiler
24346 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'
24347 tmp_addflag=' $pic_flag'
24348 ;;
24349 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24350 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'
24351 tmp_addflag=' $pic_flag -Mnomain' ;;
24352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24353 tmp_addflag=' -i_dynamic' ;;
24354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24355 tmp_addflag=' -i_dynamic -nofor_main' ;;
24356 ifc* | ifort*) # Intel Fortran compiler
24357 tmp_addflag=' -nofor_main' ;;
24358 esac
24359 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24360
24361 if test $supports_anon_versioning = yes; then
24362 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24363 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24364 $echo "local: *; };" >> $output_objdir/$libname.ver~
24365 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24366 fi
24367 else
24368 ld_shlibs_GCJ=no
24369 fi
24370 ;;
24371
24372 netbsd*)
24373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24374 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24375 wlarc=
24376 else
24377 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24378 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24379 fi
24380 ;;
24381
24382 solaris*)
24383 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24384 ld_shlibs_GCJ=no
24385 cat <<EOF 1>&2
24386
24387*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24388*** create shared libraries on Solaris systems. Therefore, libtool
24389*** is disabling shared libraries support. We urge you to upgrade GNU
24390*** binutils to release 2.9.1 or newer. Another option is to modify
24391*** your PATH or compiler configuration so that the native linker is
24392*** used, and then restart.
24393
24394EOF
24395 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24396 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24397 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24398 else
24399 ld_shlibs_GCJ=no
24400 fi
24401 ;;
24402
24403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24404 case `$LD -v 2>&1` in
24405 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24406 ld_shlibs_GCJ=no
24407 cat <<_LT_EOF 1>&2
24408
24409*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24410*** reliably create shared libraries on SCO systems. Therefore, libtool
24411*** is disabling shared libraries support. We urge you to upgrade GNU
24412*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24413*** your PATH or compiler configuration so that the native linker is
24414*** used, and then restart.
24415
24416_LT_EOF
24417 ;;
24418 *)
24419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24420 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24421 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24422 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24423 else
24424 ld_shlibs_GCJ=no
24425 fi
24426 ;;
24427 esac
24428 ;;
24429
24430 sunos4*)
24431 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24432 wlarc=
24433 hardcode_direct_GCJ=yes
24434 hardcode_shlibpath_var_GCJ=no
24435 ;;
24436
24437 *)
24438 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24439 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24440 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24441 else
24442 ld_shlibs_GCJ=no
24443 fi
24444 ;;
24445 esac
24446
24447 if test "$ld_shlibs_GCJ" = no; then
24448 runpath_var=
24449 hardcode_libdir_flag_spec_GCJ=
24450 export_dynamic_flag_spec_GCJ=
24451 whole_archive_flag_spec_GCJ=
24452 fi
24453 else
24454 # PORTME fill in a description of your system's linker (not GNU ld)
24455 case $host_os in
24456 aix3*)
24457 allow_undefined_flag_GCJ=unsupported
24458 always_export_symbols_GCJ=yes
24459 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'
24460 # Note: this linker hardcodes the directories in LIBPATH if there
24461 # are no directories specified by -L.
24462 hardcode_minus_L_GCJ=yes
24463 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24464 # Neither direct hardcoding nor static linking is supported with a
24465 # broken collect2.
24466 hardcode_direct_GCJ=unsupported
24467 fi
24468 ;;
24469
24470 aix4* | aix5*)
24471 if test "$host_cpu" = ia64; then
24472 # On IA64, the linker does run time linking by default, so we don't
24473 # have to do anything special.
24474 aix_use_runtimelinking=no
24475 exp_sym_flag='-Bexport'
24476 no_entry_flag=""
24477 else
24478 # If we're using GNU nm, then we don't want the "-C" option.
24479 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24480 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24481 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'
24482 else
24483 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'
24484 fi
24485 aix_use_runtimelinking=no
24486
24487 # Test if we are trying to use run time linking or normal
24488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24489 # need to do runtime linking.
24490 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24491 for ld_flag in $LDFLAGS; do
24492 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24493 aix_use_runtimelinking=yes
24494 break
24495 fi
24496 done
24497 ;;
24498 esac
24499
24500 exp_sym_flag='-bexport'
24501 no_entry_flag='-bnoentry'
24502 fi
24503
24504 # When large executables or shared objects are built, AIX ld can
24505 # have problems creating the table of contents. If linking a library
24506 # or program results in "error TOC overflow" add -mminimal-toc to
24507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24509
24510 archive_cmds_GCJ=''
24511 hardcode_direct_GCJ=yes
24512 hardcode_libdir_separator_GCJ=':'
24513 link_all_deplibs_GCJ=yes
24514
24515 if test "$GCC" = yes; then
24516 case $host_os in aix4.[012]|aix4.[012].*)
24517 # We only want to do this on AIX 4.2 and lower, the check
24518 # below for broken collect2 doesn't work under 4.3+
24519 collect2name=`${CC} -print-prog-name=collect2`
24520 if test -f "$collect2name" && \
24521 strings "$collect2name" | grep resolve_lib_name >/dev/null
24522 then
24523 # We have reworked collect2
24524 hardcode_direct_GCJ=yes
24525 else
24526 # We have old collect2
24527 hardcode_direct_GCJ=unsupported
24528 # It fails to find uninstalled libraries when the uninstalled
24529 # path is not listed in the libpath. Setting hardcode_minus_L
24530 # to unsupported forces relinking
24531 hardcode_minus_L_GCJ=yes
24532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24533 hardcode_libdir_separator_GCJ=
24534 fi
24535 ;;
24536 esac
24537 shared_flag='-shared'
24538 if test "$aix_use_runtimelinking" = yes; then
24539 shared_flag="$shared_flag "'${wl}-G'
24540 fi
24541 else
24542 # not using gcc
24543 if test "$host_cpu" = ia64; then
24544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24545 # chokes on -Wl,-G. The following line is correct:
24546 shared_flag='-G'
24547 else
24548 if test "$aix_use_runtimelinking" = yes; then
24549 shared_flag='${wl}-G'
24550 else
24551 shared_flag='${wl}-bM:SRE'
24552 fi
24553 fi
24554 fi
24555
24556 # It seems that -bexpall does not export symbols beginning with
24557 # underscore (_), so it is better to generate a list of symbols to export.
24558 always_export_symbols_GCJ=yes
24559 if test "$aix_use_runtimelinking" = yes; then
24560 # Warning - without using the other runtime loading flags (-brtl),
24561 # -berok will link without error, but may produce a broken library.
24562 allow_undefined_flag_GCJ='-berok'
24563 # Determine the default libpath from the value encoded in an empty executable.
24564 cat >conftest.$ac_ext <<_ACEOF
24565/* confdefs.h. */
24566_ACEOF
24567cat confdefs.h >>conftest.$ac_ext
24568cat >>conftest.$ac_ext <<_ACEOF
24569/* end confdefs.h. */
24570
24571int
24572main ()
24573{
24574
24575 ;
24576 return 0;
24577}
24578_ACEOF
24579rm -f conftest.$ac_objext conftest$ac_exeext
24580if { (ac_try="$ac_link"
24581case "(($ac_try" in
24582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583 *) ac_try_echo=$ac_try;;
24584esac
24585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24586 (eval "$ac_link") 2>conftest.er1
24587 ac_status=$?
24588 grep -v '^ *+' conftest.er1 >conftest.err
24589 rm -f conftest.er1
24590 cat conftest.err >&5
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000024592 (exit $ac_status); } &&
24593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24594 { (case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24597esac
24598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_try") 2>&5
24600 ac_status=$?
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; } &&
24603 { ac_try='test -s conftest$ac_exeext'
24604 { (case "(($ac_try" in
24605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24606 *) ac_try_echo=$ac_try;;
24607esac
24608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24609 (eval "$ac_try") 2>&5
24610 ac_status=$?
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024613
24614aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24615}'`
24616# Check for a 64-bit object if we didn't find anything.
24617if 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; }
24618}'`; fi
24619else
24620 echo "$as_me: failed program was:" >&5
24621sed 's/^/| /' conftest.$ac_ext >&5
24622
24623
24624fi
24625
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000024626rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024627 conftest$ac_exeext conftest.$ac_ext
24628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24629
24630 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24631 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"
24632 else
24633 if test "$host_cpu" = ia64; then
24634 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24635 allow_undefined_flag_GCJ="-z nodefs"
24636 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"
24637 else
24638 # Determine the default libpath from the value encoded in an empty executable.
24639 cat >conftest.$ac_ext <<_ACEOF
24640/* confdefs.h. */
24641_ACEOF
24642cat confdefs.h >>conftest.$ac_ext
24643cat >>conftest.$ac_ext <<_ACEOF
24644/* end confdefs.h. */
24645
24646int
24647main ()
24648{
24649
24650 ;
24651 return 0;
24652}
24653_ACEOF
24654rm -f conftest.$ac_objext conftest$ac_exeext
24655if { (ac_try="$ac_link"
24656case "(($ac_try" in
24657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658 *) ac_try_echo=$ac_try;;
24659esac
24660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661 (eval "$ac_link") 2>conftest.er1
24662 ac_status=$?
24663 grep -v '^ *+' conftest.er1 >conftest.err
24664 rm -f conftest.er1
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000024667 (exit $ac_status); } &&
24668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24669 { (case "(($ac_try" in
24670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24671 *) ac_try_echo=$ac_try;;
24672esac
24673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674 (eval "$ac_try") 2>&5
24675 ac_status=$?
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; } &&
24678 { ac_try='test -s conftest$ac_exeext'
24679 { (case "(($ac_try" in
24680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681 *) ac_try_echo=$ac_try;;
24682esac
24683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24684 (eval "$ac_try") 2>&5
24685 ac_status=$?
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024688
24689aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24690}'`
24691# Check for a 64-bit object if we didn't find anything.
24692if 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; }
24693}'`; fi
24694else
24695 echo "$as_me: failed program was:" >&5
24696sed 's/^/| /' conftest.$ac_ext >&5
24697
24698
24699fi
24700
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000024701rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024702 conftest$ac_exeext conftest.$ac_ext
24703if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24704
24705 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24706 # Warning - without using the other run time loading flags,
24707 # -berok will link without error, but may produce a broken library.
24708 no_undefined_flag_GCJ=' ${wl}-bernotok'
24709 allow_undefined_flag_GCJ=' ${wl}-berok'
24710 # Exported symbols can be pulled into shared objects from archives
24711 whole_archive_flag_spec_GCJ='$convenience'
24712 archive_cmds_need_lc_GCJ=yes
24713 # This is similar to how AIX traditionally builds its shared libraries.
24714 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'
24715 fi
24716 fi
24717 ;;
24718
24719 amigaos*)
24720 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)'
24721 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24722 hardcode_minus_L_GCJ=yes
24723 # see comment about different semantics on the GNU ld section
24724 ld_shlibs_GCJ=no
24725 ;;
24726
24727 bsdi[45]*)
24728 export_dynamic_flag_spec_GCJ=-rdynamic
24729 ;;
24730
24731 cygwin* | mingw* | pw32*)
24732 # When not using gcc, we currently assume that we are using
24733 # Microsoft Visual C++.
24734 # hardcode_libdir_flag_spec is actually meaningless, as there is
24735 # no search path for DLLs.
24736 hardcode_libdir_flag_spec_GCJ=' '
24737 allow_undefined_flag_GCJ=unsupported
24738 # Tell ltmain to make .lib files, not .a files.
24739 libext=lib
24740 # Tell ltmain to make .dll files, not .so files.
24741 shrext_cmds=".dll"
24742 # FIXME: Setting linknames here is a bad hack.
24743 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24744 # The linker will automatically build a .lib file if we build a DLL.
24745 old_archive_From_new_cmds_GCJ='true'
24746 # FIXME: Should let the user specify the lib program.
24747 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24748 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24749 enable_shared_with_static_runtimes_GCJ=yes
24750 ;;
24751
24752 darwin* | rhapsody*)
24753 case $host_os in
24754 rhapsody* | darwin1.[012])
24755 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24756 ;;
24757 *) # Darwin 1.3 on
24758 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24759 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24760 else
24761 case ${MACOSX_DEPLOYMENT_TARGET} in
24762 10.[012])
24763 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24764 ;;
24765 10.*)
24766 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24767 ;;
24768 esac
24769 fi
24770 ;;
24771 esac
24772 archive_cmds_need_lc_GCJ=no
24773 hardcode_direct_GCJ=no
24774 hardcode_automatic_GCJ=yes
24775 hardcode_shlibpath_var_GCJ=unsupported
24776 whole_archive_flag_spec_GCJ=''
24777 link_all_deplibs_GCJ=yes
24778 if test "$GCC" = yes ; then
24779 output_verbose_link_cmd='echo'
24780 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24781 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24782 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24783 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}'
24784 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}'
24785 else
24786 case $cc_basename in
24787 xlc*)
24788 output_verbose_link_cmd='echo'
24789 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24790 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24791 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24792 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}'
24793 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}'
24794 ;;
24795 *)
24796 ld_shlibs_GCJ=no
24797 ;;
24798 esac
24799 fi
24800 ;;
24801
24802 dgux*)
24803 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24804 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24805 hardcode_shlibpath_var_GCJ=no
24806 ;;
24807
24808 freebsd1*)
24809 ld_shlibs_GCJ=no
24810 ;;
24811
24812 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24813 # support. Future versions do this automatically, but an explicit c++rt0.o
24814 # does not break anything, and helps significantly (at the cost of a little
24815 # extra space).
24816 freebsd2.2*)
24817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24818 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24819 hardcode_direct_GCJ=yes
24820 hardcode_shlibpath_var_GCJ=no
24821 ;;
24822
24823 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24824 freebsd2*)
24825 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24826 hardcode_direct_GCJ=yes
24827 hardcode_minus_L_GCJ=yes
24828 hardcode_shlibpath_var_GCJ=no
24829 ;;
24830
24831 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24832 freebsd* | kfreebsd*-gnu | dragonfly*)
24833 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24834 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24835 hardcode_direct_GCJ=yes
24836 hardcode_shlibpath_var_GCJ=no
24837 ;;
24838
24839 hpux9*)
24840 if test "$GCC" = yes; then
24841 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'
24842 else
24843 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'
24844 fi
24845 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24846 hardcode_libdir_separator_GCJ=:
24847 hardcode_direct_GCJ=yes
24848
24849 # hardcode_minus_L: Not really in the search PATH,
24850 # but as the default location of the library.
24851 hardcode_minus_L_GCJ=yes
24852 export_dynamic_flag_spec_GCJ='${wl}-E'
24853 ;;
24854
24855 hpux10*)
24856 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24857 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24858 else
24859 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24860 fi
24861 if test "$with_gnu_ld" = no; then
24862 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24863 hardcode_libdir_separator_GCJ=:
24864
24865 hardcode_direct_GCJ=yes
24866 export_dynamic_flag_spec_GCJ='${wl}-E'
24867
24868 # hardcode_minus_L: Not really in the search PATH,
24869 # but as the default location of the library.
24870 hardcode_minus_L_GCJ=yes
24871 fi
24872 ;;
24873
24874 hpux11*)
24875 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24876 case $host_cpu in
24877 hppa*64*)
24878 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24879 ;;
24880 ia64*)
24881 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24882 ;;
24883 *)
24884 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24885 ;;
24886 esac
24887 else
24888 case $host_cpu in
24889 hppa*64*)
24890 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24891 ;;
24892 ia64*)
24893 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24894 ;;
24895 *)
24896 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24897 ;;
24898 esac
24899 fi
24900 if test "$with_gnu_ld" = no; then
24901 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24902 hardcode_libdir_separator_GCJ=:
24903
24904 case $host_cpu in
24905 hppa*64*|ia64*)
24906 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24907 hardcode_direct_GCJ=no
24908 hardcode_shlibpath_var_GCJ=no
24909 ;;
24910 *)
24911 hardcode_direct_GCJ=yes
24912 export_dynamic_flag_spec_GCJ='${wl}-E'
24913
24914 # hardcode_minus_L: Not really in the search PATH,
24915 # but as the default location of the library.
24916 hardcode_minus_L_GCJ=yes
24917 ;;
24918 esac
24919 fi
24920 ;;
24921
24922 irix5* | irix6* | nonstopux*)
24923 if test "$GCC" = yes; then
24924 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'
24925 else
24926 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'
24927 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24928 fi
24929 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24930 hardcode_libdir_separator_GCJ=:
24931 link_all_deplibs_GCJ=yes
24932 ;;
24933
24934 netbsd*)
24935 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24936 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24937 else
24938 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24939 fi
24940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24941 hardcode_direct_GCJ=yes
24942 hardcode_shlibpath_var_GCJ=no
24943 ;;
24944
24945 newsos6)
24946 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24947 hardcode_direct_GCJ=yes
24948 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24949 hardcode_libdir_separator_GCJ=:
24950 hardcode_shlibpath_var_GCJ=no
24951 ;;
24952
24953 openbsd*)
24954 hardcode_direct_GCJ=yes
24955 hardcode_shlibpath_var_GCJ=no
24956 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24957 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24958 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24960 export_dynamic_flag_spec_GCJ='${wl}-E'
24961 else
24962 case $host_os in
24963 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24964 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24965 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24966 ;;
24967 *)
24968 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24969 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24970 ;;
24971 esac
24972 fi
24973 ;;
24974
24975 os2*)
24976 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24977 hardcode_minus_L_GCJ=yes
24978 allow_undefined_flag_GCJ=unsupported
24979 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'
24980 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24981 ;;
24982
24983 osf3*)
24984 if test "$GCC" = yes; then
24985 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24986 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'
24987 else
24988 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24989 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'
24990 fi
24991 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24992 hardcode_libdir_separator_GCJ=:
24993 ;;
24994
24995 osf4* | osf5*) # as osf3* with the addition of -msym flag
24996 if test "$GCC" = yes; then
24997 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24998 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'
24999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25000 else
25001 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25002 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'
25003 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~
25004 $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'
25005
25006 # Both c and cxx compiler support -rpath directly
25007 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25008 fi
25009 hardcode_libdir_separator_GCJ=:
25010 ;;
25011
25012 solaris*)
25013 no_undefined_flag_GCJ=' -z text'
25014 if test "$GCC" = yes; then
25015 wlarc='${wl}'
25016 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25017 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25018 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25019 else
25020 wlarc=''
25021 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25022 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25024 fi
25025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25026 hardcode_shlibpath_var_GCJ=no
25027 case $host_os in
25028 solaris2.[0-5] | solaris2.[0-5].*) ;;
25029 *)
25030 # The compiler driver will combine linker options so we
25031 # cannot just pass the convience library names through
25032 # without $wl, iff we do not link with $LD.
25033 # Luckily, gcc supports the same syntax we need for Sun Studio.
25034 # Supported since Solaris 2.6 (maybe 2.5.1?)
25035 case $wlarc in
25036 '')
25037 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25038 *)
25039 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' ;;
25040 esac ;;
25041 esac
25042 link_all_deplibs_GCJ=yes
25043 ;;
25044
25045 sunos4*)
25046 if test "x$host_vendor" = xsequent; then
25047 # Use $CC to link under sequent, because it throws in some extra .o
25048 # files that make .init and .fini sections work.
25049 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25050 else
25051 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25052 fi
25053 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25054 hardcode_direct_GCJ=yes
25055 hardcode_minus_L_GCJ=yes
25056 hardcode_shlibpath_var_GCJ=no
25057 ;;
25058
25059 sysv4)
25060 case $host_vendor in
25061 sni)
25062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25063 hardcode_direct_GCJ=yes # is this really true???
25064 ;;
25065 siemens)
25066 ## LD is ld it makes a PLAMLIB
25067 ## CC just makes a GrossModule.
25068 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25069 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25070 hardcode_direct_GCJ=no
25071 ;;
25072 motorola)
25073 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25074 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25075 ;;
25076 esac
25077 runpath_var='LD_RUN_PATH'
25078 hardcode_shlibpath_var_GCJ=no
25079 ;;
25080
25081 sysv4.3*)
25082 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25083 hardcode_shlibpath_var_GCJ=no
25084 export_dynamic_flag_spec_GCJ='-Bexport'
25085 ;;
25086
25087 sysv4*MP*)
25088 if test -d /usr/nec; then
25089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25090 hardcode_shlibpath_var_GCJ=no
25091 runpath_var=LD_RUN_PATH
25092 hardcode_runpath_var=yes
25093 ld_shlibs_GCJ=yes
25094 fi
25095 ;;
25096
25097 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25098 no_undefined_flag_GCJ='${wl}-z,text'
25099 archive_cmds_need_lc_GCJ=no
25100 hardcode_shlibpath_var_GCJ=no
25101 runpath_var='LD_RUN_PATH'
25102
25103 if test "$GCC" = yes; then
25104 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25105 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25106 else
25107 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25108 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25109 fi
25110 ;;
25111
25112 sysv5* | sco3.2v5* | sco5v6*)
25113 # Note: We can NOT use -z defs as we might desire, because we do not
25114 # link with -lc, and that would cause any symbols used from libc to
25115 # always be unresolved, which means just about no library would
25116 # ever link correctly. If we're not using GNU ld we use -z text
25117 # though, which does catch some bad symbols but isn't as heavy-handed
25118 # as -z defs.
25119 no_undefined_flag_GCJ='${wl}-z,text'
25120 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25121 archive_cmds_need_lc_GCJ=no
25122 hardcode_shlibpath_var_GCJ=no
25123 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25124 hardcode_libdir_separator_GCJ=':'
25125 link_all_deplibs_GCJ=yes
25126 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25127 runpath_var='LD_RUN_PATH'
25128
25129 if test "$GCC" = yes; then
25130 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25131 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25132 else
25133 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25134 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25135 fi
25136 ;;
25137
25138 uts4*)
25139 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25140 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25141 hardcode_shlibpath_var_GCJ=no
25142 ;;
25143
25144 *)
25145 ld_shlibs_GCJ=no
25146 ;;
25147 esac
25148 fi
25149
25150{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25151echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25152test "$ld_shlibs_GCJ" = no && can_build_shared=no
25153
25154#
25155# Do we need to explicitly link libc?
25156#
25157case "x$archive_cmds_need_lc_GCJ" in
25158x|xyes)
25159 # Assume -lc should be added
25160 archive_cmds_need_lc_GCJ=yes
25161
25162 if test "$enable_shared" = yes && test "$GCC" = yes; then
25163 case $archive_cmds_GCJ in
25164 *'~'*)
25165 # FIXME: we may have to deal with multi-command sequences.
25166 ;;
25167 '$CC '*)
25168 # Test whether the compiler implicitly links with -lc since on some
25169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25170 # to ld, don't add -lc before -lgcc.
25171 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25172echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25173 $rm conftest*
25174 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25175
25176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25177 (eval $ac_compile) 2>&5
25178 ac_status=$?
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } 2>conftest.err; then
25181 soname=conftest
25182 lib=conftest
25183 libobjs=conftest.$ac_objext
25184 deplibs=
25185 wl=$lt_prog_compiler_wl_GCJ
25186 pic_flag=$lt_prog_compiler_pic_GCJ
25187 compiler_flags=-v
25188 linker_flags=-v
25189 verstring=
25190 output_objdir=.
25191 libname=conftest
25192 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25193 allow_undefined_flag_GCJ=
25194 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25195 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }
25199 then
25200 archive_cmds_need_lc_GCJ=no
25201 else
25202 archive_cmds_need_lc_GCJ=yes
25203 fi
25204 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25205 else
25206 cat conftest.err 1>&5
25207 fi
25208 $rm conftest*
25209 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25210echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25211 ;;
25212 esac
25213 fi
25214 ;;
25215esac
25216
25217{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25218echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25219library_names_spec=
25220libname_spec='lib$name'
25221soname_spec=
25222shrext_cmds=".so"
25223postinstall_cmds=
25224postuninstall_cmds=
25225finish_cmds=
25226finish_eval=
25227shlibpath_var=
25228shlibpath_overrides_runpath=unknown
25229version_type=none
25230dynamic_linker="$host_os ld.so"
25231sys_lib_dlsearch_path_spec="/lib /usr/lib"
25232if test "$GCC" = yes; then
25233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25234 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25235 # if the path contains ";" then we assume it to be the separator
25236 # otherwise default to the standard path separator (i.e. ":") - it is
25237 # assumed that no part of a normal pathname contains ";" but that should
25238 # okay in the real world where ";" in dirpaths is itself problematic.
25239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25240 else
25241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25242 fi
25243else
25244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25245fi
25246need_lib_prefix=unknown
25247hardcode_into_libs=no
25248
25249# when you set need_version to no, make sure it does not cause -set_version
25250# flags to be left without arguments
25251need_version=unknown
25252
25253case $host_os in
25254aix3*)
25255 version_type=linux
25256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25257 shlibpath_var=LIBPATH
25258
25259 # AIX 3 has no versioning support, so we append a major version to the name.
25260 soname_spec='${libname}${release}${shared_ext}$major'
25261 ;;
25262
25263aix4* | aix5*)
25264 version_type=linux
25265 need_lib_prefix=no
25266 need_version=no
25267 hardcode_into_libs=yes
25268 if test "$host_cpu" = ia64; then
25269 # AIX 5 supports IA64
25270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25271 shlibpath_var=LD_LIBRARY_PATH
25272 else
25273 # With GCC up to 2.95.x, collect2 would create an import file
25274 # for dependence libraries. The import file would start with
25275 # the line `#! .'. This would cause the generated library to
25276 # depend on `.', always an invalid library. This was fixed in
25277 # development snapshots of GCC prior to 3.0.
25278 case $host_os in
25279 aix4 | aix4.[01] | aix4.[01].*)
25280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25281 echo ' yes '
25282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25283 :
25284 else
25285 can_build_shared=no
25286 fi
25287 ;;
25288 esac
25289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25290 # soname into executable. Probably we can add versioning support to
25291 # collect2, so additional links can be useful in future.
25292 if test "$aix_use_runtimelinking" = yes; then
25293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25294 # instead of lib<name>.a to let people know that these are not
25295 # typical AIX shared libraries.
25296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25297 else
25298 # We preserve .a as extension for shared libraries through AIX4.2
25299 # and later when we are not doing run time linking.
25300 library_names_spec='${libname}${release}.a $libname.a'
25301 soname_spec='${libname}${release}${shared_ext}$major'
25302 fi
25303 shlibpath_var=LIBPATH
25304 fi
25305 ;;
25306
25307amigaos*)
25308 library_names_spec='$libname.ixlibrary $libname.a'
25309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25310 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'
25311 ;;
25312
25313beos*)
25314 library_names_spec='${libname}${shared_ext}'
25315 dynamic_linker="$host_os ld.so"
25316 shlibpath_var=LIBRARY_PATH
25317 ;;
25318
25319bsdi[45]*)
25320 version_type=linux
25321 need_version=no
25322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25323 soname_spec='${libname}${release}${shared_ext}$major'
25324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25325 shlibpath_var=LD_LIBRARY_PATH
25326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25328 # the default ld.so.conf also contains /usr/contrib/lib and
25329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25330 # libtool to hard-code these into programs
25331 ;;
25332
25333cygwin* | mingw* | pw32*)
25334 version_type=windows
25335 shrext_cmds=".dll"
25336 need_version=no
25337 need_lib_prefix=no
25338
25339 case $GCC,$host_os in
25340 yes,cygwin* | yes,mingw* | yes,pw32*)
25341 library_names_spec='$libname.dll.a'
25342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25343 postinstall_cmds='base_file=`basename \${file}`~
25344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25345 dldir=$destdir/`dirname \$dlpath`~
25346 test -d \$dldir || mkdir -p \$dldir~
25347 $install_prog $dir/$dlname \$dldir/$dlname~
25348 chmod a+x \$dldir/$dlname'
25349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25350 dlpath=$dir/\$dldll~
25351 $rm \$dlpath'
25352 shlibpath_overrides_runpath=yes
25353
25354 case $host_os in
25355 cygwin*)
25356 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25358 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25359 ;;
25360 mingw*)
25361 # MinGW DLLs use traditional 'lib' prefix
25362 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25364 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25365 # It is most probably a Windows format PATH printed by
25366 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25367 # path with ; separators, and with drive letters. We can handle the
25368 # drive letters (cygwin fileutils understands them), so leave them,
25369 # especially as we might pass files found there to a mingw objdump,
25370 # which wouldn't understand a cygwinified path. Ahh.
25371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25372 else
25373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25374 fi
25375 ;;
25376 pw32*)
25377 # pw32 DLLs use 'pw' prefix rather than 'lib'
25378 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25379 ;;
25380 esac
25381 ;;
25382
25383 *)
25384 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25385 ;;
25386 esac
25387 dynamic_linker='Win32 ld.exe'
25388 # FIXME: first we should search . and the directory the executable is in
25389 shlibpath_var=PATH
25390 ;;
25391
25392darwin* | rhapsody*)
25393 dynamic_linker="$host_os dyld"
25394 version_type=darwin
25395 need_lib_prefix=no
25396 need_version=no
25397 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25398 soname_spec='${libname}${release}${major}$shared_ext'
25399 shlibpath_overrides_runpath=yes
25400 shlibpath_var=DYLD_LIBRARY_PATH
25401 shrext_cmds='.dylib'
25402 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25403 if test "$GCC" = yes; then
25404 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"`
25405 else
25406 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25407 fi
25408 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25409 ;;
25410
25411dgux*)
25412 version_type=linux
25413 need_lib_prefix=no
25414 need_version=no
25415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25416 soname_spec='${libname}${release}${shared_ext}$major'
25417 shlibpath_var=LD_LIBRARY_PATH
25418 ;;
25419
25420freebsd1*)
25421 dynamic_linker=no
25422 ;;
25423
25424kfreebsd*-gnu)
25425 version_type=linux
25426 need_lib_prefix=no
25427 need_version=no
25428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25429 soname_spec='${libname}${release}${shared_ext}$major'
25430 shlibpath_var=LD_LIBRARY_PATH
25431 shlibpath_overrides_runpath=no
25432 hardcode_into_libs=yes
25433 dynamic_linker='GNU ld.so'
25434 ;;
25435
25436freebsd* | dragonfly*)
25437 # DragonFly does not have aout. When/if they implement a new
25438 # versioning mechanism, adjust this.
25439 if test -x /usr/bin/objformat; then
25440 objformat=`/usr/bin/objformat`
25441 else
25442 case $host_os in
25443 freebsd[123]*) objformat=aout ;;
25444 *) objformat=elf ;;
25445 esac
25446 fi
25447 version_type=freebsd-$objformat
25448 case $version_type in
25449 freebsd-elf*)
25450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25451 need_version=no
25452 need_lib_prefix=no
25453 ;;
25454 freebsd-*)
25455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25456 need_version=yes
25457 ;;
25458 esac
25459 shlibpath_var=LD_LIBRARY_PATH
25460 case $host_os in
25461 freebsd2*)
25462 shlibpath_overrides_runpath=yes
25463 ;;
25464 freebsd3.[01]* | freebsdelf3.[01]*)
25465 shlibpath_overrides_runpath=yes
25466 hardcode_into_libs=yes
25467 ;;
25468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25470 shlibpath_overrides_runpath=no
25471 hardcode_into_libs=yes
25472 ;;
25473 freebsd*) # from 4.6 on
25474 shlibpath_overrides_runpath=yes
25475 hardcode_into_libs=yes
25476 ;;
25477 esac
25478 ;;
25479
25480gnu*)
25481 version_type=linux
25482 need_lib_prefix=no
25483 need_version=no
25484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25485 soname_spec='${libname}${release}${shared_ext}$major'
25486 shlibpath_var=LD_LIBRARY_PATH
25487 hardcode_into_libs=yes
25488 ;;
25489
25490hpux9* | hpux10* | hpux11*)
25491 # Give a soname corresponding to the major version so that dld.sl refuses to
25492 # link against other versions.
25493 version_type=sunos
25494 need_lib_prefix=no
25495 need_version=no
25496 case $host_cpu in
25497 ia64*)
25498 shrext_cmds='.so'
25499 hardcode_into_libs=yes
25500 dynamic_linker="$host_os dld.so"
25501 shlibpath_var=LD_LIBRARY_PATH
25502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504 soname_spec='${libname}${release}${shared_ext}$major'
25505 if test "X$HPUX_IA64_MODE" = X32; then
25506 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25507 else
25508 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25509 fi
25510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25511 ;;
25512 hppa*64*)
25513 shrext_cmds='.sl'
25514 hardcode_into_libs=yes
25515 dynamic_linker="$host_os dld.sl"
25516 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25519 soname_spec='${libname}${release}${shared_ext}$major'
25520 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25522 ;;
25523 *)
25524 shrext_cmds='.sl'
25525 dynamic_linker="$host_os dld.sl"
25526 shlibpath_var=SHLIB_PATH
25527 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25529 soname_spec='${libname}${release}${shared_ext}$major'
25530 ;;
25531 esac
25532 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25533 postinstall_cmds='chmod 555 $lib'
25534 ;;
25535
25536interix3*)
25537 version_type=linux
25538 need_lib_prefix=no
25539 need_version=no
25540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25541 soname_spec='${libname}${release}${shared_ext}$major'
25542 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25543 shlibpath_var=LD_LIBRARY_PATH
25544 shlibpath_overrides_runpath=no
25545 hardcode_into_libs=yes
25546 ;;
25547
25548irix5* | irix6* | nonstopux*)
25549 case $host_os in
25550 nonstopux*) version_type=nonstopux ;;
25551 *)
25552 if test "$lt_cv_prog_gnu_ld" = yes; then
25553 version_type=linux
25554 else
25555 version_type=irix
25556 fi ;;
25557 esac
25558 need_lib_prefix=no
25559 need_version=no
25560 soname_spec='${libname}${release}${shared_ext}$major'
25561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25562 case $host_os in
25563 irix5* | nonstopux*)
25564 libsuff= shlibsuff=
25565 ;;
25566 *)
25567 case $LD in # libtool.m4 will add one of these switches to LD
25568 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25569 libsuff= shlibsuff= libmagic=32-bit;;
25570 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25571 libsuff=32 shlibsuff=N32 libmagic=N32;;
25572 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25573 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25574 *) libsuff= shlibsuff= libmagic=never-match;;
25575 esac
25576 ;;
25577 esac
25578 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25579 shlibpath_overrides_runpath=no
25580 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25581 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25582 hardcode_into_libs=yes
25583 ;;
25584
25585# No shared lib support for Linux oldld, aout, or coff.
25586linux*oldld* | linux*aout* | linux*coff*)
25587 dynamic_linker=no
25588 ;;
25589
25590# This must be Linux ELF.
25591linux*)
25592 version_type=linux
25593 need_lib_prefix=no
25594 need_version=no
25595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25596 soname_spec='${libname}${release}${shared_ext}$major'
25597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25598 shlibpath_var=LD_LIBRARY_PATH
25599 shlibpath_overrides_runpath=no
25600 # This implies no fast_install, which is unacceptable.
25601 # Some rework will be needed to allow for fast_install
25602 # before this can be enabled.
25603 hardcode_into_libs=yes
25604
25605 # Append ld.so.conf contents to the search path
25606 if test -f /etc/ld.so.conf; then
25607 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' ' '`
25608 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25609 fi
25610
25611 # We used to test for /lib/ld.so.1 and disable shared libraries on
25612 # powerpc, because MkLinux only supported shared libraries with the
25613 # GNU dynamic linker. Since this was broken with cross compilers,
25614 # most powerpc-linux boxes support dynamic linking these days and
25615 # people can always --disable-shared, the test was removed, and we
25616 # assume the GNU/Linux dynamic linker is in use.
25617 dynamic_linker='GNU/Linux ld.so'
25618 ;;
25619
25620knetbsd*-gnu)
25621 version_type=linux
25622 need_lib_prefix=no
25623 need_version=no
25624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25625 soname_spec='${libname}${release}${shared_ext}$major'
25626 shlibpath_var=LD_LIBRARY_PATH
25627 shlibpath_overrides_runpath=no
25628 hardcode_into_libs=yes
25629 dynamic_linker='GNU ld.so'
25630 ;;
25631
25632netbsd*)
25633 version_type=sunos
25634 need_lib_prefix=no
25635 need_version=no
25636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25638 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25639 dynamic_linker='NetBSD (a.out) ld.so'
25640 else
25641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25642 soname_spec='${libname}${release}${shared_ext}$major'
25643 dynamic_linker='NetBSD ld.elf_so'
25644 fi
25645 shlibpath_var=LD_LIBRARY_PATH
25646 shlibpath_overrides_runpath=yes
25647 hardcode_into_libs=yes
25648 ;;
25649
25650newsos6)
25651 version_type=linux
25652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25653 shlibpath_var=LD_LIBRARY_PATH
25654 shlibpath_overrides_runpath=yes
25655 ;;
25656
25657nto-qnx*)
25658 version_type=linux
25659 need_lib_prefix=no
25660 need_version=no
25661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25662 soname_spec='${libname}${release}${shared_ext}$major'
25663 shlibpath_var=LD_LIBRARY_PATH
25664 shlibpath_overrides_runpath=yes
25665 ;;
25666
25667openbsd*)
25668 version_type=sunos
25669 sys_lib_dlsearch_path_spec="/usr/lib"
25670 need_lib_prefix=no
25671 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25672 case $host_os in
25673 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25674 *) need_version=no ;;
25675 esac
25676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25678 shlibpath_var=LD_LIBRARY_PATH
25679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25680 case $host_os in
25681 openbsd2.[89] | openbsd2.[89].*)
25682 shlibpath_overrides_runpath=no
25683 ;;
25684 *)
25685 shlibpath_overrides_runpath=yes
25686 ;;
25687 esac
25688 else
25689 shlibpath_overrides_runpath=yes
25690 fi
25691 ;;
25692
25693os2*)
25694 libname_spec='$name'
25695 shrext_cmds=".dll"
25696 need_lib_prefix=no
25697 library_names_spec='$libname${shared_ext} $libname.a'
25698 dynamic_linker='OS/2 ld.exe'
25699 shlibpath_var=LIBPATH
25700 ;;
25701
25702osf3* | osf4* | osf5*)
25703 version_type=osf
25704 need_lib_prefix=no
25705 need_version=no
25706 soname_spec='${libname}${release}${shared_ext}$major'
25707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25708 shlibpath_var=LD_LIBRARY_PATH
25709 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25710 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25711 ;;
25712
25713solaris*)
25714 version_type=linux
25715 need_lib_prefix=no
25716 need_version=no
25717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25718 soname_spec='${libname}${release}${shared_ext}$major'
25719 shlibpath_var=LD_LIBRARY_PATH
25720 shlibpath_overrides_runpath=yes
25721 hardcode_into_libs=yes
25722 # ldd complains unless libraries are executable
25723 postinstall_cmds='chmod +x $lib'
25724 ;;
25725
25726sunos4*)
25727 version_type=sunos
25728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25729 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25730 shlibpath_var=LD_LIBRARY_PATH
25731 shlibpath_overrides_runpath=yes
25732 if test "$with_gnu_ld" = yes; then
25733 need_lib_prefix=no
25734 fi
25735 need_version=yes
25736 ;;
25737
25738sysv4 | sysv4.3*)
25739 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
25743 case $host_vendor in
25744 sni)
25745 shlibpath_overrides_runpath=no
25746 need_lib_prefix=no
25747 export_dynamic_flag_spec='${wl}-Blargedynsym'
25748 runpath_var=LD_RUN_PATH
25749 ;;
25750 siemens)
25751 need_lib_prefix=no
25752 ;;
25753 motorola)
25754 need_lib_prefix=no
25755 need_version=no
25756 shlibpath_overrides_runpath=no
25757 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25758 ;;
25759 esac
25760 ;;
25761
25762sysv4*MP*)
25763 if test -d /usr/nec ;then
25764 version_type=linux
25765 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25766 soname_spec='$libname${shared_ext}.$major'
25767 shlibpath_var=LD_LIBRARY_PATH
25768 fi
25769 ;;
25770
25771sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25772 version_type=freebsd-elf
25773 need_lib_prefix=no
25774 need_version=no
25775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25776 soname_spec='${libname}${release}${shared_ext}$major'
25777 shlibpath_var=LD_LIBRARY_PATH
25778 hardcode_into_libs=yes
25779 if test "$with_gnu_ld" = yes; then
25780 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25781 shlibpath_overrides_runpath=no
25782 else
25783 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25784 shlibpath_overrides_runpath=yes
25785 case $host_os in
25786 sco3.2v5*)
25787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25788 ;;
25789 esac
25790 fi
25791 sys_lib_dlsearch_path_spec='/usr/lib'
25792 ;;
25793
25794uts4*)
25795 version_type=linux
25796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25797 soname_spec='${libname}${release}${shared_ext}$major'
25798 shlibpath_var=LD_LIBRARY_PATH
25799 ;;
25800
25801*)
25802 dynamic_linker=no
25803 ;;
25804esac
25805{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25806echo "${ECHO_T}$dynamic_linker" >&6; }
25807test "$dynamic_linker" = no && can_build_shared=no
25808
25809variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25810if test "$GCC" = yes; then
25811 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25812fi
25813
25814{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25815echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25816hardcode_action_GCJ=
25817if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25818 test -n "$runpath_var_GCJ" || \
25819 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25820
25821 # We can hardcode non-existant directories.
25822 if test "$hardcode_direct_GCJ" != no &&
25823 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25824 # have to relink, otherwise we might link with an installed library
25825 # when we should be linking with a yet-to-be-installed one
25826 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25827 test "$hardcode_minus_L_GCJ" != no; then
25828 # Linking always hardcodes the temporary library directory.
25829 hardcode_action_GCJ=relink
25830 else
25831 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25832 hardcode_action_GCJ=immediate
25833 fi
25834else
25835 # We cannot hardcode anything, or else we can only hardcode existing
25836 # directories.
25837 hardcode_action_GCJ=unsupported
25838fi
25839{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25840echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25841
25842if test "$hardcode_action_GCJ" = relink; then
25843 # Fast installation is not supported
25844 enable_fast_install=no
25845elif test "$shlibpath_overrides_runpath" = yes ||
25846 test "$enable_shared" = no; then
25847 # Fast installation is not necessary
25848 enable_fast_install=needless
25849fi
25850
25851
25852# The else clause should only fire when bootstrapping the
25853# libtool distribution, otherwise you forgot to ship ltmain.sh
25854# with your package, and you will get complaints that there are
25855# no rules to generate ltmain.sh.
25856if test -f "$ltmain"; then
25857 # See if we are running on zsh, and set the options which allow our commands through
25858 # without removal of \ escapes.
25859 if test -n "${ZSH_VERSION+set}" ; then
25860 setopt NO_GLOB_SUBST
25861 fi
25862 # Now quote all the things that may contain metacharacters while being
25863 # careful not to overquote the AC_SUBSTed values. We take copies of the
25864 # variables and quote the copies for generation of the libtool script.
25865 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25866 SED SHELL STRIP \
25867 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25868 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25869 deplibs_check_method reload_flag reload_cmds need_locks \
25870 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25871 lt_cv_sys_global_symbol_to_c_name_address \
25872 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25873 old_postinstall_cmds old_postuninstall_cmds \
25874 compiler_GCJ \
25875 CC_GCJ \
25876 LD_GCJ \
25877 lt_prog_compiler_wl_GCJ \
25878 lt_prog_compiler_pic_GCJ \
25879 lt_prog_compiler_static_GCJ \
25880 lt_prog_compiler_no_builtin_flag_GCJ \
25881 export_dynamic_flag_spec_GCJ \
25882 thread_safe_flag_spec_GCJ \
25883 whole_archive_flag_spec_GCJ \
25884 enable_shared_with_static_runtimes_GCJ \
25885 old_archive_cmds_GCJ \
25886 old_archive_from_new_cmds_GCJ \
25887 predep_objects_GCJ \
25888 postdep_objects_GCJ \
25889 predeps_GCJ \
25890 postdeps_GCJ \
25891 compiler_lib_search_path_GCJ \
25892 archive_cmds_GCJ \
25893 archive_expsym_cmds_GCJ \
25894 postinstall_cmds_GCJ \
25895 postuninstall_cmds_GCJ \
25896 old_archive_from_expsyms_cmds_GCJ \
25897 allow_undefined_flag_GCJ \
25898 no_undefined_flag_GCJ \
25899 export_symbols_cmds_GCJ \
25900 hardcode_libdir_flag_spec_GCJ \
25901 hardcode_libdir_flag_spec_ld_GCJ \
25902 hardcode_libdir_separator_GCJ \
25903 hardcode_automatic_GCJ \
25904 module_cmds_GCJ \
25905 module_expsym_cmds_GCJ \
25906 lt_cv_prog_compiler_c_o_GCJ \
25907 exclude_expsyms_GCJ \
25908 include_expsyms_GCJ; do
25909
25910 case $var in
25911 old_archive_cmds_GCJ | \
25912 old_archive_from_new_cmds_GCJ | \
25913 archive_cmds_GCJ | \
25914 archive_expsym_cmds_GCJ | \
25915 module_cmds_GCJ | \
25916 module_expsym_cmds_GCJ | \
25917 old_archive_from_expsyms_cmds_GCJ | \
25918 export_symbols_cmds_GCJ | \
25919 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25920 postinstall_cmds | postuninstall_cmds | \
25921 old_postinstall_cmds | old_postuninstall_cmds | \
25922 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25923 # Double-quote double-evaled strings.
25924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25925 ;;
25926 *)
25927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25928 ;;
25929 esac
25930 done
25931
25932 case $lt_echo in
25933 *'\$0 --fallback-echo"')
25934 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25935 ;;
25936 esac
25937
25938cfgfile="$ofile"
25939
25940 cat <<__EOF__ >> "$cfgfile"
25941# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25942
25943# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25944
25945# Shell to use when invoking shell scripts.
25946SHELL=$lt_SHELL
25947
25948# Whether or not to build shared libraries.
25949build_libtool_libs=$enable_shared
25950
25951# Whether or not to build static libraries.
25952build_old_libs=$enable_static
25953
25954# Whether or not to add -lc for building shared libraries.
25955build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25956
25957# Whether or not to disallow shared libs when runtime libs are static
25958allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25959
25960# Whether or not to optimize for fast installation.
25961fast_install=$enable_fast_install
25962
25963# The host system.
25964host_alias=$host_alias
25965host=$host
25966host_os=$host_os
25967
25968# The build system.
25969build_alias=$build_alias
25970build=$build
25971build_os=$build_os
25972
25973# An echo program that does not interpret backslashes.
25974echo=$lt_echo
25975
25976# The archiver.
25977AR=$lt_AR
25978AR_FLAGS=$lt_AR_FLAGS
25979
25980# A C compiler.
25981LTCC=$lt_LTCC
25982
25983# LTCC compiler flags.
25984LTCFLAGS=$lt_LTCFLAGS
25985
25986# A language-specific compiler.
25987CC=$lt_compiler_GCJ
25988
25989# Is the compiler the GNU C compiler?
25990with_gcc=$GCC_GCJ
25991
25992# An ERE matcher.
25993EGREP=$lt_EGREP
25994
25995# The linker used to build libraries.
25996LD=$lt_LD_GCJ
25997
25998# Whether we need hard or soft links.
25999LN_S=$lt_LN_S
26000
26001# A BSD-compatible nm program.
26002NM=$lt_NM
26003
26004# A symbol stripping program
26005STRIP=$lt_STRIP
26006
26007# Used to examine libraries when file_magic_cmd begins "file"
26008MAGIC_CMD=$MAGIC_CMD
26009
26010# Used on cygwin: DLL creation program.
26011DLLTOOL="$DLLTOOL"
26012
26013# Used on cygwin: object dumper.
26014OBJDUMP="$OBJDUMP"
26015
26016# Used on cygwin: assembler.
26017AS="$AS"
26018
26019# The name of the directory that contains temporary libtool files.
26020objdir=$objdir
26021
26022# How to create reloadable object files.
26023reload_flag=$lt_reload_flag
26024reload_cmds=$lt_reload_cmds
26025
26026# How to pass a linker flag through the compiler.
26027wl=$lt_lt_prog_compiler_wl_GCJ
26028
26029# Object file suffix (normally "o").
26030objext="$ac_objext"
26031
26032# Old archive suffix (normally "a").
26033libext="$libext"
26034
26035# Shared library suffix (normally ".so").
26036shrext_cmds='$shrext_cmds'
26037
26038# Executable file suffix (normally "").
26039exeext="$exeext"
26040
26041# Additional compiler flags for building library objects.
26042pic_flag=$lt_lt_prog_compiler_pic_GCJ
26043pic_mode=$pic_mode
26044
26045# What is the maximum length of a command?
26046max_cmd_len=$lt_cv_sys_max_cmd_len
26047
26048# Does compiler simultaneously support -c and -o options?
26049compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26050
26051# Must we lock files when doing compilation?
26052need_locks=$lt_need_locks
26053
26054# Do we need the lib prefix for modules?
26055need_lib_prefix=$need_lib_prefix
26056
26057# Do we need a version for libraries?
26058need_version=$need_version
26059
26060# Whether dlopen is supported.
26061dlopen_support=$enable_dlopen
26062
26063# Whether dlopen of programs is supported.
26064dlopen_self=$enable_dlopen_self
26065
26066# Whether dlopen of statically linked programs is supported.
26067dlopen_self_static=$enable_dlopen_self_static
26068
26069# Compiler flag to prevent dynamic linking.
26070link_static_flag=$lt_lt_prog_compiler_static_GCJ
26071
26072# Compiler flag to turn off builtin functions.
26073no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26074
26075# Compiler flag to allow reflexive dlopens.
26076export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26077
26078# Compiler flag to generate shared objects directly from archives.
26079whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26080
26081# Compiler flag to generate thread-safe objects.
26082thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26083
26084# Library versioning type.
26085version_type=$version_type
26086
26087# Format of library name prefix.
26088libname_spec=$lt_libname_spec
26089
26090# List of archive names. First name is the real one, the rest are links.
26091# The last name is the one that the linker finds with -lNAME.
26092library_names_spec=$lt_library_names_spec
26093
26094# The coded name of the library, if different from the real name.
26095soname_spec=$lt_soname_spec
26096
26097# Commands used to build and install an old-style archive.
26098RANLIB=$lt_RANLIB
26099old_archive_cmds=$lt_old_archive_cmds_GCJ
26100old_postinstall_cmds=$lt_old_postinstall_cmds
26101old_postuninstall_cmds=$lt_old_postuninstall_cmds
26102
26103# Create an old-style archive from a shared archive.
26104old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26105
26106# Create a temporary old-style archive to link instead of a shared archive.
26107old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26108
26109# Commands used to build and install a shared archive.
26110archive_cmds=$lt_archive_cmds_GCJ
26111archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26112postinstall_cmds=$lt_postinstall_cmds
26113postuninstall_cmds=$lt_postuninstall_cmds
26114
26115# Commands used to build a loadable module (assumed same as above if empty)
26116module_cmds=$lt_module_cmds_GCJ
26117module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26118
26119# Commands to strip libraries.
26120old_striplib=$lt_old_striplib
26121striplib=$lt_striplib
26122
26123# Dependencies to place before the objects being linked to create a
26124# shared library.
26125predep_objects=$lt_predep_objects_GCJ
26126
26127# Dependencies to place after the objects being linked to create a
26128# shared library.
26129postdep_objects=$lt_postdep_objects_GCJ
26130
26131# Dependencies to place before the objects being linked to create a
26132# shared library.
26133predeps=$lt_predeps_GCJ
26134
26135# Dependencies to place after the objects being linked to create a
26136# shared library.
26137postdeps=$lt_postdeps_GCJ
26138
26139# The library search path used internally by the compiler when linking
26140# a shared library.
26141compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26142
26143# Method to check whether dependent libraries are shared objects.
26144deplibs_check_method=$lt_deplibs_check_method
26145
26146# Command to use when deplibs_check_method == file_magic.
26147file_magic_cmd=$lt_file_magic_cmd
26148
26149# Flag that allows shared libraries with undefined symbols to be built.
26150allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26151
26152# Flag that forces no undefined symbols.
26153no_undefined_flag=$lt_no_undefined_flag_GCJ
26154
26155# Commands used to finish a libtool library installation in a directory.
26156finish_cmds=$lt_finish_cmds
26157
26158# Same as above, but a single script fragment to be evaled but not shown.
26159finish_eval=$lt_finish_eval
26160
26161# Take the output of nm and produce a listing of raw symbols and C names.
26162global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26163
26164# Transform the output of nm in a proper C declaration
26165global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26166
26167# Transform the output of nm in a C name address pair
26168global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26169
26170# This is the shared library runtime path variable.
26171runpath_var=$runpath_var
26172
26173# This is the shared library path variable.
26174shlibpath_var=$shlibpath_var
26175
26176# Is shlibpath searched before the hard-coded library search path?
26177shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26178
26179# How to hardcode a shared library path into an executable.
26180hardcode_action=$hardcode_action_GCJ
26181
26182# Whether we should hardcode library paths into libraries.
26183hardcode_into_libs=$hardcode_into_libs
26184
26185# Flag to hardcode \$libdir into a binary during linking.
26186# This must work even if \$libdir does not exist.
26187hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26188
26189# If ld is used when linking, flag to hardcode \$libdir into
26190# a binary during linking. This must work even if \$libdir does
26191# not exist.
26192hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26193
26194# Whether we need a single -rpath flag with a separated argument.
26195hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26196
26197# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26198# resulting binary.
26199hardcode_direct=$hardcode_direct_GCJ
26200
26201# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26202# resulting binary.
26203hardcode_minus_L=$hardcode_minus_L_GCJ
26204
26205# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26206# the resulting binary.
26207hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26208
26209# Set to yes if building a shared library automatically hardcodes DIR into the library
26210# and all subsequent libraries and executables linked against it.
26211hardcode_automatic=$hardcode_automatic_GCJ
26212
26213# Variables whose values should be saved in libtool wrapper scripts and
26214# restored at relink time.
26215variables_saved_for_relink="$variables_saved_for_relink"
26216
26217# Whether libtool must link a program against all its dependency libraries.
26218link_all_deplibs=$link_all_deplibs_GCJ
26219
26220# Compile-time system search path for libraries
26221sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26222
26223# Run-time system search path for libraries
26224sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26225
26226# Fix the shell variable \$srcfile for the compiler.
26227fix_srcfile_path="$fix_srcfile_path_GCJ"
26228
26229# Set to yes if exported symbols are required.
26230always_export_symbols=$always_export_symbols_GCJ
26231
26232# The commands to list exported symbols.
26233export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26234
26235# The commands to extract the exported symbol list from a shared archive.
26236extract_expsyms_cmds=$lt_extract_expsyms_cmds
26237
26238# Symbols that should not be listed in the preloaded symbols.
26239exclude_expsyms=$lt_exclude_expsyms_GCJ
26240
26241# Symbols that must always be exported.
26242include_expsyms=$lt_include_expsyms_GCJ
26243
26244# ### END LIBTOOL TAG CONFIG: $tagname
26245
26246__EOF__
26247
26248
26249else
26250 # If there is no Makefile yet, we rely on a make rule to execute
26251 # `config.status --recheck' to rerun these tests and create the
26252 # libtool script then.
26253 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26254 if test -f "$ltmain_in"; then
26255 test -f Makefile && make "$ltmain"
26256 fi
26257fi
26258
26259
26260ac_ext=c
26261ac_cpp='$CPP $CPPFLAGS'
26262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26264ac_compiler_gnu=$ac_cv_c_compiler_gnu
26265
26266CC="$lt_save_CC"
26267
26268 else
26269 tagname=""
26270 fi
26271 ;;
26272
26273 RC)
26274 ac_ext=c
26275ac_cpp='$CPP $CPPFLAGS'
26276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26278ac_compiler_gnu=$ac_cv_c_compiler_gnu
26279
26280
26281# Source file extension for RC test sources.
26282ac_ext=rc
26283
26284# Object file extension for compiled RC test sources.
26285objext=o
26286objext_RC=$objext
26287
26288# Code to be used in simple compile tests
26289lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26290
26291# Code to be used in simple link tests
26292lt_simple_link_test_code="$lt_simple_compile_test_code"
26293
26294# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26295
26296# If no C compiler was specified, use CC.
26297LTCC=${LTCC-"$CC"}
26298
26299# If no C compiler flags were specified, use CFLAGS.
26300LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26301
26302# Allow CC to be a program name with arguments.
26303compiler=$CC
26304
26305
26306# save warnings/boilerplate of simple test code
26307ac_outfile=conftest.$ac_objext
26308printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26309eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26310_lt_compiler_boilerplate=`cat conftest.err`
26311$rm conftest*
26312
26313ac_outfile=conftest.$ac_objext
26314printf "$lt_simple_link_test_code" >conftest.$ac_ext
26315eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26316_lt_linker_boilerplate=`cat conftest.err`
26317$rm conftest*
26318
26319
26320# Allow CC to be a program name with arguments.
26321lt_save_CC="$CC"
26322CC=${RC-"windres"}
26323compiler=$CC
26324compiler_RC=$CC
26325for cc_temp in $compiler""; do
26326 case $cc_temp in
26327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26329 \-*) ;;
26330 *) break;;
26331 esac
26332done
26333cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26334
26335lt_cv_prog_compiler_c_o_RC=yes
26336
26337# The else clause should only fire when bootstrapping the
26338# libtool distribution, otherwise you forgot to ship ltmain.sh
26339# with your package, and you will get complaints that there are
26340# no rules to generate ltmain.sh.
26341if test -f "$ltmain"; then
26342 # See if we are running on zsh, and set the options which allow our commands through
26343 # without removal of \ escapes.
26344 if test -n "${ZSH_VERSION+set}" ; then
26345 setopt NO_GLOB_SUBST
26346 fi
26347 # Now quote all the things that may contain metacharacters while being
26348 # careful not to overquote the AC_SUBSTed values. We take copies of the
26349 # variables and quote the copies for generation of the libtool script.
26350 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26351 SED SHELL STRIP \
26352 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26353 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26354 deplibs_check_method reload_flag reload_cmds need_locks \
26355 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26356 lt_cv_sys_global_symbol_to_c_name_address \
26357 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26358 old_postinstall_cmds old_postuninstall_cmds \
26359 compiler_RC \
26360 CC_RC \
26361 LD_RC \
26362 lt_prog_compiler_wl_RC \
26363 lt_prog_compiler_pic_RC \
26364 lt_prog_compiler_static_RC \
26365 lt_prog_compiler_no_builtin_flag_RC \
26366 export_dynamic_flag_spec_RC \
26367 thread_safe_flag_spec_RC \
26368 whole_archive_flag_spec_RC \
26369 enable_shared_with_static_runtimes_RC \
26370 old_archive_cmds_RC \
26371 old_archive_from_new_cmds_RC \
26372 predep_objects_RC \
26373 postdep_objects_RC \
26374 predeps_RC \
26375 postdeps_RC \
26376 compiler_lib_search_path_RC \
26377 archive_cmds_RC \
26378 archive_expsym_cmds_RC \
26379 postinstall_cmds_RC \
26380 postuninstall_cmds_RC \
26381 old_archive_from_expsyms_cmds_RC \
26382 allow_undefined_flag_RC \
26383 no_undefined_flag_RC \
26384 export_symbols_cmds_RC \
26385 hardcode_libdir_flag_spec_RC \
26386 hardcode_libdir_flag_spec_ld_RC \
26387 hardcode_libdir_separator_RC \
26388 hardcode_automatic_RC \
26389 module_cmds_RC \
26390 module_expsym_cmds_RC \
26391 lt_cv_prog_compiler_c_o_RC \
26392 exclude_expsyms_RC \
26393 include_expsyms_RC; do
26394
26395 case $var in
26396 old_archive_cmds_RC | \
26397 old_archive_from_new_cmds_RC | \
26398 archive_cmds_RC | \
26399 archive_expsym_cmds_RC | \
26400 module_cmds_RC | \
26401 module_expsym_cmds_RC | \
26402 old_archive_from_expsyms_cmds_RC | \
26403 export_symbols_cmds_RC | \
26404 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26405 postinstall_cmds | postuninstall_cmds | \
26406 old_postinstall_cmds | old_postuninstall_cmds | \
26407 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26408 # Double-quote double-evaled strings.
26409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26410 ;;
26411 *)
26412 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26413 ;;
26414 esac
26415 done
26416
26417 case $lt_echo in
26418 *'\$0 --fallback-echo"')
26419 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26420 ;;
26421 esac
26422
26423cfgfile="$ofile"
26424
26425 cat <<__EOF__ >> "$cfgfile"
26426# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26427
26428# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26429
26430# Shell to use when invoking shell scripts.
26431SHELL=$lt_SHELL
26432
26433# Whether or not to build shared libraries.
26434build_libtool_libs=$enable_shared
26435
26436# Whether or not to build static libraries.
26437build_old_libs=$enable_static
26438
26439# Whether or not to add -lc for building shared libraries.
26440build_libtool_need_lc=$archive_cmds_need_lc_RC
26441
26442# Whether or not to disallow shared libs when runtime libs are static
26443allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26444
26445# Whether or not to optimize for fast installation.
26446fast_install=$enable_fast_install
26447
26448# The host system.
26449host_alias=$host_alias
26450host=$host
26451host_os=$host_os
26452
26453# The build system.
26454build_alias=$build_alias
26455build=$build
26456build_os=$build_os
26457
26458# An echo program that does not interpret backslashes.
26459echo=$lt_echo
26460
26461# The archiver.
26462AR=$lt_AR
26463AR_FLAGS=$lt_AR_FLAGS
26464
26465# A C compiler.
26466LTCC=$lt_LTCC
26467
26468# LTCC compiler flags.
26469LTCFLAGS=$lt_LTCFLAGS
26470
26471# A language-specific compiler.
26472CC=$lt_compiler_RC
26473
26474# Is the compiler the GNU C compiler?
26475with_gcc=$GCC_RC
26476
26477# An ERE matcher.
26478EGREP=$lt_EGREP
26479
26480# The linker used to build libraries.
26481LD=$lt_LD_RC
26482
26483# Whether we need hard or soft links.
26484LN_S=$lt_LN_S
26485
26486# A BSD-compatible nm program.
26487NM=$lt_NM
26488
26489# A symbol stripping program
26490STRIP=$lt_STRIP
26491
26492# Used to examine libraries when file_magic_cmd begins "file"
26493MAGIC_CMD=$MAGIC_CMD
26494
26495# Used on cygwin: DLL creation program.
26496DLLTOOL="$DLLTOOL"
26497
26498# Used on cygwin: object dumper.
26499OBJDUMP="$OBJDUMP"
26500
26501# Used on cygwin: assembler.
26502AS="$AS"
26503
26504# The name of the directory that contains temporary libtool files.
26505objdir=$objdir
26506
26507# How to create reloadable object files.
26508reload_flag=$lt_reload_flag
26509reload_cmds=$lt_reload_cmds
26510
26511# How to pass a linker flag through the compiler.
26512wl=$lt_lt_prog_compiler_wl_RC
26513
26514# Object file suffix (normally "o").
26515objext="$ac_objext"
26516
26517# Old archive suffix (normally "a").
26518libext="$libext"
26519
26520# Shared library suffix (normally ".so").
26521shrext_cmds='$shrext_cmds'
26522
26523# Executable file suffix (normally "").
26524exeext="$exeext"
26525
26526# Additional compiler flags for building library objects.
26527pic_flag=$lt_lt_prog_compiler_pic_RC
26528pic_mode=$pic_mode
26529
26530# What is the maximum length of a command?
26531max_cmd_len=$lt_cv_sys_max_cmd_len
26532
26533# Does compiler simultaneously support -c and -o options?
26534compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26535
26536# Must we lock files when doing compilation?
26537need_locks=$lt_need_locks
26538
26539# Do we need the lib prefix for modules?
26540need_lib_prefix=$need_lib_prefix
26541
26542# Do we need a version for libraries?
26543need_version=$need_version
26544
26545# Whether dlopen is supported.
26546dlopen_support=$enable_dlopen
26547
26548# Whether dlopen of programs is supported.
26549dlopen_self=$enable_dlopen_self
26550
26551# Whether dlopen of statically linked programs is supported.
26552dlopen_self_static=$enable_dlopen_self_static
26553
26554# Compiler flag to prevent dynamic linking.
26555link_static_flag=$lt_lt_prog_compiler_static_RC
26556
26557# Compiler flag to turn off builtin functions.
26558no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26559
26560# Compiler flag to allow reflexive dlopens.
26561export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26562
26563# Compiler flag to generate shared objects directly from archives.
26564whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26565
26566# Compiler flag to generate thread-safe objects.
26567thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26568
26569# Library versioning type.
26570version_type=$version_type
26571
26572# Format of library name prefix.
26573libname_spec=$lt_libname_spec
26574
26575# List of archive names. First name is the real one, the rest are links.
26576# The last name is the one that the linker finds with -lNAME.
26577library_names_spec=$lt_library_names_spec
26578
26579# The coded name of the library, if different from the real name.
26580soname_spec=$lt_soname_spec
26581
26582# Commands used to build and install an old-style archive.
26583RANLIB=$lt_RANLIB
26584old_archive_cmds=$lt_old_archive_cmds_RC
26585old_postinstall_cmds=$lt_old_postinstall_cmds
26586old_postuninstall_cmds=$lt_old_postuninstall_cmds
26587
26588# Create an old-style archive from a shared archive.
26589old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26590
26591# Create a temporary old-style archive to link instead of a shared archive.
26592old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26593
26594# Commands used to build and install a shared archive.
26595archive_cmds=$lt_archive_cmds_RC
26596archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26597postinstall_cmds=$lt_postinstall_cmds
26598postuninstall_cmds=$lt_postuninstall_cmds
26599
26600# Commands used to build a loadable module (assumed same as above if empty)
26601module_cmds=$lt_module_cmds_RC
26602module_expsym_cmds=$lt_module_expsym_cmds_RC
26603
26604# Commands to strip libraries.
26605old_striplib=$lt_old_striplib
26606striplib=$lt_striplib
26607
26608# Dependencies to place before the objects being linked to create a
26609# shared library.
26610predep_objects=$lt_predep_objects_RC
26611
26612# Dependencies to place after the objects being linked to create a
26613# shared library.
26614postdep_objects=$lt_postdep_objects_RC
26615
26616# Dependencies to place before the objects being linked to create a
26617# shared library.
26618predeps=$lt_predeps_RC
26619
26620# Dependencies to place after the objects being linked to create a
26621# shared library.
26622postdeps=$lt_postdeps_RC
26623
26624# The library search path used internally by the compiler when linking
26625# a shared library.
26626compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26627
26628# Method to check whether dependent libraries are shared objects.
26629deplibs_check_method=$lt_deplibs_check_method
26630
26631# Command to use when deplibs_check_method == file_magic.
26632file_magic_cmd=$lt_file_magic_cmd
26633
26634# Flag that allows shared libraries with undefined symbols to be built.
26635allow_undefined_flag=$lt_allow_undefined_flag_RC
26636
26637# Flag that forces no undefined symbols.
26638no_undefined_flag=$lt_no_undefined_flag_RC
26639
26640# Commands used to finish a libtool library installation in a directory.
26641finish_cmds=$lt_finish_cmds
26642
26643# Same as above, but a single script fragment to be evaled but not shown.
26644finish_eval=$lt_finish_eval
26645
26646# Take the output of nm and produce a listing of raw symbols and C names.
26647global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26648
26649# Transform the output of nm in a proper C declaration
26650global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26651
26652# Transform the output of nm in a C name address pair
26653global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26654
26655# This is the shared library runtime path variable.
26656runpath_var=$runpath_var
26657
26658# This is the shared library path variable.
26659shlibpath_var=$shlibpath_var
26660
26661# Is shlibpath searched before the hard-coded library search path?
26662shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26663
26664# How to hardcode a shared library path into an executable.
26665hardcode_action=$hardcode_action_RC
26666
26667# Whether we should hardcode library paths into libraries.
26668hardcode_into_libs=$hardcode_into_libs
26669
26670# Flag to hardcode \$libdir into a binary during linking.
26671# This must work even if \$libdir does not exist.
26672hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26673
26674# If ld is used when linking, flag to hardcode \$libdir into
26675# a binary during linking. This must work even if \$libdir does
26676# not exist.
26677hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26678
26679# Whether we need a single -rpath flag with a separated argument.
26680hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26681
26682# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26683# resulting binary.
26684hardcode_direct=$hardcode_direct_RC
26685
26686# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26687# resulting binary.
26688hardcode_minus_L=$hardcode_minus_L_RC
26689
26690# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26691# the resulting binary.
26692hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26693
26694# Set to yes if building a shared library automatically hardcodes DIR into the library
26695# and all subsequent libraries and executables linked against it.
26696hardcode_automatic=$hardcode_automatic_RC
26697
26698# Variables whose values should be saved in libtool wrapper scripts and
26699# restored at relink time.
26700variables_saved_for_relink="$variables_saved_for_relink"
26701
26702# Whether libtool must link a program against all its dependency libraries.
26703link_all_deplibs=$link_all_deplibs_RC
26704
26705# Compile-time system search path for libraries
26706sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26707
26708# Run-time system search path for libraries
26709sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26710
26711# Fix the shell variable \$srcfile for the compiler.
26712fix_srcfile_path="$fix_srcfile_path_RC"
26713
26714# Set to yes if exported symbols are required.
26715always_export_symbols=$always_export_symbols_RC
26716
26717# The commands to list exported symbols.
26718export_symbols_cmds=$lt_export_symbols_cmds_RC
26719
26720# The commands to extract the exported symbol list from a shared archive.
26721extract_expsyms_cmds=$lt_extract_expsyms_cmds
26722
26723# Symbols that should not be listed in the preloaded symbols.
26724exclude_expsyms=$lt_exclude_expsyms_RC
26725
26726# Symbols that must always be exported.
26727include_expsyms=$lt_include_expsyms_RC
26728
26729# ### END LIBTOOL TAG CONFIG: $tagname
26730
26731__EOF__
26732
26733
26734else
26735 # If there is no Makefile yet, we rely on a make rule to execute
26736 # `config.status --recheck' to rerun these tests and create the
26737 # libtool script then.
26738 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26739 if test -f "$ltmain_in"; then
26740 test -f Makefile && make "$ltmain"
26741 fi
26742fi
26743
26744
26745ac_ext=c
26746ac_cpp='$CPP $CPPFLAGS'
26747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26749ac_compiler_gnu=$ac_cv_c_compiler_gnu
26750
26751CC="$lt_save_CC"
26752
26753 ;;
26754
26755 *)
26756 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26757echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26758 { (exit 1); exit 1; }; }
26759 ;;
26760 esac
26761
26762 # Append the new tag name to the list of available tags.
26763 if test -n "$tagname" ; then
26764 available_tags="$available_tags $tagname"
26765 fi
26766 fi
26767 done
26768 IFS="$lt_save_ifs"
26769
26770 # Now substitute the updated list of available tags.
26771 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26772 mv "${ofile}T" "$ofile"
26773 chmod +x "$ofile"
26774 else
26775 rm -f "${ofile}T"
26776 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26777echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26778 { (exit 1); exit 1; }; }
26779 fi
26780fi
26781
26782
26783
26784# This can be used to rebuild libtool when needed
26785LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26786
26787# Always use our own libtool.
26788LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26789
26790# Prevent multiple expansion
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812if test "$lt_cv_dlopen_self" = "yes" ; then
26813
26814cat >>confdefs.h <<\_ACEOF
26815#define CAN_DLOPEN_SELF 1
26816_ACEOF
26817
26818fi
26819
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000026820
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026821if test "$WITH_LLVMGCCDIR" = "default" ; then
26822 LLVMGCC="llvm-gcc${EXEEXT}"
26823 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000026824 LLVMGCCCOMMAND="$LLVMGCC"
26825 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000026826 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26827
26828 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26829
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026830 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26831set dummy $LLVMGCC; ac_word=$2
26832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26834if test "${ac_cv_path_LLVMGCC+set}" = set; then
26835 echo $ECHO_N "(cached) $ECHO_C" >&6
26836else
26837 case $LLVMGCC in
26838 [\\/]* | ?:[\\/]*)
26839 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26840 ;;
26841 *)
26842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26843for as_dir in $PATH
26844do
26845 IFS=$as_save_IFS
26846 test -z "$as_dir" && as_dir=.
26847 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000026848 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 +000026849 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26851 break 2
26852 fi
26853done
26854done
26855IFS=$as_save_IFS
26856
26857 ;;
26858esac
26859fi
26860LLVMGCC=$ac_cv_path_LLVMGCC
26861if test -n "$LLVMGCC"; then
26862 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26863echo "${ECHO_T}$LLVMGCC" >&6; }
26864else
26865 { echo "$as_me:$LINENO: result: no" >&5
26866echo "${ECHO_T}no" >&6; }
26867fi
26868
26869
26870 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26871set dummy $LLVMGXX; ac_word=$2
26872{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26874if test "${ac_cv_path_LLVMGXX+set}" = set; then
26875 echo $ECHO_N "(cached) $ECHO_C" >&6
26876else
26877 case $LLVMGXX in
26878 [\\/]* | ?:[\\/]*)
26879 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26880 ;;
26881 *)
26882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26883for as_dir in $PATH
26884do
26885 IFS=$as_save_IFS
26886 test -z "$as_dir" && as_dir=.
26887 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000026888 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 +000026889 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26891 break 2
26892 fi
26893done
26894done
26895IFS=$as_save_IFS
26896
26897 ;;
26898esac
26899fi
26900LLVMGXX=$ac_cv_path_LLVMGXX
26901if test -n "$LLVMGXX"; then
26902 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26903echo "${ECHO_T}$LLVMGXX" >&6; }
26904else
26905 { echo "$as_me:$LINENO: result: no" >&5
26906echo "${ECHO_T}no" >&6; }
26907fi
26908
26909
26910else
Devang Pateld84ba7b2007-12-04 22:54:47 +000026911 if test -z "$LLVMGCC"; then
26912 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000026913 LLVMGCCCOMMAND="$LLVMGCC"
Devang Pateld84ba7b2007-12-04 22:54:47 +000026914 fi
26915 if test -z "$LLVMGXX"; then
26916 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000026917 LLVMGXXCOMMAND="$LLVMGXX"
Devang Pateld84ba7b2007-12-04 22:54:47 +000026918 fi
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000026919
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026920 LLVMGCC=$LLVMGCC
26921
26922 LLVMGXX=$LLVMGXX
26923
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000026924 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26925
26926 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26927
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026928fi
26929
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000026930
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026931{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26932echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26933
26934ICC=no
26935IXX=no
26936case $CC in
26937 icc*|icpc*)
26938 ICC=yes
26939 IXX=yes
26940 ;;
26941 *)
26942 ;;
26943esac
26944
26945if test "$GCC" != "yes" && test "$ICC" != "yes"
26946then
26947 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26948echo "$as_me: error: gcc|icc required but not found" >&2;}
26949 { (exit 1); exit 1; }; }
26950fi
26951
26952if test "$GXX" != "yes" && test "$IXX" != "yes"
26953then
26954 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26955echo "$as_me: error: g++|icc required but not found" >&2;}
26956 { (exit 1); exit 1; }; }
26957fi
26958
26959if test "$GCC" = "yes"
26960then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000026961 cat >conftest.$ac_ext <<_ACEOF
26962#if !defined(__GNUC__) || __GNUC__ < 3
26963#error Unsupported GCC version
26964#endif
26965
26966_ACEOF
26967rm -f conftest.$ac_objext
26968if { (ac_try="$ac_compile"
26969case "(($ac_try" in
26970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26971 *) ac_try_echo=$ac_try;;
26972esac
26973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26974 (eval "$ac_compile") 2>conftest.er1
26975 ac_status=$?
26976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000026980 (exit $ac_status); } &&
26981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26982 { (case "(($ac_try" in
26983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984 *) ac_try_echo=$ac_try;;
26985esac
26986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987 (eval "$ac_try") 2>&5
26988 ac_status=$?
26989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990 (exit $ac_status); }; } &&
26991 { ac_try='test -s conftest.$ac_objext'
26992 { (case "(($ac_try" in
26993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26994 *) ac_try_echo=$ac_try;;
26995esac
26996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26997 (eval "$ac_try") 2>&5
26998 ac_status=$?
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; }; then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027001 :
27002else
27003 echo "$as_me: failed program was:" >&5
27004sed 's/^/| /' conftest.$ac_ext >&5
27005
27006 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027007echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27008 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000027009fi
27010
27011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027012fi
27013
27014if test -z "$llvm_cv_gnu_make_command"
27015then
27016 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27017echo "$as_me: error: GNU Make required but not found" >&2;}
27018 { (exit 1); exit 1; }; }
27019fi
27020
27021{ echo "$as_me:$LINENO: result: ok" >&5
27022echo "${ECHO_T}ok" >&6; }
27023
27024
27025
27026{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27027echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
27028if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27029 echo $ECHO_N "(cached) $ECHO_C" >&6
27030else
27031 ac_check_lib_save_LIBS=$LIBS
27032LIBS="-lelf $LIBS"
27033cat >conftest.$ac_ext <<_ACEOF
27034/* confdefs.h. */
27035_ACEOF
27036cat confdefs.h >>conftest.$ac_ext
27037cat >>conftest.$ac_ext <<_ACEOF
27038/* end confdefs.h. */
27039
27040/* Override any GCC internal prototype to avoid an error.
27041 Use char because int might match the return type of a GCC
27042 builtin and then its argument prototype would still apply. */
27043#ifdef __cplusplus
27044extern "C"
27045#endif
27046char elf_begin ();
27047int
27048main ()
27049{
27050return elf_begin ();
27051 ;
27052 return 0;
27053}
27054_ACEOF
27055rm -f conftest.$ac_objext conftest$ac_exeext
27056if { (ac_try="$ac_link"
27057case "(($ac_try" in
27058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059 *) ac_try_echo=$ac_try;;
27060esac
27061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27062 (eval "$ac_link") 2>conftest.er1
27063 ac_status=$?
27064 grep -v '^ *+' conftest.er1 >conftest.err
27065 rm -f conftest.er1
27066 cat conftest.err >&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027068 (exit $ac_status); } &&
27069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27070 { (case "(($ac_try" in
27071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072 *) ac_try_echo=$ac_try;;
27073esac
27074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075 (eval "$ac_try") 2>&5
27076 ac_status=$?
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); }; } &&
27079 { ac_try='test -s conftest$ac_exeext'
27080 { (case "(($ac_try" in
27081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082 *) ac_try_echo=$ac_try;;
27083esac
27084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27085 (eval "$ac_try") 2>&5
27086 ac_status=$?
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027089 ac_cv_lib_elf_elf_begin=yes
27090else
27091 echo "$as_me: failed program was:" >&5
27092sed 's/^/| /' conftest.$ac_ext >&5
27093
27094 ac_cv_lib_elf_elf_begin=no
27095fi
27096
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027097rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027098 conftest$ac_exeext conftest.$ac_ext
27099LIBS=$ac_check_lib_save_LIBS
27100fi
27101{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27102echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
27103if test $ac_cv_lib_elf_elf_begin = yes; then
27104 cat >>confdefs.h <<_ACEOF
27105#define HAVE_LIBELF 1
27106_ACEOF
27107
27108 LIBS="-lelf $LIBS"
27109
27110fi
27111
27112
27113{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27114echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
27115if test "${ac_cv_lib_m_sin+set}" = set; then
27116 echo $ECHO_N "(cached) $ECHO_C" >&6
27117else
27118 ac_check_lib_save_LIBS=$LIBS
27119LIBS="-lm $LIBS"
27120cat >conftest.$ac_ext <<_ACEOF
27121/* confdefs.h. */
27122_ACEOF
27123cat confdefs.h >>conftest.$ac_ext
27124cat >>conftest.$ac_ext <<_ACEOF
27125/* end confdefs.h. */
27126
27127/* Override any GCC internal prototype to avoid an error.
27128 Use char because int might match the return type of a GCC
27129 builtin and then its argument prototype would still apply. */
27130#ifdef __cplusplus
27131extern "C"
27132#endif
27133char sin ();
27134int
27135main ()
27136{
27137return sin ();
27138 ;
27139 return 0;
27140}
27141_ACEOF
27142rm -f conftest.$ac_objext conftest$ac_exeext
27143if { (ac_try="$ac_link"
27144case "(($ac_try" in
27145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27146 *) ac_try_echo=$ac_try;;
27147esac
27148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27149 (eval "$ac_link") 2>conftest.er1
27150 ac_status=$?
27151 grep -v '^ *+' conftest.er1 >conftest.err
27152 rm -f conftest.er1
27153 cat conftest.err >&5
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027155 (exit $ac_status); } &&
27156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27157 { (case "(($ac_try" in
27158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27159 *) ac_try_echo=$ac_try;;
27160esac
27161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27162 (eval "$ac_try") 2>&5
27163 ac_status=$?
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); }; } &&
27166 { ac_try='test -s conftest$ac_exeext'
27167 { (case "(($ac_try" in
27168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169 *) ac_try_echo=$ac_try;;
27170esac
27171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172 (eval "$ac_try") 2>&5
27173 ac_status=$?
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027176 ac_cv_lib_m_sin=yes
27177else
27178 echo "$as_me: failed program was:" >&5
27179sed 's/^/| /' conftest.$ac_ext >&5
27180
27181 ac_cv_lib_m_sin=no
27182fi
27183
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027184rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027185 conftest$ac_exeext conftest.$ac_ext
27186LIBS=$ac_check_lib_save_LIBS
27187fi
27188{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27189echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
27190if test $ac_cv_lib_m_sin = yes; then
27191 cat >>confdefs.h <<_ACEOF
27192#define HAVE_LIBM 1
27193_ACEOF
27194
27195 LIBS="-lm $LIBS"
27196
27197fi
27198
27199if test "$llvm_cv_os_type" = "MingW" ; then
27200
27201{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27202echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
27203if test "${ac_cv_lib_imagehlp_main+set}" = set; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27205else
27206 ac_check_lib_save_LIBS=$LIBS
27207LIBS="-limagehlp $LIBS"
27208cat >conftest.$ac_ext <<_ACEOF
27209/* confdefs.h. */
27210_ACEOF
27211cat confdefs.h >>conftest.$ac_ext
27212cat >>conftest.$ac_ext <<_ACEOF
27213/* end confdefs.h. */
27214
27215
27216int
27217main ()
27218{
27219return main ();
27220 ;
27221 return 0;
27222}
27223_ACEOF
27224rm -f conftest.$ac_objext conftest$ac_exeext
27225if { (ac_try="$ac_link"
27226case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27229esac
27230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231 (eval "$ac_link") 2>conftest.er1
27232 ac_status=$?
27233 grep -v '^ *+' conftest.er1 >conftest.err
27234 rm -f conftest.er1
27235 cat conftest.err >&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027237 (exit $ac_status); } &&
27238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27239 { (case "(($ac_try" in
27240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27242esac
27243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_try") 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } &&
27248 { ac_try='test -s conftest$ac_exeext'
27249 { (case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27252esac
27253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_try") 2>&5
27255 ac_status=$?
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027258 ac_cv_lib_imagehlp_main=yes
27259else
27260 echo "$as_me: failed program was:" >&5
27261sed 's/^/| /' conftest.$ac_ext >&5
27262
27263 ac_cv_lib_imagehlp_main=no
27264fi
27265
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027266rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027267 conftest$ac_exeext conftest.$ac_ext
27268LIBS=$ac_check_lib_save_LIBS
27269fi
27270{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27271echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27272if test $ac_cv_lib_imagehlp_main = yes; then
27273 cat >>confdefs.h <<_ACEOF
27274#define HAVE_LIBIMAGEHLP 1
27275_ACEOF
27276
27277 LIBS="-limagehlp $LIBS"
27278
27279fi
27280
27281
27282{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27283echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27284if test "${ac_cv_lib_psapi_main+set}" = set; then
27285 echo $ECHO_N "(cached) $ECHO_C" >&6
27286else
27287 ac_check_lib_save_LIBS=$LIBS
27288LIBS="-lpsapi $LIBS"
27289cat >conftest.$ac_ext <<_ACEOF
27290/* confdefs.h. */
27291_ACEOF
27292cat confdefs.h >>conftest.$ac_ext
27293cat >>conftest.$ac_ext <<_ACEOF
27294/* end confdefs.h. */
27295
27296
27297int
27298main ()
27299{
27300return main ();
27301 ;
27302 return 0;
27303}
27304_ACEOF
27305rm -f conftest.$ac_objext conftest$ac_exeext
27306if { (ac_try="$ac_link"
27307case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27310esac
27311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_link") 2>conftest.er1
27313 ac_status=$?
27314 grep -v '^ *+' conftest.er1 >conftest.err
27315 rm -f conftest.er1
27316 cat conftest.err >&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027318 (exit $ac_status); } &&
27319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27320 { (case "(($ac_try" in
27321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322 *) ac_try_echo=$ac_try;;
27323esac
27324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325 (eval "$ac_try") 2>&5
27326 ac_status=$?
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); }; } &&
27329 { ac_try='test -s conftest$ac_exeext'
27330 { (case "(($ac_try" in
27331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27332 *) ac_try_echo=$ac_try;;
27333esac
27334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27335 (eval "$ac_try") 2>&5
27336 ac_status=$?
27337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027339 ac_cv_lib_psapi_main=yes
27340else
27341 echo "$as_me: failed program was:" >&5
27342sed 's/^/| /' conftest.$ac_ext >&5
27343
27344 ac_cv_lib_psapi_main=no
27345fi
27346
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027347rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027348 conftest$ac_exeext conftest.$ac_ext
27349LIBS=$ac_check_lib_save_LIBS
27350fi
27351{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27352echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27353if test $ac_cv_lib_psapi_main = yes; then
27354 cat >>confdefs.h <<_ACEOF
27355#define HAVE_LIBPSAPI 1
27356_ACEOF
27357
27358 LIBS="-lpsapi $LIBS"
27359
27360fi
27361
27362fi
27363
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027364{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27365echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27366if test "${ac_cv_search_dlopen+set}" = set; then
27367 echo $ECHO_N "(cached) $ECHO_C" >&6
27368else
27369 ac_func_search_save_LIBS=$LIBS
27370cat >conftest.$ac_ext <<_ACEOF
27371/* confdefs.h. */
27372_ACEOF
27373cat confdefs.h >>conftest.$ac_ext
27374cat >>conftest.$ac_ext <<_ACEOF
27375/* end confdefs.h. */
27376
27377/* Override any GCC internal prototype to avoid an error.
27378 Use char because int might match the return type of a GCC
27379 builtin and then its argument prototype would still apply. */
27380#ifdef __cplusplus
27381extern "C"
27382#endif
27383char dlopen ();
27384int
27385main ()
27386{
27387return dlopen ();
27388 ;
27389 return 0;
27390}
27391_ACEOF
27392for ac_lib in '' dl; do
27393 if test -z "$ac_lib"; then
27394 ac_res="none required"
27395 else
27396 ac_res=-l$ac_lib
27397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27398 fi
27399 rm -f conftest.$ac_objext conftest$ac_exeext
27400if { (ac_try="$ac_link"
27401case "(($ac_try" in
27402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27403 *) ac_try_echo=$ac_try;;
27404esac
27405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27406 (eval "$ac_link") 2>conftest.er1
27407 ac_status=$?
27408 grep -v '^ *+' conftest.er1 >conftest.err
27409 rm -f conftest.er1
27410 cat conftest.err >&5
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027412 (exit $ac_status); } &&
27413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27414 { (case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27417esac
27418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_try") 2>&5
27420 ac_status=$?
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; } &&
27423 { ac_try='test -s conftest$ac_exeext'
27424 { (case "(($ac_try" in
27425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27426 *) ac_try_echo=$ac_try;;
27427esac
27428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27429 (eval "$ac_try") 2>&5
27430 ac_status=$?
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027433 ac_cv_search_dlopen=$ac_res
27434else
27435 echo "$as_me: failed program was:" >&5
27436sed 's/^/| /' conftest.$ac_ext >&5
27437
27438
27439fi
27440
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027441rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027442 conftest$ac_exeext
27443 if test "${ac_cv_search_dlopen+set}" = set; then
27444 break
27445fi
27446done
27447if test "${ac_cv_search_dlopen+set}" = set; then
27448 :
27449else
27450 ac_cv_search_dlopen=no
27451fi
27452rm conftest.$ac_ext
27453LIBS=$ac_func_search_save_LIBS
27454fi
27455{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27456echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27457ac_res=$ac_cv_search_dlopen
27458if test "$ac_res" != no; then
27459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27460
27461cat >>confdefs.h <<\_ACEOF
27462#define HAVE_DLOPEN 1
27463_ACEOF
27464
27465else
27466 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27467echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27468fi
27469
27470
Nick Lewycky6c58a402009-04-13 04:26:27 +000027471{ echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27472echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27473if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky0235b622009-02-04 06:27:44 +000027474 echo $ECHO_N "(cached) $ECHO_C" >&6
27475else
Nick Lewycky6c58a402009-04-13 04:26:27 +000027476 ac_func_search_save_LIBS=$LIBS
Nick Lewycky0235b622009-02-04 06:27:44 +000027477cat >conftest.$ac_ext <<_ACEOF
27478/* confdefs.h. */
27479_ACEOF
27480cat confdefs.h >>conftest.$ac_ext
27481cat >>conftest.$ac_ext <<_ACEOF
27482/* end confdefs.h. */
27483
27484/* Override any GCC internal prototype to avoid an error.
27485 Use char because int might match the return type of a GCC
27486 builtin and then its argument prototype would still apply. */
27487#ifdef __cplusplus
27488extern "C"
27489#endif
27490char ffi_call ();
27491int
27492main ()
27493{
27494return ffi_call ();
27495 ;
27496 return 0;
27497}
27498_ACEOF
Nick Lewycky6c58a402009-04-13 04:26:27 +000027499for ac_lib in '' ffi; do
27500 if test -z "$ac_lib"; then
27501 ac_res="none required"
27502 else
27503 ac_res=-l$ac_lib
27504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27505 fi
27506 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewycky0235b622009-02-04 06:27:44 +000027507if { (ac_try="$ac_link"
27508case "(($ac_try" in
27509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27510 *) ac_try_echo=$ac_try;;
27511esac
27512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27513 (eval "$ac_link") 2>conftest.er1
27514 ac_status=$?
27515 grep -v '^ *+' conftest.er1 >conftest.err
27516 rm -f conftest.er1
27517 cat conftest.err >&5
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027519 (exit $ac_status); } &&
27520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27521 { (case "(($ac_try" in
27522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27523 *) ac_try_echo=$ac_try;;
27524esac
27525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27526 (eval "$ac_try") 2>&5
27527 ac_status=$?
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); }; } &&
27530 { ac_try='test -s conftest$ac_exeext'
27531 { (case "(($ac_try" in
27532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27533 *) ac_try_echo=$ac_try;;
27534esac
27535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27536 (eval "$ac_try") 2>&5
27537 ac_status=$?
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); }; }; then
Nick Lewycky6c58a402009-04-13 04:26:27 +000027540 ac_cv_search_ffi_call=$ac_res
Nick Lewycky0235b622009-02-04 06:27:44 +000027541else
27542 echo "$as_me: failed program was:" >&5
27543sed 's/^/| /' conftest.$ac_ext >&5
27544
Nick Lewycky6c58a402009-04-13 04:26:27 +000027545
Nick Lewycky0235b622009-02-04 06:27:44 +000027546fi
27547
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027548rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky6c58a402009-04-13 04:26:27 +000027549 conftest$ac_exeext
27550 if test "${ac_cv_search_ffi_call+set}" = set; then
27551 break
Nick Lewycky0235b622009-02-04 06:27:44 +000027552fi
Nick Lewycky6c58a402009-04-13 04:26:27 +000027553done
27554if test "${ac_cv_search_ffi_call+set}" = set; then
27555 :
27556else
27557 ac_cv_search_ffi_call=no
27558fi
27559rm conftest.$ac_ext
27560LIBS=$ac_func_search_save_LIBS
27561fi
27562{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27563echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27564ac_res=$ac_cv_search_ffi_call
27565if test "$ac_res" != no; then
27566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27567
27568cat >>confdefs.h <<\_ACEOF
27569#define HAVE_FFI_CALL 1
27570_ACEOF
27571
Nick Lewycky0235b622009-02-04 06:27:44 +000027572else
27573 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27574echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27575fi
27576
27577
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027578{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27579echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27580if test "${ac_cv_search_mallinfo+set}" = set; then
27581 echo $ECHO_N "(cached) $ECHO_C" >&6
27582else
27583 ac_func_search_save_LIBS=$LIBS
27584cat >conftest.$ac_ext <<_ACEOF
27585/* confdefs.h. */
27586_ACEOF
27587cat confdefs.h >>conftest.$ac_ext
27588cat >>conftest.$ac_ext <<_ACEOF
27589/* end confdefs.h. */
27590
27591/* Override any GCC internal prototype to avoid an error.
27592 Use char because int might match the return type of a GCC
27593 builtin and then its argument prototype would still apply. */
27594#ifdef __cplusplus
27595extern "C"
27596#endif
27597char mallinfo ();
27598int
27599main ()
27600{
27601return mallinfo ();
27602 ;
27603 return 0;
27604}
27605_ACEOF
27606for ac_lib in '' malloc; do
27607 if test -z "$ac_lib"; then
27608 ac_res="none required"
27609 else
27610 ac_res=-l$ac_lib
27611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27612 fi
27613 rm -f conftest.$ac_objext conftest$ac_exeext
27614if { (ac_try="$ac_link"
27615case "(($ac_try" in
27616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617 *) ac_try_echo=$ac_try;;
27618esac
27619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620 (eval "$ac_link") 2>conftest.er1
27621 ac_status=$?
27622 grep -v '^ *+' conftest.er1 >conftest.err
27623 rm -f conftest.er1
27624 cat conftest.err >&5
27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027626 (exit $ac_status); } &&
27627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27628 { (case "(($ac_try" in
27629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27630 *) ac_try_echo=$ac_try;;
27631esac
27632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27633 (eval "$ac_try") 2>&5
27634 ac_status=$?
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); }; } &&
27637 { ac_try='test -s conftest$ac_exeext'
27638 { (case "(($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_try") 2>&5
27644 ac_status=$?
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027647 ac_cv_search_mallinfo=$ac_res
27648else
27649 echo "$as_me: failed program was:" >&5
27650sed 's/^/| /' conftest.$ac_ext >&5
27651
27652
27653fi
27654
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027655rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027656 conftest$ac_exeext
27657 if test "${ac_cv_search_mallinfo+set}" = set; then
27658 break
27659fi
27660done
27661if test "${ac_cv_search_mallinfo+set}" = set; then
27662 :
27663else
27664 ac_cv_search_mallinfo=no
27665fi
27666rm conftest.$ac_ext
27667LIBS=$ac_func_search_save_LIBS
27668fi
27669{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27670echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27671ac_res=$ac_cv_search_mallinfo
27672if test "$ac_res" != no; then
27673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27674
27675cat >>confdefs.h <<\_ACEOF
27676#define HAVE_MALLINFO 1
27677_ACEOF
27678
27679fi
27680
27681
27682if test "$ENABLE_THREADS" -eq 1 ; then
27683
27684{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27685echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27686if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27688else
27689 ac_check_lib_save_LIBS=$LIBS
27690LIBS="-lpthread $LIBS"
27691cat >conftest.$ac_ext <<_ACEOF
27692/* confdefs.h. */
27693_ACEOF
27694cat confdefs.h >>conftest.$ac_ext
27695cat >>conftest.$ac_ext <<_ACEOF
27696/* end confdefs.h. */
27697
27698/* Override any GCC internal prototype to avoid an error.
27699 Use char because int might match the return type of a GCC
27700 builtin and then its argument prototype would still apply. */
27701#ifdef __cplusplus
27702extern "C"
27703#endif
27704char pthread_mutex_init ();
27705int
27706main ()
27707{
27708return pthread_mutex_init ();
27709 ;
27710 return 0;
27711}
27712_ACEOF
27713rm -f conftest.$ac_objext conftest$ac_exeext
27714if { (ac_try="$ac_link"
27715case "(($ac_try" in
27716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717 *) ac_try_echo=$ac_try;;
27718esac
27719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27720 (eval "$ac_link") 2>conftest.er1
27721 ac_status=$?
27722 grep -v '^ *+' conftest.er1 >conftest.err
27723 rm -f conftest.er1
27724 cat conftest.err >&5
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027726 (exit $ac_status); } &&
27727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27728 { (case "(($ac_try" in
27729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27730 *) ac_try_echo=$ac_try;;
27731esac
27732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27733 (eval "$ac_try") 2>&5
27734 ac_status=$?
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; } &&
27737 { ac_try='test -s conftest$ac_exeext'
27738 { (case "(($ac_try" in
27739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740 *) ac_try_echo=$ac_try;;
27741esac
27742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27743 (eval "$ac_try") 2>&5
27744 ac_status=$?
27745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027747 ac_cv_lib_pthread_pthread_mutex_init=yes
27748else
27749 echo "$as_me: failed program was:" >&5
27750sed 's/^/| /' conftest.$ac_ext >&5
27751
27752 ac_cv_lib_pthread_pthread_mutex_init=no
27753fi
27754
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027755rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027756 conftest$ac_exeext conftest.$ac_ext
27757LIBS=$ac_check_lib_save_LIBS
27758fi
27759{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27760echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27761if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27762 cat >>confdefs.h <<_ACEOF
27763#define HAVE_LIBPTHREAD 1
27764_ACEOF
27765
27766 LIBS="-lpthread $LIBS"
27767
27768fi
27769
27770 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27771echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27772if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27774else
27775 ac_func_search_save_LIBS=$LIBS
27776cat >conftest.$ac_ext <<_ACEOF
27777/* confdefs.h. */
27778_ACEOF
27779cat confdefs.h >>conftest.$ac_ext
27780cat >>conftest.$ac_ext <<_ACEOF
27781/* end confdefs.h. */
27782
27783/* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27786#ifdef __cplusplus
27787extern "C"
27788#endif
27789char pthread_mutex_lock ();
27790int
27791main ()
27792{
27793return pthread_mutex_lock ();
27794 ;
27795 return 0;
27796}
27797_ACEOF
27798for ac_lib in '' pthread; do
27799 if test -z "$ac_lib"; then
27800 ac_res="none required"
27801 else
27802 ac_res=-l$ac_lib
27803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27804 fi
27805 rm -f conftest.$ac_objext conftest$ac_exeext
27806if { (ac_try="$ac_link"
27807case "(($ac_try" in
27808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27810esac
27811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812 (eval "$ac_link") 2>conftest.er1
27813 ac_status=$?
27814 grep -v '^ *+' conftest.er1 >conftest.err
27815 rm -f conftest.er1
27816 cat conftest.err >&5
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027818 (exit $ac_status); } &&
27819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27820 { (case "(($ac_try" in
27821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822 *) ac_try_echo=$ac_try;;
27823esac
27824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825 (eval "$ac_try") 2>&5
27826 ac_status=$?
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); }; } &&
27829 { ac_try='test -s conftest$ac_exeext'
27830 { (case "(($ac_try" in
27831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27832 *) ac_try_echo=$ac_try;;
27833esac
27834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27835 (eval "$ac_try") 2>&5
27836 ac_status=$?
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027839 ac_cv_search_pthread_mutex_lock=$ac_res
27840else
27841 echo "$as_me: failed program was:" >&5
27842sed 's/^/| /' conftest.$ac_ext >&5
27843
27844
27845fi
27846
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027847rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027848 conftest$ac_exeext
27849 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27850 break
27851fi
27852done
27853if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27854 :
27855else
27856 ac_cv_search_pthread_mutex_lock=no
27857fi
27858rm conftest.$ac_ext
27859LIBS=$ac_func_search_save_LIBS
27860fi
27861{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27862echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27863ac_res=$ac_cv_search_pthread_mutex_lock
27864if test "$ac_res" != no; then
27865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27866
27867cat >>confdefs.h <<\_ACEOF
27868#define HAVE_PTHREAD_MUTEX_LOCK 1
27869_ACEOF
27870
27871fi
27872
27873fi
27874
27875
27876# Check whether --with-udis86 was given.
27877if test "${with_udis86+set}" = set; then
27878 withval=$with_udis86;
27879 USE_UDIS86=1
27880
27881 case "$withval" in
27882 /usr/lib|yes) ;;
27883 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27884 esac
27885
27886{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27887echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27888if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27890else
27891 ac_check_lib_save_LIBS=$LIBS
27892LIBS="-ludis86 $LIBS"
27893cat >conftest.$ac_ext <<_ACEOF
27894/* confdefs.h. */
27895_ACEOF
27896cat confdefs.h >>conftest.$ac_ext
27897cat >>conftest.$ac_ext <<_ACEOF
27898/* end confdefs.h. */
27899
27900/* Override any GCC internal prototype to avoid an error.
27901 Use char because int might match the return type of a GCC
27902 builtin and then its argument prototype would still apply. */
27903#ifdef __cplusplus
27904extern "C"
27905#endif
27906char ud_init ();
27907int
27908main ()
27909{
27910return ud_init ();
27911 ;
27912 return 0;
27913}
27914_ACEOF
27915rm -f conftest.$ac_objext conftest$ac_exeext
27916if { (ac_try="$ac_link"
27917case "(($ac_try" in
27918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27919 *) ac_try_echo=$ac_try;;
27920esac
27921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27922 (eval "$ac_link") 2>conftest.er1
27923 ac_status=$?
27924 grep -v '^ *+' conftest.er1 >conftest.err
27925 rm -f conftest.er1
27926 cat conftest.err >&5
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027928 (exit $ac_status); } &&
27929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27930 { (case "(($ac_try" in
27931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932 *) ac_try_echo=$ac_try;;
27933esac
27934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935 (eval "$ac_try") 2>&5
27936 ac_status=$?
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); }; } &&
27939 { ac_try='test -s conftest$ac_exeext'
27940 { (case "(($ac_try" in
27941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27942 *) ac_try_echo=$ac_try;;
27943esac
27944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27945 (eval "$ac_try") 2>&5
27946 ac_status=$?
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027949 ac_cv_lib_udis86_ud_init=yes
27950else
27951 echo "$as_me: failed program was:" >&5
27952sed 's/^/| /' conftest.$ac_ext >&5
27953
27954 ac_cv_lib_udis86_ud_init=no
27955fi
27956
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000027957rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027958 conftest$ac_exeext conftest.$ac_ext
27959LIBS=$ac_check_lib_save_LIBS
27960fi
27961{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27962echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27963if test $ac_cv_lib_udis86_ud_init = yes; then
27964 cat >>confdefs.h <<_ACEOF
27965#define HAVE_LIBUDIS86 1
27966_ACEOF
27967
27968 LIBS="-ludis86 $LIBS"
27969
27970else
27971
27972 echo "Error! You need to have libudis86 around."
27973 exit -1
27974
27975fi
27976
27977
27978else
27979 USE_UDIS86=0
27980
27981fi
27982
27983
27984cat >>confdefs.h <<_ACEOF
27985#define USE_UDIS86 $USE_UDIS86
27986_ACEOF
27987
27988
27989
27990
27991
27992
27993
27994
27995ac_header_dirent=no
27996for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27997 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27998{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27999echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28001 echo $ECHO_N "(cached) $ECHO_C" >&6
28002else
28003 cat >conftest.$ac_ext <<_ACEOF
28004/* confdefs.h. */
28005_ACEOF
28006cat confdefs.h >>conftest.$ac_ext
28007cat >>conftest.$ac_ext <<_ACEOF
28008/* end confdefs.h. */
28009#include <sys/types.h>
28010#include <$ac_hdr>
28011
28012int
28013main ()
28014{
28015if ((DIR *) 0)
28016return 0;
28017 ;
28018 return 0;
28019}
28020_ACEOF
28021rm -f conftest.$ac_objext
28022if { (ac_try="$ac_compile"
28023case "(($ac_try" in
28024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025 *) ac_try_echo=$ac_try;;
28026esac
28027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28028 (eval "$ac_compile") 2>conftest.er1
28029 ac_status=$?
28030 grep -v '^ *+' conftest.er1 >conftest.err
28031 rm -f conftest.er1
28032 cat conftest.err >&5
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028034 (exit $ac_status); } &&
28035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28036 { (case "(($ac_try" in
28037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038 *) ac_try_echo=$ac_try;;
28039esac
28040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041 (eval "$ac_try") 2>&5
28042 ac_status=$?
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; } &&
28045 { ac_try='test -s conftest.$ac_objext'
28046 { (case "(($ac_try" in
28047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048 *) ac_try_echo=$ac_try;;
28049esac
28050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051 (eval "$ac_try") 2>&5
28052 ac_status=$?
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028055 eval "$as_ac_Header=yes"
28056else
28057 echo "$as_me: failed program was:" >&5
28058sed 's/^/| /' conftest.$ac_ext >&5
28059
28060 eval "$as_ac_Header=no"
28061fi
28062
28063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28064fi
28065ac_res=`eval echo '${'$as_ac_Header'}'`
28066 { echo "$as_me:$LINENO: result: $ac_res" >&5
28067echo "${ECHO_T}$ac_res" >&6; }
28068if test `eval echo '${'$as_ac_Header'}'` = yes; then
28069 cat >>confdefs.h <<_ACEOF
28070#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28071_ACEOF
28072
28073ac_header_dirent=$ac_hdr; break
28074fi
28075
28076done
28077# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28078if test $ac_header_dirent = dirent.h; then
28079 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28080echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28081if test "${ac_cv_search_opendir+set}" = set; then
28082 echo $ECHO_N "(cached) $ECHO_C" >&6
28083else
28084 ac_func_search_save_LIBS=$LIBS
28085cat >conftest.$ac_ext <<_ACEOF
28086/* confdefs.h. */
28087_ACEOF
28088cat confdefs.h >>conftest.$ac_ext
28089cat >>conftest.$ac_ext <<_ACEOF
28090/* end confdefs.h. */
28091
28092/* Override any GCC internal prototype to avoid an error.
28093 Use char because int might match the return type of a GCC
28094 builtin and then its argument prototype would still apply. */
28095#ifdef __cplusplus
28096extern "C"
28097#endif
28098char opendir ();
28099int
28100main ()
28101{
28102return opendir ();
28103 ;
28104 return 0;
28105}
28106_ACEOF
28107for ac_lib in '' dir; do
28108 if test -z "$ac_lib"; then
28109 ac_res="none required"
28110 else
28111 ac_res=-l$ac_lib
28112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28113 fi
28114 rm -f conftest.$ac_objext conftest$ac_exeext
28115if { (ac_try="$ac_link"
28116case "(($ac_try" in
28117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118 *) ac_try_echo=$ac_try;;
28119esac
28120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121 (eval "$ac_link") 2>conftest.er1
28122 ac_status=$?
28123 grep -v '^ *+' conftest.er1 >conftest.err
28124 rm -f conftest.er1
28125 cat conftest.err >&5
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028127 (exit $ac_status); } &&
28128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28129 { (case "(($ac_try" in
28130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131 *) ac_try_echo=$ac_try;;
28132esac
28133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134 (eval "$ac_try") 2>&5
28135 ac_status=$?
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; } &&
28138 { ac_try='test -s conftest$ac_exeext'
28139 { (case "(($ac_try" in
28140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28142esac
28143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144 (eval "$ac_try") 2>&5
28145 ac_status=$?
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028148 ac_cv_search_opendir=$ac_res
28149else
28150 echo "$as_me: failed program was:" >&5
28151sed 's/^/| /' conftest.$ac_ext >&5
28152
28153
28154fi
28155
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028156rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028157 conftest$ac_exeext
28158 if test "${ac_cv_search_opendir+set}" = set; then
28159 break
28160fi
28161done
28162if test "${ac_cv_search_opendir+set}" = set; then
28163 :
28164else
28165 ac_cv_search_opendir=no
28166fi
28167rm conftest.$ac_ext
28168LIBS=$ac_func_search_save_LIBS
28169fi
28170{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28171echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28172ac_res=$ac_cv_search_opendir
28173if test "$ac_res" != no; then
28174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28175
28176fi
28177
28178else
28179 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28180echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
28181if test "${ac_cv_search_opendir+set}" = set; then
28182 echo $ECHO_N "(cached) $ECHO_C" >&6
28183else
28184 ac_func_search_save_LIBS=$LIBS
28185cat >conftest.$ac_ext <<_ACEOF
28186/* confdefs.h. */
28187_ACEOF
28188cat confdefs.h >>conftest.$ac_ext
28189cat >>conftest.$ac_ext <<_ACEOF
28190/* end confdefs.h. */
28191
28192/* Override any GCC internal prototype to avoid an error.
28193 Use char because int might match the return type of a GCC
28194 builtin and then its argument prototype would still apply. */
28195#ifdef __cplusplus
28196extern "C"
28197#endif
28198char opendir ();
28199int
28200main ()
28201{
28202return opendir ();
28203 ;
28204 return 0;
28205}
28206_ACEOF
28207for ac_lib in '' x; do
28208 if test -z "$ac_lib"; then
28209 ac_res="none required"
28210 else
28211 ac_res=-l$ac_lib
28212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28213 fi
28214 rm -f conftest.$ac_objext conftest$ac_exeext
28215if { (ac_try="$ac_link"
28216case "(($ac_try" in
28217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28218 *) ac_try_echo=$ac_try;;
28219esac
28220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28221 (eval "$ac_link") 2>conftest.er1
28222 ac_status=$?
28223 grep -v '^ *+' conftest.er1 >conftest.err
28224 rm -f conftest.er1
28225 cat conftest.err >&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028227 (exit $ac_status); } &&
28228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28229 { (case "(($ac_try" in
28230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231 *) ac_try_echo=$ac_try;;
28232esac
28233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234 (eval "$ac_try") 2>&5
28235 ac_status=$?
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); }; } &&
28238 { ac_try='test -s conftest$ac_exeext'
28239 { (case "(($ac_try" in
28240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241 *) ac_try_echo=$ac_try;;
28242esac
28243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244 (eval "$ac_try") 2>&5
28245 ac_status=$?
28246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028248 ac_cv_search_opendir=$ac_res
28249else
28250 echo "$as_me: failed program was:" >&5
28251sed 's/^/| /' conftest.$ac_ext >&5
28252
28253
28254fi
28255
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028256rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028257 conftest$ac_exeext
28258 if test "${ac_cv_search_opendir+set}" = set; then
28259 break
28260fi
28261done
28262if test "${ac_cv_search_opendir+set}" = set; then
28263 :
28264else
28265 ac_cv_search_opendir=no
28266fi
28267rm conftest.$ac_ext
28268LIBS=$ac_func_search_save_LIBS
28269fi
28270{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28271echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28272ac_res=$ac_cv_search_opendir
28273if test "$ac_res" != no; then
28274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28275
28276fi
28277
28278fi
28279
28280{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28281echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28282if test "${ac_cv_header_mmap_anon+set}" = set; then
28283 echo $ECHO_N "(cached) $ECHO_C" >&6
28284else
28285 ac_ext=c
28286ac_cpp='$CPP $CPPFLAGS'
28287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28289ac_compiler_gnu=$ac_cv_c_compiler_gnu
28290
28291 cat >conftest.$ac_ext <<_ACEOF
28292/* confdefs.h. */
28293_ACEOF
28294cat confdefs.h >>conftest.$ac_ext
28295cat >>conftest.$ac_ext <<_ACEOF
28296/* end confdefs.h. */
28297#include <sys/mman.h>
28298#include <unistd.h>
28299#include <fcntl.h>
28300int
28301main ()
28302{
28303mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28304 ;
28305 return 0;
28306}
28307_ACEOF
28308rm -f conftest.$ac_objext
28309if { (ac_try="$ac_compile"
28310case "(($ac_try" in
28311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28313esac
28314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_compile") 2>conftest.er1
28316 ac_status=$?
28317 grep -v '^ *+' conftest.er1 >conftest.err
28318 rm -f conftest.er1
28319 cat conftest.err >&5
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028321 (exit $ac_status); } &&
28322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28323 { (case "(($ac_try" in
28324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28325 *) ac_try_echo=$ac_try;;
28326esac
28327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328 (eval "$ac_try") 2>&5
28329 ac_status=$?
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); }; } &&
28332 { ac_try='test -s conftest.$ac_objext'
28333 { (case "(($ac_try" in
28334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28335 *) ac_try_echo=$ac_try;;
28336esac
28337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28338 (eval "$ac_try") 2>&5
28339 ac_status=$?
28340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028342 ac_cv_header_mmap_anon=yes
28343else
28344 echo "$as_me: failed program was:" >&5
28345sed 's/^/| /' conftest.$ac_ext >&5
28346
28347 ac_cv_header_mmap_anon=no
28348fi
28349
28350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28351 ac_ext=c
28352ac_cpp='$CPP $CPPFLAGS'
28353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28355ac_compiler_gnu=$ac_cv_c_compiler_gnu
28356
28357
28358fi
28359{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28360echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28361if test "$ac_cv_header_mmap_anon" = yes; then
28362
28363cat >>confdefs.h <<\_ACEOF
28364#define HAVE_MMAP_ANONYMOUS 1
28365_ACEOF
28366
28367fi
28368
28369{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28370echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28371if test "${ac_cv_header_stat_broken+set}" = set; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28373else
28374 cat >conftest.$ac_ext <<_ACEOF
28375/* confdefs.h. */
28376_ACEOF
28377cat confdefs.h >>conftest.$ac_ext
28378cat >>conftest.$ac_ext <<_ACEOF
28379/* end confdefs.h. */
28380#include <sys/types.h>
28381#include <sys/stat.h>
28382
28383#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028384# if S_ISBLK (S_IFDIR)
28385You lose.
28386# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028387#endif
28388
28389#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028390# if S_ISBLK (S_IFCHR)
28391You lose.
28392# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028393#endif
28394
28395#if defined S_ISLNK && defined S_IFREG
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028396# if S_ISLNK (S_IFREG)
28397You lose.
28398# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028399#endif
28400
28401#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028402# if S_ISSOCK (S_IFREG)
28403You lose.
28404# endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028405#endif
28406
28407_ACEOF
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28409 $EGREP "You lose" >/dev/null 2>&1; then
28410 ac_cv_header_stat_broken=yes
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028411else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028412 ac_cv_header_stat_broken=no
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028413fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028414rm -f conftest*
Mikhail Glushenkovc805f902009-04-18 09:59:26 +000028415
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028416fi
28417{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28418echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28419if test $ac_cv_header_stat_broken = yes; then
28420
28421cat >>confdefs.h <<\_ACEOF
28422#define STAT_MACROS_BROKEN 1
28423_ACEOF
28424
28425fi
28426
28427{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28428echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28429if test "${ac_cv_header_stdc+set}" = set; then
28430 echo $ECHO_N "(cached) $ECHO_C" >&6
28431else
28432 cat >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#include <stdlib.h>
28439#include <stdarg.h>
28440#include <string.h>
28441#include <float.h>
28442
28443int
28444main ()
28445{
28446
28447 ;
28448 return 0;
28449}
28450_ACEOF
28451rm -f conftest.$ac_objext
28452if { (ac_try="$ac_compile"
28453case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28456esac
28457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_compile") 2>conftest.er1
28459 ac_status=$?
28460 grep -v '^ *+' conftest.er1 >conftest.err
28461 rm -f conftest.er1
28462 cat conftest.err >&5
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028464 (exit $ac_status); } &&
28465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28466 { (case "(($ac_try" in
28467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28468 *) ac_try_echo=$ac_try;;
28469esac
28470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28471 (eval "$ac_try") 2>&5
28472 ac_status=$?
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; } &&
28475 { ac_try='test -s conftest.$ac_objext'
28476 { (case "(($ac_try" in
28477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478 *) ac_try_echo=$ac_try;;
28479esac
28480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481 (eval "$ac_try") 2>&5
28482 ac_status=$?
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028485 ac_cv_header_stdc=yes
28486else
28487 echo "$as_me: failed program was:" >&5
28488sed 's/^/| /' conftest.$ac_ext >&5
28489
28490 ac_cv_header_stdc=no
28491fi
28492
28493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28494
28495if test $ac_cv_header_stdc = yes; then
28496 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28497 cat >conftest.$ac_ext <<_ACEOF
28498/* confdefs.h. */
28499_ACEOF
28500cat confdefs.h >>conftest.$ac_ext
28501cat >>conftest.$ac_ext <<_ACEOF
28502/* end confdefs.h. */
28503#include <string.h>
28504
28505_ACEOF
28506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28507 $EGREP "memchr" >/dev/null 2>&1; then
28508 :
28509else
28510 ac_cv_header_stdc=no
28511fi
28512rm -f conftest*
28513
28514fi
28515
28516if test $ac_cv_header_stdc = yes; then
28517 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28518 cat >conftest.$ac_ext <<_ACEOF
28519/* confdefs.h. */
28520_ACEOF
28521cat confdefs.h >>conftest.$ac_ext
28522cat >>conftest.$ac_ext <<_ACEOF
28523/* end confdefs.h. */
28524#include <stdlib.h>
28525
28526_ACEOF
28527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28528 $EGREP "free" >/dev/null 2>&1; then
28529 :
28530else
28531 ac_cv_header_stdc=no
28532fi
28533rm -f conftest*
28534
28535fi
28536
28537if test $ac_cv_header_stdc = yes; then
28538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28539 if test "$cross_compiling" = yes; then
28540 :
28541else
28542 cat >conftest.$ac_ext <<_ACEOF
28543/* confdefs.h. */
28544_ACEOF
28545cat confdefs.h >>conftest.$ac_ext
28546cat >>conftest.$ac_ext <<_ACEOF
28547/* end confdefs.h. */
28548#include <ctype.h>
28549#include <stdlib.h>
28550#if ((' ' & 0x0FF) == 0x020)
28551# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28552# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28553#else
28554# define ISLOWER(c) \
28555 (('a' <= (c) && (c) <= 'i') \
28556 || ('j' <= (c) && (c) <= 'r') \
28557 || ('s' <= (c) && (c) <= 'z'))
28558# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28559#endif
28560
28561#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28562int
28563main ()
28564{
28565 int i;
28566 for (i = 0; i < 256; i++)
28567 if (XOR (islower (i), ISLOWER (i))
28568 || toupper (i) != TOUPPER (i))
28569 return 2;
28570 return 0;
28571}
28572_ACEOF
28573rm -f conftest$ac_exeext
28574if { (ac_try="$ac_link"
28575case "(($ac_try" in
28576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28577 *) ac_try_echo=$ac_try;;
28578esac
28579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28580 (eval "$ac_link") 2>&5
28581 ac_status=$?
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28584 { (case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28587esac
28588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_try") 2>&5
28590 ac_status=$?
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; }; then
28593 :
28594else
28595 echo "$as_me: program exited with status $ac_status" >&5
28596echo "$as_me: failed program was:" >&5
28597sed 's/^/| /' conftest.$ac_ext >&5
28598
28599( exit $ac_status )
28600ac_cv_header_stdc=no
28601fi
28602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28603fi
28604
28605
28606fi
28607fi
28608{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28609echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28610if test $ac_cv_header_stdc = yes; then
28611
28612cat >>confdefs.h <<\_ACEOF
28613#define STDC_HEADERS 1
28614_ACEOF
28615
28616fi
28617
28618{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28619echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28620if test "${ac_cv_header_sys_wait_h+set}" = set; then
28621 echo $ECHO_N "(cached) $ECHO_C" >&6
28622else
28623 cat >conftest.$ac_ext <<_ACEOF
28624/* confdefs.h. */
28625_ACEOF
28626cat confdefs.h >>conftest.$ac_ext
28627cat >>conftest.$ac_ext <<_ACEOF
28628/* end confdefs.h. */
28629#include <sys/types.h>
28630#include <sys/wait.h>
28631#ifndef WEXITSTATUS
28632# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28633#endif
28634#ifndef WIFEXITED
28635# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28636#endif
28637
28638int
28639main ()
28640{
28641 int s;
28642 wait (&s);
28643 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28644 ;
28645 return 0;
28646}
28647_ACEOF
28648rm -f conftest.$ac_objext
28649if { (ac_try="$ac_compile"
28650case "(($ac_try" in
28651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28652 *) ac_try_echo=$ac_try;;
28653esac
28654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28655 (eval "$ac_compile") 2>conftest.er1
28656 ac_status=$?
28657 grep -v '^ *+' conftest.er1 >conftest.err
28658 rm -f conftest.er1
28659 cat conftest.err >&5
28660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028661 (exit $ac_status); } &&
28662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28663 { (case "(($ac_try" in
28664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28665 *) ac_try_echo=$ac_try;;
28666esac
28667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28668 (eval "$ac_try") 2>&5
28669 ac_status=$?
28670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); }; } &&
28672 { ac_try='test -s conftest.$ac_objext'
28673 { (case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28676esac
28677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678 (eval "$ac_try") 2>&5
28679 ac_status=$?
28680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028682 ac_cv_header_sys_wait_h=yes
28683else
28684 echo "$as_me: failed program was:" >&5
28685sed 's/^/| /' conftest.$ac_ext >&5
28686
28687 ac_cv_header_sys_wait_h=no
28688fi
28689
28690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28691fi
28692{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28693echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28694if test $ac_cv_header_sys_wait_h = yes; then
28695
28696cat >>confdefs.h <<\_ACEOF
28697#define HAVE_SYS_WAIT_H 1
28698_ACEOF
28699
28700fi
28701
28702{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28703echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28704if test "${ac_cv_header_time+set}" = set; then
28705 echo $ECHO_N "(cached) $ECHO_C" >&6
28706else
28707 cat >conftest.$ac_ext <<_ACEOF
28708/* confdefs.h. */
28709_ACEOF
28710cat confdefs.h >>conftest.$ac_ext
28711cat >>conftest.$ac_ext <<_ACEOF
28712/* end confdefs.h. */
28713#include <sys/types.h>
28714#include <sys/time.h>
28715#include <time.h>
28716
28717int
28718main ()
28719{
28720if ((struct tm *) 0)
28721return 0;
28722 ;
28723 return 0;
28724}
28725_ACEOF
28726rm -f conftest.$ac_objext
28727if { (ac_try="$ac_compile"
28728case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28731esac
28732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_compile") 2>conftest.er1
28734 ac_status=$?
28735 grep -v '^ *+' conftest.er1 >conftest.err
28736 rm -f conftest.er1
28737 cat conftest.err >&5
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028739 (exit $ac_status); } &&
28740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28741 { (case "(($ac_try" in
28742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28743 *) ac_try_echo=$ac_try;;
28744esac
28745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28746 (eval "$ac_try") 2>&5
28747 ac_status=$?
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; } &&
28750 { ac_try='test -s conftest.$ac_objext'
28751 { (case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28754esac
28755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_try") 2>&5
28757 ac_status=$?
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028760 ac_cv_header_time=yes
28761else
28762 echo "$as_me: failed program was:" >&5
28763sed 's/^/| /' conftest.$ac_ext >&5
28764
28765 ac_cv_header_time=no
28766fi
28767
28768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28769fi
28770{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28771echo "${ECHO_T}$ac_cv_header_time" >&6; }
28772if test $ac_cv_header_time = yes; then
28773
28774cat >>confdefs.h <<\_ACEOF
28775#define TIME_WITH_SYS_TIME 1
28776_ACEOF
28777
28778fi
28779
28780
28781
28782
28783
28784
28785
28786
28787for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28788do
28789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28794 echo $ECHO_N "(cached) $ECHO_C" >&6
28795fi
28796ac_res=`eval echo '${'$as_ac_Header'}'`
28797 { echo "$as_me:$LINENO: result: $ac_res" >&5
28798echo "${ECHO_T}$ac_res" >&6; }
28799else
28800 # Is the header compilable?
28801{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28803cat >conftest.$ac_ext <<_ACEOF
28804/* confdefs.h. */
28805_ACEOF
28806cat confdefs.h >>conftest.$ac_ext
28807cat >>conftest.$ac_ext <<_ACEOF
28808/* end confdefs.h. */
28809$ac_includes_default
28810#include <$ac_header>
28811_ACEOF
28812rm -f conftest.$ac_objext
28813if { (ac_try="$ac_compile"
28814case "(($ac_try" in
28815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816 *) ac_try_echo=$ac_try;;
28817esac
28818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819 (eval "$ac_compile") 2>conftest.er1
28820 ac_status=$?
28821 grep -v '^ *+' conftest.er1 >conftest.err
28822 rm -f conftest.er1
28823 cat conftest.err >&5
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028825 (exit $ac_status); } &&
28826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28827 { (case "(($ac_try" in
28828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28829 *) ac_try_echo=$ac_try;;
28830esac
28831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832 (eval "$ac_try") 2>&5
28833 ac_status=$?
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); }; } &&
28836 { ac_try='test -s conftest.$ac_objext'
28837 { (case "(($ac_try" in
28838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28839 *) ac_try_echo=$ac_try;;
28840esac
28841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28842 (eval "$ac_try") 2>&5
28843 ac_status=$?
28844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28845 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028846 ac_header_compiler=yes
28847else
28848 echo "$as_me: failed program was:" >&5
28849sed 's/^/| /' conftest.$ac_ext >&5
28850
28851 ac_header_compiler=no
28852fi
28853
28854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28856echo "${ECHO_T}$ac_header_compiler" >&6; }
28857
28858# Is the header present?
28859{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28861cat >conftest.$ac_ext <<_ACEOF
28862/* confdefs.h. */
28863_ACEOF
28864cat confdefs.h >>conftest.$ac_ext
28865cat >>conftest.$ac_ext <<_ACEOF
28866/* end confdefs.h. */
28867#include <$ac_header>
28868_ACEOF
28869if { (ac_try="$ac_cpp conftest.$ac_ext"
28870case "(($ac_try" in
28871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28872 *) ac_try_echo=$ac_try;;
28873esac
28874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28876 ac_status=$?
28877 grep -v '^ *+' conftest.er1 >conftest.err
28878 rm -f conftest.er1
28879 cat conftest.err >&5
28880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028881 (exit $ac_status); } >/dev/null; then
28882 if test -s conftest.err; then
28883 ac_cpp_err=$ac_c_preproc_warn_flag
28884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28885 else
28886 ac_cpp_err=
28887 fi
28888else
28889 ac_cpp_err=yes
28890fi
28891if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028892 ac_header_preproc=yes
28893else
28894 echo "$as_me: failed program was:" >&5
28895sed 's/^/| /' conftest.$ac_ext >&5
28896
28897 ac_header_preproc=no
28898fi
28899
28900rm -f conftest.err conftest.$ac_ext
28901{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28902echo "${ECHO_T}$ac_header_preproc" >&6; }
28903
28904# So? What about this header?
28905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28906 yes:no: )
28907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28911 ac_header_preproc=yes
28912 ;;
28913 no:yes:* )
28914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28921echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28926 ( cat <<\_ASBOX
28927## ----------------------------------- ##
28928## Report this to llvmbugs@cs.uiuc.edu ##
28929## ----------------------------------- ##
28930_ASBOX
28931 ) | sed "s/^/$as_me: WARNING: /" >&2
28932 ;;
28933esac
28934{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28937 echo $ECHO_N "(cached) $ECHO_C" >&6
28938else
28939 eval "$as_ac_Header=\$ac_header_preproc"
28940fi
28941ac_res=`eval echo '${'$as_ac_Header'}'`
28942 { echo "$as_me:$LINENO: result: $ac_res" >&5
28943echo "${ECHO_T}$ac_res" >&6; }
28944
28945fi
28946if test `eval echo '${'$as_ac_Header'}'` = yes; then
28947 cat >>confdefs.h <<_ACEOF
28948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28949_ACEOF
28950
28951fi
28952
28953done
28954
28955
28956
28957
28958
28959
28960
Douglas Gregor6230bee2009-05-18 17:21:34 +000028961for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028962do
28963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28964if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28968 echo $ECHO_N "(cached) $ECHO_C" >&6
28969fi
28970ac_res=`eval echo '${'$as_ac_Header'}'`
28971 { echo "$as_me:$LINENO: result: $ac_res" >&5
28972echo "${ECHO_T}$ac_res" >&6; }
28973else
28974 # Is the header compilable?
28975{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28976echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28977cat >conftest.$ac_ext <<_ACEOF
28978/* confdefs.h. */
28979_ACEOF
28980cat confdefs.h >>conftest.$ac_ext
28981cat >>conftest.$ac_ext <<_ACEOF
28982/* end confdefs.h. */
28983$ac_includes_default
28984#include <$ac_header>
28985_ACEOF
28986rm -f conftest.$ac_objext
28987if { (ac_try="$ac_compile"
28988case "(($ac_try" in
28989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28990 *) ac_try_echo=$ac_try;;
28991esac
28992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28993 (eval "$ac_compile") 2>conftest.er1
28994 ac_status=$?
28995 grep -v '^ *+' conftest.er1 >conftest.err
28996 rm -f conftest.er1
28997 cat conftest.err >&5
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000028999 (exit $ac_status); } &&
29000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29001 { (case "(($ac_try" in
29002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003 *) ac_try_echo=$ac_try;;
29004esac
29005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29006 (eval "$ac_try") 2>&5
29007 ac_status=$?
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); }; } &&
29010 { ac_try='test -s conftest.$ac_objext'
29011 { (case "(($ac_try" in
29012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29013 *) ac_try_echo=$ac_try;;
29014esac
29015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29016 (eval "$ac_try") 2>&5
29017 ac_status=$?
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029020 ac_header_compiler=yes
29021else
29022 echo "$as_me: failed program was:" >&5
29023sed 's/^/| /' conftest.$ac_ext >&5
29024
29025 ac_header_compiler=no
29026fi
29027
29028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29029{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29030echo "${ECHO_T}$ac_header_compiler" >&6; }
29031
29032# Is the header present?
29033{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29034echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29035cat >conftest.$ac_ext <<_ACEOF
29036/* confdefs.h. */
29037_ACEOF
29038cat confdefs.h >>conftest.$ac_ext
29039cat >>conftest.$ac_ext <<_ACEOF
29040/* end confdefs.h. */
29041#include <$ac_header>
29042_ACEOF
29043if { (ac_try="$ac_cpp conftest.$ac_ext"
29044case "(($ac_try" in
29045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29046 *) ac_try_echo=$ac_try;;
29047esac
29048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29050 ac_status=$?
29051 grep -v '^ *+' conftest.er1 >conftest.err
29052 rm -f conftest.er1
29053 cat conftest.err >&5
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029055 (exit $ac_status); } >/dev/null; then
29056 if test -s conftest.err; then
29057 ac_cpp_err=$ac_c_preproc_warn_flag
29058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29059 else
29060 ac_cpp_err=
29061 fi
29062else
29063 ac_cpp_err=yes
29064fi
29065if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029066 ac_header_preproc=yes
29067else
29068 echo "$as_me: failed program was:" >&5
29069sed 's/^/| /' conftest.$ac_ext >&5
29070
29071 ac_header_preproc=no
29072fi
29073
29074rm -f conftest.err conftest.$ac_ext
29075{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29076echo "${ECHO_T}$ac_header_preproc" >&6; }
29077
29078# So? What about this header?
29079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29080 yes:no: )
29081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29085 ac_header_preproc=yes
29086 ;;
29087 no:yes:* )
29088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29100 ( cat <<\_ASBOX
29101## ----------------------------------- ##
29102## Report this to llvmbugs@cs.uiuc.edu ##
29103## ----------------------------------- ##
29104_ASBOX
29105 ) | sed "s/^/$as_me: WARNING: /" >&2
29106 ;;
29107esac
29108{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29112else
29113 eval "$as_ac_Header=\$ac_header_preproc"
29114fi
29115ac_res=`eval echo '${'$as_ac_Header'}'`
29116 { echo "$as_me:$LINENO: result: $ac_res" >&5
29117echo "${ECHO_T}$ac_res" >&6; }
29118
29119fi
29120if test `eval echo '${'$as_ac_Header'}'` = yes; then
29121 cat >>confdefs.h <<_ACEOF
29122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29123_ACEOF
29124
29125fi
29126
29127done
29128
29129
Douglas Gregor6230bee2009-05-18 17:21:34 +000029130
29131for ac_header in utime.h windows.h
Reid Spencer096a8142007-08-17 05:45:26 +000029132do
29133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29138 echo $ECHO_N "(cached) $ECHO_C" >&6
29139fi
29140ac_res=`eval echo '${'$as_ac_Header'}'`
29141 { echo "$as_me:$LINENO: result: $ac_res" >&5
29142echo "${ECHO_T}$ac_res" >&6; }
29143else
29144 # Is the header compilable?
29145{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29146echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29147cat >conftest.$ac_ext <<_ACEOF
29148/* confdefs.h. */
29149_ACEOF
29150cat confdefs.h >>conftest.$ac_ext
29151cat >>conftest.$ac_ext <<_ACEOF
29152/* end confdefs.h. */
29153$ac_includes_default
29154#include <$ac_header>
29155_ACEOF
29156rm -f conftest.$ac_objext
29157if { (ac_try="$ac_compile"
29158case "(($ac_try" in
29159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160 *) ac_try_echo=$ac_try;;
29161esac
29162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29163 (eval "$ac_compile") 2>conftest.er1
29164 ac_status=$?
29165 grep -v '^ *+' conftest.er1 >conftest.err
29166 rm -f conftest.er1
29167 cat conftest.err >&5
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029169 (exit $ac_status); } &&
29170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29171 { (case "(($ac_try" in
29172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173 *) ac_try_echo=$ac_try;;
29174esac
29175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176 (eval "$ac_try") 2>&5
29177 ac_status=$?
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; } &&
29180 { ac_try='test -s conftest.$ac_objext'
29181 { (case "(($ac_try" in
29182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29183 *) ac_try_echo=$ac_try;;
29184esac
29185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29186 (eval "$ac_try") 2>&5
29187 ac_status=$?
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); }; }; then
Reid Spencer096a8142007-08-17 05:45:26 +000029190 ac_header_compiler=yes
29191else
29192 echo "$as_me: failed program was:" >&5
29193sed 's/^/| /' conftest.$ac_ext >&5
29194
29195 ac_header_compiler=no
29196fi
29197
29198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29199{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29200echo "${ECHO_T}$ac_header_compiler" >&6; }
29201
29202# Is the header present?
29203{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29204echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29205cat >conftest.$ac_ext <<_ACEOF
29206/* confdefs.h. */
29207_ACEOF
29208cat confdefs.h >>conftest.$ac_ext
29209cat >>conftest.$ac_ext <<_ACEOF
29210/* end confdefs.h. */
29211#include <$ac_header>
29212_ACEOF
29213if { (ac_try="$ac_cpp conftest.$ac_ext"
29214case "(($ac_try" in
29215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29216 *) ac_try_echo=$ac_try;;
29217esac
29218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29220 ac_status=$?
29221 grep -v '^ *+' conftest.er1 >conftest.err
29222 rm -f conftest.er1
29223 cat conftest.err >&5
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029225 (exit $ac_status); } >/dev/null; then
29226 if test -s conftest.err; then
29227 ac_cpp_err=$ac_c_preproc_warn_flag
29228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29229 else
29230 ac_cpp_err=
29231 fi
29232else
29233 ac_cpp_err=yes
29234fi
29235if test -z "$ac_cpp_err"; then
Reid Spencer096a8142007-08-17 05:45:26 +000029236 ac_header_preproc=yes
29237else
29238 echo "$as_me: failed program was:" >&5
29239sed 's/^/| /' conftest.$ac_ext >&5
29240
29241 ac_header_preproc=no
29242fi
29243
29244rm -f conftest.err conftest.$ac_ext
29245{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29246echo "${ECHO_T}$ac_header_preproc" >&6; }
29247
29248# So? What about this header?
29249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29250 yes:no: )
29251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29255 ac_header_preproc=yes
29256 ;;
29257 no:yes:* )
29258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29270 ( cat <<\_ASBOX
29271## ----------------------------------- ##
29272## Report this to llvmbugs@cs.uiuc.edu ##
29273## ----------------------------------- ##
29274_ASBOX
29275 ) | sed "s/^/$as_me: WARNING: /" >&2
29276 ;;
29277esac
29278{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29281 echo $ECHO_N "(cached) $ECHO_C" >&6
29282else
29283 eval "$as_ac_Header=\$ac_header_preproc"
29284fi
29285ac_res=`eval echo '${'$as_ac_Header'}'`
29286 { echo "$as_me:$LINENO: result: $ac_res" >&5
29287echo "${ECHO_T}$ac_res" >&6; }
29288
29289fi
29290if test `eval echo '${'$as_ac_Header'}'` = yes; then
29291 cat >>confdefs.h <<_ACEOF
29292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29293_ACEOF
29294
29295fi
29296
29297done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029298
29299
29300
29301
Reid Spencer096a8142007-08-17 05:45:26 +000029302
29303for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029304do
29305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29306if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29310 echo $ECHO_N "(cached) $ECHO_C" >&6
29311fi
29312ac_res=`eval echo '${'$as_ac_Header'}'`
29313 { echo "$as_me:$LINENO: result: $ac_res" >&5
29314echo "${ECHO_T}$ac_res" >&6; }
29315else
29316 # Is the header compilable?
29317{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29318echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29319cat >conftest.$ac_ext <<_ACEOF
29320/* confdefs.h. */
29321_ACEOF
29322cat confdefs.h >>conftest.$ac_ext
29323cat >>conftest.$ac_ext <<_ACEOF
29324/* end confdefs.h. */
29325$ac_includes_default
29326#include <$ac_header>
29327_ACEOF
29328rm -f conftest.$ac_objext
29329if { (ac_try="$ac_compile"
29330case "(($ac_try" in
29331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332 *) ac_try_echo=$ac_try;;
29333esac
29334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335 (eval "$ac_compile") 2>conftest.er1
29336 ac_status=$?
29337 grep -v '^ *+' conftest.er1 >conftest.err
29338 rm -f conftest.er1
29339 cat conftest.err >&5
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029341 (exit $ac_status); } &&
29342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29343 { (case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29346esac
29347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_try") 2>&5
29349 ac_status=$?
29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351 (exit $ac_status); }; } &&
29352 { ac_try='test -s conftest.$ac_objext'
29353 { (case "(($ac_try" in
29354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355 *) ac_try_echo=$ac_try;;
29356esac
29357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358 (eval "$ac_try") 2>&5
29359 ac_status=$?
29360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029362 ac_header_compiler=yes
29363else
29364 echo "$as_me: failed program was:" >&5
29365sed 's/^/| /' conftest.$ac_ext >&5
29366
29367 ac_header_compiler=no
29368fi
29369
29370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29371{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29372echo "${ECHO_T}$ac_header_compiler" >&6; }
29373
29374# Is the header present?
29375{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29376echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29377cat >conftest.$ac_ext <<_ACEOF
29378/* confdefs.h. */
29379_ACEOF
29380cat confdefs.h >>conftest.$ac_ext
29381cat >>conftest.$ac_ext <<_ACEOF
29382/* end confdefs.h. */
29383#include <$ac_header>
29384_ACEOF
29385if { (ac_try="$ac_cpp conftest.$ac_ext"
29386case "(($ac_try" in
29387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388 *) ac_try_echo=$ac_try;;
29389esac
29390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29392 ac_status=$?
29393 grep -v '^ *+' conftest.er1 >conftest.err
29394 rm -f conftest.er1
29395 cat conftest.err >&5
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029397 (exit $ac_status); } >/dev/null; then
29398 if test -s conftest.err; then
29399 ac_cpp_err=$ac_c_preproc_warn_flag
29400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29401 else
29402 ac_cpp_err=
29403 fi
29404else
29405 ac_cpp_err=yes
29406fi
29407if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029408 ac_header_preproc=yes
29409else
29410 echo "$as_me: failed program was:" >&5
29411sed 's/^/| /' conftest.$ac_ext >&5
29412
29413 ac_header_preproc=no
29414fi
29415
29416rm -f conftest.err conftest.$ac_ext
29417{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29418echo "${ECHO_T}$ac_header_preproc" >&6; }
29419
29420# So? What about this header?
29421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29422 yes:no: )
29423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29424echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29426echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29427 ac_header_preproc=yes
29428 ;;
29429 no:yes:* )
29430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29431echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29433echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29435echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29437echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29439echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29441echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29442 ( cat <<\_ASBOX
29443## ----------------------------------- ##
29444## Report this to llvmbugs@cs.uiuc.edu ##
29445## ----------------------------------- ##
29446_ASBOX
29447 ) | sed "s/^/$as_me: WARNING: /" >&2
29448 ;;
29449esac
29450{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29453 echo $ECHO_N "(cached) $ECHO_C" >&6
29454else
29455 eval "$as_ac_Header=\$ac_header_preproc"
29456fi
29457ac_res=`eval echo '${'$as_ac_Header'}'`
29458 { echo "$as_me:$LINENO: result: $ac_res" >&5
29459echo "${ECHO_T}$ac_res" >&6; }
29460
29461fi
29462if test `eval echo '${'$as_ac_Header'}'` = yes; then
29463 cat >>confdefs.h <<_ACEOF
29464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29465_ACEOF
29466
29467fi
29468
29469done
29470
29471
29472
29473
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000029474
29475for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029476do
29477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29482 echo $ECHO_N "(cached) $ECHO_C" >&6
29483fi
29484ac_res=`eval echo '${'$as_ac_Header'}'`
29485 { echo "$as_me:$LINENO: result: $ac_res" >&5
29486echo "${ECHO_T}$ac_res" >&6; }
29487else
29488 # Is the header compilable?
29489{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29491cat >conftest.$ac_ext <<_ACEOF
29492/* confdefs.h. */
29493_ACEOF
29494cat confdefs.h >>conftest.$ac_ext
29495cat >>conftest.$ac_ext <<_ACEOF
29496/* end confdefs.h. */
29497$ac_includes_default
29498#include <$ac_header>
29499_ACEOF
29500rm -f conftest.$ac_objext
29501if { (ac_try="$ac_compile"
29502case "(($ac_try" in
29503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504 *) ac_try_echo=$ac_try;;
29505esac
29506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29507 (eval "$ac_compile") 2>conftest.er1
29508 ac_status=$?
29509 grep -v '^ *+' conftest.er1 >conftest.err
29510 rm -f conftest.er1
29511 cat conftest.err >&5
29512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029513 (exit $ac_status); } &&
29514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29515 { (case "(($ac_try" in
29516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29517 *) ac_try_echo=$ac_try;;
29518esac
29519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29520 (eval "$ac_try") 2>&5
29521 ac_status=$?
29522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523 (exit $ac_status); }; } &&
29524 { ac_try='test -s conftest.$ac_objext'
29525 { (case "(($ac_try" in
29526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29528esac
29529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530 (eval "$ac_try") 2>&5
29531 ac_status=$?
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029534 ac_header_compiler=yes
29535else
29536 echo "$as_me: failed program was:" >&5
29537sed 's/^/| /' conftest.$ac_ext >&5
29538
29539 ac_header_compiler=no
29540fi
29541
29542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29543{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29544echo "${ECHO_T}$ac_header_compiler" >&6; }
29545
29546# Is the header present?
29547{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29549cat >conftest.$ac_ext <<_ACEOF
29550/* confdefs.h. */
29551_ACEOF
29552cat confdefs.h >>conftest.$ac_ext
29553cat >>conftest.$ac_ext <<_ACEOF
29554/* end confdefs.h. */
29555#include <$ac_header>
29556_ACEOF
29557if { (ac_try="$ac_cpp conftest.$ac_ext"
29558case "(($ac_try" in
29559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29560 *) ac_try_echo=$ac_try;;
29561esac
29562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29564 ac_status=$?
29565 grep -v '^ *+' conftest.er1 >conftest.err
29566 rm -f conftest.er1
29567 cat conftest.err >&5
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029569 (exit $ac_status); } >/dev/null; then
29570 if test -s conftest.err; then
29571 ac_cpp_err=$ac_c_preproc_warn_flag
29572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29573 else
29574 ac_cpp_err=
29575 fi
29576else
29577 ac_cpp_err=yes
29578fi
29579if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029580 ac_header_preproc=yes
29581else
29582 echo "$as_me: failed program was:" >&5
29583sed 's/^/| /' conftest.$ac_ext >&5
29584
29585 ac_header_preproc=no
29586fi
29587
29588rm -f conftest.err conftest.$ac_ext
29589{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29590echo "${ECHO_T}$ac_header_preproc" >&6; }
29591
29592# So? What about this header?
29593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29594 yes:no: )
29595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29596echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29598echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29599 ac_header_preproc=yes
29600 ;;
29601 no:yes:* )
29602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29603echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29605echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29607echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29609echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29613echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29614 ( cat <<\_ASBOX
29615## ----------------------------------- ##
29616## Report this to llvmbugs@cs.uiuc.edu ##
29617## ----------------------------------- ##
29618_ASBOX
29619 ) | sed "s/^/$as_me: WARNING: /" >&2
29620 ;;
29621esac
29622{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29625 echo $ECHO_N "(cached) $ECHO_C" >&6
29626else
29627 eval "$as_ac_Header=\$ac_header_preproc"
29628fi
29629ac_res=`eval echo '${'$as_ac_Header'}'`
29630 { echo "$as_me:$LINENO: result: $ac_res" >&5
29631echo "${ECHO_T}$ac_res" >&6; }
29632
29633fi
29634if test `eval echo '${'$as_ac_Header'}'` = yes; then
29635 cat >>confdefs.h <<_ACEOF
29636#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29637_ACEOF
29638
29639fi
29640
29641done
29642
29643if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000029644
29645for ac_header in pthread.h
29646do
29647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029652 echo $ECHO_N "(cached) $ECHO_C" >&6
29653fi
Reid Spencer096a8142007-08-17 05:45:26 +000029654ac_res=`eval echo '${'$as_ac_Header'}'`
29655 { echo "$as_me:$LINENO: result: $ac_res" >&5
29656echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029657else
29658 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000029659{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029661cat >conftest.$ac_ext <<_ACEOF
29662/* confdefs.h. */
29663_ACEOF
29664cat confdefs.h >>conftest.$ac_ext
29665cat >>conftest.$ac_ext <<_ACEOF
29666/* end confdefs.h. */
29667$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000029668#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029669_ACEOF
29670rm -f conftest.$ac_objext
29671if { (ac_try="$ac_compile"
29672case "(($ac_try" in
29673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674 *) ac_try_echo=$ac_try;;
29675esac
29676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677 (eval "$ac_compile") 2>conftest.er1
29678 ac_status=$?
29679 grep -v '^ *+' conftest.er1 >conftest.err
29680 rm -f conftest.er1
29681 cat conftest.err >&5
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029683 (exit $ac_status); } &&
29684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29685 { (case "(($ac_try" in
29686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687 *) ac_try_echo=$ac_try;;
29688esac
29689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690 (eval "$ac_try") 2>&5
29691 ac_status=$?
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; } &&
29694 { ac_try='test -s conftest.$ac_objext'
29695 { (case "(($ac_try" in
29696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29697 *) ac_try_echo=$ac_try;;
29698esac
29699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29700 (eval "$ac_try") 2>&5
29701 ac_status=$?
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029704 ac_header_compiler=yes
29705else
29706 echo "$as_me: failed program was:" >&5
29707sed 's/^/| /' conftest.$ac_ext >&5
29708
29709 ac_header_compiler=no
29710fi
29711
29712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29714echo "${ECHO_T}$ac_header_compiler" >&6; }
29715
29716# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000029717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029719cat >conftest.$ac_ext <<_ACEOF
29720/* confdefs.h. */
29721_ACEOF
29722cat confdefs.h >>conftest.$ac_ext
29723cat >>conftest.$ac_ext <<_ACEOF
29724/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000029725#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029726_ACEOF
29727if { (ac_try="$ac_cpp conftest.$ac_ext"
29728case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29731esac
29732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29734 ac_status=$?
29735 grep -v '^ *+' conftest.er1 >conftest.err
29736 rm -f conftest.er1
29737 cat conftest.err >&5
29738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029739 (exit $ac_status); } >/dev/null; then
29740 if test -s conftest.err; then
29741 ac_cpp_err=$ac_c_preproc_warn_flag
29742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29743 else
29744 ac_cpp_err=
29745 fi
29746else
29747 ac_cpp_err=yes
29748fi
29749if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029750 ac_header_preproc=yes
29751else
29752 echo "$as_me: failed program was:" >&5
29753sed 's/^/| /' conftest.$ac_ext >&5
29754
29755 ac_header_preproc=no
29756fi
29757
29758rm -f conftest.err conftest.$ac_ext
29759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29760echo "${ECHO_T}$ac_header_preproc" >&6; }
29761
29762# So? What about this header?
29763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29764 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000029765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029769 ac_header_preproc=yes
29770 ;;
29771 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000029772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029784 ( cat <<\_ASBOX
29785## ----------------------------------- ##
29786## Report this to llvmbugs@cs.uiuc.edu ##
29787## ----------------------------------- ##
29788_ASBOX
29789 ) | sed "s/^/$as_me: WARNING: /" >&2
29790 ;;
29791esac
Reid Spencer096a8142007-08-17 05:45:26 +000029792{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029795 echo $ECHO_N "(cached) $ECHO_C" >&6
29796else
Reid Spencer096a8142007-08-17 05:45:26 +000029797 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029798fi
Reid Spencer096a8142007-08-17 05:45:26 +000029799ac_res=`eval echo '${'$as_ac_Header'}'`
29800 { echo "$as_me:$LINENO: result: $ac_res" >&5
29801echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029802
29803fi
Reid Spencer096a8142007-08-17 05:45:26 +000029804if test `eval echo '${'$as_ac_Header'}'` = yes; then
29805 cat >>confdefs.h <<_ACEOF
29806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29807_ACEOF
29808 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029809
29810else
29811 HAVE_PTHREAD=0
29812
29813fi
29814
Reid Spencer096a8142007-08-17 05:45:26 +000029815done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029816
29817else
29818 HAVE_PTHREAD=0
29819
29820fi
29821
Nick Lewycky0235b622009-02-04 06:27:44 +000029822
29823
29824for ac_header in ffi.h ffi/ffi.h
29825do
29826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29831 echo $ECHO_N "(cached) $ECHO_C" >&6
29832fi
29833ac_res=`eval echo '${'$as_ac_Header'}'`
29834 { echo "$as_me:$LINENO: result: $ac_res" >&5
29835echo "${ECHO_T}$ac_res" >&6; }
29836else
29837 # Is the header compilable?
29838{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29840cat >conftest.$ac_ext <<_ACEOF
29841/* confdefs.h. */
29842_ACEOF
29843cat confdefs.h >>conftest.$ac_ext
29844cat >>conftest.$ac_ext <<_ACEOF
29845/* end confdefs.h. */
29846$ac_includes_default
29847#include <$ac_header>
29848_ACEOF
29849rm -f conftest.$ac_objext
29850if { (ac_try="$ac_compile"
29851case "(($ac_try" in
29852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853 *) ac_try_echo=$ac_try;;
29854esac
29855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856 (eval "$ac_compile") 2>conftest.er1
29857 ac_status=$?
29858 grep -v '^ *+' conftest.er1 >conftest.err
29859 rm -f conftest.er1
29860 cat conftest.err >&5
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029862 (exit $ac_status); } &&
29863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29864 { (case "(($ac_try" in
29865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866 *) ac_try_echo=$ac_try;;
29867esac
29868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869 (eval "$ac_try") 2>&5
29870 ac_status=$?
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); }; } &&
29873 { ac_try='test -s conftest.$ac_objext'
29874 { (case "(($ac_try" in
29875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876 *) ac_try_echo=$ac_try;;
29877esac
29878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879 (eval "$ac_try") 2>&5
29880 ac_status=$?
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); }; }; then
Nick Lewycky0235b622009-02-04 06:27:44 +000029883 ac_header_compiler=yes
29884else
29885 echo "$as_me: failed program was:" >&5
29886sed 's/^/| /' conftest.$ac_ext >&5
29887
29888 ac_header_compiler=no
29889fi
29890
29891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29892{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29893echo "${ECHO_T}$ac_header_compiler" >&6; }
29894
29895# Is the header present?
29896{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29898cat >conftest.$ac_ext <<_ACEOF
29899/* confdefs.h. */
29900_ACEOF
29901cat confdefs.h >>conftest.$ac_ext
29902cat >>conftest.$ac_ext <<_ACEOF
29903/* end confdefs.h. */
29904#include <$ac_header>
29905_ACEOF
29906if { (ac_try="$ac_cpp conftest.$ac_ext"
29907case "(($ac_try" in
29908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909 *) ac_try_echo=$ac_try;;
29910esac
29911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29913 ac_status=$?
29914 grep -v '^ *+' conftest.er1 >conftest.err
29915 rm -f conftest.er1
29916 cat conftest.err >&5
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000029918 (exit $ac_status); } >/dev/null; then
29919 if test -s conftest.err; then
29920 ac_cpp_err=$ac_c_preproc_warn_flag
29921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29922 else
29923 ac_cpp_err=
29924 fi
29925else
29926 ac_cpp_err=yes
29927fi
29928if test -z "$ac_cpp_err"; then
Nick Lewycky0235b622009-02-04 06:27:44 +000029929 ac_header_preproc=yes
29930else
29931 echo "$as_me: failed program was:" >&5
29932sed 's/^/| /' conftest.$ac_ext >&5
29933
29934 ac_header_preproc=no
29935fi
29936
29937rm -f conftest.err conftest.$ac_ext
29938{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29939echo "${ECHO_T}$ac_header_preproc" >&6; }
29940
29941# So? What about this header?
29942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29943 yes:no: )
29944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29948 ac_header_preproc=yes
29949 ;;
29950 no:yes:* )
29951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29954echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29958echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29963 ( cat <<\_ASBOX
29964## ----------------------------------- ##
29965## Report this to llvmbugs@cs.uiuc.edu ##
29966## ----------------------------------- ##
29967_ASBOX
29968 ) | sed "s/^/$as_me: WARNING: /" >&2
29969 ;;
29970esac
29971{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29974 echo $ECHO_N "(cached) $ECHO_C" >&6
29975else
29976 eval "$as_ac_Header=\$ac_header_preproc"
29977fi
29978ac_res=`eval echo '${'$as_ac_Header'}'`
29979 { echo "$as_me:$LINENO: result: $ac_res" >&5
29980echo "${ECHO_T}$ac_res" >&6; }
29981
29982fi
29983if test `eval echo '${'$as_ac_Header'}'` = yes; then
29984 cat >>confdefs.h <<_ACEOF
29985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29986_ACEOF
Nick Lewycky0235b622009-02-04 06:27:44 +000029987
29988fi
29989
29990done
29991
Nick Lewycky0235b622009-02-04 06:27:44 +000029992
Nick Lewycky5d713ec2009-01-20 00:52:24 +000029993
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029994
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029995 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29996echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29997if test "${ac_cv_huge_val_sanity+set}" = set; then
29998 echo $ECHO_N "(cached) $ECHO_C" >&6
29999else
30000
30001 ac_ext=cpp
30002ac_cpp='$CXXCPP $CPPFLAGS'
30003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30006
30007 CXXFLAGS=-pedantic
30008 if test "$cross_compiling" = yes; then
30009 ac_cv_huge_val_sanity=yes
30010else
30011 cat >conftest.$ac_ext <<_ACEOF
30012/* confdefs.h. */
30013_ACEOF
30014cat confdefs.h >>conftest.$ac_ext
30015cat >>conftest.$ac_ext <<_ACEOF
30016/* end confdefs.h. */
30017#include <math.h>
30018int
30019main ()
30020{
30021double x = HUGE_VAL; return x != x;
30022 ;
30023 return 0;
30024}
30025_ACEOF
30026rm -f conftest$ac_exeext
30027if { (ac_try="$ac_link"
30028case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30031esac
30032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033 (eval "$ac_link") 2>&5
30034 ac_status=$?
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30037 { (case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30040esac
30041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_try") 2>&5
30043 ac_status=$?
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; }; then
30046 ac_cv_huge_val_sanity=yes
30047else
30048 echo "$as_me: program exited with status $ac_status" >&5
30049echo "$as_me: failed program was:" >&5
30050sed 's/^/| /' conftest.$ac_ext >&5
30051
30052( exit $ac_status )
30053ac_cv_huge_val_sanity=no
30054fi
30055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30056fi
30057
30058
30059 ac_ext=c
30060ac_cpp='$CPP $CPPFLAGS'
30061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30063ac_compiler_gnu=$ac_cv_c_compiler_gnu
30064
30065
30066fi
30067{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30068echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30069 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30070
30071
30072{ echo "$as_me:$LINENO: checking for pid_t" >&5
30073echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
30074if test "${ac_cv_type_pid_t+set}" = set; then
30075 echo $ECHO_N "(cached) $ECHO_C" >&6
30076else
30077 cat >conftest.$ac_ext <<_ACEOF
30078/* confdefs.h. */
30079_ACEOF
30080cat confdefs.h >>conftest.$ac_ext
30081cat >>conftest.$ac_ext <<_ACEOF
30082/* end confdefs.h. */
30083$ac_includes_default
30084typedef pid_t ac__type_new_;
30085int
30086main ()
30087{
30088if ((ac__type_new_ *) 0)
30089 return 0;
30090if (sizeof (ac__type_new_))
30091 return 0;
30092 ;
30093 return 0;
30094}
30095_ACEOF
30096rm -f conftest.$ac_objext
30097if { (ac_try="$ac_compile"
30098case "(($ac_try" in
30099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30100 *) ac_try_echo=$ac_try;;
30101esac
30102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30103 (eval "$ac_compile") 2>conftest.er1
30104 ac_status=$?
30105 grep -v '^ *+' conftest.er1 >conftest.err
30106 rm -f conftest.er1
30107 cat conftest.err >&5
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030109 (exit $ac_status); } &&
30110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30111 { (case "(($ac_try" in
30112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113 *) ac_try_echo=$ac_try;;
30114esac
30115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116 (eval "$ac_try") 2>&5
30117 ac_status=$?
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; } &&
30120 { ac_try='test -s conftest.$ac_objext'
30121 { (case "(($ac_try" in
30122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123 *) ac_try_echo=$ac_try;;
30124esac
30125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30126 (eval "$ac_try") 2>&5
30127 ac_status=$?
30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30129 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030130 ac_cv_type_pid_t=yes
30131else
30132 echo "$as_me: failed program was:" >&5
30133sed 's/^/| /' conftest.$ac_ext >&5
30134
30135 ac_cv_type_pid_t=no
30136fi
30137
30138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30139fi
30140{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30141echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
30142if test $ac_cv_type_pid_t = yes; then
30143 :
30144else
30145
30146cat >>confdefs.h <<_ACEOF
30147#define pid_t int
30148_ACEOF
30149
30150fi
30151
30152{ echo "$as_me:$LINENO: checking for size_t" >&5
30153echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
30154if test "${ac_cv_type_size_t+set}" = set; then
30155 echo $ECHO_N "(cached) $ECHO_C" >&6
30156else
30157 cat >conftest.$ac_ext <<_ACEOF
30158/* confdefs.h. */
30159_ACEOF
30160cat confdefs.h >>conftest.$ac_ext
30161cat >>conftest.$ac_ext <<_ACEOF
30162/* end confdefs.h. */
30163$ac_includes_default
30164typedef size_t ac__type_new_;
30165int
30166main ()
30167{
30168if ((ac__type_new_ *) 0)
30169 return 0;
30170if (sizeof (ac__type_new_))
30171 return 0;
30172 ;
30173 return 0;
30174}
30175_ACEOF
30176rm -f conftest.$ac_objext
30177if { (ac_try="$ac_compile"
30178case "(($ac_try" in
30179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30180 *) ac_try_echo=$ac_try;;
30181esac
30182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30183 (eval "$ac_compile") 2>conftest.er1
30184 ac_status=$?
30185 grep -v '^ *+' conftest.er1 >conftest.err
30186 rm -f conftest.er1
30187 cat conftest.err >&5
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030189 (exit $ac_status); } &&
30190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30191 { (case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30194esac
30195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_try") 2>&5
30197 ac_status=$?
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; } &&
30200 { ac_try='test -s conftest.$ac_objext'
30201 { (case "(($ac_try" in
30202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30203 *) ac_try_echo=$ac_try;;
30204esac
30205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30206 (eval "$ac_try") 2>&5
30207 ac_status=$?
30208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030210 ac_cv_type_size_t=yes
30211else
30212 echo "$as_me: failed program was:" >&5
30213sed 's/^/| /' conftest.$ac_ext >&5
30214
30215 ac_cv_type_size_t=no
30216fi
30217
30218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30219fi
30220{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30221echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
30222if test $ac_cv_type_size_t = yes; then
30223 :
30224else
30225
30226cat >>confdefs.h <<_ACEOF
30227#define size_t unsigned int
30228_ACEOF
30229
30230fi
30231
30232{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30233echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
30234if test "${ac_cv_type_signal+set}" = set; then
30235 echo $ECHO_N "(cached) $ECHO_C" >&6
30236else
30237 cat >conftest.$ac_ext <<_ACEOF
30238/* confdefs.h. */
30239_ACEOF
30240cat confdefs.h >>conftest.$ac_ext
30241cat >>conftest.$ac_ext <<_ACEOF
30242/* end confdefs.h. */
30243#include <sys/types.h>
30244#include <signal.h>
30245
30246int
30247main ()
30248{
30249return *(signal (0, 0)) (0) == 1;
30250 ;
30251 return 0;
30252}
30253_ACEOF
30254rm -f conftest.$ac_objext
30255if { (ac_try="$ac_compile"
30256case "(($ac_try" in
30257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258 *) ac_try_echo=$ac_try;;
30259esac
30260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261 (eval "$ac_compile") 2>conftest.er1
30262 ac_status=$?
30263 grep -v '^ *+' conftest.er1 >conftest.err
30264 rm -f conftest.er1
30265 cat conftest.err >&5
30266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030267 (exit $ac_status); } &&
30268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30269 { (case "(($ac_try" in
30270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271 *) ac_try_echo=$ac_try;;
30272esac
30273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274 (eval "$ac_try") 2>&5
30275 ac_status=$?
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; } &&
30278 { ac_try='test -s conftest.$ac_objext'
30279 { (case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30282esac
30283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_try") 2>&5
30285 ac_status=$?
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030288 ac_cv_type_signal=int
30289else
30290 echo "$as_me: failed program was:" >&5
30291sed 's/^/| /' conftest.$ac_ext >&5
30292
30293 ac_cv_type_signal=void
30294fi
30295
30296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30297fi
30298{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30299echo "${ECHO_T}$ac_cv_type_signal" >&6; }
30300
30301cat >>confdefs.h <<_ACEOF
30302#define RETSIGTYPE $ac_cv_type_signal
30303_ACEOF
30304
30305
30306{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30307echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
30308if test "${ac_cv_struct_tm+set}" = set; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30310else
30311 cat >conftest.$ac_ext <<_ACEOF
30312/* confdefs.h. */
30313_ACEOF
30314cat confdefs.h >>conftest.$ac_ext
30315cat >>conftest.$ac_ext <<_ACEOF
30316/* end confdefs.h. */
30317#include <sys/types.h>
30318#include <time.h>
30319
30320int
30321main ()
30322{
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030323struct tm *tp; tp->tm_sec;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030324 ;
30325 return 0;
30326}
30327_ACEOF
30328rm -f conftest.$ac_objext
30329if { (ac_try="$ac_compile"
30330case "(($ac_try" in
30331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30332 *) ac_try_echo=$ac_try;;
30333esac
30334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30335 (eval "$ac_compile") 2>conftest.er1
30336 ac_status=$?
30337 grep -v '^ *+' conftest.er1 >conftest.err
30338 rm -f conftest.er1
30339 cat conftest.err >&5
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030341 (exit $ac_status); } &&
30342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30343 { (case "(($ac_try" in
30344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345 *) ac_try_echo=$ac_try;;
30346esac
30347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348 (eval "$ac_try") 2>&5
30349 ac_status=$?
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); }; } &&
30352 { ac_try='test -s conftest.$ac_objext'
30353 { (case "(($ac_try" in
30354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355 *) ac_try_echo=$ac_try;;
30356esac
30357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358 (eval "$ac_try") 2>&5
30359 ac_status=$?
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030362 ac_cv_struct_tm=time.h
30363else
30364 echo "$as_me: failed program was:" >&5
30365sed 's/^/| /' conftest.$ac_ext >&5
30366
30367 ac_cv_struct_tm=sys/time.h
30368fi
30369
30370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30371fi
30372{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30373echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
30374if test $ac_cv_struct_tm = sys/time.h; then
30375
30376cat >>confdefs.h <<\_ACEOF
30377#define TM_IN_SYS_TIME 1
30378_ACEOF
30379
30380fi
30381
30382{ echo "$as_me:$LINENO: checking for int64_t" >&5
30383echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
30384if test "${ac_cv_type_int64_t+set}" = set; then
30385 echo $ECHO_N "(cached) $ECHO_C" >&6
30386else
30387 cat >conftest.$ac_ext <<_ACEOF
30388/* confdefs.h. */
30389_ACEOF
30390cat confdefs.h >>conftest.$ac_ext
30391cat >>conftest.$ac_ext <<_ACEOF
30392/* end confdefs.h. */
30393$ac_includes_default
30394typedef int64_t ac__type_new_;
30395int
30396main ()
30397{
30398if ((ac__type_new_ *) 0)
30399 return 0;
30400if (sizeof (ac__type_new_))
30401 return 0;
30402 ;
30403 return 0;
30404}
30405_ACEOF
30406rm -f conftest.$ac_objext
30407if { (ac_try="$ac_compile"
30408case "(($ac_try" in
30409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30411esac
30412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30413 (eval "$ac_compile") 2>conftest.er1
30414 ac_status=$?
30415 grep -v '^ *+' conftest.er1 >conftest.err
30416 rm -f conftest.er1
30417 cat conftest.err >&5
30418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030419 (exit $ac_status); } &&
30420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30421 { (case "(($ac_try" in
30422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423 *) ac_try_echo=$ac_try;;
30424esac
30425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426 (eval "$ac_try") 2>&5
30427 ac_status=$?
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; } &&
30430 { ac_try='test -s conftest.$ac_objext'
30431 { (case "(($ac_try" in
30432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30433 *) ac_try_echo=$ac_try;;
30434esac
30435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30436 (eval "$ac_try") 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030440 ac_cv_type_int64_t=yes
30441else
30442 echo "$as_me: failed program was:" >&5
30443sed 's/^/| /' conftest.$ac_ext >&5
30444
30445 ac_cv_type_int64_t=no
30446fi
30447
30448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30449fi
30450{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30451echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
30452if test $ac_cv_type_int64_t = yes; then
30453
30454cat >>confdefs.h <<_ACEOF
30455#define HAVE_INT64_T 1
30456_ACEOF
30457
30458
30459else
30460 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30461echo "$as_me: error: Type int64_t required but not found" >&2;}
30462 { (exit 1); exit 1; }; }
30463fi
30464
30465{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30466echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
30467if test "${ac_cv_type_uint64_t+set}" = set; then
30468 echo $ECHO_N "(cached) $ECHO_C" >&6
30469else
30470 cat >conftest.$ac_ext <<_ACEOF
30471/* confdefs.h. */
30472_ACEOF
30473cat confdefs.h >>conftest.$ac_ext
30474cat >>conftest.$ac_ext <<_ACEOF
30475/* end confdefs.h. */
30476$ac_includes_default
30477typedef uint64_t ac__type_new_;
30478int
30479main ()
30480{
30481if ((ac__type_new_ *) 0)
30482 return 0;
30483if (sizeof (ac__type_new_))
30484 return 0;
30485 ;
30486 return 0;
30487}
30488_ACEOF
30489rm -f conftest.$ac_objext
30490if { (ac_try="$ac_compile"
30491case "(($ac_try" in
30492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493 *) ac_try_echo=$ac_try;;
30494esac
30495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496 (eval "$ac_compile") 2>conftest.er1
30497 ac_status=$?
30498 grep -v '^ *+' conftest.er1 >conftest.err
30499 rm -f conftest.er1
30500 cat conftest.err >&5
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030502 (exit $ac_status); } &&
30503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30504 { (case "(($ac_try" in
30505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30506 *) ac_try_echo=$ac_try;;
30507esac
30508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30509 (eval "$ac_try") 2>&5
30510 ac_status=$?
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); }; } &&
30513 { ac_try='test -s conftest.$ac_objext'
30514 { (case "(($ac_try" in
30515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30516 *) ac_try_echo=$ac_try;;
30517esac
30518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30519 (eval "$ac_try") 2>&5
30520 ac_status=$?
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030523 ac_cv_type_uint64_t=yes
30524else
30525 echo "$as_me: failed program was:" >&5
30526sed 's/^/| /' conftest.$ac_ext >&5
30527
30528 ac_cv_type_uint64_t=no
30529fi
30530
30531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30532fi
30533{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30534echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
30535if test $ac_cv_type_uint64_t = yes; then
30536
30537cat >>confdefs.h <<_ACEOF
30538#define HAVE_UINT64_T 1
30539_ACEOF
30540
30541
30542else
30543 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30544echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
30545if test "${ac_cv_type_u_int64_t+set}" = set; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30547else
30548 cat >conftest.$ac_ext <<_ACEOF
30549/* confdefs.h. */
30550_ACEOF
30551cat confdefs.h >>conftest.$ac_ext
30552cat >>conftest.$ac_ext <<_ACEOF
30553/* end confdefs.h. */
30554$ac_includes_default
30555typedef u_int64_t ac__type_new_;
30556int
30557main ()
30558{
30559if ((ac__type_new_ *) 0)
30560 return 0;
30561if (sizeof (ac__type_new_))
30562 return 0;
30563 ;
30564 return 0;
30565}
30566_ACEOF
30567rm -f conftest.$ac_objext
30568if { (ac_try="$ac_compile"
30569case "(($ac_try" in
30570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571 *) ac_try_echo=$ac_try;;
30572esac
30573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574 (eval "$ac_compile") 2>conftest.er1
30575 ac_status=$?
30576 grep -v '^ *+' conftest.er1 >conftest.err
30577 rm -f conftest.er1
30578 cat conftest.err >&5
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030580 (exit $ac_status); } &&
30581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30582 { (case "(($ac_try" in
30583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584 *) ac_try_echo=$ac_try;;
30585esac
30586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587 (eval "$ac_try") 2>&5
30588 ac_status=$?
30589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590 (exit $ac_status); }; } &&
30591 { ac_try='test -s conftest.$ac_objext'
30592 { (case "(($ac_try" in
30593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30594 *) ac_try_echo=$ac_try;;
30595esac
30596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30597 (eval "$ac_try") 2>&5
30598 ac_status=$?
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030601 ac_cv_type_u_int64_t=yes
30602else
30603 echo "$as_me: failed program was:" >&5
30604sed 's/^/| /' conftest.$ac_ext >&5
30605
30606 ac_cv_type_u_int64_t=no
30607fi
30608
30609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30610fi
30611{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30612echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30613if test $ac_cv_type_u_int64_t = yes; then
30614
30615cat >>confdefs.h <<_ACEOF
30616#define HAVE_U_INT64_T 1
30617_ACEOF
30618
30619
30620else
30621 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30622echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30623 { (exit 1); exit 1; }; }
30624fi
30625
30626fi
30627
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30638do
30639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30640{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30642if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30643 echo $ECHO_N "(cached) $ECHO_C" >&6
30644else
30645 cat >conftest.$ac_ext <<_ACEOF
30646/* confdefs.h. */
30647_ACEOF
30648cat confdefs.h >>conftest.$ac_ext
30649cat >>conftest.$ac_ext <<_ACEOF
30650/* end confdefs.h. */
30651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30653#define $ac_func innocuous_$ac_func
30654
30655/* System header to define __stub macros and hopefully few prototypes,
30656 which can conflict with char $ac_func (); below.
30657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30658 <limits.h> exists even on freestanding compilers. */
30659
30660#ifdef __STDC__
30661# include <limits.h>
30662#else
30663# include <assert.h>
30664#endif
30665
30666#undef $ac_func
30667
30668/* Override any GCC internal prototype to avoid an error.
30669 Use char because int might match the return type of a GCC
30670 builtin and then its argument prototype would still apply. */
30671#ifdef __cplusplus
30672extern "C"
30673#endif
30674char $ac_func ();
30675/* The GNU C library defines this for functions which it implements
30676 to always fail with ENOSYS. Some functions are actually named
30677 something starting with __ and the normal name is an alias. */
30678#if defined __stub_$ac_func || defined __stub___$ac_func
30679choke me
30680#endif
30681
30682int
30683main ()
30684{
30685return $ac_func ();
30686 ;
30687 return 0;
30688}
30689_ACEOF
30690rm -f conftest.$ac_objext conftest$ac_exeext
30691if { (ac_try="$ac_link"
30692case "(($ac_try" in
30693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30694 *) ac_try_echo=$ac_try;;
30695esac
30696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30697 (eval "$ac_link") 2>conftest.er1
30698 ac_status=$?
30699 grep -v '^ *+' conftest.er1 >conftest.err
30700 rm -f conftest.er1
30701 cat conftest.err >&5
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030703 (exit $ac_status); } &&
30704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30705 { (case "(($ac_try" in
30706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30707 *) ac_try_echo=$ac_try;;
30708esac
30709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30710 (eval "$ac_try") 2>&5
30711 ac_status=$?
30712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713 (exit $ac_status); }; } &&
30714 { ac_try='test -s conftest$ac_exeext'
30715 { (case "(($ac_try" in
30716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717 *) ac_try_echo=$ac_try;;
30718esac
30719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720 (eval "$ac_try") 2>&5
30721 ac_status=$?
30722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030724 eval "$as_ac_var=yes"
30725else
30726 echo "$as_me: failed program was:" >&5
30727sed 's/^/| /' conftest.$ac_ext >&5
30728
30729 eval "$as_ac_var=no"
30730fi
30731
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030732rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030733 conftest$ac_exeext conftest.$ac_ext
30734fi
30735ac_res=`eval echo '${'$as_ac_var'}'`
30736 { echo "$as_me:$LINENO: result: $ac_res" >&5
30737echo "${ECHO_T}$ac_res" >&6; }
30738if test `eval echo '${'$as_ac_var'}'` = yes; then
30739 cat >>confdefs.h <<_ACEOF
30740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30741_ACEOF
30742
30743fi
30744done
30745
30746
30747
30748
30749
30750for ac_func in powf fmodf strtof round
30751do
30752as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30753{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30754echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30756 echo $ECHO_N "(cached) $ECHO_C" >&6
30757else
30758 cat >conftest.$ac_ext <<_ACEOF
30759/* confdefs.h. */
30760_ACEOF
30761cat confdefs.h >>conftest.$ac_ext
30762cat >>conftest.$ac_ext <<_ACEOF
30763/* end confdefs.h. */
30764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30766#define $ac_func innocuous_$ac_func
30767
30768/* System header to define __stub macros and hopefully few prototypes,
30769 which can conflict with char $ac_func (); below.
30770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30771 <limits.h> exists even on freestanding compilers. */
30772
30773#ifdef __STDC__
30774# include <limits.h>
30775#else
30776# include <assert.h>
30777#endif
30778
30779#undef $ac_func
30780
30781/* Override any GCC internal prototype to avoid an error.
30782 Use char because int might match the return type of a GCC
30783 builtin and then its argument prototype would still apply. */
30784#ifdef __cplusplus
30785extern "C"
30786#endif
30787char $ac_func ();
30788/* The GNU C library defines this for functions which it implements
30789 to always fail with ENOSYS. Some functions are actually named
30790 something starting with __ and the normal name is an alias. */
30791#if defined __stub_$ac_func || defined __stub___$ac_func
30792choke me
30793#endif
30794
30795int
30796main ()
30797{
30798return $ac_func ();
30799 ;
30800 return 0;
30801}
30802_ACEOF
30803rm -f conftest.$ac_objext conftest$ac_exeext
30804if { (ac_try="$ac_link"
30805case "(($ac_try" in
30806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807 *) ac_try_echo=$ac_try;;
30808esac
30809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810 (eval "$ac_link") 2>conftest.er1
30811 ac_status=$?
30812 grep -v '^ *+' conftest.er1 >conftest.err
30813 rm -f conftest.er1
30814 cat conftest.err >&5
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030816 (exit $ac_status); } &&
30817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30818 { (case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30821esac
30822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_try") 2>&5
30824 ac_status=$?
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; } &&
30827 { ac_try='test -s conftest$ac_exeext'
30828 { (case "(($ac_try" in
30829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830 *) ac_try_echo=$ac_try;;
30831esac
30832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833 (eval "$ac_try") 2>&5
30834 ac_status=$?
30835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030837 eval "$as_ac_var=yes"
30838else
30839 echo "$as_me: failed program was:" >&5
30840sed 's/^/| /' conftest.$ac_ext >&5
30841
30842 eval "$as_ac_var=no"
30843fi
30844
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030845rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030846 conftest$ac_exeext conftest.$ac_ext
30847fi
30848ac_res=`eval echo '${'$as_ac_var'}'`
30849 { echo "$as_me:$LINENO: result: $ac_res" >&5
30850echo "${ECHO_T}$ac_res" >&6; }
30851if test `eval echo '${'$as_ac_var'}'` = yes; then
30852 cat >>confdefs.h <<_ACEOF
30853#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30854_ACEOF
30855
30856fi
30857done
30858
30859
30860
30861
30862
30863
30864for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30865do
30866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30867{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30869if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30870 echo $ECHO_N "(cached) $ECHO_C" >&6
30871else
30872 cat >conftest.$ac_ext <<_ACEOF
30873/* confdefs.h. */
30874_ACEOF
30875cat confdefs.h >>conftest.$ac_ext
30876cat >>conftest.$ac_ext <<_ACEOF
30877/* end confdefs.h. */
30878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30880#define $ac_func innocuous_$ac_func
30881
30882/* System header to define __stub macros and hopefully few prototypes,
30883 which can conflict with char $ac_func (); below.
30884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30885 <limits.h> exists even on freestanding compilers. */
30886
30887#ifdef __STDC__
30888# include <limits.h>
30889#else
30890# include <assert.h>
30891#endif
30892
30893#undef $ac_func
30894
30895/* Override any GCC internal prototype to avoid an error.
30896 Use char because int might match the return type of a GCC
30897 builtin and then its argument prototype would still apply. */
30898#ifdef __cplusplus
30899extern "C"
30900#endif
30901char $ac_func ();
30902/* The GNU C library defines this for functions which it implements
30903 to always fail with ENOSYS. Some functions are actually named
30904 something starting with __ and the normal name is an alias. */
30905#if defined __stub_$ac_func || defined __stub___$ac_func
30906choke me
30907#endif
30908
30909int
30910main ()
30911{
30912return $ac_func ();
30913 ;
30914 return 0;
30915}
30916_ACEOF
30917rm -f conftest.$ac_objext conftest$ac_exeext
30918if { (ac_try="$ac_link"
30919case "(($ac_try" in
30920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30921 *) ac_try_echo=$ac_try;;
30922esac
30923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30924 (eval "$ac_link") 2>conftest.er1
30925 ac_status=$?
30926 grep -v '^ *+' conftest.er1 >conftest.err
30927 rm -f conftest.er1
30928 cat conftest.err >&5
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030930 (exit $ac_status); } &&
30931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30932 { (case "(($ac_try" in
30933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30934 *) ac_try_echo=$ac_try;;
30935esac
30936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30937 (eval "$ac_try") 2>&5
30938 ac_status=$?
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); }; } &&
30941 { ac_try='test -s conftest$ac_exeext'
30942 { (case "(($ac_try" in
30943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944 *) ac_try_echo=$ac_try;;
30945esac
30946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947 (eval "$ac_try") 2>&5
30948 ac_status=$?
30949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030951 eval "$as_ac_var=yes"
30952else
30953 echo "$as_me: failed program was:" >&5
30954sed 's/^/| /' conftest.$ac_ext >&5
30955
30956 eval "$as_ac_var=no"
30957fi
30958
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000030959rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030960 conftest$ac_exeext conftest.$ac_ext
30961fi
30962ac_res=`eval echo '${'$as_ac_var'}'`
30963 { echo "$as_me:$LINENO: result: $ac_res" >&5
30964echo "${ECHO_T}$ac_res" >&6; }
30965if test `eval echo '${'$as_ac_var'}'` = yes; then
30966 cat >>confdefs.h <<_ACEOF
30967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30968_ACEOF
30969
30970fi
30971done
30972
30973
30974
30975
30976for ac_func in isatty mkdtemp mkstemp
30977do
30978as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30979{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30980echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30981if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30982 echo $ECHO_N "(cached) $ECHO_C" >&6
30983else
30984 cat >conftest.$ac_ext <<_ACEOF
30985/* confdefs.h. */
30986_ACEOF
30987cat confdefs.h >>conftest.$ac_ext
30988cat >>conftest.$ac_ext <<_ACEOF
30989/* end confdefs.h. */
30990/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30992#define $ac_func innocuous_$ac_func
30993
30994/* System header to define __stub macros and hopefully few prototypes,
30995 which can conflict with char $ac_func (); below.
30996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30997 <limits.h> exists even on freestanding compilers. */
30998
30999#ifdef __STDC__
31000# include <limits.h>
31001#else
31002# include <assert.h>
31003#endif
31004
31005#undef $ac_func
31006
31007/* Override any GCC internal prototype to avoid an error.
31008 Use char because int might match the return type of a GCC
31009 builtin and then its argument prototype would still apply. */
31010#ifdef __cplusplus
31011extern "C"
31012#endif
31013char $ac_func ();
31014/* The GNU C library defines this for functions which it implements
31015 to always fail with ENOSYS. Some functions are actually named
31016 something starting with __ and the normal name is an alias. */
31017#if defined __stub_$ac_func || defined __stub___$ac_func
31018choke me
31019#endif
31020
31021int
31022main ()
31023{
31024return $ac_func ();
31025 ;
31026 return 0;
31027}
31028_ACEOF
31029rm -f conftest.$ac_objext conftest$ac_exeext
31030if { (ac_try="$ac_link"
31031case "(($ac_try" in
31032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31033 *) ac_try_echo=$ac_try;;
31034esac
31035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31036 (eval "$ac_link") 2>conftest.er1
31037 ac_status=$?
31038 grep -v '^ *+' conftest.er1 >conftest.err
31039 rm -f conftest.er1
31040 cat conftest.err >&5
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031042 (exit $ac_status); } &&
31043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31044 { (case "(($ac_try" in
31045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046 *) ac_try_echo=$ac_try;;
31047esac
31048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31049 (eval "$ac_try") 2>&5
31050 ac_status=$?
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); }; } &&
31053 { ac_try='test -s conftest$ac_exeext'
31054 { (case "(($ac_try" in
31055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056 *) ac_try_echo=$ac_try;;
31057esac
31058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31059 (eval "$ac_try") 2>&5
31060 ac_status=$?
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031063 eval "$as_ac_var=yes"
31064else
31065 echo "$as_me: failed program was:" >&5
31066sed 's/^/| /' conftest.$ac_ext >&5
31067
31068 eval "$as_ac_var=no"
31069fi
31070
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031071rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031072 conftest$ac_exeext conftest.$ac_ext
31073fi
31074ac_res=`eval echo '${'$as_ac_var'}'`
31075 { echo "$as_me:$LINENO: result: $ac_res" >&5
31076echo "${ECHO_T}$ac_res" >&6; }
31077if test `eval echo '${'$as_ac_var'}'` = yes; then
31078 cat >>confdefs.h <<_ACEOF
31079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31080_ACEOF
31081
31082fi
31083done
31084
31085
31086
31087
31088
31089
31090
31091
31092for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
31093do
31094as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31095{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31097if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31098 echo $ECHO_N "(cached) $ECHO_C" >&6
31099else
31100 cat >conftest.$ac_ext <<_ACEOF
31101/* confdefs.h. */
31102_ACEOF
31103cat confdefs.h >>conftest.$ac_ext
31104cat >>conftest.$ac_ext <<_ACEOF
31105/* end confdefs.h. */
31106/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31108#define $ac_func innocuous_$ac_func
31109
31110/* System header to define __stub macros and hopefully few prototypes,
31111 which can conflict with char $ac_func (); below.
31112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31113 <limits.h> exists even on freestanding compilers. */
31114
31115#ifdef __STDC__
31116# include <limits.h>
31117#else
31118# include <assert.h>
31119#endif
31120
31121#undef $ac_func
31122
31123/* Override any GCC internal prototype to avoid an error.
31124 Use char because int might match the return type of a GCC
31125 builtin and then its argument prototype would still apply. */
31126#ifdef __cplusplus
31127extern "C"
31128#endif
31129char $ac_func ();
31130/* The GNU C library defines this for functions which it implements
31131 to always fail with ENOSYS. Some functions are actually named
31132 something starting with __ and the normal name is an alias. */
31133#if defined __stub_$ac_func || defined __stub___$ac_func
31134choke me
31135#endif
31136
31137int
31138main ()
31139{
31140return $ac_func ();
31141 ;
31142 return 0;
31143}
31144_ACEOF
31145rm -f conftest.$ac_objext conftest$ac_exeext
31146if { (ac_try="$ac_link"
31147case "(($ac_try" in
31148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149 *) ac_try_echo=$ac_try;;
31150esac
31151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152 (eval "$ac_link") 2>conftest.er1
31153 ac_status=$?
31154 grep -v '^ *+' conftest.er1 >conftest.err
31155 rm -f conftest.er1
31156 cat conftest.err >&5
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031158 (exit $ac_status); } &&
31159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31160 { (case "(($ac_try" in
31161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162 *) ac_try_echo=$ac_try;;
31163esac
31164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165 (eval "$ac_try") 2>&5
31166 ac_status=$?
31167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168 (exit $ac_status); }; } &&
31169 { ac_try='test -s conftest$ac_exeext'
31170 { (case "(($ac_try" in
31171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31172 *) ac_try_echo=$ac_try;;
31173esac
31174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31175 (eval "$ac_try") 2>&5
31176 ac_status=$?
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031179 eval "$as_ac_var=yes"
31180else
31181 echo "$as_me: failed program was:" >&5
31182sed 's/^/| /' conftest.$ac_ext >&5
31183
31184 eval "$as_ac_var=no"
31185fi
31186
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031187rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031188 conftest$ac_exeext conftest.$ac_ext
31189fi
31190ac_res=`eval echo '${'$as_ac_var'}'`
31191 { echo "$as_me:$LINENO: result: $ac_res" >&5
31192echo "${ECHO_T}$ac_res" >&6; }
31193if test `eval echo '${'$as_ac_var'}'` = yes; then
31194 cat >>confdefs.h <<_ACEOF
31195#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31196_ACEOF
31197
31198fi
31199done
31200
31201
31202
31203
31204
31205for ac_func in strtoll strtoq sysconf malloc_zone_statistics
31206do
31207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31208{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31210if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31211 echo $ECHO_N "(cached) $ECHO_C" >&6
31212else
31213 cat >conftest.$ac_ext <<_ACEOF
31214/* confdefs.h. */
31215_ACEOF
31216cat confdefs.h >>conftest.$ac_ext
31217cat >>conftest.$ac_ext <<_ACEOF
31218/* end confdefs.h. */
31219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31221#define $ac_func innocuous_$ac_func
31222
31223/* System header to define __stub macros and hopefully few prototypes,
31224 which can conflict with char $ac_func (); below.
31225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31226 <limits.h> exists even on freestanding compilers. */
31227
31228#ifdef __STDC__
31229# include <limits.h>
31230#else
31231# include <assert.h>
31232#endif
31233
31234#undef $ac_func
31235
31236/* Override any GCC internal prototype to avoid an error.
31237 Use char because int might match the return type of a GCC
31238 builtin and then its argument prototype would still apply. */
31239#ifdef __cplusplus
31240extern "C"
31241#endif
31242char $ac_func ();
31243/* The GNU C library defines this for functions which it implements
31244 to always fail with ENOSYS. Some functions are actually named
31245 something starting with __ and the normal name is an alias. */
31246#if defined __stub_$ac_func || defined __stub___$ac_func
31247choke me
31248#endif
31249
31250int
31251main ()
31252{
31253return $ac_func ();
31254 ;
31255 return 0;
31256}
31257_ACEOF
31258rm -f conftest.$ac_objext conftest$ac_exeext
31259if { (ac_try="$ac_link"
31260case "(($ac_try" in
31261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31262 *) ac_try_echo=$ac_try;;
31263esac
31264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31265 (eval "$ac_link") 2>conftest.er1
31266 ac_status=$?
31267 grep -v '^ *+' conftest.er1 >conftest.err
31268 rm -f conftest.er1
31269 cat conftest.err >&5
31270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031271 (exit $ac_status); } &&
31272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31273 { (case "(($ac_try" in
31274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31275 *) ac_try_echo=$ac_try;;
31276esac
31277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31278 (eval "$ac_try") 2>&5
31279 ac_status=$?
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 (exit $ac_status); }; } &&
31282 { ac_try='test -s conftest$ac_exeext'
31283 { (case "(($ac_try" in
31284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31285 *) ac_try_echo=$ac_try;;
31286esac
31287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31288 (eval "$ac_try") 2>&5
31289 ac_status=$?
31290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031292 eval "$as_ac_var=yes"
31293else
31294 echo "$as_me: failed program was:" >&5
31295sed 's/^/| /' conftest.$ac_ext >&5
31296
31297 eval "$as_ac_var=no"
31298fi
31299
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031300rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031301 conftest$ac_exeext conftest.$ac_ext
31302fi
31303ac_res=`eval echo '${'$as_ac_var'}'`
31304 { echo "$as_me:$LINENO: result: $ac_res" >&5
31305echo "${ECHO_T}$ac_res" >&6; }
31306if test `eval echo '${'$as_ac_var'}'` = yes; then
31307 cat >>confdefs.h <<_ACEOF
31308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31309_ACEOF
31310
31311fi
31312done
31313
31314
31315
31316
31317
31318for ac_func in setjmp longjmp sigsetjmp siglongjmp
31319do
31320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31321{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31323if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31324 echo $ECHO_N "(cached) $ECHO_C" >&6
31325else
31326 cat >conftest.$ac_ext <<_ACEOF
31327/* confdefs.h. */
31328_ACEOF
31329cat confdefs.h >>conftest.$ac_ext
31330cat >>conftest.$ac_ext <<_ACEOF
31331/* end confdefs.h. */
31332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31334#define $ac_func innocuous_$ac_func
31335
31336/* System header to define __stub macros and hopefully few prototypes,
31337 which can conflict with char $ac_func (); below.
31338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31339 <limits.h> exists even on freestanding compilers. */
31340
31341#ifdef __STDC__
31342# include <limits.h>
31343#else
31344# include <assert.h>
31345#endif
31346
31347#undef $ac_func
31348
31349/* Override any GCC internal prototype to avoid an error.
31350 Use char because int might match the return type of a GCC
31351 builtin and then its argument prototype would still apply. */
31352#ifdef __cplusplus
31353extern "C"
31354#endif
31355char $ac_func ();
31356/* The GNU C library defines this for functions which it implements
31357 to always fail with ENOSYS. Some functions are actually named
31358 something starting with __ and the normal name is an alias. */
31359#if defined __stub_$ac_func || defined __stub___$ac_func
31360choke me
31361#endif
31362
31363int
31364main ()
31365{
31366return $ac_func ();
31367 ;
31368 return 0;
31369}
31370_ACEOF
31371rm -f conftest.$ac_objext conftest$ac_exeext
31372if { (ac_try="$ac_link"
31373case "(($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_link") 2>conftest.er1
31379 ac_status=$?
31380 grep -v '^ *+' conftest.er1 >conftest.err
31381 rm -f conftest.er1
31382 cat conftest.err >&5
31383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031384 (exit $ac_status); } &&
31385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31386 { (case "(($ac_try" in
31387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31388 *) ac_try_echo=$ac_try;;
31389esac
31390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31391 (eval "$ac_try") 2>&5
31392 ac_status=$?
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); }; } &&
31395 { ac_try='test -s conftest$ac_exeext'
31396 { (case "(($ac_try" in
31397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398 *) ac_try_echo=$ac_try;;
31399esac
31400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401 (eval "$ac_try") 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031405 eval "$as_ac_var=yes"
31406else
31407 echo "$as_me: failed program was:" >&5
31408sed 's/^/| /' conftest.$ac_ext >&5
31409
31410 eval "$as_ac_var=no"
31411fi
31412
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031413rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031414 conftest$ac_exeext conftest.$ac_ext
31415fi
31416ac_res=`eval echo '${'$as_ac_var'}'`
31417 { echo "$as_me:$LINENO: result: $ac_res" >&5
31418echo "${ECHO_T}$ac_res" >&6; }
31419if test `eval echo '${'$as_ac_var'}'` = yes; then
31420 cat >>confdefs.h <<_ACEOF
31421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31422_ACEOF
31423
31424fi
31425done
31426
31427{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31428echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
31429if test "${llvm_cv_c_printf_a+set}" = set; then
31430 echo $ECHO_N "(cached) $ECHO_C" >&6
31431else
31432 ac_ext=c
31433ac_cpp='$CPP $CPPFLAGS'
31434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31436ac_compiler_gnu=$ac_cv_c_compiler_gnu
31437
31438 if test "$cross_compiling" = yes; then
31439 llvmac_cv_c_printf_a=no
31440else
31441 cat >conftest.$ac_ext <<_ACEOF
31442
31443 /* confdefs.h. */
31444_ACEOF
31445cat confdefs.h >>conftest.$ac_ext
31446cat >>conftest.$ac_ext <<_ACEOF
31447/* end confdefs.h. */
31448
31449#include <stdio.h>
31450#include <stdlib.h>
31451
31452int
31453main ()
31454{
31455
31456volatile double A, B;
31457char Buffer[100];
31458A = 1;
31459A /= 10.0;
31460sprintf(Buffer, "%a", A);
31461B = atof(Buffer);
31462if (A != B)
31463 return (1);
31464if (A != 0x1.999999999999ap-4)
31465 return (1);
31466return (0);
31467 ;
31468 return 0;
31469}
31470_ACEOF
31471rm -f conftest$ac_exeext
31472if { (ac_try="$ac_link"
31473case "(($ac_try" in
31474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31475 *) ac_try_echo=$ac_try;;
31476esac
31477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31478 (eval "$ac_link") 2>&5
31479 ac_status=$?
31480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31482 { (case "(($ac_try" in
31483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484 *) ac_try_echo=$ac_try;;
31485esac
31486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487 (eval "$ac_try") 2>&5
31488 ac_status=$?
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; }; then
31491 llvm_cv_c_printf_a=yes
31492else
31493 echo "$as_me: program exited with status $ac_status" >&5
31494echo "$as_me: failed program was:" >&5
31495sed 's/^/| /' conftest.$ac_ext >&5
31496
31497( exit $ac_status )
31498llvmac_cv_c_printf_a=no
31499fi
31500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31501fi
31502
31503
31504 ac_ext=c
31505ac_cpp='$CPP $CPPFLAGS'
31506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31508ac_compiler_gnu=$ac_cv_c_compiler_gnu
31509
31510fi
31511{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31512echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
31513 if test "$llvm_cv_c_printf_a" = "yes"; then
31514
31515cat >>confdefs.h <<\_ACEOF
31516#define HAVE_PRINTF_A 1
31517_ACEOF
31518
31519 fi
31520
31521# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31522# for constant arguments. Useless!
31523{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31524echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31525if test "${ac_cv_working_alloca_h+set}" = set; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31527else
31528 cat >conftest.$ac_ext <<_ACEOF
31529/* confdefs.h. */
31530_ACEOF
31531cat confdefs.h >>conftest.$ac_ext
31532cat >>conftest.$ac_ext <<_ACEOF
31533/* end confdefs.h. */
31534#include <alloca.h>
31535int
31536main ()
31537{
31538char *p = (char *) alloca (2 * sizeof (int));
31539 if (p) return 0;
31540 ;
31541 return 0;
31542}
31543_ACEOF
31544rm -f conftest.$ac_objext conftest$ac_exeext
31545if { (ac_try="$ac_link"
31546case "(($ac_try" in
31547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31548 *) ac_try_echo=$ac_try;;
31549esac
31550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31551 (eval "$ac_link") 2>conftest.er1
31552 ac_status=$?
31553 grep -v '^ *+' conftest.er1 >conftest.err
31554 rm -f conftest.er1
31555 cat conftest.err >&5
31556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031557 (exit $ac_status); } &&
31558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31559 { (case "(($ac_try" in
31560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31561 *) ac_try_echo=$ac_try;;
31562esac
31563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31564 (eval "$ac_try") 2>&5
31565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; } &&
31568 { ac_try='test -s conftest$ac_exeext'
31569 { (case "(($ac_try" in
31570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571 *) ac_try_echo=$ac_try;;
31572esac
31573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574 (eval "$ac_try") 2>&5
31575 ac_status=$?
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031578 ac_cv_working_alloca_h=yes
31579else
31580 echo "$as_me: failed program was:" >&5
31581sed 's/^/| /' conftest.$ac_ext >&5
31582
31583 ac_cv_working_alloca_h=no
31584fi
31585
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031586rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031587 conftest$ac_exeext conftest.$ac_ext
31588fi
31589{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31590echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31591if test $ac_cv_working_alloca_h = yes; then
31592
31593cat >>confdefs.h <<\_ACEOF
31594#define HAVE_ALLOCA_H 1
31595_ACEOF
31596
31597fi
31598
31599{ echo "$as_me:$LINENO: checking for alloca" >&5
31600echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31601if test "${ac_cv_func_alloca_works+set}" = set; then
31602 echo $ECHO_N "(cached) $ECHO_C" >&6
31603else
31604 cat >conftest.$ac_ext <<_ACEOF
31605/* confdefs.h. */
31606_ACEOF
31607cat confdefs.h >>conftest.$ac_ext
31608cat >>conftest.$ac_ext <<_ACEOF
31609/* end confdefs.h. */
31610#ifdef __GNUC__
31611# define alloca __builtin_alloca
31612#else
31613# ifdef _MSC_VER
31614# include <malloc.h>
31615# define alloca _alloca
31616# else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031617# if HAVE_ALLOCA_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031618# include <alloca.h>
31619# else
31620# ifdef _AIX
31621 #pragma alloca
31622# else
31623# ifndef alloca /* predefined by HP cc +Olibcalls */
31624char *alloca ();
31625# endif
31626# endif
31627# endif
31628# endif
31629#endif
31630
31631int
31632main ()
31633{
31634char *p = (char *) alloca (1);
31635 if (p) return 0;
31636 ;
31637 return 0;
31638}
31639_ACEOF
31640rm -f conftest.$ac_objext conftest$ac_exeext
31641if { (ac_try="$ac_link"
31642case "(($ac_try" in
31643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644 *) ac_try_echo=$ac_try;;
31645esac
31646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647 (eval "$ac_link") 2>conftest.er1
31648 ac_status=$?
31649 grep -v '^ *+' conftest.er1 >conftest.err
31650 rm -f conftest.er1
31651 cat conftest.err >&5
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031653 (exit $ac_status); } &&
31654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31655 { (case "(($ac_try" in
31656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31657 *) ac_try_echo=$ac_try;;
31658esac
31659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31660 (eval "$ac_try") 2>&5
31661 ac_status=$?
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); }; } &&
31664 { ac_try='test -s conftest$ac_exeext'
31665 { (case "(($ac_try" in
31666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31667 *) ac_try_echo=$ac_try;;
31668esac
31669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31670 (eval "$ac_try") 2>&5
31671 ac_status=$?
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031674 ac_cv_func_alloca_works=yes
31675else
31676 echo "$as_me: failed program was:" >&5
31677sed 's/^/| /' conftest.$ac_ext >&5
31678
31679 ac_cv_func_alloca_works=no
31680fi
31681
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031682rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031683 conftest$ac_exeext conftest.$ac_ext
31684fi
31685{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31686echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31687
31688if test $ac_cv_func_alloca_works = yes; then
31689
31690cat >>confdefs.h <<\_ACEOF
31691#define HAVE_ALLOCA 1
31692_ACEOF
31693
31694else
31695 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31696# that cause trouble. Some versions do not even contain alloca or
31697# contain a buggy version. If you still want to use their alloca,
31698# use ar to extract alloca.o from them instead of compiling alloca.c.
31699
31700ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31701
31702cat >>confdefs.h <<\_ACEOF
31703#define C_ALLOCA 1
31704_ACEOF
31705
31706
31707{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31708echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31709if test "${ac_cv_os_cray+set}" = set; then
31710 echo $ECHO_N "(cached) $ECHO_C" >&6
31711else
31712 cat >conftest.$ac_ext <<_ACEOF
31713/* confdefs.h. */
31714_ACEOF
31715cat confdefs.h >>conftest.$ac_ext
31716cat >>conftest.$ac_ext <<_ACEOF
31717/* end confdefs.h. */
31718#if defined CRAY && ! defined CRAY2
31719webecray
31720#else
31721wenotbecray
31722#endif
31723
31724_ACEOF
31725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31726 $EGREP "webecray" >/dev/null 2>&1; then
31727 ac_cv_os_cray=yes
31728else
31729 ac_cv_os_cray=no
31730fi
31731rm -f conftest*
31732
31733fi
31734{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31735echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31736if test $ac_cv_os_cray = yes; then
31737 for ac_func in _getb67 GETB67 getb67; do
31738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31739{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31741if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31742 echo $ECHO_N "(cached) $ECHO_C" >&6
31743else
31744 cat >conftest.$ac_ext <<_ACEOF
31745/* confdefs.h. */
31746_ACEOF
31747cat confdefs.h >>conftest.$ac_ext
31748cat >>conftest.$ac_ext <<_ACEOF
31749/* end confdefs.h. */
31750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31752#define $ac_func innocuous_$ac_func
31753
31754/* System header to define __stub macros and hopefully few prototypes,
31755 which can conflict with char $ac_func (); below.
31756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31757 <limits.h> exists even on freestanding compilers. */
31758
31759#ifdef __STDC__
31760# include <limits.h>
31761#else
31762# include <assert.h>
31763#endif
31764
31765#undef $ac_func
31766
31767/* Override any GCC internal prototype to avoid an error.
31768 Use char because int might match the return type of a GCC
31769 builtin and then its argument prototype would still apply. */
31770#ifdef __cplusplus
31771extern "C"
31772#endif
31773char $ac_func ();
31774/* The GNU C library defines this for functions which it implements
31775 to always fail with ENOSYS. Some functions are actually named
31776 something starting with __ and the normal name is an alias. */
31777#if defined __stub_$ac_func || defined __stub___$ac_func
31778choke me
31779#endif
31780
31781int
31782main ()
31783{
31784return $ac_func ();
31785 ;
31786 return 0;
31787}
31788_ACEOF
31789rm -f conftest.$ac_objext conftest$ac_exeext
31790if { (ac_try="$ac_link"
31791case "(($ac_try" in
31792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793 *) ac_try_echo=$ac_try;;
31794esac
31795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796 (eval "$ac_link") 2>conftest.er1
31797 ac_status=$?
31798 grep -v '^ *+' conftest.er1 >conftest.err
31799 rm -f conftest.er1
31800 cat conftest.err >&5
31801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031802 (exit $ac_status); } &&
31803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31804 { (case "(($ac_try" in
31805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31806 *) ac_try_echo=$ac_try;;
31807esac
31808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31809 (eval "$ac_try") 2>&5
31810 ac_status=$?
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); }; } &&
31813 { ac_try='test -s conftest$ac_exeext'
31814 { (case "(($ac_try" in
31815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31817esac
31818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_try") 2>&5
31820 ac_status=$?
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031823 eval "$as_ac_var=yes"
31824else
31825 echo "$as_me: failed program was:" >&5
31826sed 's/^/| /' conftest.$ac_ext >&5
31827
31828 eval "$as_ac_var=no"
31829fi
31830
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031831rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031832 conftest$ac_exeext conftest.$ac_ext
31833fi
31834ac_res=`eval echo '${'$as_ac_var'}'`
31835 { echo "$as_me:$LINENO: result: $ac_res" >&5
31836echo "${ECHO_T}$ac_res" >&6; }
31837if test `eval echo '${'$as_ac_var'}'` = yes; then
31838
31839cat >>confdefs.h <<_ACEOF
31840#define CRAY_STACKSEG_END $ac_func
31841_ACEOF
31842
31843 break
31844fi
31845
31846 done
31847fi
31848
31849{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31850echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31851if test "${ac_cv_c_stack_direction+set}" = set; then
31852 echo $ECHO_N "(cached) $ECHO_C" >&6
31853else
31854 if test "$cross_compiling" = yes; then
31855 ac_cv_c_stack_direction=0
31856else
31857 cat >conftest.$ac_ext <<_ACEOF
31858/* confdefs.h. */
31859_ACEOF
31860cat confdefs.h >>conftest.$ac_ext
31861cat >>conftest.$ac_ext <<_ACEOF
31862/* end confdefs.h. */
31863$ac_includes_default
31864int
31865find_stack_direction ()
31866{
31867 static char *addr = 0;
31868 auto char dummy;
31869 if (addr == 0)
31870 {
31871 addr = &dummy;
31872 return find_stack_direction ();
31873 }
31874 else
31875 return (&dummy > addr) ? 1 : -1;
31876}
31877
31878int
31879main ()
31880{
31881 return find_stack_direction () < 0;
31882}
31883_ACEOF
31884rm -f conftest$ac_exeext
31885if { (ac_try="$ac_link"
31886case "(($ac_try" in
31887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888 *) ac_try_echo=$ac_try;;
31889esac
31890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891 (eval "$ac_link") 2>&5
31892 ac_status=$?
31893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31895 { (case "(($ac_try" in
31896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897 *) ac_try_echo=$ac_try;;
31898esac
31899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900 (eval "$ac_try") 2>&5
31901 ac_status=$?
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); }; }; then
31904 ac_cv_c_stack_direction=1
31905else
31906 echo "$as_me: program exited with status $ac_status" >&5
31907echo "$as_me: failed program was:" >&5
31908sed 's/^/| /' conftest.$ac_ext >&5
31909
31910( exit $ac_status )
31911ac_cv_c_stack_direction=-1
31912fi
31913rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31914fi
31915
31916
31917fi
31918{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31919echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31920
31921cat >>confdefs.h <<_ACEOF
31922#define STACK_DIRECTION $ac_cv_c_stack_direction
31923_ACEOF
31924
31925
31926fi
31927
31928
31929{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31930echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31931if test "${ac_cv_func_rand48+set}" = set; then
31932 echo $ECHO_N "(cached) $ECHO_C" >&6
31933else
31934 ac_ext=cpp
31935ac_cpp='$CXXCPP $CPPFLAGS'
31936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31939
31940 cat >conftest.$ac_ext <<_ACEOF
31941/* confdefs.h. */
31942_ACEOF
31943cat confdefs.h >>conftest.$ac_ext
31944cat >>conftest.$ac_ext <<_ACEOF
31945/* end confdefs.h. */
31946#include <stdlib.h>
31947int
31948main ()
31949{
31950srand48(0);lrand48();drand48();
31951 ;
31952 return 0;
31953}
31954_ACEOF
31955rm -f conftest.$ac_objext
31956if { (ac_try="$ac_compile"
31957case "(($ac_try" in
31958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31959 *) ac_try_echo=$ac_try;;
31960esac
31961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31962 (eval "$ac_compile") 2>conftest.er1
31963 ac_status=$?
31964 grep -v '^ *+' conftest.er1 >conftest.err
31965 rm -f conftest.er1
31966 cat conftest.err >&5
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000031968 (exit $ac_status); } &&
31969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31970 { (case "(($ac_try" in
31971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31972 *) ac_try_echo=$ac_try;;
31973esac
31974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31975 (eval "$ac_try") 2>&5
31976 ac_status=$?
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; } &&
31979 { ac_try='test -s conftest.$ac_objext'
31980 { (case "(($ac_try" in
31981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982 *) ac_try_echo=$ac_try;;
31983esac
31984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985 (eval "$ac_try") 2>&5
31986 ac_status=$?
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031989 ac_cv_func_rand48=yes
31990else
31991 echo "$as_me: failed program was:" >&5
31992sed 's/^/| /' conftest.$ac_ext >&5
31993
31994 ac_cv_func_rand48=no
31995fi
31996
31997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31998 ac_ext=c
31999ac_cpp='$CPP $CPPFLAGS'
32000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32002ac_compiler_gnu=$ac_cv_c_compiler_gnu
32003
32004fi
32005{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32006echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
32007
32008if test "$ac_cv_func_rand48" = "yes" ; then
32009
32010cat >>confdefs.h <<\_ACEOF
32011#define HAVE_RAND48 1
32012_ACEOF
32013
32014fi
32015
32016
32017{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32018echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
32019if test "${ac_cv_cxx_namespaces+set}" = set; then
32020 echo $ECHO_N "(cached) $ECHO_C" >&6
32021else
32022 ac_ext=cpp
32023ac_cpp='$CXXCPP $CPPFLAGS'
32024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32027
32028 cat >conftest.$ac_ext <<_ACEOF
32029/* confdefs.h. */
32030_ACEOF
32031cat confdefs.h >>conftest.$ac_ext
32032cat >>conftest.$ac_ext <<_ACEOF
32033/* end confdefs.h. */
32034namespace Outer { namespace Inner { int i = 0; }}
32035int
32036main ()
32037{
32038using namespace Outer::Inner; return i;
32039 ;
32040 return 0;
32041}
32042_ACEOF
32043rm -f conftest.$ac_objext
32044if { (ac_try="$ac_compile"
32045case "(($ac_try" in
32046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32047 *) ac_try_echo=$ac_try;;
32048esac
32049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32050 (eval "$ac_compile") 2>conftest.er1
32051 ac_status=$?
32052 grep -v '^ *+' conftest.er1 >conftest.err
32053 rm -f conftest.er1
32054 cat conftest.err >&5
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032056 (exit $ac_status); } &&
32057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32058 { (case "(($ac_try" in
32059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32060 *) ac_try_echo=$ac_try;;
32061esac
32062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32063 (eval "$ac_try") 2>&5
32064 ac_status=$?
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); }; } &&
32067 { ac_try='test -s conftest.$ac_objext'
32068 { (case "(($ac_try" in
32069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070 *) ac_try_echo=$ac_try;;
32071esac
32072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073 (eval "$ac_try") 2>&5
32074 ac_status=$?
32075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032077 ac_cv_cxx_namespaces=yes
32078else
32079 echo "$as_me: failed program was:" >&5
32080sed 's/^/| /' conftest.$ac_ext >&5
32081
32082 ac_cv_cxx_namespaces=no
32083fi
32084
32085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32086 ac_ext=c
32087ac_cpp='$CPP $CPPFLAGS'
32088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32090ac_compiler_gnu=$ac_cv_c_compiler_gnu
32091
32092
32093fi
32094{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32095echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
32096if test "$ac_cv_cxx_namespaces" = yes; then
32097
32098cat >>confdefs.h <<\_ACEOF
32099#define HAVE_NAMESPACES
32100_ACEOF
32101
32102fi
32103
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032104{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32105echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
32106if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32107 echo $ECHO_N "(cached) $ECHO_C" >&6
32108else
32109
32110 ac_ext=cpp
32111ac_cpp='$CXXCPP $CPPFLAGS'
32112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32115
32116 cat >conftest.$ac_ext <<_ACEOF
32117/* confdefs.h. */
32118_ACEOF
32119cat confdefs.h >>conftest.$ac_ext
32120cat >>conftest.$ac_ext <<_ACEOF
32121/* end confdefs.h. */
32122#include <iterator>
32123#ifdef HAVE_NAMESPACES
32124using namespace std;
32125#endif
32126int
32127main ()
32128{
32129iterator<int,int,int> t; return 0;
32130 ;
32131 return 0;
32132}
32133_ACEOF
32134rm -f conftest.$ac_objext
32135if { (ac_try="$ac_compile"
32136case "(($ac_try" in
32137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32138 *) ac_try_echo=$ac_try;;
32139esac
32140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32141 (eval "$ac_compile") 2>conftest.er1
32142 ac_status=$?
32143 grep -v '^ *+' conftest.er1 >conftest.err
32144 rm -f conftest.er1
32145 cat conftest.err >&5
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032147 (exit $ac_status); } &&
32148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32149 { (case "(($ac_try" in
32150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151 *) ac_try_echo=$ac_try;;
32152esac
32153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154 (eval "$ac_try") 2>&5
32155 ac_status=$?
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; } &&
32158 { ac_try='test -s conftest.$ac_objext'
32159 { (case "(($ac_try" in
32160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32161 *) ac_try_echo=$ac_try;;
32162esac
32163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32164 (eval "$ac_try") 2>&5
32165 ac_status=$?
32166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032168 ac_cv_cxx_have_std_iterator=yes
32169else
32170 echo "$as_me: failed program was:" >&5
32171sed 's/^/| /' conftest.$ac_ext >&5
32172
32173 ac_cv_cxx_have_std_iterator=no
32174fi
32175
32176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32177 ac_ext=c
32178ac_cpp='$CPP $CPPFLAGS'
32179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32181ac_compiler_gnu=$ac_cv_c_compiler_gnu
32182
32183
32184fi
32185{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32186echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32187if test "$ac_cv_cxx_have_std_iterator" = yes
32188then
32189
32190cat >>confdefs.h <<\_ACEOF
32191#define HAVE_STD_ITERATOR 1
32192_ACEOF
32193
32194else
32195
32196cat >>confdefs.h <<\_ACEOF
32197#define HAVE_STD_ITERATOR 0
32198_ACEOF
32199
32200fi
32201
32202{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32203echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32204if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32205 echo $ECHO_N "(cached) $ECHO_C" >&6
32206else
32207
32208 ac_ext=cpp
32209ac_cpp='$CXXCPP $CPPFLAGS'
32210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32213
32214 cat >conftest.$ac_ext <<_ACEOF
32215/* confdefs.h. */
32216_ACEOF
32217cat confdefs.h >>conftest.$ac_ext
32218cat >>conftest.$ac_ext <<_ACEOF
32219/* end confdefs.h. */
32220#include <iterator>
32221#ifdef HAVE_NAMESPACES
32222using namespace std;
32223#endif
32224int
32225main ()
32226{
32227bidirectional_iterator<int,int> t; return 0;
32228 ;
32229 return 0;
32230}
32231_ACEOF
32232rm -f conftest.$ac_objext
32233if { (ac_try="$ac_compile"
32234case "(($ac_try" in
32235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32236 *) ac_try_echo=$ac_try;;
32237esac
32238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32239 (eval "$ac_compile") 2>conftest.er1
32240 ac_status=$?
32241 grep -v '^ *+' conftest.er1 >conftest.err
32242 rm -f conftest.er1
32243 cat conftest.err >&5
32244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032245 (exit $ac_status); } &&
32246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32247 { (case "(($ac_try" in
32248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32249 *) ac_try_echo=$ac_try;;
32250esac
32251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32252 (eval "$ac_try") 2>&5
32253 ac_status=$?
32254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32255 (exit $ac_status); }; } &&
32256 { ac_try='test -s conftest.$ac_objext'
32257 { (case "(($ac_try" in
32258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32259 *) ac_try_echo=$ac_try;;
32260esac
32261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32262 (eval "$ac_try") 2>&5
32263 ac_status=$?
32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032266 ac_cv_cxx_have_bi_iterator=yes
32267else
32268 echo "$as_me: failed program was:" >&5
32269sed 's/^/| /' conftest.$ac_ext >&5
32270
32271 ac_cv_cxx_have_bi_iterator=no
32272fi
32273
32274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32275 ac_ext=c
32276ac_cpp='$CPP $CPPFLAGS'
32277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32279ac_compiler_gnu=$ac_cv_c_compiler_gnu
32280
32281
32282fi
32283{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32284echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32285if test "$ac_cv_cxx_have_bi_iterator" = yes
32286then
32287
32288cat >>confdefs.h <<\_ACEOF
32289#define HAVE_BI_ITERATOR 1
32290_ACEOF
32291
32292else
32293
32294cat >>confdefs.h <<\_ACEOF
32295#define HAVE_BI_ITERATOR 0
32296_ACEOF
32297
32298fi
32299
32300{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32301echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32302if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32303 echo $ECHO_N "(cached) $ECHO_C" >&6
32304else
32305
32306 ac_ext=cpp
32307ac_cpp='$CXXCPP $CPPFLAGS'
32308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32311
32312 cat >conftest.$ac_ext <<_ACEOF
32313/* confdefs.h. */
32314_ACEOF
32315cat confdefs.h >>conftest.$ac_ext
32316cat >>conftest.$ac_ext <<_ACEOF
32317/* end confdefs.h. */
32318#include <iterator>
32319#ifdef HAVE_NAMESPACES
32320using namespace std;
32321#endif
32322int
32323main ()
32324{
32325forward_iterator<int,int> t; return 0;
32326 ;
32327 return 0;
32328}
32329_ACEOF
32330rm -f conftest.$ac_objext
32331if { (ac_try="$ac_compile"
32332case "(($ac_try" in
32333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32334 *) ac_try_echo=$ac_try;;
32335esac
32336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32337 (eval "$ac_compile") 2>conftest.er1
32338 ac_status=$?
32339 grep -v '^ *+' conftest.er1 >conftest.err
32340 rm -f conftest.er1
32341 cat conftest.err >&5
32342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032343 (exit $ac_status); } &&
32344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32345 { (case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32348esac
32349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_try") 2>&5
32351 ac_status=$?
32352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353 (exit $ac_status); }; } &&
32354 { ac_try='test -s conftest.$ac_objext'
32355 { (case "(($ac_try" in
32356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32357 *) ac_try_echo=$ac_try;;
32358esac
32359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32360 (eval "$ac_try") 2>&5
32361 ac_status=$?
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032364 ac_cv_cxx_have_fwd_iterator=yes
32365else
32366 echo "$as_me: failed program was:" >&5
32367sed 's/^/| /' conftest.$ac_ext >&5
32368
32369 ac_cv_cxx_have_fwd_iterator=no
32370fi
32371
32372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32373 ac_ext=c
32374ac_cpp='$CPP $CPPFLAGS'
32375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32377ac_compiler_gnu=$ac_cv_c_compiler_gnu
32378
32379
32380fi
32381{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32382echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32383if test "$ac_cv_cxx_have_fwd_iterator" = yes
32384then
32385
32386cat >>confdefs.h <<\_ACEOF
32387#define HAVE_FWD_ITERATOR 1
32388_ACEOF
32389
32390else
32391
32392cat >>confdefs.h <<\_ACEOF
32393#define HAVE_FWD_ITERATOR 0
32394_ACEOF
32395
32396fi
32397
32398
32399{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32400echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32401if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32403else
32404 ac_ext=cpp
32405ac_cpp='$CXXCPP $CPPFLAGS'
32406ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32407ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32408ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32409
32410 cat >conftest.$ac_ext <<_ACEOF
32411/* confdefs.h. */
32412_ACEOF
32413cat confdefs.h >>conftest.$ac_ext
32414cat >>conftest.$ac_ext <<_ACEOF
32415/* end confdefs.h. */
32416#include <math.h>
32417int
32418main ()
32419{
32420float f; isnan(f);
32421 ;
32422 return 0;
32423}
32424_ACEOF
32425rm -f conftest.$ac_objext
32426if { (ac_try="$ac_compile"
32427case "(($ac_try" in
32428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32429 *) ac_try_echo=$ac_try;;
32430esac
32431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32432 (eval "$ac_compile") 2>conftest.er1
32433 ac_status=$?
32434 grep -v '^ *+' conftest.er1 >conftest.err
32435 rm -f conftest.er1
32436 cat conftest.err >&5
32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032438 (exit $ac_status); } &&
32439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32440 { (case "(($ac_try" in
32441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442 *) ac_try_echo=$ac_try;;
32443esac
32444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445 (eval "$ac_try") 2>&5
32446 ac_status=$?
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; } &&
32449 { ac_try='test -s conftest.$ac_objext'
32450 { (case "(($ac_try" in
32451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452 *) ac_try_echo=$ac_try;;
32453esac
32454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455 (eval "$ac_try") 2>&5
32456 ac_status=$?
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032459 ac_cv_func_isnan_in_math_h=yes
32460else
32461 echo "$as_me: failed program was:" >&5
32462sed 's/^/| /' conftest.$ac_ext >&5
32463
32464 ac_cv_func_isnan_in_math_h=no
32465fi
32466
32467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32468 ac_ext=c
32469ac_cpp='$CPP $CPPFLAGS'
32470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32472ac_compiler_gnu=$ac_cv_c_compiler_gnu
32473
32474fi
32475{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32476echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32477
32478
32479if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32480
32481cat >>confdefs.h <<\_ACEOF
32482#define HAVE_ISNAN_IN_MATH_H 1
32483_ACEOF
32484
32485fi
32486
32487{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32488echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32489if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32490 echo $ECHO_N "(cached) $ECHO_C" >&6
32491else
32492 ac_ext=cpp
32493ac_cpp='$CXXCPP $CPPFLAGS'
32494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32497
32498 cat >conftest.$ac_ext <<_ACEOF
32499/* confdefs.h. */
32500_ACEOF
32501cat confdefs.h >>conftest.$ac_ext
32502cat >>conftest.$ac_ext <<_ACEOF
32503/* end confdefs.h. */
32504#include <cmath>
32505int
32506main ()
32507{
32508float f; isnan(f);
32509 ;
32510 return 0;
32511}
32512_ACEOF
32513rm -f conftest.$ac_objext
32514if { (ac_try="$ac_compile"
32515case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32518esac
32519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_compile") 2>conftest.er1
32521 ac_status=$?
32522 grep -v '^ *+' conftest.er1 >conftest.err
32523 rm -f conftest.er1
32524 cat conftest.err >&5
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032526 (exit $ac_status); } &&
32527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32528 { (case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32531esac
32532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_try") 2>&5
32534 ac_status=$?
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; } &&
32537 { ac_try='test -s conftest.$ac_objext'
32538 { (case "(($ac_try" in
32539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540 *) ac_try_echo=$ac_try;;
32541esac
32542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543 (eval "$ac_try") 2>&5
32544 ac_status=$?
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032547 ac_cv_func_isnan_in_cmath=yes
32548else
32549 echo "$as_me: failed program was:" >&5
32550sed 's/^/| /' conftest.$ac_ext >&5
32551
32552 ac_cv_func_isnan_in_cmath=no
32553fi
32554
32555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32556 ac_ext=c
32557ac_cpp='$CPP $CPPFLAGS'
32558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560ac_compiler_gnu=$ac_cv_c_compiler_gnu
32561
32562fi
32563{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32564echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32565
32566if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32567
32568cat >>confdefs.h <<\_ACEOF
32569#define HAVE_ISNAN_IN_CMATH 1
32570_ACEOF
32571
32572fi
32573
32574{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32575echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32576if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32577 echo $ECHO_N "(cached) $ECHO_C" >&6
32578else
32579 ac_ext=cpp
32580ac_cpp='$CXXCPP $CPPFLAGS'
32581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32584
32585 cat >conftest.$ac_ext <<_ACEOF
32586/* confdefs.h. */
32587_ACEOF
32588cat confdefs.h >>conftest.$ac_ext
32589cat >>conftest.$ac_ext <<_ACEOF
32590/* end confdefs.h. */
32591#include <cmath>
32592int
32593main ()
32594{
32595float f; std::isnan(f);
32596 ;
32597 return 0;
32598}
32599_ACEOF
32600rm -f conftest.$ac_objext
32601if { (ac_try="$ac_compile"
32602case "(($ac_try" in
32603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32604 *) ac_try_echo=$ac_try;;
32605esac
32606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32607 (eval "$ac_compile") 2>conftest.er1
32608 ac_status=$?
32609 grep -v '^ *+' conftest.er1 >conftest.err
32610 rm -f conftest.er1
32611 cat conftest.err >&5
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032613 (exit $ac_status); } &&
32614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32618esac
32619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
32621 ac_status=$?
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; } &&
32624 { ac_try='test -s conftest.$ac_objext'
32625 { (case "(($ac_try" in
32626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32627 *) ac_try_echo=$ac_try;;
32628esac
32629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32630 (eval "$ac_try") 2>&5
32631 ac_status=$?
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032634 ac_cv_func_std_isnan_in_cmath=yes
32635else
32636 echo "$as_me: failed program was:" >&5
32637sed 's/^/| /' conftest.$ac_ext >&5
32638
32639 ac_cv_func_std_isnan_in_cmath=no
32640fi
32641
32642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32643 ac_ext=c
32644ac_cpp='$CPP $CPPFLAGS'
32645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32647ac_compiler_gnu=$ac_cv_c_compiler_gnu
32648
32649fi
32650{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32651echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32652
32653if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32654
32655cat >>confdefs.h <<\_ACEOF
32656#define HAVE_STD_ISNAN_IN_CMATH 1
32657_ACEOF
32658
32659fi
32660
32661
32662{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32663echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32664if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32665 echo $ECHO_N "(cached) $ECHO_C" >&6
32666else
32667 ac_ext=cpp
32668ac_cpp='$CXXCPP $CPPFLAGS'
32669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32672
32673 cat >conftest.$ac_ext <<_ACEOF
32674/* confdefs.h. */
32675_ACEOF
32676cat confdefs.h >>conftest.$ac_ext
32677cat >>conftest.$ac_ext <<_ACEOF
32678/* end confdefs.h. */
32679#include <math.h>
32680int
32681main ()
32682{
32683float f; isinf(f);
32684 ;
32685 return 0;
32686}
32687_ACEOF
32688rm -f conftest.$ac_objext
32689if { (ac_try="$ac_compile"
32690case "(($ac_try" in
32691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692 *) ac_try_echo=$ac_try;;
32693esac
32694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695 (eval "$ac_compile") 2>conftest.er1
32696 ac_status=$?
32697 grep -v '^ *+' conftest.er1 >conftest.err
32698 rm -f conftest.er1
32699 cat conftest.err >&5
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032701 (exit $ac_status); } &&
32702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32706esac
32707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; } &&
32712 { ac_try='test -s conftest.$ac_objext'
32713 { (case "(($ac_try" in
32714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32715 *) ac_try_echo=$ac_try;;
32716esac
32717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32718 (eval "$ac_try") 2>&5
32719 ac_status=$?
32720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032722 ac_cv_func_isinf_in_math_h=yes
32723else
32724 echo "$as_me: failed program was:" >&5
32725sed 's/^/| /' conftest.$ac_ext >&5
32726
32727 ac_cv_func_isinf_in_math_h=no
32728fi
32729
32730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32731 ac_ext=c
32732ac_cpp='$CPP $CPPFLAGS'
32733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32735ac_compiler_gnu=$ac_cv_c_compiler_gnu
32736
32737fi
32738{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32739echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32740
32741if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32742
32743cat >>confdefs.h <<\_ACEOF
32744#define HAVE_ISINF_IN_MATH_H 1
32745_ACEOF
32746
32747fi
32748
32749{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32750echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32751if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32752 echo $ECHO_N "(cached) $ECHO_C" >&6
32753else
32754 ac_ext=cpp
32755ac_cpp='$CXXCPP $CPPFLAGS'
32756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32759
32760 cat >conftest.$ac_ext <<_ACEOF
32761/* confdefs.h. */
32762_ACEOF
32763cat confdefs.h >>conftest.$ac_ext
32764cat >>conftest.$ac_ext <<_ACEOF
32765/* end confdefs.h. */
32766#include <cmath>
32767int
32768main ()
32769{
32770float f; isinf(f);
32771 ;
32772 return 0;
32773}
32774_ACEOF
32775rm -f conftest.$ac_objext
32776if { (ac_try="$ac_compile"
32777case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32780esac
32781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_compile") 2>conftest.er1
32783 ac_status=$?
32784 grep -v '^ *+' conftest.er1 >conftest.err
32785 rm -f conftest.er1
32786 cat conftest.err >&5
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032788 (exit $ac_status); } &&
32789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32793esac
32794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest.$ac_objext'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32803esac
32804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32806 ac_status=$?
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032809 ac_cv_func_isinf_in_cmath=yes
32810else
32811 echo "$as_me: failed program was:" >&5
32812sed 's/^/| /' conftest.$ac_ext >&5
32813
32814 ac_cv_func_isinf_in_cmath=no
32815fi
32816
32817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32818 ac_ext=c
32819ac_cpp='$CPP $CPPFLAGS'
32820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822ac_compiler_gnu=$ac_cv_c_compiler_gnu
32823
32824fi
32825{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32826echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32827
32828if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32829
32830cat >>confdefs.h <<\_ACEOF
32831#define HAVE_ISINF_IN_CMATH 1
32832_ACEOF
32833
32834fi
32835
32836{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32837echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32838if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32839 echo $ECHO_N "(cached) $ECHO_C" >&6
32840else
32841 ac_ext=cpp
32842ac_cpp='$CXXCPP $CPPFLAGS'
32843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32846
32847 cat >conftest.$ac_ext <<_ACEOF
32848/* confdefs.h. */
32849_ACEOF
32850cat confdefs.h >>conftest.$ac_ext
32851cat >>conftest.$ac_ext <<_ACEOF
32852/* end confdefs.h. */
32853#include <cmath>
32854int
32855main ()
32856{
32857float f; std::isinf(f)}
32858 ;
32859 return 0;
32860}
32861_ACEOF
32862rm -f conftest.$ac_objext
32863if { (ac_try="$ac_compile"
32864case "(($ac_try" in
32865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32866 *) ac_try_echo=$ac_try;;
32867esac
32868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32869 (eval "$ac_compile") 2>conftest.er1
32870 ac_status=$?
32871 grep -v '^ *+' conftest.er1 >conftest.err
32872 rm -f conftest.er1
32873 cat conftest.err >&5
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032875 (exit $ac_status); } &&
32876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32877 { (case "(($ac_try" in
32878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879 *) ac_try_echo=$ac_try;;
32880esac
32881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32882 (eval "$ac_try") 2>&5
32883 ac_status=$?
32884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885 (exit $ac_status); }; } &&
32886 { ac_try='test -s conftest.$ac_objext'
32887 { (case "(($ac_try" in
32888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32889 *) ac_try_echo=$ac_try;;
32890esac
32891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32892 (eval "$ac_try") 2>&5
32893 ac_status=$?
32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032896 ac_cv_func_std_isinf_in_cmath=yes
32897else
32898 echo "$as_me: failed program was:" >&5
32899sed 's/^/| /' conftest.$ac_ext >&5
32900
32901 ac_cv_func_std_isinf_in_cmath=no
32902fi
32903
32904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32905 ac_ext=c
32906ac_cpp='$CPP $CPPFLAGS'
32907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32909ac_compiler_gnu=$ac_cv_c_compiler_gnu
32910
32911fi
32912{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32913echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32914
32915if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32916
32917cat >>confdefs.h <<\_ACEOF
32918#define HAVE_STD_ISINF_IN_CMATH 1
32919_ACEOF
32920
32921fi
32922
32923{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32924echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32925if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32926 echo $ECHO_N "(cached) $ECHO_C" >&6
32927else
32928 ac_ext=cpp
32929ac_cpp='$CXXCPP $CPPFLAGS'
32930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32933
32934 cat >conftest.$ac_ext <<_ACEOF
32935/* confdefs.h. */
32936_ACEOF
32937cat confdefs.h >>conftest.$ac_ext
32938cat >>conftest.$ac_ext <<_ACEOF
32939/* end confdefs.h. */
32940#include <ieeefp.h>
32941int
32942main ()
32943{
32944float f; finite(f);
32945 ;
32946 return 0;
32947}
32948_ACEOF
32949rm -f conftest.$ac_objext
32950if { (ac_try="$ac_compile"
32951case "(($ac_try" in
32952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32953 *) ac_try_echo=$ac_try;;
32954esac
32955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32956 (eval "$ac_compile") 2>conftest.er1
32957 ac_status=$?
32958 grep -v '^ *+' conftest.er1 >conftest.err
32959 rm -f conftest.er1
32960 cat conftest.err >&5
32961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000032962 (exit $ac_status); } &&
32963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32964 { (case "(($ac_try" in
32965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32966 *) ac_try_echo=$ac_try;;
32967esac
32968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32969 (eval "$ac_try") 2>&5
32970 ac_status=$?
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); }; } &&
32973 { ac_try='test -s conftest.$ac_objext'
32974 { (case "(($ac_try" in
32975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32976 *) ac_try_echo=$ac_try;;
32977esac
32978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32979 (eval "$ac_try") 2>&5
32980 ac_status=$?
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032983 ac_cv_func_finite_in_ieeefp_h=yes
32984else
32985 echo "$as_me: failed program was:" >&5
32986sed 's/^/| /' conftest.$ac_ext >&5
32987
32988 ac_cv_func_finite_in_ieeefp_h=no
32989fi
32990
32991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32992 ac_ext=c
32993ac_cpp='$CPP $CPPFLAGS'
32994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32996ac_compiler_gnu=$ac_cv_c_compiler_gnu
32997
32998fi
32999{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33000echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
33001
33002if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
33003
33004cat >>confdefs.h <<\_ACEOF
33005#define HAVE_FINITE_IN_IEEEFP_H 1
33006_ACEOF
33007
33008fi
33009
33010
33011
33012if test "$llvm_cv_platform_type" = "Unix" ; then
33013
33014
33015for ac_header in stdlib.h unistd.h
33016do
33017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33022 echo $ECHO_N "(cached) $ECHO_C" >&6
33023fi
33024ac_res=`eval echo '${'$as_ac_Header'}'`
33025 { echo "$as_me:$LINENO: result: $ac_res" >&5
33026echo "${ECHO_T}$ac_res" >&6; }
33027else
33028 # Is the header compilable?
33029{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33031cat >conftest.$ac_ext <<_ACEOF
33032/* confdefs.h. */
33033_ACEOF
33034cat confdefs.h >>conftest.$ac_ext
33035cat >>conftest.$ac_ext <<_ACEOF
33036/* end confdefs.h. */
33037$ac_includes_default
33038#include <$ac_header>
33039_ACEOF
33040rm -f conftest.$ac_objext
33041if { (ac_try="$ac_compile"
33042case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33045esac
33046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_compile") 2>conftest.er1
33048 ac_status=$?
33049 grep -v '^ *+' conftest.er1 >conftest.err
33050 rm -f conftest.er1
33051 cat conftest.err >&5
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033053 (exit $ac_status); } &&
33054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33055 { (case "(($ac_try" in
33056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33057 *) ac_try_echo=$ac_try;;
33058esac
33059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33060 (eval "$ac_try") 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; } &&
33064 { ac_try='test -s conftest.$ac_objext'
33065 { (case "(($ac_try" in
33066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067 *) ac_try_echo=$ac_try;;
33068esac
33069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33070 (eval "$ac_try") 2>&5
33071 ac_status=$?
33072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033074 ac_header_compiler=yes
33075else
33076 echo "$as_me: failed program was:" >&5
33077sed 's/^/| /' conftest.$ac_ext >&5
33078
33079 ac_header_compiler=no
33080fi
33081
33082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33083{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33084echo "${ECHO_T}$ac_header_compiler" >&6; }
33085
33086# Is the header present?
33087{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33089cat >conftest.$ac_ext <<_ACEOF
33090/* confdefs.h. */
33091_ACEOF
33092cat confdefs.h >>conftest.$ac_ext
33093cat >>conftest.$ac_ext <<_ACEOF
33094/* end confdefs.h. */
33095#include <$ac_header>
33096_ACEOF
33097if { (ac_try="$ac_cpp conftest.$ac_ext"
33098case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33101esac
33102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33104 ac_status=$?
33105 grep -v '^ *+' conftest.er1 >conftest.err
33106 rm -f conftest.er1
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033109 (exit $ac_status); } >/dev/null; then
33110 if test -s conftest.err; then
33111 ac_cpp_err=$ac_c_preproc_warn_flag
33112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33113 else
33114 ac_cpp_err=
33115 fi
33116else
33117 ac_cpp_err=yes
33118fi
33119if test -z "$ac_cpp_err"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033120 ac_header_preproc=yes
33121else
33122 echo "$as_me: failed program was:" >&5
33123sed 's/^/| /' conftest.$ac_ext >&5
33124
33125 ac_header_preproc=no
33126fi
33127
33128rm -f conftest.err conftest.$ac_ext
33129{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33130echo "${ECHO_T}$ac_header_preproc" >&6; }
33131
33132# So? What about this header?
33133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33134 yes:no: )
33135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33139 ac_header_preproc=yes
33140 ;;
33141 no:yes:* )
33142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33154 ( cat <<\_ASBOX
33155## ----------------------------------- ##
33156## Report this to llvmbugs@cs.uiuc.edu ##
33157## ----------------------------------- ##
33158_ASBOX
33159 ) | sed "s/^/$as_me: WARNING: /" >&2
33160 ;;
33161esac
33162{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33165 echo $ECHO_N "(cached) $ECHO_C" >&6
33166else
33167 eval "$as_ac_Header=\$ac_header_preproc"
33168fi
33169ac_res=`eval echo '${'$as_ac_Header'}'`
33170 { echo "$as_me:$LINENO: result: $ac_res" >&5
33171echo "${ECHO_T}$ac_res" >&6; }
33172
33173fi
33174if test `eval echo '${'$as_ac_Header'}'` = yes; then
33175 cat >>confdefs.h <<_ACEOF
33176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33177_ACEOF
33178
33179fi
33180
33181done
33182
33183
33184for ac_func in getpagesize
33185do
33186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33187{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33189if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33190 echo $ECHO_N "(cached) $ECHO_C" >&6
33191else
33192 cat >conftest.$ac_ext <<_ACEOF
33193/* confdefs.h. */
33194_ACEOF
33195cat confdefs.h >>conftest.$ac_ext
33196cat >>conftest.$ac_ext <<_ACEOF
33197/* end confdefs.h. */
33198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33200#define $ac_func innocuous_$ac_func
33201
33202/* System header to define __stub macros and hopefully few prototypes,
33203 which can conflict with char $ac_func (); below.
33204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33205 <limits.h> exists even on freestanding compilers. */
33206
33207#ifdef __STDC__
33208# include <limits.h>
33209#else
33210# include <assert.h>
33211#endif
33212
33213#undef $ac_func
33214
33215/* Override any GCC internal prototype to avoid an error.
33216 Use char because int might match the return type of a GCC
33217 builtin and then its argument prototype would still apply. */
33218#ifdef __cplusplus
33219extern "C"
33220#endif
33221char $ac_func ();
33222/* The GNU C library defines this for functions which it implements
33223 to always fail with ENOSYS. Some functions are actually named
33224 something starting with __ and the normal name is an alias. */
33225#if defined __stub_$ac_func || defined __stub___$ac_func
33226choke me
33227#endif
33228
33229int
33230main ()
33231{
33232return $ac_func ();
33233 ;
33234 return 0;
33235}
33236_ACEOF
33237rm -f conftest.$ac_objext conftest$ac_exeext
33238if { (ac_try="$ac_link"
33239case "(($ac_try" in
33240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241 *) ac_try_echo=$ac_try;;
33242esac
33243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244 (eval "$ac_link") 2>conftest.er1
33245 ac_status=$?
33246 grep -v '^ *+' conftest.er1 >conftest.err
33247 rm -f conftest.er1
33248 cat conftest.err >&5
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033250 (exit $ac_status); } &&
33251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33252 { (case "(($ac_try" in
33253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33254 *) ac_try_echo=$ac_try;;
33255esac
33256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33257 (eval "$ac_try") 2>&5
33258 ac_status=$?
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); }; } &&
33261 { ac_try='test -s conftest$ac_exeext'
33262 { (case "(($ac_try" in
33263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264 *) ac_try_echo=$ac_try;;
33265esac
33266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267 (eval "$ac_try") 2>&5
33268 ac_status=$?
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); }; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033271 eval "$as_ac_var=yes"
33272else
33273 echo "$as_me: failed program was:" >&5
33274sed 's/^/| /' conftest.$ac_ext >&5
33275
33276 eval "$as_ac_var=no"
33277fi
33278
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033279rm -f core conftest.err conftest.$ac_objext \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033280 conftest$ac_exeext conftest.$ac_ext
33281fi
33282ac_res=`eval echo '${'$as_ac_var'}'`
33283 { echo "$as_me:$LINENO: result: $ac_res" >&5
33284echo "${ECHO_T}$ac_res" >&6; }
33285if test `eval echo '${'$as_ac_var'}'` = yes; then
33286 cat >>confdefs.h <<_ACEOF
33287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33288_ACEOF
33289
33290fi
33291done
33292
33293{ echo "$as_me:$LINENO: checking for working mmap" >&5
33294echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33295if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33296 echo $ECHO_N "(cached) $ECHO_C" >&6
33297else
33298 if test "$cross_compiling" = yes; then
33299 ac_cv_func_mmap_fixed_mapped=no
33300else
33301 cat >conftest.$ac_ext <<_ACEOF
33302/* confdefs.h. */
33303_ACEOF
33304cat confdefs.h >>conftest.$ac_ext
33305cat >>conftest.$ac_ext <<_ACEOF
33306/* end confdefs.h. */
33307$ac_includes_default
33308/* malloc might have been renamed as rpl_malloc. */
33309#undef malloc
33310
33311/* Thanks to Mike Haertel and Jim Avera for this test.
33312 Here is a matrix of mmap possibilities:
33313 mmap private not fixed
33314 mmap private fixed at somewhere currently unmapped
33315 mmap private fixed at somewhere already mapped
33316 mmap shared not fixed
33317 mmap shared fixed at somewhere currently unmapped
33318 mmap shared fixed at somewhere already mapped
33319 For private mappings, we should verify that changes cannot be read()
33320 back from the file, nor mmap's back from the file at a different
33321 address. (There have been systems where private was not correctly
33322 implemented like the infamous i386 svr4.0, and systems where the
33323 VM page cache was not coherent with the file system buffer cache
33324 like early versions of FreeBSD and possibly contemporary NetBSD.)
33325 For shared mappings, we should conversely verify that changes get
33326 propagated back to all the places they're supposed to be.
33327
33328 Grep wants private fixed already mapped.
33329 The main things grep needs to know about mmap are:
33330 * does it exist and is it safe to write into the mmap'd area
33331 * how to use it (BSD variants) */
33332
33333#include <fcntl.h>
33334#include <sys/mman.h>
33335
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033336#if !STDC_HEADERS && !HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033337char *malloc ();
33338#endif
33339
33340/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033341#if !HAVE_GETPAGESIZE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033342/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033343# if !HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033344# define HAVE_SYS_PARAM_H 1
33345# endif
33346
33347# ifdef _SC_PAGESIZE
33348# define getpagesize() sysconf(_SC_PAGESIZE)
33349# else /* no _SC_PAGESIZE */
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033350# if HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033351# include <sys/param.h>
33352# ifdef EXEC_PAGESIZE
33353# define getpagesize() EXEC_PAGESIZE
33354# else /* no EXEC_PAGESIZE */
33355# ifdef NBPG
33356# define getpagesize() NBPG * CLSIZE
33357# ifndef CLSIZE
33358# define CLSIZE 1
33359# endif /* no CLSIZE */
33360# else /* no NBPG */
33361# ifdef NBPC
33362# define getpagesize() NBPC
33363# else /* no NBPC */
33364# ifdef PAGESIZE
33365# define getpagesize() PAGESIZE
33366# endif /* PAGESIZE */
33367# endif /* no NBPC */
33368# endif /* no NBPG */
33369# endif /* no EXEC_PAGESIZE */
33370# else /* no HAVE_SYS_PARAM_H */
33371# define getpagesize() 8192 /* punt totally */
33372# endif /* no HAVE_SYS_PARAM_H */
33373# endif /* no _SC_PAGESIZE */
33374
33375#endif /* no HAVE_GETPAGESIZE */
33376
33377int
33378main ()
33379{
33380 char *data, *data2, *data3;
33381 int i, pagesize;
33382 int fd;
33383
33384 pagesize = getpagesize ();
33385
33386 /* First, make a file with some known garbage in it. */
33387 data = (char *) malloc (pagesize);
33388 if (!data)
33389 return 1;
33390 for (i = 0; i < pagesize; ++i)
33391 *(data + i) = rand ();
33392 umask (0);
33393 fd = creat ("conftest.mmap", 0600);
33394 if (fd < 0)
33395 return 1;
33396 if (write (fd, data, pagesize) != pagesize)
33397 return 1;
33398 close (fd);
33399
33400 /* Next, try to mmap the file at a fixed address which already has
33401 something else allocated at it. If we can, also make sure that
33402 we see the same garbage. */
33403 fd = open ("conftest.mmap", O_RDWR);
33404 if (fd < 0)
33405 return 1;
33406 data2 = (char *) malloc (2 * pagesize);
33407 if (!data2)
33408 return 1;
33409 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33410 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33411 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33412 return 1;
33413 for (i = 0; i < pagesize; ++i)
33414 if (*(data + i) != *(data2 + i))
33415 return 1;
33416
33417 /* Finally, make sure that changes to the mapped area do not
33418 percolate back to the file as seen by read(). (This is a bug on
33419 some variants of i386 svr4.0.) */
33420 for (i = 0; i < pagesize; ++i)
33421 *(data2 + i) = *(data2 + i) + 1;
33422 data3 = (char *) malloc (pagesize);
33423 if (!data3)
33424 return 1;
33425 if (read (fd, data3, pagesize) != pagesize)
33426 return 1;
33427 for (i = 0; i < pagesize; ++i)
33428 if (*(data + i) != *(data3 + i))
33429 return 1;
33430 close (fd);
33431 return 0;
33432}
33433_ACEOF
33434rm -f conftest$ac_exeext
33435if { (ac_try="$ac_link"
33436case "(($ac_try" in
33437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438 *) ac_try_echo=$ac_try;;
33439esac
33440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441 (eval "$ac_link") 2>&5
33442 ac_status=$?
33443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33445 { (case "(($ac_try" in
33446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447 *) ac_try_echo=$ac_try;;
33448esac
33449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33450 (eval "$ac_try") 2>&5
33451 ac_status=$?
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); }; }; then
33454 ac_cv_func_mmap_fixed_mapped=yes
33455else
33456 echo "$as_me: program exited with status $ac_status" >&5
33457echo "$as_me: failed program was:" >&5
33458sed 's/^/| /' conftest.$ac_ext >&5
33459
33460( exit $ac_status )
33461ac_cv_func_mmap_fixed_mapped=no
33462fi
33463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33464fi
33465
33466
33467fi
33468{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33469echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33470if test $ac_cv_func_mmap_fixed_mapped = yes; then
33471
33472cat >>confdefs.h <<\_ACEOF
33473#define HAVE_MMAP 1
33474_ACEOF
33475
33476fi
33477rm -f conftest.mmap
33478
33479 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33480echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33481if test "${ac_cv_func_mmap_file+set}" = set; then
33482 echo $ECHO_N "(cached) $ECHO_C" >&6
33483else
33484 ac_ext=c
33485ac_cpp='$CPP $CPPFLAGS'
33486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33488ac_compiler_gnu=$ac_cv_c_compiler_gnu
33489
33490 if test "$cross_compiling" = yes; then
33491 ac_cv_func_mmap_file=no
33492else
33493 cat >conftest.$ac_ext <<_ACEOF
33494
33495 /* confdefs.h. */
33496_ACEOF
33497cat confdefs.h >>conftest.$ac_ext
33498cat >>conftest.$ac_ext <<_ACEOF
33499/* end confdefs.h. */
33500
33501#include <sys/types.h>
33502#include <sys/mman.h>
33503#include <fcntl.h>
33504
33505int
33506main ()
33507{
33508
33509 int fd;
33510 fd = creat ("foo",0777);
33511 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33512 unlink ("foo");
33513 return (fd != (int) MAP_FAILED);
33514 ;
33515 return 0;
33516}
33517_ACEOF
33518rm -f conftest$ac_exeext
33519if { (ac_try="$ac_link"
33520case "(($ac_try" in
33521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33522 *) ac_try_echo=$ac_try;;
33523esac
33524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33525 (eval "$ac_link") 2>&5
33526 ac_status=$?
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33529 { (case "(($ac_try" in
33530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33531 *) ac_try_echo=$ac_try;;
33532esac
33533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33534 (eval "$ac_try") 2>&5
33535 ac_status=$?
33536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537 (exit $ac_status); }; }; then
33538 ac_cv_func_mmap_file=yes
33539else
33540 echo "$as_me: program exited with status $ac_status" >&5
33541echo "$as_me: failed program was:" >&5
33542sed 's/^/| /' conftest.$ac_ext >&5
33543
33544( exit $ac_status )
33545ac_cv_func_mmap_file=no
33546fi
33547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33548fi
33549
33550
33551 ac_ext=c
33552ac_cpp='$CPP $CPPFLAGS'
33553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33555ac_compiler_gnu=$ac_cv_c_compiler_gnu
33556
33557
33558fi
33559{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33560echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33561if test "$ac_cv_func_mmap_file" = yes; then
33562
33563cat >>confdefs.h <<\_ACEOF
33564#define HAVE_MMAP_FILE
33565_ACEOF
33566
33567 MMAP_FILE=yes
33568
33569fi
33570
33571 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33572echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33573if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33574 echo $ECHO_N "(cached) $ECHO_C" >&6
33575else
33576 if test "$llvm_cv_os_type" = "Interix" ; then
33577 ac_cv_need_dev_zero_for_mmap=yes
33578 else
33579 ac_cv_need_dev_zero_for_mmap=no
33580 fi
33581
33582fi
33583{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33584echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33585if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33586
33587cat >>confdefs.h <<\_ACEOF
33588#define NEED_DEV_ZERO_FOR_MMAP 1
33589_ACEOF
33590
33591fi
33592
33593 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33594 then
33595 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33596echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33597 fi
33598 if test "$ac_cv_func_mmap_file" = "no"
33599 then
33600 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33601echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33602 fi
33603fi
33604
Owen Andersonff0f88e2009-05-18 23:58:51 +000033605if test "$ENABLE_THREADS" -eq 1 ; then
33606 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
33607echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
33608 cat >conftest.$ac_ext <<_ACEOF
33609/* confdefs.h. */
33610_ACEOF
33611cat confdefs.h >>conftest.$ac_ext
33612cat >>conftest.$ac_ext <<_ACEOF
33613/* end confdefs.h. */
33614int main() {
33615 volatile unsigned long val = 1;
33616 __sync_synchronize();
33617 __sync_val_compare_and_swap(&val, 1, 0);
33618 return 0;
33619 }
33620
33621_ACEOF
33622rm -f conftest.$ac_objext conftest$ac_exeext
33623if { (ac_try="$ac_link"
33624case "(($ac_try" in
33625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33626 *) ac_try_echo=$ac_try;;
33627esac
33628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33629 (eval "$ac_link") 2>conftest.er1
33630 ac_status=$?
33631 grep -v '^ *+' conftest.er1 >conftest.err
33632 rm -f conftest.er1
33633 cat conftest.err >&5
33634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635 (exit $ac_status); } &&
33636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33637 { (case "(($ac_try" in
33638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33639 *) ac_try_echo=$ac_try;;
33640esac
33641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33642 (eval "$ac_try") 2>&5
33643 ac_status=$?
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); }; } &&
33646 { ac_try='test -s conftest$ac_exeext'
33647 { (case "(($ac_try" in
33648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33649 *) ac_try_echo=$ac_try;;
33650esac
33651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33652 (eval "$ac_try") 2>&5
33653 ac_status=$?
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); }; }; then
33656 { echo "$as_me:$LINENO: result: yes" >&5
33657echo "${ECHO_T}yes" >&6; }
33658else
33659 echo "$as_me: failed program was:" >&5
33660sed 's/^/| /' conftest.$ac_ext >&5
33661
33662 { echo "$as_me:$LINENO: result: no" >&5
33663echo "${ECHO_T}no" >&6; }
33664 ENABLE_THREADS=0
33665
33666 { echo "$as_me:$LINENO: WARNING: Threading support disabled because atomic builtins are missing" >&5
33667echo "$as_me: WARNING: Threading support disabled because atomic builtins are missing" >&2;}
33668fi
33669
33670rm -f core conftest.err conftest.$ac_objext \
33671 conftest$ac_exeext conftest.$ac_ext
33672fi
33673
33674
33675cat >>confdefs.h <<_ACEOF
33676#define ENABLE_THREADS $ENABLE_THREADS
33677_ACEOF
33678
33679
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033680
Reid Spencer59c09b32007-07-30 20:13:24 +000033681
33682for ac_func in __dso_handle
33683do
33684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33688 echo $ECHO_N "(cached) $ECHO_C" >&6
33689else
33690 cat >conftest.$ac_ext <<_ACEOF
33691/* confdefs.h. */
33692_ACEOF
33693cat confdefs.h >>conftest.$ac_ext
33694cat >>conftest.$ac_ext <<_ACEOF
33695/* end confdefs.h. */
33696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33698#define $ac_func innocuous_$ac_func
33699
33700/* System header to define __stub macros and hopefully few prototypes,
33701 which can conflict with char $ac_func (); below.
33702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33703 <limits.h> exists even on freestanding compilers. */
33704
33705#ifdef __STDC__
33706# include <limits.h>
33707#else
33708# include <assert.h>
33709#endif
33710
33711#undef $ac_func
33712
33713/* Override any GCC internal prototype to avoid an error.
33714 Use char because int might match the return type of a GCC
33715 builtin and then its argument prototype would still apply. */
33716#ifdef __cplusplus
33717extern "C"
33718#endif
33719char $ac_func ();
33720/* The GNU C library defines this for functions which it implements
33721 to always fail with ENOSYS. Some functions are actually named
33722 something starting with __ and the normal name is an alias. */
33723#if defined __stub_$ac_func || defined __stub___$ac_func
33724choke me
33725#endif
33726
33727int
33728main ()
33729{
33730return $ac_func ();
33731 ;
33732 return 0;
33733}
33734_ACEOF
33735rm -f conftest.$ac_objext conftest$ac_exeext
33736if { (ac_try="$ac_link"
33737case "(($ac_try" in
33738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739 *) ac_try_echo=$ac_try;;
33740esac
33741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742 (eval "$ac_link") 2>conftest.er1
33743 ac_status=$?
33744 grep -v '^ *+' conftest.er1 >conftest.err
33745 rm -f conftest.er1
33746 cat conftest.err >&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033748 (exit $ac_status); } &&
33749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33750 { (case "(($ac_try" in
33751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752 *) ac_try_echo=$ac_try;;
33753esac
33754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755 (eval "$ac_try") 2>&5
33756 ac_status=$?
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; } &&
33759 { ac_try='test -s conftest$ac_exeext'
33760 { (case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33763esac
33764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_try") 2>&5
33766 ac_status=$?
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); }; }; then
Reid Spencer59c09b32007-07-30 20:13:24 +000033769 eval "$as_ac_var=yes"
33770else
33771 echo "$as_me: failed program was:" >&5
33772sed 's/^/| /' conftest.$ac_ext >&5
33773
33774 eval "$as_ac_var=no"
33775fi
33776
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000033777rm -f core conftest.err conftest.$ac_objext \
Reid Spencer59c09b32007-07-30 20:13:24 +000033778 conftest$ac_exeext conftest.$ac_ext
33779fi
33780ac_res=`eval echo '${'$as_ac_var'}'`
33781 { echo "$as_me:$LINENO: result: $ac_res" >&5
33782echo "${ECHO_T}$ac_res" >&6; }
33783if test `eval echo '${'$as_ac_var'}'` = yes; then
33784 cat >>confdefs.h <<_ACEOF
33785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33786_ACEOF
33787
33788fi
33789done
33790
33791
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033792{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33793echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33794if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33795 echo $ECHO_N "(cached) $ECHO_C" >&6
33796else
33797 llvm_cv_llvmgcc_sanity="no"
33798if test -x "$LLVMGCC" ; then
33799 cp /dev/null conftest.c
33800 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33801 grep 'target datalayout =' > /dev/null 2>&1
33802 if test $? -eq 0 ; then
33803 llvm_cv_llvmgcc_sanity="yes"
33804 fi
33805 rm conftest.c
33806fi
33807fi
33808{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33809echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33810
33811if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33812 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33813echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33814 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33815 LLVMCC1=$llvmcc1path
33816
33817 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33818 LLVMCC1PLUS=$llvmcc1pluspath
33819
33820 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33821 LLVMGCCDIR=$llvmgccdir
33822
33823 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33824 LLVMGCCLIBEXEC=$llvmgcclibexec
33825
33826 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33827 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33828 LLVMGCC_VERSION=$llvmgccversion
33829
33830 LLVMGCC_MAJVERS=$llvmgccmajvers
33831
Tanya Lattner9894c2c2008-10-07 22:21:03 +000033832 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033833 LLVMGCC_LANGS=$llvmgcclangs
33834
33835 { echo "$as_me:$LINENO: result: ok" >&5
33836echo "${ECHO_T}ok" >&6; }
33837fi
33838
33839SHLIBEXT=$libltdl_cv_shlibext
33840
33841
33842# Translate the various configuration directories and other basic
33843# information into substitutions that will end up in Makefile.config.in
33844# that these configured values can be used by the makefiles
33845if test "${prefix}" = "NONE" ; then
33846 prefix="/usr/local"
33847fi
33848eval LLVM_PREFIX="${prefix}";
33849eval LLVM_BINDIR="${prefix}/bin";
33850eval LLVM_LIBDIR="${prefix}/lib";
33851eval LLVM_DATADIR="${prefix}/share/llvm";
33852eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33853eval LLVM_ETCDIR="${prefix}/etc/llvm";
33854eval LLVM_INCLUDEDIR="${prefix}/include";
33855eval LLVM_INFODIR="${prefix}/info";
33856eval LLVM_MANDIR="${prefix}/man";
33857LLVM_CONFIGTIME=`date`
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869# Place the various directores into the config.h file as #defines so that we
33870# can know about the installation paths within LLVM.
33871
33872cat >>confdefs.h <<_ACEOF
33873#define LLVM_PREFIX "$LLVM_PREFIX"
33874_ACEOF
33875
33876
33877cat >>confdefs.h <<_ACEOF
33878#define LLVM_BINDIR "$LLVM_BINDIR"
33879_ACEOF
33880
33881
33882cat >>confdefs.h <<_ACEOF
33883#define LLVM_LIBDIR "$LLVM_LIBDIR"
33884_ACEOF
33885
33886
33887cat >>confdefs.h <<_ACEOF
33888#define LLVM_DATADIR "$LLVM_DATADIR"
33889_ACEOF
33890
33891
33892cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000033893#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033894_ACEOF
33895
33896
33897cat >>confdefs.h <<_ACEOF
33898#define LLVM_ETCDIR "$LLVM_ETCDIR"
33899_ACEOF
33900
33901
33902cat >>confdefs.h <<_ACEOF
33903#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33904_ACEOF
33905
33906
33907cat >>confdefs.h <<_ACEOF
33908#define LLVM_INFODIR "$LLVM_INFODIR"
33909_ACEOF
33910
33911
33912cat >>confdefs.h <<_ACEOF
33913#define LLVM_MANDIR "$LLVM_MANDIR"
33914_ACEOF
33915
33916
33917cat >>confdefs.h <<_ACEOF
33918#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33919_ACEOF
33920
33921
Eric Christopher8b274472007-12-01 00:34:39 +000033922cat >>confdefs.h <<_ACEOF
33923#define LLVM_HOSTTRIPLE "$host"
33924_ACEOF
33925
33926
Gordon Henriksen016ec472007-10-02 09:50:32 +000033927# Determine which bindings to build.
33928if test "$BINDINGS_TO_BUILD" = auto ; then
33929 BINDINGS_TO_BUILD=""
33930 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33931 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33932 fi
33933fi
33934BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33935
33936
33937# This isn't really configurey, but it avoids having to repeat the list in
33938# other files.
33939ALL_BINDINGS=ocaml
33940
33941
Gordon Henriksen058a4c62007-10-02 16:42:22 +000033942# Do any work necessary to ensure that bindings have what they need.
33943binding_prereqs_failed=0
33944for a_binding in $BINDINGS_TO_BUILD ; do
33945 case "$a_binding" in
33946 ocaml)
33947 if test "x$OCAMLC" = x ; then
33948 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33949echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33950 binding_prereqs_failed=1
33951 fi
33952 if test "x$OCAMLDEP" = x ; then
33953 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33954echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33955 binding_prereqs_failed=1
33956 fi
33957 if test "x$OCAMLOPT" = x ; then
33958 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33959echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33960 fi
33961 if test "x$with_ocaml_libdir" != xauto ; then
33962 OCAML_LIBDIR=$with_ocaml_libdir
33963
33964 else
33965 ocaml_stdlib="`"$OCAMLC" -where`"
33966 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33967 then
33968 # ocaml stdlib is beneath our prefix; use stdlib
33969 OCAML_LIBDIR=$ocaml_stdlib
33970
33971 else
33972 # ocaml stdlib is outside our prefix; use libdir/ocaml
33973 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33974
33975 fi
33976 fi
33977 ;;
33978 esac
33979done
33980if test "$binding_prereqs_failed" = 1 ; then
33981 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33982echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33983 { (exit 1); exit 1; }; }
33984fi
33985
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000033986{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33987echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33988if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33989 echo $ECHO_N "(cached) $ECHO_C" >&6
33990else
33991 ac_ext=cpp
33992ac_cpp='$CXXCPP $CPPFLAGS'
33993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33996
33997 oldcxxflags="$CXXFLAGS"
33998 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33999 cat >conftest.$ac_ext <<_ACEOF
34000/* confdefs.h. */
34001_ACEOF
34002cat confdefs.h >>conftest.$ac_ext
34003cat >>conftest.$ac_ext <<_ACEOF
34004/* end confdefs.h. */
34005
34006int
34007main ()
34008{
34009
34010 ;
34011 return 0;
34012}
34013_ACEOF
34014rm -f conftest.$ac_objext
34015if { (ac_try="$ac_compile"
34016case "(($ac_try" in
34017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018 *) ac_try_echo=$ac_try;;
34019esac
34020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021 (eval "$ac_compile") 2>conftest.er1
34022 ac_status=$?
34023 grep -v '^ *+' conftest.er1 >conftest.err
34024 rm -f conftest.er1
34025 cat conftest.err >&5
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034027 (exit $ac_status); } &&
34028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34029 { (case "(($ac_try" in
34030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34031 *) ac_try_echo=$ac_try;;
34032esac
34033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34034 (eval "$ac_try") 2>&5
34035 ac_status=$?
34036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037 (exit $ac_status); }; } &&
34038 { ac_try='test -s conftest.$ac_objext'
34039 { (case "(($ac_try" in
34040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34041 *) ac_try_echo=$ac_try;;
34042esac
34043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34044 (eval "$ac_try") 2>&5
34045 ac_status=$?
34046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34047 (exit $ac_status); }; }; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000034048 llvm_cv_cxx_visibility_inlines_hidden=yes
34049else
34050 echo "$as_me: failed program was:" >&5
34051sed 's/^/| /' conftest.$ac_ext >&5
34052
34053 llvm_cv_cxx_visibility_inlines_hidden=no
34054fi
34055
34056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34057 CXXFLAGS="$oldcxxflags"
34058 ac_ext=c
34059ac_cpp='$CPP $CPPFLAGS'
34060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34062ac_compiler_gnu=$ac_cv_c_compiler_gnu
34063
34064
34065fi
34066{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34067echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34068if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34069 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34070
34071else
34072 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34073
34074fi
34075
Gordon Henriksen058a4c62007-10-02 16:42:22 +000034076
Nick Lewycky6eab6652009-03-05 08:20:44 +000034077if test "$llvm_cv_link_use_r" = "yes" ; then
34078 RPATH="-Wl,-R"
34079else
34080 RPATH="-Wl,-rpath"
34081fi
34082
34083
34084if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34085 RDYNAMIC="-Wl,-export-dynamic"
34086else
34087 RDYNAMIC=""
34088fi
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000034089
34090
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034091
34092ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
34093
34094ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
34095
Anton Korobeynikov5124f282008-05-29 17:41:34 +000034096ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034097
34098
34099ac_config_files="$ac_config_files Makefile.config"
34100
34101
34102ac_config_files="$ac_config_files llvm.spec"
34103
34104
34105ac_config_files="$ac_config_files docs/doxygen.cfg"
34106
34107
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000034108ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34109
34110
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034111ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
34112
34113
34114ac_config_commands="$ac_config_commands setup"
34115
34116ac_config_commands="$ac_config_commands Makefile"
34117
34118
34119ac_config_commands="$ac_config_commands Makefile.common"
34120
34121
34122ac_config_commands="$ac_config_commands examples/Makefile"
34123
34124
34125ac_config_commands="$ac_config_commands lib/Makefile"
34126
34127
34128ac_config_commands="$ac_config_commands runtime/Makefile"
34129
34130
34131ac_config_commands="$ac_config_commands test/Makefile"
34132
34133
34134ac_config_commands="$ac_config_commands test/Makefile.tests"
34135
34136
Bill Wendling9b9833f2009-01-04 23:12:30 +000034137ac_config_commands="$ac_config_commands unittests/Makefile"
34138
34139
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034140ac_config_commands="$ac_config_commands tools/Makefile"
34141
34142
34143ac_config_commands="$ac_config_commands utils/Makefile"
34144
34145
34146ac_config_commands="$ac_config_commands projects/Makefile"
34147
34148
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034149ac_config_commands="$ac_config_commands bindings/Makefile"
34150
34151
34152ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34153
34154
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034155
34156cat >confcache <<\_ACEOF
34157# This file is a shell script that caches the results of configure
34158# tests run on this system so they can be shared between configure
34159# scripts and configure runs, see configure's option --config-cache.
34160# It is not useful on other systems. If it contains results you don't
34161# want to keep, you may remove or edit it.
34162#
34163# config.status only pays attention to the cache file if you give it
34164# the --recheck option to rerun configure.
34165#
34166# `ac_cv_env_foo' variables (set or unset) will be overridden when
34167# loading this file, other *unset* `ac_cv_foo' will be assigned the
34168# following values.
34169
34170_ACEOF
34171
34172# The following way of writing the cache mishandles newlines in values,
34173# but we know of no workaround that is simple, portable, and efficient.
34174# So, we kill variables containing newlines.
34175# Ultrix sh set writes to stderr and can't be redirected directly,
34176# and sets the high bit in the cache file unless we assign to the vars.
34177(
34178 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34179 eval ac_val=\$$ac_var
34180 case $ac_val in #(
34181 *${as_nl}*)
34182 case $ac_var in #(
34183 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34184echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34185 esac
34186 case $ac_var in #(
34187 _ | IFS | as_nl) ;; #(
34188 *) $as_unset $ac_var ;;
34189 esac ;;
34190 esac
34191 done
34192
34193 (set) 2>&1 |
34194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34195 *${as_nl}ac_space=\ *)
34196 # `set' does not quote correctly, so add quotes (double-quote
34197 # substitution turns \\\\ into \\, and sed turns \\ into \).
34198 sed -n \
34199 "s/'/'\\\\''/g;
34200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34201 ;; #(
34202 *)
34203 # `set' quotes correctly as required by POSIX, so do not add quotes.
34204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34205 ;;
34206 esac |
34207 sort
34208) |
34209 sed '
34210 /^ac_cv_env_/b end
34211 t clear
34212 :clear
34213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34214 t end
34215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34216 :end' >>confcache
34217if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34218 if test -w "$cache_file"; then
34219 test "x$cache_file" != "x/dev/null" &&
34220 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34221echo "$as_me: updating cache $cache_file" >&6;}
34222 cat confcache >$cache_file
34223 else
34224 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34225echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34226 fi
34227fi
34228rm -f confcache
34229
34230test "x$prefix" = xNONE && prefix=$ac_default_prefix
34231# Let make expand exec_prefix.
34232test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34233
34234DEFS=-DHAVE_CONFIG_H
34235
34236ac_libobjs=
34237ac_ltlibobjs=
34238for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34239 # 1. Remove the extension, and $U if already installed.
34240 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34241 ac_i=`echo "$ac_i" | sed "$ac_script"`
34242 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34243 # will be set to the directory where LIBOBJS objects are built.
34244 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34245 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34246done
34247LIBOBJS=$ac_libobjs
34248
34249LTLIBOBJS=$ac_ltlibobjs
34250
34251
34252if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34253 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34254Usually this means the macro was only invoked conditionally." >&5
34255echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34256Usually this means the macro was only invoked conditionally." >&2;}
34257 { (exit 1); exit 1; }; }
34258fi
34259if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34260 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34261Usually this means the macro was only invoked conditionally." >&5
34262echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34263Usually this means the macro was only invoked conditionally." >&2;}
34264 { (exit 1); exit 1; }; }
34265fi
34266
34267: ${CONFIG_STATUS=./config.status}
34268ac_clean_files_save=$ac_clean_files
34269ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34270{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34271echo "$as_me: creating $CONFIG_STATUS" >&6;}
34272cat >$CONFIG_STATUS <<_ACEOF
34273#! $SHELL
34274# Generated by $as_me.
34275# Run this file to recreate the current configuration.
34276# Compiler output produced by configure, useful for debugging
34277# configure, is in config.log if it exists.
34278
34279debug=false
34280ac_cs_recheck=false
34281ac_cs_silent=false
34282SHELL=\${CONFIG_SHELL-$SHELL}
34283_ACEOF
34284
34285cat >>$CONFIG_STATUS <<\_ACEOF
34286## --------------------- ##
34287## M4sh Initialization. ##
34288## --------------------- ##
34289
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034290# Be Bourne compatible
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034291if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34292 emulate sh
34293 NULLCMD=:
34294 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34295 # is contrary to our usage. Disable this feature.
34296 alias -g '${1+"$@"}'='"$@"'
34297 setopt NO_GLOB_SUBST
34298else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034299 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034300fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034301BIN_SH=xpg4; export BIN_SH # for Tru64
34302DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034303
34304
34305# PATH needs CR
34306# Avoid depending upon Character Ranges.
34307as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34308as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34309as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34310as_cr_digits='0123456789'
34311as_cr_alnum=$as_cr_Letters$as_cr_digits
34312
34313# The user is always right.
34314if test "${PATH_SEPARATOR+set}" != set; then
34315 echo "#! /bin/sh" >conf$$.sh
34316 echo "exit 0" >>conf$$.sh
34317 chmod +x conf$$.sh
34318 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34319 PATH_SEPARATOR=';'
34320 else
34321 PATH_SEPARATOR=:
34322 fi
34323 rm -f conf$$.sh
34324fi
34325
34326# Support unset when possible.
34327if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34328 as_unset=unset
34329else
34330 as_unset=false
34331fi
34332
34333
34334# IFS
34335# We need space, tab and new line, in precisely that order. Quoting is
34336# there to prevent editors from complaining about space-tab.
34337# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34338# splitting by setting IFS to empty value.)
34339as_nl='
34340'
34341IFS=" "" $as_nl"
34342
34343# Find who we are. Look in the path if we contain no directory separator.
34344case $0 in
34345 *[\\/]* ) as_myself=$0 ;;
34346 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34347for as_dir in $PATH
34348do
34349 IFS=$as_save_IFS
34350 test -z "$as_dir" && as_dir=.
34351 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34352done
34353IFS=$as_save_IFS
34354
34355 ;;
34356esac
34357# We did not find ourselves, most probably we were run as `sh COMMAND'
34358# in which case we are not to be found in the path.
34359if test "x$as_myself" = x; then
34360 as_myself=$0
34361fi
34362if test ! -f "$as_myself"; then
34363 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34364 { (exit 1); exit 1; }
34365fi
34366
34367# Work around bugs in pre-3.0 UWIN ksh.
34368for as_var in ENV MAIL MAILPATH
34369do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34370done
34371PS1='$ '
34372PS2='> '
34373PS4='+ '
34374
34375# NLS nuisances.
34376for as_var in \
34377 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34378 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34379 LC_TELEPHONE LC_TIME
34380do
34381 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34382 eval $as_var=C; export $as_var
34383 else
34384 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34385 fi
34386done
34387
34388# Required to use basename.
34389if expr a : '\(a\)' >/dev/null 2>&1 &&
34390 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34391 as_expr=expr
34392else
34393 as_expr=false
34394fi
34395
34396if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34397 as_basename=basename
34398else
34399 as_basename=false
34400fi
34401
34402
34403# Name of the executable.
34404as_me=`$as_basename -- "$0" ||
34405$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34406 X"$0" : 'X\(//\)$' \| \
34407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34408echo X/"$0" |
34409 sed '/^.*\/\([^/][^/]*\)\/*$/{
34410 s//\1/
34411 q
34412 }
34413 /^X\/\(\/\/\)$/{
34414 s//\1/
34415 q
34416 }
34417 /^X\/\(\/\).*/{
34418 s//\1/
34419 q
34420 }
34421 s/.*/./; q'`
34422
34423# CDPATH.
34424$as_unset CDPATH
34425
34426
34427
34428 as_lineno_1=$LINENO
34429 as_lineno_2=$LINENO
34430 test "x$as_lineno_1" != "x$as_lineno_2" &&
34431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34432
34433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34434 # uniformly replaced by the line number. The first 'sed' inserts a
34435 # line-number line after each line using $LINENO; the second 'sed'
34436 # does the real work. The second script uses 'N' to pair each
34437 # line-number line with the line containing $LINENO, and appends
34438 # trailing '-' during substitution so that $LINENO is not a special
34439 # case at line end.
34440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34441 # scripts with optimization help from Paolo Bonzini. Blame Lee
34442 # E. McMahon (1931-1989) for sed's syntax. :-)
34443 sed -n '
34444 p
34445 /[$]LINENO/=
34446 ' <$as_myself |
34447 sed '
34448 s/[$]LINENO.*/&-/
34449 t lineno
34450 b
34451 :lineno
34452 N
34453 :loop
34454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34455 t loop
34456 s/-\n.*//
34457 ' >$as_me.lineno &&
34458 chmod +x "$as_me.lineno" ||
34459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34460 { (exit 1); exit 1; }; }
34461
34462 # Don't try to exec as it changes $[0], causing all sort of problems
34463 # (the dirname of $[0] is not the place where we might find the
34464 # original and so on. Autoconf is especially sensitive to this).
34465 . "./$as_me.lineno"
34466 # Exit status is that of the last command.
34467 exit
34468}
34469
34470
34471if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34472 as_dirname=dirname
34473else
34474 as_dirname=false
34475fi
34476
34477ECHO_C= ECHO_N= ECHO_T=
34478case `echo -n x` in
34479-n*)
34480 case `echo 'x\c'` in
34481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34482 *) ECHO_C='\c';;
34483 esac;;
34484*)
34485 ECHO_N='-n';;
34486esac
34487
34488if expr a : '\(a\)' >/dev/null 2>&1 &&
34489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34490 as_expr=expr
34491else
34492 as_expr=false
34493fi
34494
34495rm -f conf$$ conf$$.exe conf$$.file
34496if test -d conf$$.dir; then
34497 rm -f conf$$.dir/conf$$.file
34498else
34499 rm -f conf$$.dir
34500 mkdir conf$$.dir
34501fi
34502echo >conf$$.file
34503if ln -s conf$$.file conf$$ 2>/dev/null; then
34504 as_ln_s='ln -s'
34505 # ... but there are two gotchas:
34506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34508 # In both cases, we have to default to `cp -p'.
34509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34510 as_ln_s='cp -p'
34511elif ln conf$$.file conf$$ 2>/dev/null; then
34512 as_ln_s=ln
34513else
34514 as_ln_s='cp -p'
34515fi
34516rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34517rmdir conf$$.dir 2>/dev/null
34518
34519if mkdir -p . 2>/dev/null; then
34520 as_mkdir_p=:
34521else
34522 test -d ./-p && rmdir ./-p
34523 as_mkdir_p=false
34524fi
34525
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034526# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34527# systems may use methods other than mode bits to determine executability.
34528cat >conf$$.file <<_ASEOF
34529#! /bin/sh
34530exit 0
34531_ASEOF
34532chmod +x conf$$.file
34533if test -x conf$$.file >/dev/null 2>&1; then
34534 as_executable_p="test -x"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034535else
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034536 as_executable_p=:
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034537fi
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034538rm -f conf$$.file
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034539
34540# Sed expression to map a string onto a valid CPP name.
34541as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34542
34543# Sed expression to map a string onto a valid variable name.
34544as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34545
34546
34547exec 6>&1
34548
34549# Save the log message, to keep $[0] and so on meaningful, and to
34550# report actual input values of CONFIG_FILES etc. instead of their
34551# values after options handling.
34552ac_log="
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034553This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034554generated by GNU Autoconf 2.60. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034555
34556 CONFIG_FILES = $CONFIG_FILES
34557 CONFIG_HEADERS = $CONFIG_HEADERS
34558 CONFIG_LINKS = $CONFIG_LINKS
34559 CONFIG_COMMANDS = $CONFIG_COMMANDS
34560 $ $0 $@
34561
34562on `(hostname || uname -n) 2>/dev/null | sed 1q`
34563"
34564
34565_ACEOF
34566
34567cat >>$CONFIG_STATUS <<_ACEOF
34568# Files that config.status was made for.
34569config_files="$ac_config_files"
34570config_headers="$ac_config_headers"
34571config_commands="$ac_config_commands"
34572
34573_ACEOF
34574
34575cat >>$CONFIG_STATUS <<\_ACEOF
34576ac_cs_usage="\
34577\`$as_me' instantiates files from templates according to the
34578current configuration.
34579
34580Usage: $0 [OPTIONS] [FILE]...
34581
34582 -h, --help print this help, then exit
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034583 -V, --version print version number, then exit
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034584 -q, --quiet do not print progress messages
34585 -d, --debug don't remove temporary files
34586 --recheck update $as_me by reconfiguring in the same conditions
34587 --file=FILE[:TEMPLATE]
34588 instantiate the configuration file FILE
34589 --header=FILE[:TEMPLATE]
34590 instantiate the configuration header FILE
34591
34592Configuration files:
34593$config_files
34594
34595Configuration headers:
34596$config_headers
34597
34598Configuration commands:
34599$config_commands
34600
34601Report bugs to <bug-autoconf@gnu.org>."
34602
34603_ACEOF
34604cat >>$CONFIG_STATUS <<_ACEOF
34605ac_cs_version="\\
Tanya Lattner3fa4a442009-01-22 05:17:59 +000034606llvm config.status 2.6svn
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000034607configured by $0, generated by GNU Autoconf 2.60,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034608 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34609
34610Copyright (C) 2006 Free Software Foundation, Inc.
34611This config.status script is free software; the Free Software Foundation
34612gives unlimited permission to copy, distribute and modify it."
34613
34614ac_pwd='$ac_pwd'
34615srcdir='$srcdir'
34616INSTALL='$INSTALL'
34617_ACEOF
34618
34619cat >>$CONFIG_STATUS <<\_ACEOF
34620# If no file are specified by the user, then we need to provide default
34621# value. By we need to know if files were specified by the user.
34622ac_need_defaults=:
34623while test $# != 0
34624do
34625 case $1 in
34626 --*=*)
34627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34628 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34629 ac_shift=:
34630 ;;
34631 *)
34632 ac_option=$1
34633 ac_optarg=$2
34634 ac_shift=shift
34635 ;;
34636 esac
34637
34638 case $ac_option in
34639 # Handling of the options.
34640 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34641 ac_cs_recheck=: ;;
34642 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34643 echo "$ac_cs_version"; exit ;;
34644 --debug | --debu | --deb | --de | --d | -d )
34645 debug=: ;;
34646 --file | --fil | --fi | --f )
34647 $ac_shift
34648 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34649 ac_need_defaults=false;;
34650 --header | --heade | --head | --hea )
34651 $ac_shift
34652 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34653 ac_need_defaults=false;;
34654 --he | --h)
34655 # Conflict between --help and --header
34656 { echo "$as_me: error: ambiguous option: $1
34657Try \`$0 --help' for more information." >&2
34658 { (exit 1); exit 1; }; };;
34659 --help | --hel | -h )
34660 echo "$ac_cs_usage"; exit ;;
34661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34662 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34663 ac_cs_silent=: ;;
34664
34665 # This is an error.
34666 -*) { echo "$as_me: error: unrecognized option: $1
34667Try \`$0 --help' for more information." >&2
34668 { (exit 1); exit 1; }; } ;;
34669
34670 *) ac_config_targets="$ac_config_targets $1"
34671 ac_need_defaults=false ;;
34672
34673 esac
34674 shift
34675done
34676
34677ac_configure_extra_args=
34678
34679if $ac_cs_silent; then
34680 exec 6>/dev/null
34681 ac_configure_extra_args="$ac_configure_extra_args --silent"
34682fi
34683
34684_ACEOF
34685cat >>$CONFIG_STATUS <<_ACEOF
34686if \$ac_cs_recheck; then
34687 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34688 CONFIG_SHELL=$SHELL
34689 export CONFIG_SHELL
34690 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34691fi
34692
34693_ACEOF
34694cat >>$CONFIG_STATUS <<\_ACEOF
34695exec 5>>config.log
34696{
34697 echo
34698 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34699## Running $as_me. ##
34700_ASBOX
34701 echo "$ac_log"
34702} >&5
34703
34704_ACEOF
34705cat >>$CONFIG_STATUS <<_ACEOF
34706#
34707# INIT-COMMANDS
34708#
34709llvm_src="${srcdir}"
34710
34711_ACEOF
34712
34713cat >>$CONFIG_STATUS <<\_ACEOF
34714
34715# Handling of arguments.
34716for ac_config_target in $ac_config_targets
34717do
34718 case $ac_config_target in
34719 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34720 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikov5124f282008-05-29 17:41:34 +000034721 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034722 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34723 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34724 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000034725 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034726 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34727 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34728 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34729 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34730 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34731 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34732 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34733 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34734 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000034735 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034736 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34737 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34738 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000034739 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34740 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034741
34742 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34743echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34744 { (exit 1); exit 1; }; };;
34745 esac
34746done
34747
34748
34749# If the user did not use the arguments to specify the items to instantiate,
34750# then the envvar interface is used. Set only those that are not.
34751# We use the long form for the default assignment because of an extremely
34752# bizarre bug on SunOS 4.1.3.
34753if $ac_need_defaults; then
34754 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34755 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34756 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34757fi
34758
34759# Have a temporary directory for convenience. Make it in the build tree
34760# simply because there is no reason against having it here, and in addition,
34761# creating and moving files from /tmp can sometimes cause problems.
34762# Hook for its removal unless debugging.
34763# Note that there is a small window in which the directory will not be cleaned:
34764# after its creation but before its name has been assigned to `$tmp'.
34765$debug ||
34766{
34767 tmp=
34768 trap 'exit_status=$?
34769 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34770' 0
34771 trap '{ (exit 1); exit 1; }' 1 2 13 15
34772}
34773# Create a (secure) tmp directory for tmp files.
34774
34775{
34776 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34777 test -n "$tmp" && test -d "$tmp"
34778} ||
34779{
34780 tmp=./conf$$-$RANDOM
34781 (umask 077 && mkdir "$tmp")
34782} ||
34783{
34784 echo "$me: cannot create a temporary directory in ." >&2
34785 { (exit 1); exit 1; }
34786}
34787
34788#
34789# Set up the sed scripts for CONFIG_FILES section.
34790#
34791
34792# No need to generate the scripts if there are no CONFIG_FILES.
34793# This happens for instance when ./config.status config.h
34794if test -n "$CONFIG_FILES"; then
34795
34796_ACEOF
34797
34798
34799
34800ac_delim='%!_!# '
34801for ac_last_try in false false false false false :; do
34802 cat >conf$$subs.sed <<_ACEOF
34803SHELL!$SHELL$ac_delim
34804PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34805PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34806PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34807PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34808PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34809PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34810exec_prefix!$exec_prefix$ac_delim
34811prefix!$prefix$ac_delim
34812program_transform_name!$program_transform_name$ac_delim
34813bindir!$bindir$ac_delim
34814sbindir!$sbindir$ac_delim
34815libexecdir!$libexecdir$ac_delim
34816datarootdir!$datarootdir$ac_delim
34817datadir!$datadir$ac_delim
34818sysconfdir!$sysconfdir$ac_delim
34819sharedstatedir!$sharedstatedir$ac_delim
34820localstatedir!$localstatedir$ac_delim
34821includedir!$includedir$ac_delim
34822oldincludedir!$oldincludedir$ac_delim
34823docdir!$docdir$ac_delim
34824infodir!$infodir$ac_delim
34825htmldir!$htmldir$ac_delim
34826dvidir!$dvidir$ac_delim
34827pdfdir!$pdfdir$ac_delim
34828psdir!$psdir$ac_delim
34829libdir!$libdir$ac_delim
34830localedir!$localedir$ac_delim
34831mandir!$mandir$ac_delim
34832DEFS!$DEFS$ac_delim
34833ECHO_C!$ECHO_C$ac_delim
34834ECHO_N!$ECHO_N$ac_delim
34835ECHO_T!$ECHO_T$ac_delim
34836LIBS!$LIBS$ac_delim
34837build_alias!$build_alias$ac_delim
34838host_alias!$host_alias$ac_delim
34839target_alias!$target_alias$ac_delim
34840LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34841subdirs!$subdirs$ac_delim
34842build!$build$ac_delim
34843build_cpu!$build_cpu$ac_delim
34844build_vendor!$build_vendor$ac_delim
34845build_os!$build_os$ac_delim
34846host!$host$ac_delim
34847host_cpu!$host_cpu$ac_delim
34848host_vendor!$host_vendor$ac_delim
34849host_os!$host_os$ac_delim
34850target!$target$ac_delim
34851target_cpu!$target_cpu$ac_delim
34852target_vendor!$target_vendor$ac_delim
34853target_os!$target_os$ac_delim
34854OS!$OS$ac_delim
34855LINKALL!$LINKALL$ac_delim
34856NOLINKALL!$NOLINKALL$ac_delim
34857LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34858LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendling025cce52009-03-12 04:10:09 +000034859ARCH!$ARCH$ac_delim
34860ENDIAN!$ENDIAN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034861CC!$CC$ac_delim
34862CFLAGS!$CFLAGS$ac_delim
34863LDFLAGS!$LDFLAGS$ac_delim
34864CPPFLAGS!$CPPFLAGS$ac_delim
34865ac_ct_CC!$ac_ct_CC$ac_delim
34866EXEEXT!$EXEEXT$ac_delim
34867OBJEXT!$OBJEXT$ac_delim
34868CPP!$CPP$ac_delim
34869GREP!$GREP$ac_delim
34870EGREP!$EGREP$ac_delim
34871LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34872BUILD_CC!$BUILD_CC$ac_delim
34873BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbache4c032e2008-10-02 22:56:44 +000034874BUILD_CXX!$BUILD_CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034875CVSBUILD!$CVSBUILD$ac_delim
34876ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene19b1cbd2009-04-17 14:50:39 +000034877ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034878DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34879ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34880EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34881DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34882JIT!$JIT$ac_delim
34883TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34884ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34885ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34886ENABLE_PIC!$ENABLE_PIC$ac_delim
34887TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34888ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34889EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckyf9c14662009-02-03 07:10:30 +000034890BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034891CXX!$CXX$ac_delim
34892CXXFLAGS!$CXXFLAGS$ac_delim
34893ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewycky912c4622009-02-21 22:38:49 +000034894NM!$NM$ac_delim
34895ifGNUmake!$ifGNUmake$ac_delim
34896LN_S!$LN_S$ac_delim
34897CMP!$CMP$ac_delim
34898CP!$CP$ac_delim
34899DATE!$DATE$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034900_ACEOF
34901
34902 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34903 break
34904 elif $ac_last_try; then
34905 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34906echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34907 { (exit 1); exit 1; }; }
34908 else
34909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34910 fi
34911done
34912
34913ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34914if test -n "$ac_eof"; then
34915 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34916 ac_eof=`expr $ac_eof + 1`
34917fi
34918
34919cat >>$CONFIG_STATUS <<_ACEOF
34920cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34921/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34922_ACEOF
34923sed '
34924s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34925s/^/s,@/; s/!/@,|#_!!_#|/
34926:n
34927t n
34928s/'"$ac_delim"'$/,g/; t
34929s/$/\\/; p
34930N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34931' >>$CONFIG_STATUS <conf$$subs.sed
34932rm -f conf$$subs.sed
34933cat >>$CONFIG_STATUS <<_ACEOF
34934CEOF$ac_eof
34935_ACEOF
34936
34937
34938ac_delim='%!_!# '
34939for ac_last_try in false false false false false :; do
34940 cat >conf$$subs.sed <<_ACEOF
David Greene19b1cbd2009-04-17 14:50:39 +000034941FIND!$FIND$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034942MKDIR!$MKDIR$ac_delim
34943MV!$MV$ac_delim
34944RANLIB!$RANLIB$ac_delim
34945RM!$RM$ac_delim
34946SED!$SED$ac_delim
34947TAR!$TAR$ac_delim
34948BINPWD!$BINPWD$ac_delim
34949GRAPHVIZ!$GRAPHVIZ$ac_delim
34950DOT!$DOT$ac_delim
34951GV!$GV$ac_delim
34952DOTTY!$DOTTY$ac_delim
34953PERL!$PERL$ac_delim
34954HAVE_PERL!$HAVE_PERL$ac_delim
34955INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34956INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34957INSTALL_DATA!$INSTALL_DATA$ac_delim
34958BZIP2!$BZIP2$ac_delim
34959DOXYGEN!$DOXYGEN$ac_delim
34960GROFF!$GROFF$ac_delim
34961GZIP!$GZIP$ac_delim
34962POD2HTML!$POD2HTML$ac_delim
34963POD2MAN!$POD2MAN$ac_delim
34964RUNTEST!$RUNTEST$ac_delim
34965TCLSH!$TCLSH$ac_delim
34966ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000034967OCAMLC!$OCAMLC$ac_delim
34968OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000034969OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen8af51f62008-03-10 15:49:38 +000034970OCAMLDOC!$OCAMLDOC$ac_delim
Edwin Török20176752008-10-22 09:56:27 +000034971GAS!$GAS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034972INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34973INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34974CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34975CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34976LIBADD_DL!$LIBADD_DL$ac_delim
34977ECHO!$ECHO$ac_delim
34978AR!$AR$ac_delim
34979STRIP!$STRIP$ac_delim
34980CXXCPP!$CXXCPP$ac_delim
34981F77!$F77$ac_delim
34982FFLAGS!$FFLAGS$ac_delim
34983ac_ct_F77!$ac_ct_F77$ac_delim
34984LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000034985LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
34986LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregord1e1dbc2009-05-11 18:05:52 +000034987LLVMGCC!$LLVMGCC$ac_delim
34988LLVMGXX!$LLVMGXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034989USE_UDIS86!$USE_UDIS86$ac_delim
34990HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34991HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34992ALLOCA!$ALLOCA$ac_delim
34993MMAP_FILE!$MMAP_FILE$ac_delim
34994LLVMCC1!$LLVMCC1$ac_delim
34995LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34996LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34997LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34998LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34999LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
35000LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
35001SHLIBEXT!$SHLIBEXT$ac_delim
35002LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35003LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35004LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35005LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35006LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35007LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35008LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35009LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35010LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35011LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000035012BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35013ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000035014OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000035015ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckyd3ffb4e2009-03-03 04:55:29 +000035016RPATH!$RPATH$ac_delim
Nick Lewycky6eab6652009-03-05 08:20:44 +000035017RDYNAMIC!$RDYNAMIC$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035018LIBOBJS!$LIBOBJS$ac_delim
35019LTLIBOBJS!$LTLIBOBJS$ac_delim
35020_ACEOF
35021
Mikhail Glushenkov3b335a42009-04-21 19:46:10 +000035022 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035023 break
35024 elif $ac_last_try; then
35025 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35026echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35027 { (exit 1); exit 1; }; }
35028 else
35029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35030 fi
35031done
35032
35033ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35034if test -n "$ac_eof"; then
35035 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35036 ac_eof=`expr $ac_eof + 1`
35037fi
35038
35039cat >>$CONFIG_STATUS <<_ACEOF
35040cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35041/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35042_ACEOF
35043sed '
35044s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35045s/^/s,@/; s/!/@,|#_!!_#|/
35046:n
35047t n
35048s/'"$ac_delim"'$/,g/; t
35049s/$/\\/; p
35050N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35051' >>$CONFIG_STATUS <conf$$subs.sed
35052rm -f conf$$subs.sed
35053cat >>$CONFIG_STATUS <<_ACEOF
35054:end
35055s/|#_!!_#|//g
35056CEOF$ac_eof
35057_ACEOF
35058
35059
35060# VPATH may cause trouble with some makes, so we remove $(srcdir),
35061# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35062# trailing colons and then remove the whole line if VPATH becomes empty
35063# (actually we leave an empty line to preserve line numbers).
35064if test "x$srcdir" = x.; then
35065 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35066s/:*\$(srcdir):*/:/
35067s/:*\${srcdir}:*/:/
35068s/:*@srcdir@:*/:/
35069s/^\([^=]*=[ ]*\):*/\1/
35070s/:*$//
35071s/^[^=]*=[ ]*$//
35072}'
35073fi
35074
35075cat >>$CONFIG_STATUS <<\_ACEOF
35076fi # test -n "$CONFIG_FILES"
35077
35078
35079for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35080do
35081 case $ac_tag in
35082 :[FHLC]) ac_mode=$ac_tag; continue;;
35083 esac
35084 case $ac_mode$ac_tag in
35085 :[FHL]*:*);;
35086 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35087echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35088 { (exit 1); exit 1; }; };;
35089 :[FH]-) ac_tag=-:-;;
35090 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35091 esac
35092 ac_save_IFS=$IFS
35093 IFS=:
35094 set x $ac_tag
35095 IFS=$ac_save_IFS
35096 shift
35097 ac_file=$1
35098 shift
35099
35100 case $ac_mode in
35101 :L) ac_source=$1;;
35102 :[FH])
35103 ac_file_inputs=
35104 for ac_f
35105 do
35106 case $ac_f in
35107 -) ac_f="$tmp/stdin";;
35108 *) # Look for the file first in the build tree, then in the source tree
35109 # (if the path is not absolute). The absolute path cannot be DOS-style,
35110 # because $ac_f cannot contain `:'.
35111 test -f "$ac_f" ||
35112 case $ac_f in
35113 [\\/$]*) false;;
35114 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35115 esac ||
35116 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35117echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35118 { (exit 1); exit 1; }; };;
35119 esac
35120 ac_file_inputs="$ac_file_inputs $ac_f"
35121 done
35122
35123 # Let's still pretend it is `configure' which instantiates (i.e., don't
35124 # use $as_me), people would be surprised to read:
35125 # /* config.h. Generated by config.status. */
35126 configure_input="Generated from "`IFS=:
35127 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35128 if test x"$ac_file" != x-; then
35129 configure_input="$ac_file. $configure_input"
35130 { echo "$as_me:$LINENO: creating $ac_file" >&5
35131echo "$as_me: creating $ac_file" >&6;}
35132 fi
35133
35134 case $ac_tag in
35135 *:-:* | *:-) cat >"$tmp/stdin";;
35136 esac
35137 ;;
35138 esac
35139
35140 ac_dir=`$as_dirname -- "$ac_file" ||
35141$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35142 X"$ac_file" : 'X\(//\)[^/]' \| \
35143 X"$ac_file" : 'X\(//\)$' \| \
35144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35145echo X"$ac_file" |
35146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35147 s//\1/
35148 q
35149 }
35150 /^X\(\/\/\)[^/].*/{
35151 s//\1/
35152 q
35153 }
35154 /^X\(\/\/\)$/{
35155 s//\1/
35156 q
35157 }
35158 /^X\(\/\).*/{
35159 s//\1/
35160 q
35161 }
35162 s/.*/./; q'`
35163 { as_dir="$ac_dir"
35164 case $as_dir in #(
35165 -*) as_dir=./$as_dir;;
35166 esac
35167 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35168 as_dirs=
35169 while :; do
35170 case $as_dir in #(
35171 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35172 *) as_qdir=$as_dir;;
35173 esac
35174 as_dirs="'$as_qdir' $as_dirs"
35175 as_dir=`$as_dirname -- "$as_dir" ||
35176$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35177 X"$as_dir" : 'X\(//\)[^/]' \| \
35178 X"$as_dir" : 'X\(//\)$' \| \
35179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35180echo X"$as_dir" |
35181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35182 s//\1/
35183 q
35184 }
35185 /^X\(\/\/\)[^/].*/{
35186 s//\1/
35187 q
35188 }
35189 /^X\(\/\/\)$/{
35190 s//\1/
35191 q
35192 }
35193 /^X\(\/\).*/{
35194 s//\1/
35195 q
35196 }
35197 s/.*/./; q'`
35198 test -d "$as_dir" && break
35199 done
35200 test -z "$as_dirs" || eval "mkdir $as_dirs"
35201 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35202echo "$as_me: error: cannot create directory $as_dir" >&2;}
35203 { (exit 1); exit 1; }; }; }
35204 ac_builddir=.
35205
35206case "$ac_dir" in
35207.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35208*)
35209 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35210 # A ".." for each directory in $ac_dir_suffix.
35211 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35212 case $ac_top_builddir_sub in
35213 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35214 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35215 esac ;;
35216esac
35217ac_abs_top_builddir=$ac_pwd
35218ac_abs_builddir=$ac_pwd$ac_dir_suffix
35219# for backward compatibility:
35220ac_top_builddir=$ac_top_build_prefix
35221
35222case $srcdir in
35223 .) # We are building in place.
35224 ac_srcdir=.
35225 ac_top_srcdir=$ac_top_builddir_sub
35226 ac_abs_top_srcdir=$ac_pwd ;;
35227 [\\/]* | ?:[\\/]* ) # Absolute name.
35228 ac_srcdir=$srcdir$ac_dir_suffix;
35229 ac_top_srcdir=$srcdir
35230 ac_abs_top_srcdir=$srcdir ;;
35231 *) # Relative name.
35232 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35233 ac_top_srcdir=$ac_top_build_prefix$srcdir
35234 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35235esac
35236ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35237
35238
35239 case $ac_mode in
35240 :F)
35241 #
35242 # CONFIG_FILE
35243 #
35244
35245 case $INSTALL in
35246 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35247 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35248 esac
35249_ACEOF
35250
35251cat >>$CONFIG_STATUS <<\_ACEOF
35252# If the template does not know about datarootdir, expand it.
35253# FIXME: This hack should be removed a few years after 2.60.
35254ac_datarootdir_hack=; ac_datarootdir_seen=
35255
35256case `sed -n '/datarootdir/ {
35257 p
35258 q
35259}
35260/@datadir@/p
35261/@docdir@/p
35262/@infodir@/p
35263/@localedir@/p
35264/@mandir@/p
35265' $ac_file_inputs` in
35266*datarootdir*) ac_datarootdir_seen=yes;;
35267*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35268 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35269echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35270_ACEOF
35271cat >>$CONFIG_STATUS <<_ACEOF
35272 ac_datarootdir_hack='
35273 s&@datadir@&$datadir&g
35274 s&@docdir@&$docdir&g
35275 s&@infodir@&$infodir&g
35276 s&@localedir@&$localedir&g
35277 s&@mandir@&$mandir&g
35278 s&\\\${datarootdir}&$datarootdir&g' ;;
35279esac
35280_ACEOF
35281
35282# Neutralize VPATH when `$srcdir' = `.'.
35283# Shell code in configure.ac might set extrasub.
35284# FIXME: do we really want to maintain this feature?
35285cat >>$CONFIG_STATUS <<_ACEOF
35286 sed "$ac_vpsub
35287$extrasub
35288_ACEOF
35289cat >>$CONFIG_STATUS <<\_ACEOF
35290:t
35291/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35292s&@configure_input@&$configure_input&;t t
35293s&@top_builddir@&$ac_top_builddir_sub&;t t
35294s&@srcdir@&$ac_srcdir&;t t
35295s&@abs_srcdir@&$ac_abs_srcdir&;t t
35296s&@top_srcdir@&$ac_top_srcdir&;t t
35297s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35298s&@builddir@&$ac_builddir&;t t
35299s&@abs_builddir@&$ac_abs_builddir&;t t
35300s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35301s&@INSTALL@&$ac_INSTALL&;t t
35302$ac_datarootdir_hack
35303" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
35304
35305test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35308 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35309which seems to be undefined. Please make sure it is defined." >&5
35310echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35311which seems to be undefined. Please make sure it is defined." >&2;}
35312
35313 rm -f "$tmp/stdin"
35314 case $ac_file in
35315 -) cat "$tmp/out"; rm -f "$tmp/out";;
35316 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35317 esac
35318 ;;
35319 :H)
35320 #
35321 # CONFIG_HEADER
35322 #
35323_ACEOF
35324
35325# Transform confdefs.h into a sed script `conftest.defines', that
35326# substitutes the proper values into config.h.in to produce config.h.
35327rm -f conftest.defines conftest.tail
35328# First, append a space to every undef/define line, to ease matching.
35329echo 's/$/ /' >conftest.defines
35330# Then, protect against being on the right side of a sed subst, or in
35331# an unquoted here document, in config.status. If some macros were
35332# called several times there might be several #defines for the same
35333# symbol, which is useless. But do not sort them, since the last
35334# AC_DEFINE must be honored.
35335ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35336# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35337# NAME is the cpp macro being defined, VALUE is the value it is being given.
35338# PARAMS is the parameter list in the macro definition--in most cases, it's
35339# just an empty string.
35340ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35341ac_dB='\\)[ (].*,\\1define\\2'
35342ac_dC=' '
35343ac_dD=' ,'
35344
35345uniq confdefs.h |
35346 sed -n '
35347 t rset
35348 :rset
35349 s/^[ ]*#[ ]*define[ ][ ]*//
35350 t ok
35351 d
35352 :ok
35353 s/[\\&,]/\\&/g
35354 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35355 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35356 ' >>conftest.defines
35357
35358# Remove the space that was appended to ease matching.
35359# Then replace #undef with comments. This is necessary, for
35360# example, in the case of _POSIX_SOURCE, which is predefined and required
35361# on some systems where configure will not decide to define it.
35362# (The regexp can be short, since the line contains either #define or #undef.)
35363echo 's/ $//
35364s,^[ #]*u.*,/* & */,' >>conftest.defines
35365
35366# Break up conftest.defines:
35367ac_max_sed_lines=50
35368
35369# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35370# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35371# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35372# et cetera.
35373ac_in='$ac_file_inputs'
35374ac_out='"$tmp/out1"'
35375ac_nxt='"$tmp/out2"'
35376
35377while :
35378do
35379 # Write a here document:
35380 cat >>$CONFIG_STATUS <<_ACEOF
35381 # First, check the format of the line:
35382 cat >"\$tmp/defines.sed" <<\\CEOF
35383/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35384/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35385b
35386:def
35387_ACEOF
35388 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35389 echo 'CEOF
35390 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35391 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35392 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35393 grep . conftest.tail >/dev/null || break
35394 rm -f conftest.defines
35395 mv conftest.tail conftest.defines
35396done
35397rm -f conftest.defines conftest.tail
35398
35399echo "ac_result=$ac_in" >>$CONFIG_STATUS
35400cat >>$CONFIG_STATUS <<\_ACEOF
35401 if test x"$ac_file" != x-; then
35402 echo "/* $configure_input */" >"$tmp/config.h"
35403 cat "$ac_result" >>"$tmp/config.h"
35404 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35406echo "$as_me: $ac_file is unchanged" >&6;}
35407 else
35408 rm -f $ac_file
35409 mv "$tmp/config.h" $ac_file
35410 fi
35411 else
35412 echo "/* $configure_input */"
35413 cat "$ac_result"
35414 fi
35415 rm -f "$tmp/out12"
35416 ;;
35417
35418 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35419echo "$as_me: executing $ac_file commands" >&6;}
35420 ;;
35421 esac
35422
35423
35424 case $ac_file$ac_mode in
35425 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35426 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35427 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35428 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35429 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35430 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35431 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35432 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
35433 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35434 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
35435 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35436 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35437 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35438 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendling9b9833f2009-01-04 23:12:30 +000035439 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35440 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035441 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35442 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35443 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35444 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35445 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35446 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000035447 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35448 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35449 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35450 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035451
35452 esac
35453done # for ac_tag
35454
35455
35456{ (exit 0); exit 0; }
35457_ACEOF
35458chmod +x $CONFIG_STATUS
35459ac_clean_files=$ac_clean_files_save
35460
35461
35462# configure is writing to config.log, and then calls config.status.
35463# config.status does its own redirection, appending to config.log.
35464# Unfortunately, on DOS this fails, as config.log is still kept open
35465# by configure, so config.status won't be able to write to it; its
35466# output is simply discarded. So we exec the FD to /dev/null,
35467# effectively closing config.log, so it can be properly (re)opened and
35468# appended to by config.status. When coming back to configure, we
35469# need to make the FD available again.
35470if test "$no_create" != yes; then
35471 ac_cs_success=:
35472 ac_config_status_args=
35473 test "$silent" = yes &&
35474 ac_config_status_args="$ac_config_status_args --quiet"
35475 exec 5>/dev/null
35476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35477 exec 5>>config.log
35478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35479 # would make configure fail if this is the last instruction.
35480 $ac_cs_success || { (exit 1); exit 1; }
35481fi
35482
35483#
35484# CONFIG_SUBDIRS section.
35485#
35486if test "$no_recursion" != yes; then
35487
35488 # Remove --cache-file and --srcdir arguments so they do not pile up.
35489 ac_sub_configure_args=
35490 ac_prev=
35491 eval "set x $ac_configure_args"
35492 shift
35493 for ac_arg
35494 do
35495 if test -n "$ac_prev"; then
35496 ac_prev=
35497 continue
35498 fi
35499 case $ac_arg in
35500 -cache-file | --cache-file | --cache-fil | --cache-fi \
35501 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35502 ac_prev=cache_file ;;
35503 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35504 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35505 | --c=*)
35506 ;;
35507 --config-cache | -C)
35508 ;;
35509 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35510 ac_prev=srcdir ;;
35511 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35512 ;;
35513 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35514 ac_prev=prefix ;;
35515 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35516 ;;
35517 *)
35518 case $ac_arg in
35519 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35520 esac
35521 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
35522 esac
35523 done
35524
35525 # Always prepend --prefix to ensure using the same prefix
35526 # in subdir configurations.
35527 ac_arg="--prefix=$prefix"
35528 case $ac_arg in
35529 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35530 esac
Bill Wendlingf2fb39d2009-04-18 11:20:33 +000035531 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000035532
35533 ac_popdir=`pwd`
35534 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35535
35536 # Do not complain, so a configure script can configure whichever
35537 # parts of a large source tree are present.
35538 test -d "$srcdir/$ac_dir" || continue
35539
35540 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35541 echo "$as_me:$LINENO: $ac_msg" >&5
35542 echo "$ac_msg" >&6
35543 { as_dir="$ac_dir"
35544 case $as_dir in #(
35545 -*) as_dir=./$as_dir;;
35546 esac
35547 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35548 as_dirs=
35549 while :; do
35550 case $as_dir in #(
35551 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35552 *) as_qdir=$as_dir;;
35553 esac
35554 as_dirs="'$as_qdir' $as_dirs"
35555 as_dir=`$as_dirname -- "$as_dir" ||
35556$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35557 X"$as_dir" : 'X\(//\)[^/]' \| \
35558 X"$as_dir" : 'X\(//\)$' \| \
35559 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35560echo X"$as_dir" |
35561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35562 s//\1/
35563 q
35564 }
35565 /^X\(\/\/\)[^/].*/{
35566 s//\1/
35567 q
35568 }
35569 /^X\(\/\/\)$/{
35570 s//\1/
35571 q
35572 }
35573 /^X\(\/\).*/{
35574 s//\1/
35575 q
35576 }
35577 s/.*/./; q'`
35578 test -d "$as_dir" && break
35579 done
35580 test -z "$as_dirs" || eval "mkdir $as_dirs"
35581 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35582echo "$as_me: error: cannot create directory $as_dir" >&2;}
35583 { (exit 1); exit 1; }; }; }
35584 ac_builddir=.
35585
35586case "$ac_dir" in
35587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35588*)
35589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35590 # A ".." for each directory in $ac_dir_suffix.
35591 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35592 case $ac_top_builddir_sub in
35593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35595 esac ;;
35596esac
35597ac_abs_top_builddir=$ac_pwd
35598ac_abs_builddir=$ac_pwd$ac_dir_suffix
35599# for backward compatibility:
35600ac_top_builddir=$ac_top_build_prefix
35601
35602case $srcdir in
35603 .) # We are building in place.
35604 ac_srcdir=.
35605 ac_top_srcdir=$ac_top_builddir_sub
35606 ac_abs_top_srcdir=$ac_pwd ;;
35607 [\\/]* | ?:[\\/]* ) # Absolute name.
35608 ac_srcdir=$srcdir$ac_dir_suffix;
35609 ac_top_srcdir=$srcdir
35610 ac_abs_top_srcdir=$srcdir ;;
35611 *) # Relative name.
35612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35613 ac_top_srcdir=$ac_top_build_prefix$srcdir
35614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35615esac
35616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35617
35618
35619 cd "$ac_dir"
35620
35621 # Check for guested configure; otherwise get Cygnus style configure.
35622 if test -f "$ac_srcdir/configure.gnu"; then
35623 ac_sub_configure=$ac_srcdir/configure.gnu
35624 elif test -f "$ac_srcdir/configure"; then
35625 ac_sub_configure=$ac_srcdir/configure
35626 elif test -f "$ac_srcdir/configure.in"; then
35627 # This should be Cygnus configure.
35628 ac_sub_configure=$ac_aux_dir/configure
35629 else
35630 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35631echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35632 ac_sub_configure=
35633 fi
35634
35635 # The recursion is here.
35636 if test -n "$ac_sub_configure"; then
35637 # Make the cache file name correct relative to the subdirectory.
35638 case $cache_file in
35639 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35640 *) # Relative name.
35641 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35642 esac
35643
35644 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35645echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35646 # The eval makes quoting arguments work.
35647 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35648 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35649 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35650echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35651 { (exit 1); exit 1; }; }
35652 fi
35653
35654 cd "$ac_popdir"
35655 done
35656fi
35657