blob: 61c2aecc1804c8eac5eac805ebd73c7157c83862 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Edwin Török20176752008-10-22 09:56:27 +00003# Generated by GNU Autoconf 2.61 for llvm 2.5svn.
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
Edwin Török20176752008-10-22 09:56:27 +000017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh
21 NULLCMD=:
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
Edwin Török20176752008-10-22 09:56:27 +000027 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
29esac
30
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031fi
Edwin Török20176752008-10-22 09:56:27 +000032
33
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034
35
36# PATH needs CR
37# Avoid depending upon Character Ranges.
38as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41as_cr_digits='0123456789'
42as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44# The user is always right.
45if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
48 chmod +x conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50 PATH_SEPARATOR=';'
51 else
52 PATH_SEPARATOR=:
53 fi
54 rm -f conf$$.sh
55fi
56
57# Support unset when possible.
58if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59 as_unset=unset
60else
61 as_unset=false
62fi
63
64
65# IFS
66# We need space, tab and new line, in precisely that order. Quoting is
67# there to prevent editors from complaining about space-tab.
68# (If _AS_PATH_WALK were called with IFS unset, it would disable word
69# splitting by setting IFS to empty value.)
70as_nl='
71'
72IFS=" "" $as_nl"
73
74# Find who we are. Look in the path if we contain no directory separator.
75case $0 in
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78for as_dir in $PATH
79do
80 IFS=$as_save_IFS
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83done
84IFS=$as_save_IFS
85
86 ;;
87esac
88# We did not find ourselves, most probably we were run as `sh COMMAND'
89# in which case we are not to be found in the path.
90if test "x$as_myself" = x; then
91 as_myself=$0
92fi
93if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 { (exit 1); exit 1; }
96fi
97
98# Work around bugs in pre-3.0 UWIN ksh.
99for as_var in ENV MAIL MAILPATH
100do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101done
102PS1='$ '
103PS2='> '
104PS4='+ '
105
106# NLS nuisances.
107for as_var in \
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 LC_TELEPHONE LC_TIME
111do
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
114 else
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 fi
117done
118
119# Required to use basename.
120if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 as_expr=expr
123else
124 as_expr=false
125fi
126
127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128 as_basename=basename
129else
130 as_basename=false
131fi
132
133
134# Name of the executable.
135as_me=`$as_basename -- "$0" ||
136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139echo X/"$0" |
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\/\)$/{
145 s//\1/
146 q
147 }
148 /^X\/\(\/\).*/{
149 s//\1/
150 q
151 }
152 s/.*/./; q'`
153
154# CDPATH.
155$as_unset CDPATH
156
157
158if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
160 as_have_required=yes
161else
162 as_have_required=no
163fi
164
165 if test $as_have_required = yes && (eval ":
166(as_func_return () {
167 (exit \$1)
168}
169as_func_success () {
170 as_func_return 0
171}
172as_func_failure () {
173 as_func_return 1
174}
175as_func_ret_success () {
176 return 0
177}
178as_func_ret_failure () {
179 return 1
180}
181
182exitcode=0
183if as_func_success; then
184 :
185else
186 exitcode=1
187 echo as_func_success failed.
188fi
189
190if as_func_failure; then
191 exitcode=1
192 echo as_func_failure succeeded.
193fi
194
195if as_func_ret_success; then
196 :
197else
198 exitcode=1
199 echo as_func_ret_success failed.
200fi
201
202if as_func_ret_failure; then
203 exitcode=1
204 echo as_func_ret_failure succeeded.
205fi
206
207if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 :
209else
210 exitcode=1
211 echo positional parameters were not saved.
212fi
213
214test \$exitcode = 0) || { (exit 1); exit 1; }
215
216(
217 as_lineno_1=\$LINENO
218 as_lineno_2=\$LINENO
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221") 2> /dev/null; then
222 :
223else
224 as_candidate_shells=
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Edwin Török20176752008-10-22 09:56:27 +0000226for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000227do
228 IFS=$as_save_IFS
229 test -z "$as_dir" && as_dir=.
230 case $as_dir in
231 /*)
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234 done;;
235 esac
236done
237IFS=$as_save_IFS
238
239
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000244if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 emulate sh
246 NULLCMD=:
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
250 setopt NO_GLOB_SUBST
251else
Edwin Török20176752008-10-22 09:56:27 +0000252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
254esac
255
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000256fi
Edwin Török20176752008-10-22 09:56:27 +0000257
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000258
259:
260_ASEOF
261}; then
262 CONFIG_SHELL=$as_shell
263 as_have_required=yes
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 emulate sh
267 NULLCMD=:
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
271 setopt NO_GLOB_SUBST
272else
Edwin Török20176752008-10-22 09:56:27 +0000273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
275esac
276
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000277fi
Edwin Török20176752008-10-22 09:56:27 +0000278
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000279
280:
281(as_func_return () {
282 (exit $1)
283}
284as_func_success () {
285 as_func_return 0
286}
287as_func_failure () {
288 as_func_return 1
289}
290as_func_ret_success () {
291 return 0
292}
293as_func_ret_failure () {
294 return 1
295}
296
297exitcode=0
298if as_func_success; then
299 :
300else
301 exitcode=1
302 echo as_func_success failed.
303fi
304
305if as_func_failure; then
306 exitcode=1
307 echo as_func_failure succeeded.
308fi
309
310if as_func_ret_success; then
311 :
312else
313 exitcode=1
314 echo as_func_ret_success failed.
315fi
316
317if as_func_ret_failure; then
318 exitcode=1
319 echo as_func_ret_failure succeeded.
320fi
321
322if ( set x; as_func_ret_success y && test x = "$1" ); then
323 :
324else
325 exitcode=1
326 echo positional parameters were not saved.
327fi
328
329test $exitcode = 0) || { (exit 1); exit 1; }
330
331(
332 as_lineno_1=$LINENO
333 as_lineno_2=$LINENO
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337_ASEOF
338}; then
339 break
340fi
341
342fi
343
344 done
345
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 done
350 export CONFIG_SHELL
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352fi
353
354
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
361fi
362
363
364fi
365
366fi
367
368
369
370(eval "as_func_return () {
371 (exit \$1)
372}
373as_func_success () {
374 as_func_return 0
375}
376as_func_failure () {
377 as_func_return 1
378}
379as_func_ret_success () {
380 return 0
381}
382as_func_ret_failure () {
383 return 1
384}
385
386exitcode=0
387if as_func_success; then
388 :
389else
390 exitcode=1
391 echo as_func_success failed.
392fi
393
394if as_func_failure; then
395 exitcode=1
396 echo as_func_failure succeeded.
397fi
398
399if as_func_ret_success; then
400 :
401else
402 exitcode=1
403 echo as_func_ret_success failed.
404fi
405
406if as_func_ret_failure; then
407 exitcode=1
408 echo as_func_ret_failure succeeded.
409fi
410
411if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 :
413else
414 exitcode=1
415 echo positional parameters were not saved.
416fi
417
418test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
422 echo message
423}
424
425
426
427 as_lineno_1=$LINENO
428 as_lineno_2=$LINENO
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
438 # case at line end.
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
460
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
464 . "./$as_me.lineno"
465 # Exit status is that of the last command.
466 exit
467}
468
469
470if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471 as_dirname=dirname
472else
473 as_dirname=false
474fi
475
476ECHO_C= ECHO_N= ECHO_T=
477case `echo -n x` in
478-n*)
479 case `echo 'x\c'` in
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 *) ECHO_C='\c';;
482 esac;;
483*)
484 ECHO_N='-n';;
485esac
486
487if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
489 as_expr=expr
490else
491 as_expr=false
492fi
493
494rm -f conf$$ conf$$.exe conf$$.file
495if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
497else
498 rm -f conf$$.dir
499 mkdir conf$$.dir
500fi
501echo >conf$$.file
502if ln -s conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s='ln -s'
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 as_ln_s='cp -p'
510elif ln conf$$.file conf$$ 2>/dev/null; then
511 as_ln_s=ln
512else
513 as_ln_s='cp -p'
514fi
515rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516rmdir conf$$.dir 2>/dev/null
517
518if mkdir -p . 2>/dev/null; then
519 as_mkdir_p=:
520else
521 test -d ./-p && rmdir ./-p
522 as_mkdir_p=false
523fi
524
Edwin Török20176752008-10-22 09:56:27 +0000525if test -x / >/dev/null 2>&1; then
526 as_test_x='test -x'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000527else
Edwin Török20176752008-10-22 09:56:27 +0000528 if ls -dL / >/dev/null 2>&1; then
529 as_ls_L_option=L
530 else
531 as_ls_L_option=
532 fi
533 as_test_x='
534 eval sh -c '\''
535 if test -d "$1"; then
536 test -d "$1/.";
537 else
538 case $1 in
539 -*)set "./$1";;
540 esac;
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
543 '\'' sh
544 '
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000545fi
Edwin Török20176752008-10-22 09:56:27 +0000546as_executable_p=$as_test_x
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000547
548# Sed expression to map a string onto a valid CPP name.
549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551# Sed expression to map a string onto a valid variable name.
552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557# Check that we are running under the correct shell.
558SHELL=${CONFIG_SHELL-/bin/sh}
559
560case X$ECHO in
561X*--fallback-echo)
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 ;;
565esac
566
567echo=${ECHO-echo}
568if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
570 shift
571elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
573 :
574elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
576 :
577else
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
580fi
581
582if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
584 shift
585 cat <<EOF
586$*
587EOF
588 exit 0
589fi
590
591# The HP-UX ksh and POSIX shell print the target directory to stdout
592# if CDPATH is set.
593(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595if test -z "$ECHO"; then
596if test "X${echo_test_string+set}" != Xset; then
597# find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603 then
604 break
605 fi
606 done
607fi
608
609if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
619
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 echo="$dir/echo"
628 break
629 fi
630 done
631 IFS="$lt_save_ifs"
632
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 echo='print -r'
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 else
649 # Try using printf.
650 echo='printf %s\n'
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
673
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 echo=echo
689 fi
690 fi
691 fi
692 fi
693fi
694fi
695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
698ECHO=$echo
699if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701fi
702
703
704
705
706tagnames=${tagnames+${tagnames},}CXX
707
708tagnames=${tagnames+${tagnames},}F77
709
710exec 7<&0 </dev/null 6>&1
711
712# Name of the host.
713# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
714# so uname gets run too.
715ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
717#
718# Initializations.
719#
720ac_default_prefix=/usr/local
721ac_clean_files=
722ac_config_libobj_dir=.
723LIBOBJS=
724cross_compiling=no
725subdirs=
726MFLAGS=
727MAKEFLAGS=
728SHELL=${CONFIG_SHELL-/bin/sh}
729
730# Identity of this package.
731PACKAGE_NAME='llvm'
732PACKAGE_TARNAME='-llvm-'
Tanya Lattner23493c62008-10-07 04:35:08 +0000733PACKAGE_VERSION='2.5svn'
734PACKAGE_STRING='llvm 2.5svn'
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000735PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
736
737ac_unique_file="lib/VMCore/Module.cpp"
738# Factoring default headers for most tests.
739ac_includes_default="\
740#include <stdio.h>
Edwin Török20176752008-10-22 09:56:27 +0000741#ifdef HAVE_SYS_TYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000742# include <sys/types.h>
743#endif
Edwin Török20176752008-10-22 09:56:27 +0000744#ifdef HAVE_SYS_STAT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000745# include <sys/stat.h>
746#endif
Edwin Török20176752008-10-22 09:56:27 +0000747#ifdef STDC_HEADERS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000748# include <stdlib.h>
749# include <stddef.h>
750#else
Edwin Török20176752008-10-22 09:56:27 +0000751# ifdef HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000752# include <stdlib.h>
753# endif
754#endif
Edwin Török20176752008-10-22 09:56:27 +0000755#ifdef HAVE_STRING_H
756# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000757# include <memory.h>
758# endif
759# include <string.h>
760#endif
Edwin Török20176752008-10-22 09:56:27 +0000761#ifdef HAVE_STRINGS_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000762# include <strings.h>
763#endif
Edwin Török20176752008-10-22 09:56:27 +0000764#ifdef HAVE_INTTYPES_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000765# include <inttypes.h>
766#endif
Edwin Török20176752008-10-22 09:56:27 +0000767#ifdef HAVE_STDINT_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000768# include <stdint.h>
769#endif
Edwin Török20176752008-10-22 09:56:27 +0000770#ifdef HAVE_UNISTD_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000771# include <unistd.h>
772#endif"
773
774ac_subst_vars='SHELL
775PATH_SEPARATOR
776PACKAGE_NAME
777PACKAGE_TARNAME
778PACKAGE_VERSION
779PACKAGE_STRING
780PACKAGE_BUGREPORT
781exec_prefix
782prefix
783program_transform_name
784bindir
785sbindir
786libexecdir
787datarootdir
788datadir
789sysconfdir
790sharedstatedir
791localstatedir
792includedir
793oldincludedir
794docdir
795infodir
796htmldir
797dvidir
798pdfdir
799psdir
800libdir
801localedir
802mandir
803DEFS
804ECHO_C
805ECHO_N
806ECHO_T
807LIBS
808build_alias
809host_alias
810target_alias
811LLVM_COPYRIGHT
812subdirs
813build
814build_cpu
815build_vendor
816build_os
817host
818host_cpu
819host_vendor
820host_os
821target
822target_cpu
823target_vendor
824target_os
825OS
826LINKALL
827NOLINKALL
828LLVM_ON_UNIX
829LLVM_ON_WIN32
830ARCH
Duncan Sands2e6d3422007-12-12 23:03:45 +0000831ENDIAN
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839CPP
840GREP
841EGREP
842LLVM_CROSS_COMPILING
843BUILD_CC
844BUILD_EXEEXT
Jim Grosbache4c032e2008-10-02 22:56:44 +0000845BUILD_CXX
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000846CVSBUILD
847ENABLE_OPTIMIZED
848DISABLE_ASSERTIONS
849ENABLE_EXPENSIVE_CHECKS
850EXPENSIVE_CHECKS
851DEBUG_RUNTIME
852JIT
853TARGET_HAS_JIT
854ENABLE_DOXYGEN
855ENABLE_THREADS
856ENABLE_PIC
857TARGETS_TO_BUILD
858ENABLE_CBE_PRINTF_A
859EXTRA_OPTIONS
860CXX
861CXXFLAGS
862ac_ct_CXX
863LEX
Tanya Lattnerf4644302008-01-17 05:57:22 +0000864LEX_OUTPUT_ROOT
Edwin Török20176752008-10-22 09:56:27 +0000865LEXLIB
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000866FLEX
867YACC
868YFLAGS
869BISON
870NM
871ifGNUmake
872LN_S
873CMP
874CP
875DATE
876FIND
877MKDIR
878MV
879RANLIB
880RM
881SED
882TAR
883BINPWD
884GRAPHVIZ
885DOT
886GV
887DOTTY
888PERL
889HAVE_PERL
890INSTALL_PROGRAM
891INSTALL_SCRIPT
892INSTALL_DATA
893BZIP2
894DOXYGEN
895GROFF
896GZIP
897POD2HTML
898POD2MAN
899RUNTEST
900TCLSH
901ZIP
Gordon Henriksen4ac92092007-09-18 12:27:13 +0000902OCAMLC
903OCAMLOPT
Gordon Henriksen38eefac2007-09-20 16:48:18 +0000904OCAMLDEP
Gordon Henriksen8af51f62008-03-10 15:49:38 +0000905OCAMLDOC
Edwin Török20176752008-10-22 09:56:27 +0000906GAS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000907INSTALL_LTDL_TRUE
908INSTALL_LTDL_FALSE
909CONVENIENCE_LTDL_TRUE
910CONVENIENCE_LTDL_FALSE
911LIBADD_DL
912ECHO
913AR
914STRIP
915CXXCPP
916F77
917FFLAGS
918ac_ct_F77
919LIBTOOL
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000920LLVMGCC
921LLVMGXX
922USE_UDIS86
923HAVE_PTHREAD
924HUGE_VAL_SANITY
925ALLOCA
926MMAP_FILE
927LLVMCC1
928LLVMCC1PLUS
929LLVMGCCDIR
930LLVMGCCLIBEXEC
931LLVMGCC_VERSION
932LLVMGCC_MAJVERS
933LLVMGCC_LANGS
934SHLIBEXT
935LLVM_PREFIX
936LLVM_BINDIR
937LLVM_LIBDIR
938LLVM_DATADIR
939LLVM_DOCSDIR
940LLVM_ETCDIR
941LLVM_INCLUDEDIR
942LLVM_INFODIR
943LLVM_MANDIR
944LLVM_CONFIGTIME
Gordon Henriksen016ec472007-10-02 09:50:32 +0000945BINDINGS_TO_BUILD
946ALL_BINDINGS
Gordon Henriksen058a4c62007-10-02 16:42:22 +0000947OCAML_LIBDIR
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +0000948ENABLE_VISIBILITY_INLINES_HIDDEN
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000949LIBOBJS
950LTLIBOBJS'
951ac_subst_files=''
952 ac_precious_vars='build_alias
953host_alias
954target_alias
955CC
956CFLAGS
957LDFLAGS
Edwin Török20176752008-10-22 09:56:27 +0000958LIBS
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000959CPPFLAGS
960CPP
961CXX
962CXXFLAGS
963CCC
964YACC
965YFLAGS
966CXXCPP
967F77
968FFLAGS'
969ac_subdirs_all='projects/sample
970projects/privbracket
971projects/llvm-stacker
972projects/llvm-test
Matthijs Kooijman0b8be862008-06-24 13:01:57 +0000973projects/test-suite
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000974projects/llvm-reopt
975projects/llvm-gcc
976projects/llvm-java
977projects/llvm-tv
978projects/llvm-poolalloc
979projects/poolalloc
980projects/llvm-kernel'
981
982# Initialize some variables set by options.
983ac_init_help=
984ac_init_version=false
985# The variables have the same names as the options, with
986# dashes changed to underlines.
987cache_file=/dev/null
988exec_prefix=NONE
989no_create=
990no_recursion=
991prefix=NONE
992program_prefix=NONE
993program_suffix=NONE
994program_transform_name=s,x,x,
995silent=
996site=
997srcdir=
998verbose=
999x_includes=NONE
1000x_libraries=NONE
1001
1002# Installation directory options.
1003# These are left unexpanded so users can "make install exec_prefix=/foo"
1004# and all the variables that are supposed to be based on exec_prefix
1005# by default will actually change.
1006# Use braces instead of parens because sh, perl, etc. also accept them.
1007# (The list follows the same order as the GNU Coding Standards.)
1008bindir='${exec_prefix}/bin'
1009sbindir='${exec_prefix}/sbin'
1010libexecdir='${exec_prefix}/libexec'
1011datarootdir='${prefix}/share'
1012datadir='${datarootdir}'
1013sysconfdir='${prefix}/etc'
1014sharedstatedir='${prefix}/com'
1015localstatedir='${prefix}/var'
1016includedir='${prefix}/include'
1017oldincludedir='/usr/include'
1018docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1019infodir='${datarootdir}/info'
1020htmldir='${docdir}'
1021dvidir='${docdir}'
1022pdfdir='${docdir}'
1023psdir='${docdir}'
1024libdir='${exec_prefix}/lib'
1025localedir='${datarootdir}/locale'
1026mandir='${datarootdir}/man'
1027
1028ac_prev=
1029ac_dashdash=
1030for ac_option
1031do
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
1034 eval $ac_prev=\$ac_option
1035 ac_prev=
1036 continue
1037 fi
1038
1039 case $ac_option in
1040 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 *) ac_optarg=yes ;;
1042 esac
1043
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1045
1046 case $ac_dashdash$ac_option in
1047 --)
1048 ac_dashdash=yes ;;
1049
1050 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051 ac_prev=bindir ;;
1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053 bindir=$ac_optarg ;;
1054
1055 -build | --build | --buil | --bui | --bu)
1056 ac_prev=build_alias ;;
1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058 build_alias=$ac_optarg ;;
1059
1060 -cache-file | --cache-file | --cache-fil | --cache-fi \
1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062 ac_prev=cache_file ;;
1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065 cache_file=$ac_optarg ;;
1066
1067 --config-cache | -C)
1068 cache_file=config.cache ;;
1069
1070 -datadir | --datadir | --datadi | --datad)
1071 ac_prev=datadir ;;
1072 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1073 datadir=$ac_optarg ;;
1074
1075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076 | --dataroo | --dataro | --datar)
1077 ac_prev=datarootdir ;;
1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080 datarootdir=$ac_optarg ;;
1081
1082 -disable-* | --disable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
Edwin Török20176752008-10-22 09:56:27 +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; }; }
Edwin Török20176752008-10-22 09:56:27 +00001088 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001089 eval enable_$ac_feature=no ;;
1090
1091 -docdir | --docdir | --docdi | --doc | --do)
1092 ac_prev=docdir ;;
1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094 docdir=$ac_optarg ;;
1095
1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1097 ac_prev=dvidir ;;
1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099 dvidir=$ac_optarg ;;
1100
1101 -enable-* | --enable-*)
1102 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
Edwin Török20176752008-10-22 09:56:27 +00001104 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001105 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1106 { (exit 1); exit 1; }; }
Edwin Török20176752008-10-22 09:56:27 +00001107 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001108 eval enable_$ac_feature=\$ac_optarg ;;
1109
1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112 | --exec | --exe | --ex)
1113 ac_prev=exec_prefix ;;
1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116 | --exec=* | --exe=* | --ex=*)
1117 exec_prefix=$ac_optarg ;;
1118
1119 -gas | --gas | --ga | --g)
1120 # Obsolete; use --with-gas.
1121 with_gas=yes ;;
1122
1123 -help | --help | --hel | --he | -h)
1124 ac_init_help=long ;;
1125 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126 ac_init_help=recursive ;;
1127 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128 ac_init_help=short ;;
1129
1130 -host | --host | --hos | --ho)
1131 ac_prev=host_alias ;;
1132 -host=* | --host=* | --hos=* | --ho=*)
1133 host_alias=$ac_optarg ;;
1134
1135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1136 ac_prev=htmldir ;;
1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1138 | --ht=*)
1139 htmldir=$ac_optarg ;;
1140
1141 -includedir | --includedir | --includedi | --included | --include \
1142 | --includ | --inclu | --incl | --inc)
1143 ac_prev=includedir ;;
1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145 | --includ=* | --inclu=* | --incl=* | --inc=*)
1146 includedir=$ac_optarg ;;
1147
1148 -infodir | --infodir | --infodi | --infod | --info | --inf)
1149 ac_prev=infodir ;;
1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151 infodir=$ac_optarg ;;
1152
1153 -libdir | --libdir | --libdi | --libd)
1154 ac_prev=libdir ;;
1155 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156 libdir=$ac_optarg ;;
1157
1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159 | --libexe | --libex | --libe)
1160 ac_prev=libexecdir ;;
1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162 | --libexe=* | --libex=* | --libe=*)
1163 libexecdir=$ac_optarg ;;
1164
1165 -localedir | --localedir | --localedi | --localed | --locale)
1166 ac_prev=localedir ;;
1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168 localedir=$ac_optarg ;;
1169
1170 -localstatedir | --localstatedir | --localstatedi | --localstated \
1171 | --localstate | --localstat | --localsta | --localst | --locals)
1172 ac_prev=localstatedir ;;
1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175 localstatedir=$ac_optarg ;;
1176
1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1178 ac_prev=mandir ;;
1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180 mandir=$ac_optarg ;;
1181
1182 -nfp | --nfp | --nf)
1183 # Obsolete; use --without-fp.
1184 with_fp=no ;;
1185
1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187 | --no-cr | --no-c | -n)
1188 no_create=yes ;;
1189
1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192 no_recursion=yes ;;
1193
1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196 | --oldin | --oldi | --old | --ol | --o)
1197 ac_prev=oldincludedir ;;
1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201 oldincludedir=$ac_optarg ;;
1202
1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1204 ac_prev=prefix ;;
1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206 prefix=$ac_optarg ;;
1207
1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209 | --program-pre | --program-pr | --program-p)
1210 ac_prev=program_prefix ;;
1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213 program_prefix=$ac_optarg ;;
1214
1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216 | --program-suf | --program-su | --program-s)
1217 ac_prev=program_suffix ;;
1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220 program_suffix=$ac_optarg ;;
1221
1222 -program-transform-name | --program-transform-name \
1223 | --program-transform-nam | --program-transform-na \
1224 | --program-transform-n | --program-transform- \
1225 | --program-transform | --program-transfor \
1226 | --program-transfo | --program-transf \
1227 | --program-trans | --program-tran \
1228 | --progr-tra | --program-tr | --program-t)
1229 ac_prev=program_transform_name ;;
1230 -program-transform-name=* | --program-transform-name=* \
1231 | --program-transform-nam=* | --program-transform-na=* \
1232 | --program-transform-n=* | --program-transform-=* \
1233 | --program-transform=* | --program-transfor=* \
1234 | --program-transfo=* | --program-transf=* \
1235 | --program-trans=* | --program-tran=* \
1236 | --progr-tra=* | --program-tr=* | --program-t=*)
1237 program_transform_name=$ac_optarg ;;
1238
1239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1240 ac_prev=pdfdir ;;
1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242 pdfdir=$ac_optarg ;;
1243
1244 -psdir | --psdir | --psdi | --psd | --ps)
1245 ac_prev=psdir ;;
1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247 psdir=$ac_optarg ;;
1248
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1251 silent=yes ;;
1252
1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1254 ac_prev=sbindir ;;
1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1256 | --sbi=* | --sb=*)
1257 sbindir=$ac_optarg ;;
1258
1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261 | --sharedst | --shareds | --shared | --share | --shar \
1262 | --sha | --sh)
1263 ac_prev=sharedstatedir ;;
1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1267 | --sha=* | --sh=*)
1268 sharedstatedir=$ac_optarg ;;
1269
1270 -site | --site | --sit)
1271 ac_prev=site ;;
1272 -site=* | --site=* | --sit=*)
1273 site=$ac_optarg ;;
1274
1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1276 ac_prev=srcdir ;;
1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278 srcdir=$ac_optarg ;;
1279
1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281 | --syscon | --sysco | --sysc | --sys | --sy)
1282 ac_prev=sysconfdir ;;
1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285 sysconfdir=$ac_optarg ;;
1286
1287 -target | --target | --targe | --targ | --tar | --ta | --t)
1288 ac_prev=target_alias ;;
1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290 target_alias=$ac_optarg ;;
1291
1292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293 verbose=yes ;;
1294
1295 -version | --version | --versio | --versi | --vers | -V)
1296 ac_init_version=: ;;
1297
1298 -with-* | --with-*)
1299 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
Edwin Török20176752008-10-22 09:56:27 +00001301 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
Edwin Török20176752008-10-22 09:56:27 +00001304 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001305 eval with_$ac_package=\$ac_optarg ;;
1306
1307 -without-* | --without-*)
1308 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
Edwin Török20176752008-10-22 09:56:27 +00001310 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001311 { echo "$as_me: error: invalid package name: $ac_package" >&2
1312 { (exit 1); exit 1; }; }
Edwin Török20176752008-10-22 09:56:27 +00001313 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001314 eval with_$ac_package=no ;;
1315
1316 --x)
1317 # Obsolete; use --with-x.
1318 with_x=yes ;;
1319
1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321 | --x-incl | --x-inc | --x-in | --x-i)
1322 ac_prev=x_includes ;;
1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325 x_includes=$ac_optarg ;;
1326
1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329 ac_prev=x_libraries ;;
1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332 x_libraries=$ac_optarg ;;
1333
1334 -*) { echo "$as_me: error: unrecognized option: $ac_option
1335Try \`$0 --help' for more information." >&2
1336 { (exit 1); exit 1; }; }
1337 ;;
1338
1339 *=*)
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1343 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1344 { (exit 1); exit 1; }; }
1345 eval $ac_envvar=\$ac_optarg
1346 export $ac_envvar ;;
1347
1348 *)
1349 # FIXME: should be removed in autoconf 3.0.
1350 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 ;;
1355
1356 esac
1357done
1358
1359if test -n "$ac_prev"; then
1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361 { echo "$as_me: error: missing argument to $ac_option" >&2
1362 { (exit 1); exit 1; }; }
1363fi
1364
1365# Be sure to have absolute directory names.
1366for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1370do
1371 eval ac_val=\$$ac_var
1372 case $ac_val in
1373 [\\/$]* | ?:[\\/]* ) continue;;
1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375 esac
1376 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1377 { (exit 1); exit 1; }; }
1378done
1379
1380# There might be people who depend on the old broken behavior: `$host'
1381# used to hold the argument of --host etc.
1382# FIXME: To remove some day.
1383build=$build_alias
1384host=$host_alias
1385target=$target_alias
1386
1387# FIXME: To remove some day.
1388if test "x$host_alias" != x; then
1389 if test "x$build_alias" = x; then
1390 cross_compiling=maybe
1391 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1394 cross_compiling=yes
1395 fi
1396fi
1397
1398ac_tool_prefix=
1399test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400
1401test "$silent" = yes && exec 6>/dev/null
1402
1403
1404ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405ac_ls_di=`ls -di .` &&
1406ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407 { echo "$as_me: error: Working directory cannot be determined" >&2
1408 { (exit 1); exit 1; }; }
1409test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 { echo "$as_me: error: pwd does not report name of working directory" >&2
1411 { (exit 1); exit 1; }; }
1412
1413
1414# Find the source files, if location was not specified.
1415if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$0" ||
1419$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$0" : 'X\(//\)[^/]' \| \
1421 X"$0" : 'X\(//\)$' \| \
1422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1423echo X"$0" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1426 q
1427 }
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\).*/{
1437 s//\1/
1438 q
1439 }
1440 s/.*/./; q'`
1441 srcdir=$ac_confdir
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 srcdir=..
1444 fi
1445else
1446 ac_srcdir_defaulted=no
1447fi
1448if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1451 { (exit 1); exit 1; }; }
1452fi
1453ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1456 { (exit 1); exit 1; }; }
1457 pwd)`
1458# When building in place, set srcdir=.
1459if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1461fi
1462# Remove unnecessary trailing slashes from srcdir.
1463# Double slashes in file names in object file debugging info
1464# mess up M-x gdb in Emacs.
1465case $srcdir in
1466*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467esac
1468for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473done
1474
1475#
1476# Report the --help message.
1477#
1478if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
Tanya Lattner23493c62008-10-07 04:35:08 +00001482\`configure' configures llvm 2.5svn to adapt to many kinds of systems.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001483
1484Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487VAR=VALUE. See below for descriptions of some of the useful variables.
1488
1489Defaults for the options are specified in brackets.
1490
1491Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501
1502Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 [PREFIX]
1507
1508By default, \`make install' will install all the files in
1509\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511for instance \`--prefix=\$HOME'.
1512
1513For better control, use the options below.
1514
1515Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535_ACEOF
1536
1537 cat <<\_ACEOF
1538
1539System types:
1540 --build=BUILD configure for building on BUILD [guessed]
1541 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1542 --target=TARGET configure for building compilers for TARGET [HOST]
1543_ACEOF
1544fi
1545
1546if test -n "$ac_init_help"; then
1547 case $ac_init_help in
Tanya Lattner23493c62008-10-07 04:35:08 +00001548 short | recursive ) echo "Configuration of llvm 2.5svn:";;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001549 esac
1550 cat <<\_ACEOF
1551
1552Optional Features:
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --enable-optimized
1556 --enable-assertions
1557 --enable-expensive-checks
1558
1559 --enable-debug-runtime
1560 --enable-jit Enable Just In Time Compiling (default is YES)
1561 --enable-doxygen Build doxygen documentation (default is NO)
1562 --enable-threads Use threads if available (default is YES)
1563 --enable-pic Build LLVM with Position Independent Code (default
1564 is NO)
1565 --enable-targets Build specific host targets:
1566 all,host-only,{target-name} (default=all)
1567 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1568 %a (default is YES)
Gordon Henriksen016ec472007-10-02 09:50:32 +00001569 --enable-bindings Build specific language bindings:
1570 all,auto,none,{binding-name} (default=auto)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001571 --enable-ltdl-install install libltdl
1572 --enable-shared[=PKGS] build shared libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001573 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001574 --enable-static[=PKGS] build static libraries
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001575 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001576 --enable-fast-install[=PKGS]
1577 optimize for fast installation
Tanya Lattnerf5a0f0e2007-09-17 21:41:15 +00001578 [default=yes]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001579 --disable-libtool-lock avoid locking (might break parallel builds)
1580
1581Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1585 searches PATH)
Devang Pateld84ba7b2007-12-04 22:54:47 +00001586 --with-llvmgcc Specify location of llvm-gcc driver (default
1587 searches PATH)
1588 --with-llvmgxx Specify location of llvm-g++ driver (default
1589 searches PATH)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001590 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksen058a4c62007-10-02 16:42:22 +00001591 --with-ocaml-libdir Specify install location for ocaml bindings (default
1592 is stdlib)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001593 --with-tclinclude directory where tcl headers are
1594 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1595 --with-pic try to use only PIC/non-PIC objects [default=use
1596 both]
1597 --with-tags[=TAGS] include additional configurations [automatic]
1598 --with-udis86=<path> Use udis86 external x86 disassembler library
1599
1600Some influential environment variables:
1601 CC C compiler command
1602 CFLAGS C compiler flags
1603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1604 nonstandard directory <lib dir>
Edwin Török20176752008-10-22 09:56:27 +00001605 LIBS libraries to pass to the linker, e.g. -l<library>
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001606 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1607 you have headers in a nonstandard directory <include dir>
1608 CPP C preprocessor
1609 CXX C++ compiler command
1610 CXXFLAGS C++ compiler flags
1611 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1612 the first program found out of: `bison -y', `byacc', `yacc'.
1613 YFLAGS The list of arguments that will be passed by default to $YACC.
1614 This script will default YFLAGS to the empty string to avoid a
1615 default value of `-d' given by some make applications.
1616 CXXCPP C++ preprocessor
1617 F77 Fortran 77 compiler command
1618 FFLAGS Fortran 77 compiler flags
1619
1620Use these variables to override the choices made by `configure' or to help
1621it to find libraries and programs with nonstandard names/locations.
1622
1623Report bugs to <llvmbugs@cs.uiuc.edu>.
1624_ACEOF
1625ac_status=$?
1626fi
1627
1628if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" || continue
1632 ac_builddir=.
1633
1634case "$ac_dir" in
1635.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636*)
1637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 esac ;;
1644esac
1645ac_abs_top_builddir=$ac_pwd
1646ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647# for backward compatibility:
1648ac_top_builddir=$ac_top_build_prefix
1649
1650case $srcdir in
1651 .) # We are building in place.
1652 ac_srcdir=.
1653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
1656 ac_srcdir=$srcdir$ac_dir_suffix;
1657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1659 *) # Relative name.
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1663esac
1664ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665
1666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1672 echo &&
1673 $SHELL "$ac_srcdir/configure" --help=recursive
1674 else
1675 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1676 fi || ac_status=$?
1677 cd "$ac_pwd" || { ac_status=$?; break; }
1678 done
1679fi
1680
1681test -n "$ac_init_help" && exit $ac_status
1682if $ac_init_version; then
1683 cat <<\_ACEOF
Tanya Lattner23493c62008-10-07 04:35:08 +00001684llvm configure 2.5svn
Edwin Török20176752008-10-22 09:56:27 +00001685generated by GNU Autoconf 2.61
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001686
1687Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16882002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1689This configure script is free software; the Free Software Foundation
1690gives unlimited permission to copy, distribute and modify it.
1691
Tanya Lattnerf4644302008-01-17 05:57:22 +00001692Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001693_ACEOF
1694 exit
1695fi
1696cat >config.log <<_ACEOF
1697This file contains any messages produced by compilers while
1698running configure, to aid debugging if configure makes a mistake.
1699
Tanya Lattner23493c62008-10-07 04:35:08 +00001700It was created by llvm $as_me 2.5svn, which was
Edwin Török20176752008-10-22 09:56:27 +00001701generated by GNU Autoconf 2.61. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001702
1703 $ $0 $@
1704
1705_ACEOF
1706exec 5>>config.log
1707{
1708cat <<_ASUNAME
1709## --------- ##
1710## Platform. ##
1711## --------- ##
1712
1713hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
1719/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1721
1722/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1726/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1729
1730_ASUNAME
1731
1732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733for as_dir in $PATH
1734do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 echo "PATH: $as_dir"
1738done
1739IFS=$as_save_IFS
1740
1741} >&5
1742
1743cat >&5 <<_ACEOF
1744
1745
1746## ----------- ##
1747## Core tests. ##
1748## ----------- ##
1749
1750_ACEOF
1751
1752
1753# Keep a trace of the command line.
1754# Strip out --no-create and --no-recursion so they do not pile up.
1755# Strip out --silent because we don't want to record it for future runs.
1756# Also quote any args containing shell meta-characters.
1757# Make two passes to allow for proper duplicate-argument suppression.
1758ac_configure_args=
1759ac_configure_args0=
1760ac_configure_args1=
1761ac_must_keep_next=false
1762for ac_pass in 1 2
1763do
1764 for ac_arg
1765 do
1766 case $ac_arg in
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1770 continue ;;
1771 *\'*)
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 esac
1774 case $ac_pass in
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776 2)
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
1779 ac_must_keep_next=false # Got value, back to normal.
1780 else
1781 case $ac_arg in
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788 esac
1789 ;;
1790 -* ) ac_must_keep_next=true ;;
1791 esac
1792 fi
1793 ac_configure_args="$ac_configure_args '$ac_arg'"
1794 ;;
1795 esac
1796 done
1797done
1798$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800
1801# When interrupted or exit'd, cleanup temporary files, and complete
1802# config.log. We remove comments because anyway the quotes in there
1803# would cause problems or look ugly.
1804# WARNING: Use '\'' to represent an apostrophe within the trap.
1805# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1808 {
1809 echo
1810
1811 cat <<\_ASBOX
1812## ---------------- ##
1813## Cache variables. ##
1814## ---------------- ##
1815_ASBOX
1816 echo
1817 # The following way of writing the cache mishandles newlines in values,
1818(
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1821 case $ac_val in #(
1822 *${as_nl}*)
1823 case $ac_var in #(
1824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1826 esac
1827 case $ac_var in #(
1828 _ | IFS | as_nl) ;; #(
1829 *) $as_unset $ac_var ;;
1830 esac ;;
1831 esac
1832 done
1833 (set) 2>&1 |
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1836 sed -n \
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1839 ;; #(
1840 *)
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1842 ;;
1843 esac |
1844 sort
1845)
1846 echo
1847
1848 cat <<\_ASBOX
1849## ----------------- ##
1850## Output variables. ##
1851## ----------------- ##
1852_ASBOX
1853 echo
1854 for ac_var in $ac_subst_vars
1855 do
1856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 echo "$ac_var='\''$ac_val'\''"
1861 done | sort
1862 echo
1863
1864 if test -n "$ac_subst_files"; then
1865 cat <<\_ASBOX
1866## ------------------- ##
1867## File substitutions. ##
1868## ------------------- ##
1869_ASBOX
1870 echo
1871 for ac_var in $ac_subst_files
1872 do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1880 fi
1881
1882 if test -s confdefs.h; then
1883 cat <<\_ASBOX
1884## ----------- ##
1885## confdefs.h. ##
1886## ----------- ##
1887_ASBOX
1888 echo
1889 cat confdefs.h
1890 echo
1891 fi
1892 test "$ac_signal" != 0 &&
1893 echo "$as_me: caught signal $ac_signal"
1894 echo "$as_me: exit $exit_status"
1895 } >&5
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1898 exit $exit_status
1899' 0
1900for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1902done
1903ac_signal=0
1904
1905# confdefs.h avoids OS command line length limits that DEFS can exceed.
1906rm -f -r conftest* confdefs.h
1907
1908# Predefined preprocessor variables.
1909
1910cat >>confdefs.h <<_ACEOF
1911#define PACKAGE_NAME "$PACKAGE_NAME"
1912_ACEOF
1913
1914
1915cat >>confdefs.h <<_ACEOF
1916#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1917_ACEOF
1918
1919
1920cat >>confdefs.h <<_ACEOF
1921#define PACKAGE_VERSION "$PACKAGE_VERSION"
1922_ACEOF
1923
1924
1925cat >>confdefs.h <<_ACEOF
1926#define PACKAGE_STRING "$PACKAGE_STRING"
1927_ACEOF
1928
1929
1930cat >>confdefs.h <<_ACEOF
1931#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1932_ACEOF
1933
1934
1935# Let the site file select an alternate cache file if it wants to.
1936# Prefer explicitly selected file to automatically selected ones.
1937if test -n "$CONFIG_SITE"; then
1938 set x "$CONFIG_SITE"
1939elif test "x$prefix" != xNONE; then
1940 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941else
1942 set x "$ac_default_prefix/share/config.site" \
1943 "$ac_default_prefix/etc/config.site"
1944fi
1945shift
1946for ac_site_file
1947do
1948 if test -r "$ac_site_file"; then
1949 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1952 . "$ac_site_file"
1953 fi
1954done
1955
1956if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961echo "$as_me: loading cache $cache_file" >&6;}
1962 case $cache_file in
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
1965 esac
1966 fi
1967else
1968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969echo "$as_me: creating cache $cache_file" >&6;}
1970 >$cache_file
1971fi
1972
1973# Check that the precious variables saved in the cache have kept the same
1974# value.
1975ac_cache_corrupted=false
1976for ac_var in $ac_precious_vars; do
1977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
1979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
1981 case $ac_old_set,$ac_new_set in
1982 set,)
1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1986 ,set)
1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1990 ,);;
1991 *)
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
1993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1996echo "$as_me: former value: $ac_old_val" >&2;}
1997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1998echo "$as_me: current value: $ac_new_val" >&2;}
1999 ac_cache_corrupted=:
2000 fi;;
2001 esac
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2004 case $ac_new_val in
2005 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *) ac_arg=$ac_var=$ac_new_val ;;
2007 esac
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011 esac
2012 fi
2013done
2014if $ac_cache_corrupted; then
2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2020fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053
Tanya Lattnerf4644302008-01-17 05:57:22 +00002054LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002055
2056
2057
2058
2059
2060
2061
2062ac_aux_dir=
2063for ac_dir in autoconf "$srcdir"/autoconf; do
2064 if test -f "$ac_dir/install-sh"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/install-sh -c"
2067 break
2068 elif test -f "$ac_dir/install.sh"; then
2069 ac_aux_dir=$ac_dir
2070 ac_install_sh="$ac_aux_dir/install.sh -c"
2071 break
2072 elif test -f "$ac_dir/shtool"; then
2073 ac_aux_dir=$ac_dir
2074 ac_install_sh="$ac_aux_dir/shtool install -c"
2075 break
2076 fi
2077done
2078if test -z "$ac_aux_dir"; then
2079 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2080echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2081 { (exit 1); exit 1; }; }
2082fi
2083
2084# These three variables are undocumented and unsupported,
2085# and are intended to be withdrawn in a future Autoconf release.
2086# They can cause serious problems if a builder's source tree is in a directory
2087# whose full name contains unusual characters.
2088ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2089ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2090ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2091
2092
2093
2094if test ${srcdir} != "." ; then
2095 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2096 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2097echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2098 { (exit 1); exit 1; }; }
2099 fi
2100fi
2101
2102for i in `ls ${srcdir}/projects`
2103do
2104 if test -d ${srcdir}/projects/${i} ; then
2105 case ${i} in
2106 CVS) ;;
2107 sample) subdirs="$subdirs projects/sample"
2108 ;;
2109 privbracket) subdirs="$subdirs projects/privbracket"
2110 ;;
2111 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2112 ;;
Tanya Lattneree1742c2008-06-24 17:49:13 +00002113 # llvm-test is the old name of the test-suite, kept here for backwards
2114 # compatibility
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002115 llvm-test) subdirs="$subdirs projects/llvm-test"
2116 ;;
Matthijs Kooijman0b8be862008-06-24 13:01:57 +00002117 test-suite) subdirs="$subdirs projects/test-suite"
2118 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002119 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2120;;
2121 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2122 ;;
2123 llvm-java) subdirs="$subdirs projects/llvm-java"
2124 ;;
2125 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2126 ;;
2127 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2128 ;;
Reid Spencer59c09b32007-07-30 20:13:24 +00002129 poolalloc) subdirs="$subdirs projects/poolalloc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002130 ;;
2131 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2132 ;;
2133 *)
2134 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2135echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2136 ;;
2137 esac
2138 fi
2139done
2140
2141
2142# Make sure we can run config.sub.
2143$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2146 { (exit 1); exit 1; }; }
2147
2148{ echo "$as_me:$LINENO: checking build system type" >&5
2149echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2150if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153 ac_build_alias=$build_alias
2154test "x$ac_build_alias" = x &&
2155 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156test "x$ac_build_alias" = x &&
2157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
2160ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2163 { (exit 1); exit 1; }; }
2164
2165fi
2166{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167echo "${ECHO_T}$ac_cv_build" >&6; }
2168case $ac_cv_build in
2169*-*-*) ;;
2170*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171echo "$as_me: error: invalid value of canonical build" >&2;}
2172 { (exit 1); exit 1; }; };;
2173esac
2174build=$ac_cv_build
2175ac_save_IFS=$IFS; IFS='-'
2176set x $ac_cv_build
2177shift
2178build_cpu=$1
2179build_vendor=$2
2180shift; shift
2181# Remember, the first character of IFS is used to create $*,
2182# except with old shells:
2183build_os=$*
2184IFS=$ac_save_IFS
2185case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2186
2187
2188{ echo "$as_me:$LINENO: checking host system type" >&5
2189echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2190if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 if test "x$host_alias" = x; then
2194 ac_cv_host=$ac_cv_build
2195else
2196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2200fi
2201
2202fi
2203{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204echo "${ECHO_T}$ac_cv_host" >&6; }
2205case $ac_cv_host in
2206*-*-*) ;;
2207*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208echo "$as_me: error: invalid value of canonical host" >&2;}
2209 { (exit 1); exit 1; }; };;
2210esac
2211host=$ac_cv_host
2212ac_save_IFS=$IFS; IFS='-'
2213set x $ac_cv_host
2214shift
2215host_cpu=$1
2216host_vendor=$2
2217shift; shift
2218# Remember, the first character of IFS is used to create $*,
2219# except with old shells:
2220host_os=$*
2221IFS=$ac_save_IFS
2222case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2223
2224
2225{ echo "$as_me:$LINENO: checking target system type" >&5
2226echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2227if test "${ac_cv_target+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230 if test "x$target_alias" = x; then
2231 ac_cv_target=$ac_cv_host
2232else
2233 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2234 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2235echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2236 { (exit 1); exit 1; }; }
2237fi
2238
2239fi
2240{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2241echo "${ECHO_T}$ac_cv_target" >&6; }
2242case $ac_cv_target in
2243*-*-*) ;;
2244*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2245echo "$as_me: error: invalid value of canonical target" >&2;}
2246 { (exit 1); exit 1; }; };;
2247esac
2248target=$ac_cv_target
2249ac_save_IFS=$IFS; IFS='-'
2250set x $ac_cv_target
2251shift
2252target_cpu=$1
2253target_vendor=$2
2254shift; shift
2255# Remember, the first character of IFS is used to create $*,
2256# except with old shells:
2257target_os=$*
2258IFS=$ac_save_IFS
2259case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2260
2261
2262# The aliases save the names the user supplied, while $host etc.
2263# will get canonicalized.
2264test -n "$target_alias" &&
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2266 NONENONEs,x,x, &&
2267 program_prefix=${target_alias}-
2268
2269{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2270echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2271if test "${llvm_cv_os_type+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2273else
2274 case $host in
2275 *-*-aix*)
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="AIX"
2279 llvm_cv_platform_type="Unix" ;;
2280 *-*-irix*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="IRIX"
2284 llvm_cv_platform_type="Unix" ;;
2285 *-*-cygwin*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Cygwin"
2289 llvm_cv_platform_type="Unix" ;;
2290 *-*-darwin*)
2291 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattnerf0ddba82008-02-05 19:43:53 +00002292 llvm_cv_no_link_all_option="-Wl,-noall_load"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002293 llvm_cv_os_type="Darwin"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-freebsd*)
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="FreeBSD"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-openbsd*)
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="OpenBSD"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-netbsd*)
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="NetBSD"
2309 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijman331217d2008-06-26 10:36:58 +00002310 *-*-dragonfly*)
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="DragonFly"
2314 llvm_cv_platform_type="Unix" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002315 *-*-hpux*)
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="HP-UX"
2319 llvm_cv_platform_type="Unix" ;;
2320 *-*-interix*)
2321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2323 llvm_cv_os_type="Interix"
2324 llvm_cv_platform_type="Unix" ;;
2325 *-*-linux*)
2326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328 llvm_cv_os_type="Linux"
2329 llvm_cv_platform_type="Unix" ;;
2330 *-*-solaris*)
2331 llvm_cv_link_all_option="-Wl,-z,allextract"
2332 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2333 llvm_cv_os_type="SunOS"
2334 llvm_cv_platform_type="Unix" ;;
2335 *-*-win32*)
2336 llvm_cv_link_all_option="-Wl,--whole-archive"
2337 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2338 llvm_cv_os_type="Win32"
2339 llvm_cv_platform_type="Win32" ;;
2340 *-*-mingw*)
2341 llvm_cv_link_all_option="-Wl,--whole-archive"
2342 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2343 llvm_cv_os_type="MingW"
2344 llvm_cv_platform_type="Win32" ;;
2345 *)
2346 llvm_cv_link_all_option=""
2347 llvm_cv_no_link_all_option=""
2348 llvm_cv_os_type="Unknown"
2349 llvm_cv_platform_type="Unknown" ;;
2350esac
2351fi
2352{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2353echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2354
2355if test "$llvm_cv_os_type" = "Unknown" ; then
2356 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2357echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2358 { (exit 1); exit 1; }; }
2359fi
2360
2361OS=$llvm_cv_os_type
2362
2363
2364LINKALL=$llvm_cv_link_all_option
2365
2366NOLINKALL=$llvm_cv_no_link_all_option
2367
2368
2369case $llvm_cv_platform_type in
2370 Unix)
2371
2372cat >>confdefs.h <<\_ACEOF
2373#define LLVM_ON_UNIX 1
2374_ACEOF
2375
2376 LLVM_ON_UNIX=1
2377
2378 LLVM_ON_WIN32=0
2379
2380 ;;
2381 Win32)
2382
2383cat >>confdefs.h <<\_ACEOF
2384#define LLVM_ON_WIN32 1
2385_ACEOF
2386
2387 LLVM_ON_UNIX=0
2388
2389 LLVM_ON_WIN32=1
2390
2391 ;;
2392esac
2393
2394{ echo "$as_me:$LINENO: checking target architecture" >&5
2395echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399 case $target in
2400 i?86-*) llvm_cv_target_arch="x86" ;;
2401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2402 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2404 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2405 ia64-*) llvm_cv_target_arch="IA64" ;;
2406 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00002407 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00002408 pic16-*) llvm_cv_target_arch="PIC16" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002409 *) llvm_cv_target_arch="Unknown" ;;
2410esac
2411fi
2412{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2414
2415if test "$llvm_cv_target_arch" = "Unknown" ; then
2416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2418fi
2419
2420ARCH=$llvm_cv_target_arch
2421
2422
2423ac_ext=c
2424ac_cpp='$CPP $CPPFLAGS'
2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428if test -n "$ac_tool_prefix"; then
2429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2430set dummy ${ac_tool_prefix}gcc; ac_word=$2
2431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435else
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00002445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450done
2451done
2452IFS=$as_save_IFS
2453
2454fi
2455fi
2456CC=$ac_cv_prog_CC
2457if test -n "$CC"; then
2458 { echo "$as_me:$LINENO: result: $CC" >&5
2459echo "${ECHO_T}$CC" >&6; }
2460else
2461 { echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6; }
2463fi
2464
2465
2466fi
2467if test -z "$ac_cv_prog_CC"; then
2468 ac_ct_CC=$CC
2469 # Extract the first word of "gcc", so it can be a program name with args.
2470set dummy gcc; ac_word=$2
2471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476 if test -n "$ac_ct_CC"; then
2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00002485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002486 ac_cv_prog_ac_ct_CC="gcc"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2489 fi
2490done
2491done
2492IFS=$as_save_IFS
2493
2494fi
2495fi
2496ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497if test -n "$ac_ct_CC"; then
2498 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499echo "${ECHO_T}$ac_ct_CC" >&6; }
2500else
2501 { echo "$as_me:$LINENO: result: no" >&5
2502echo "${ECHO_T}no" >&6; }
2503fi
2504
2505 if test "x$ac_ct_CC" = x; then
2506 CC=""
2507 else
2508 case $cross_compiling:$ac_tool_warned in
2509yes:)
2510{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2511whose name does not start with the host triplet. If you think this
2512configuration is useful to you, please write to autoconf@gnu.org." >&5
2513echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2514whose name does not start with the host triplet. If you think this
2515configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2516ac_tool_warned=yes ;;
2517esac
2518 CC=$ac_ct_CC
2519 fi
2520else
2521 CC="$ac_cv_prog_CC"
2522fi
2523
2524if test -z "$CC"; then
2525 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2527set dummy ${ac_tool_prefix}cc; ac_word=$2
2528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00002542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002543 ac_cv_prog_CC="${ac_tool_prefix}cc"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547done
2548done
2549IFS=$as_save_IFS
2550
2551fi
2552fi
2553CC=$ac_cv_prog_CC
2554if test -n "$CC"; then
2555 { echo "$as_me:$LINENO: result: $CC" >&5
2556echo "${ECHO_T}$CC" >&6; }
2557else
2558 { echo "$as_me:$LINENO: result: no" >&5
2559echo "${ECHO_T}no" >&6; }
2560fi
2561
2562
2563 fi
2564fi
2565if test -z "$CC"; then
2566 # Extract the first word of "cc", so it can be a program name with args.
2567set dummy cc; ac_word=$2
2568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570if test "${ac_cv_prog_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572else
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2575else
2576 ac_prog_rejected=no
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00002583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2585 ac_prog_rejected=yes
2586 continue
2587 fi
2588 ac_cv_prog_CC="cc"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592done
2593done
2594IFS=$as_save_IFS
2595
2596if test $ac_prog_rejected = yes; then
2597 # We found a bogon in the path, so make sure we never use it.
2598 set dummy $ac_cv_prog_CC
2599 shift
2600 if test $# != 0; then
2601 # We chose a different compiler from the bogus one.
2602 # However, it has the same basename, so the bogon will be chosen
2603 # first if we set CC to just the basename; use the full file name.
2604 shift
2605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2606 fi
2607fi
2608fi
2609fi
2610CC=$ac_cv_prog_CC
2611if test -n "$CC"; then
2612 { echo "$as_me:$LINENO: result: $CC" >&5
2613echo "${ECHO_T}$CC" >&6; }
2614else
2615 { echo "$as_me:$LINENO: result: no" >&5
2616echo "${ECHO_T}no" >&6; }
2617fi
2618
2619
2620fi
2621if test -z "$CC"; then
2622 if test -n "$ac_tool_prefix"; then
2623 for ac_prog in cl.exe
2624 do
2625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629if test "${ac_cv_prog_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00002641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2645 fi
2646done
2647done
2648IFS=$as_save_IFS
2649
2650fi
2651fi
2652CC=$ac_cv_prog_CC
2653if test -n "$CC"; then
2654 { echo "$as_me:$LINENO: result: $CC" >&5
2655echo "${ECHO_T}$CC" >&6; }
2656else
2657 { echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6; }
2659fi
2660
2661
2662 test -n "$CC" && break
2663 done
2664fi
2665if test -z "$CC"; then
2666 ac_ct_CC=$CC
2667 for ac_prog in cl.exe
2668do
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670set dummy $ac_prog; ac_word=$2
2671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00002685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002686 ac_cv_prog_ac_ct_CC="$ac_prog"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690done
2691done
2692IFS=$as_save_IFS
2693
2694fi
2695fi
2696ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697if test -n "$ac_ct_CC"; then
2698 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2699echo "${ECHO_T}$ac_ct_CC" >&6; }
2700else
2701 { echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6; }
2703fi
2704
2705
2706 test -n "$ac_ct_CC" && break
2707done
2708
2709 if test "x$ac_ct_CC" = x; then
2710 CC=""
2711 else
2712 case $cross_compiling:$ac_tool_warned in
2713yes:)
2714{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2715whose name does not start with the host triplet. If you think this
2716configuration is useful to you, please write to autoconf@gnu.org." >&5
2717echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2718whose name does not start with the host triplet. If you think this
2719configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2720ac_tool_warned=yes ;;
2721esac
2722 CC=$ac_ct_CC
2723 fi
2724fi
2725
2726fi
2727
2728
2729test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2730See \`config.log' for more details." >&5
2731echo "$as_me: error: no acceptable C compiler found in \$PATH
2732See \`config.log' for more details." >&2;}
2733 { (exit 1); exit 1; }; }
2734
2735# Provide some information about the compiler.
2736echo "$as_me:$LINENO: checking for C compiler version" >&5
2737ac_compiler=`set X $ac_compile; echo $2`
2738{ (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2748{ (ac_try="$ac_compiler -v >&5"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compiler -v >&5") 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }
2758{ (ac_try="$ac_compiler -V >&5"
2759case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762esac
2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_compiler -V >&5") 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2768
2769cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h. */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h. */
2775
2776int
2777main ()
2778{
2779
2780 ;
2781 return 0;
2782}
2783_ACEOF
2784ac_clean_files_save=$ac_clean_files
2785ac_clean_files="$ac_clean_files a.out a.exe b.out"
2786# Try to create an executable without -o first, disregard a.out.
2787# It will help us diagnose broken compilers, and finding out an intuition
2788# of exeext.
2789{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2790echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792#
2793# List of possible output files, starting from the most likely.
2794# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2795# only as a last resort. b.out is created by i960 compilers.
2796ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2797#
2798# The IRIX 6 linker writes into existing files which may not be
2799# executable, retaining their permissions. Remove them first so a
2800# subsequent execution test works.
2801ac_rmfiles=
2802for ac_file in $ac_files
2803do
2804 case $ac_file in
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2807 esac
2808done
2809rm -f $ac_rmfiles
2810
2811if { (ac_try="$ac_link_default"
2812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_link_default") 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
2821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2822# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2823# in a Makefile. We should not override ac_cv_exeext if it was cached,
2824# so that the user can short-circuit this test for compilers unknown to
2825# Autoconf.
Edwin Török20176752008-10-22 09:56:27 +00002826for ac_file in $ac_files ''
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002827do
2828 test -f "$ac_file" || continue
2829 case $ac_file in
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2831 ;;
2832 [ab].out )
2833 # We found the default executable, but exeext='' is most
2834 # certainly right.
2835 break;;
2836 *.* )
2837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2838 then :; else
2839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840 fi
2841 # We set ac_cv_exeext here because the later test for it is not
2842 # safe: cross compilers may not add the suffix if given an `-o'
2843 # argument, so we may need to know it at that point already.
2844 # Even if this section looks crufty: it has the advantage of
2845 # actually working.
2846 break;;
2847 * )
2848 break;;
2849 esac
2850done
2851test "$ac_cv_exeext" = no && ac_cv_exeext=
2852
2853else
Edwin Török20176752008-10-22 09:56:27 +00002854 ac_file=''
2855fi
2856
2857{ echo "$as_me:$LINENO: result: $ac_file" >&5
2858echo "${ECHO_T}$ac_file" >&6; }
2859if test -z "$ac_file"; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002860 echo "$as_me: failed program was:" >&5
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
2863{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2864See \`config.log' for more details." >&5
2865echo "$as_me: error: C compiler cannot create executables
2866See \`config.log' for more details." >&2;}
2867 { (exit 77); exit 77; }; }
2868fi
2869
2870ac_exeext=$ac_cv_exeext
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002871
2872# Check that the compiler produces executables we can run. If not, either
2873# the compiler is broken, or we cross compile.
2874{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2875echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2876# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2877# If not cross compiling, check that we can run a simple program.
2878if test "$cross_compiling" != yes; then
2879 if { ac_try='./$ac_file'
2880 { (case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883esac
2884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_try") 2>&5
2886 ac_status=$?
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2889 cross_compiling=no
2890 else
2891 if test "$cross_compiling" = maybe; then
2892 cross_compiling=yes
2893 else
2894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2895If you meant to cross compile, use \`--host'.
2896See \`config.log' for more details." >&5
2897echo "$as_me: error: cannot run C compiled programs.
2898If you meant to cross compile, use \`--host'.
2899See \`config.log' for more details." >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902 fi
2903fi
2904{ echo "$as_me:$LINENO: result: yes" >&5
2905echo "${ECHO_T}yes" >&6; }
2906
2907rm -f a.out a.exe conftest$ac_cv_exeext b.out
2908ac_clean_files=$ac_clean_files_save
2909# Check that the compiler produces executables we can run. If not, either
2910# the compiler is broken, or we cross compile.
2911{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2912echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2913{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2914echo "${ECHO_T}$cross_compiling" >&6; }
2915
2916{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2917echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2918if { (ac_try="$ac_link"
2919case "(($ac_try" in
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2922esac
2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_link") 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
2928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2929# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2930# work properly (i.e., refer to `conftest.exe'), while it won't with
2931# `rm'.
2932for ac_file in conftest.exe conftest conftest.*; do
2933 test -f "$ac_file" || continue
2934 case $ac_file in
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2937 break;;
2938 * ) break;;
2939 esac
2940done
2941else
2942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2943See \`config.log' for more details." >&5
2944echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2945See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }
2947fi
2948
2949rm -f conftest$ac_cv_exeext
2950{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951echo "${ECHO_T}$ac_cv_exeext" >&6; }
2952
2953rm -f conftest.$ac_ext
2954EXEEXT=$ac_cv_exeext
2955ac_exeext=$EXEEXT
2956{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2958if test "${ac_cv_objext+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960else
2961 cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h. */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h. */
2967
2968int
2969main ()
2970{
2971
2972 ;
2973 return 0;
2974}
2975_ACEOF
2976rm -f conftest.o conftest.obj
2977if { (ac_try="$ac_compile"
2978case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 for ac_file in conftest.o conftest.obj conftest.*; do
2988 test -f "$ac_file" || continue;
2989 case $ac_file in
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2991 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2992 break;;
2993 esac
2994done
2995else
2996 echo "$as_me: failed program was:" >&5
2997sed 's/^/| /' conftest.$ac_ext >&5
2998
2999{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3000See \`config.log' for more details." >&5
3001echo "$as_me: error: cannot compute suffix of object files: cannot compile
3002See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }
3004fi
3005
3006rm -f conftest.$ac_cv_objext conftest.$ac_ext
3007fi
3008{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3009echo "${ECHO_T}$ac_cv_objext" >&6; }
3010OBJEXT=$ac_cv_objext
3011ac_objext=$OBJEXT
3012{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3013echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3014if test "${ac_cv_c_compiler_gnu+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017 cat >conftest.$ac_ext <<_ACEOF
3018/* confdefs.h. */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h. */
3023
3024int
3025main ()
3026{
3027#ifndef __GNUC__
3028 choke me
3029#endif
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext
3036if { (ac_try="$ac_compile"
3037case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3040esac
3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3043 ac_status=$?
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00003048 (exit $ac_status); } && {
3049 test -z "$ac_c_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003052 ac_compiler_gnu=yes
3053else
3054 echo "$as_me: failed program was:" >&5
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 ac_compiler_gnu=no
3058fi
3059
3060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062
3063fi
3064{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3066GCC=`test $ac_compiler_gnu = yes && echo yes`
3067ac_test_CFLAGS=${CFLAGS+set}
3068ac_save_CFLAGS=$CFLAGS
3069{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3070echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3071if test "${ac_cv_prog_cc_g+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073else
3074 ac_save_c_werror_flag=$ac_c_werror_flag
3075 ac_c_werror_flag=yes
3076 ac_cv_prog_cc_g=no
3077 CFLAGS="-g"
3078 cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
3084
3085int
3086main ()
3087{
3088
3089 ;
3090 return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext
3094if { (ac_try="$ac_compile"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00003106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003110 ac_cv_prog_cc_g=yes
3111else
3112 echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 CFLAGS=""
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122
3123int
3124main ()
3125{
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (ac_try="$ac_compile"
3133case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
3137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00003144 (exit $ac_status); } && {
3145 test -z "$ac_c_werror_flag" ||
3146 test ! -s conftest.err
3147 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003148 :
3149else
3150 echo "$as_me: failed program was:" >&5
3151sed 's/^/| /' conftest.$ac_ext >&5
3152
3153 ac_c_werror_flag=$ac_save_c_werror_flag
3154 CFLAGS="-g"
3155 cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h. */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h. */
3161
3162int
3163main ()
3164{
3165
3166 ;
3167 return 0;
3168}
3169_ACEOF
3170rm -f conftest.$ac_objext
3171if { (ac_try="$ac_compile"
3172case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00003183 (exit $ac_status); } && {
3184 test -z "$ac_c_werror_flag" ||
3185 test ! -s conftest.err
3186 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003187 ac_cv_prog_cc_g=yes
3188else
3189 echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192
3193fi
3194
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196fi
3197
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199fi
3200
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3203fi
3204{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3205echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3206if test "$ac_test_CFLAGS" = set; then
3207 CFLAGS=$ac_save_CFLAGS
3208elif test $ac_cv_prog_cc_g = yes; then
3209 if test "$GCC" = yes; then
3210 CFLAGS="-g -O2"
3211 else
3212 CFLAGS="-g"
3213 fi
3214else
3215 if test "$GCC" = yes; then
3216 CFLAGS="-O2"
3217 else
3218 CFLAGS=
3219 fi
3220fi
3221{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3222echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3223if test "${ac_cv_prog_cc_c89+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225else
3226 ac_cv_prog_cc_c89=no
3227ac_save_CC=$CC
3228cat >conftest.$ac_ext <<_ACEOF
3229/* confdefs.h. */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
3233/* end confdefs.h. */
3234#include <stdarg.h>
3235#include <stdio.h>
3236#include <sys/types.h>
3237#include <sys/stat.h>
3238/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239struct buf { int x; };
3240FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241static char *e (p, i)
3242 char **p;
3243 int i;
3244{
3245 return p[i];
3246}
3247static char *f (char * (*g) (char **, int), char **p, ...)
3248{
3249 char *s;
3250 va_list v;
3251 va_start (v,p);
3252 s = g (p, va_arg (v,int));
3253 va_end (v);
3254 return s;
3255}
3256
3257/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
3260 as 'x'. The following induces an error, until -std is added to get
3261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
3263 that's true only with -std. */
3264int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265
3266/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3268#define FOO(x) 'x'
3269int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270
3271int test (int i, double x);
3272struct s1 {int (*f) (int a);};
3273struct s2 {int (*f) (double a);};
3274int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275int argc;
3276char **argv;
3277int
3278main ()
3279{
3280return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3281 ;
3282 return 0;
3283}
3284_ACEOF
3285for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3287do
3288 CC="$ac_save_CC $ac_arg"
3289 rm -f conftest.$ac_objext
3290if { (ac_try="$ac_compile"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_compile") 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00003302 (exit $ac_status); } && {
3303 test -z "$ac_c_werror_flag" ||
3304 test ! -s conftest.err
3305 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003306 ac_cv_prog_cc_c89=$ac_arg
3307else
3308 echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
3311
3312fi
3313
3314rm -f core conftest.err conftest.$ac_objext
3315 test "x$ac_cv_prog_cc_c89" != "xno" && break
3316done
3317rm -f conftest.$ac_ext
3318CC=$ac_save_CC
3319
3320fi
3321# AC_CACHE_VAL
3322case "x$ac_cv_prog_cc_c89" in
3323 x)
3324 { echo "$as_me:$LINENO: result: none needed" >&5
3325echo "${ECHO_T}none needed" >&6; } ;;
3326 xno)
3327 { echo "$as_me:$LINENO: result: unsupported" >&5
3328echo "${ECHO_T}unsupported" >&6; } ;;
3329 *)
3330 CC="$CC $ac_cv_prog_cc_c89"
3331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3332echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3333esac
3334
3335
3336ac_ext=c
3337ac_cpp='$CPP $CPPFLAGS'
3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341
3342
3343ac_ext=c
3344ac_cpp='$CPP $CPPFLAGS'
3345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3349echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3350# On Suns, sometimes $CPP names a directory.
3351if test -n "$CPP" && test -d "$CPP"; then
3352 CPP=
3353fi
3354if test -z "$CPP"; then
3355 if test "${ac_cv_prog_CPP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358 # Double quotes because CPP needs to be expanded
3359 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3360 do
3361 ac_preproc_ok=false
3362for ac_c_preproc_warn_flag in '' yes
3363do
3364 # Use a header file that comes with gcc, so configuring glibc
3365 # with a fresh cross-compiler works.
3366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3367 # <limits.h> exists even on freestanding compilers.
3368 # On the NeXT, cc -E runs the code through the compiler's parser,
3369 # not just through cpp. "Syntax error" is here to catch this case.
3370 cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h. */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h. */
3376#ifdef __STDC__
3377# include <limits.h>
3378#else
3379# include <assert.h>
3380#endif
3381 Syntax error
3382_ACEOF
3383if { (ac_try="$ac_cpp conftest.$ac_ext"
3384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3390 ac_status=$?
3391 grep -v '^ *+' conftest.er1 >conftest.err
3392 rm -f conftest.er1
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00003395 (exit $ac_status); } >/dev/null && {
3396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3397 test ! -s conftest.err
3398 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003399 :
3400else
3401 echo "$as_me: failed program was:" >&5
3402sed 's/^/| /' conftest.$ac_ext >&5
3403
3404 # Broken: fails on valid input.
3405continue
3406fi
3407
3408rm -f conftest.err conftest.$ac_ext
3409
3410 # OK, works on sane cases. Now check whether nonexistent headers
3411 # can be detected and how.
3412 cat >conftest.$ac_ext <<_ACEOF
3413/* confdefs.h. */
3414_ACEOF
3415cat confdefs.h >>conftest.$ac_ext
3416cat >>conftest.$ac_ext <<_ACEOF
3417/* end confdefs.h. */
3418#include <ac_nonexistent.h>
3419_ACEOF
3420if { (ac_try="$ac_cpp conftest.$ac_ext"
3421case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424esac
3425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00003432 (exit $ac_status); } >/dev/null && {
3433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3434 test ! -s conftest.err
3435 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003436 # Broken: success on invalid input.
3437continue
3438else
3439 echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
3442 # Passes both tests.
3443ac_preproc_ok=:
3444break
3445fi
3446
3447rm -f conftest.err conftest.$ac_ext
3448
3449done
3450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451rm -f conftest.err conftest.$ac_ext
3452if $ac_preproc_ok; then
3453 break
3454fi
3455
3456 done
3457 ac_cv_prog_CPP=$CPP
3458
3459fi
3460 CPP=$ac_cv_prog_CPP
3461else
3462 ac_cv_prog_CPP=$CPP
3463fi
3464{ echo "$as_me:$LINENO: result: $CPP" >&5
3465echo "${ECHO_T}$CPP" >&6; }
3466ac_preproc_ok=false
3467for ac_c_preproc_warn_flag in '' yes
3468do
3469 # Use a header file that comes with gcc, so configuring glibc
3470 # with a fresh cross-compiler works.
3471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472 # <limits.h> exists even on freestanding compilers.
3473 # On the NeXT, cc -E runs the code through the compiler's parser,
3474 # not just through cpp. "Syntax error" is here to catch this case.
3475 cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481#ifdef __STDC__
3482# include <limits.h>
3483#else
3484# include <assert.h>
3485#endif
3486 Syntax error
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
Edwin Török20176752008-10-22 09:56:27 +00003500 (exit $ac_status); } >/dev/null && {
3501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3503 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003504 :
3505else
3506 echo "$as_me: failed program was:" >&5
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
3509 # Broken: fails on valid input.
3510continue
3511fi
3512
3513rm -f conftest.err conftest.$ac_ext
3514
3515 # OK, works on sane cases. Now check whether nonexistent headers
3516 # can be detected and how.
3517 cat >conftest.$ac_ext <<_ACEOF
3518/* confdefs.h. */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h. */
3523#include <ac_nonexistent.h>
3524_ACEOF
3525if { (ac_try="$ac_cpp conftest.$ac_ext"
3526case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529esac
3530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00003537 (exit $ac_status); } >/dev/null && {
3538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003541 # Broken: success on invalid input.
3542continue
3543else
3544 echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 # Passes both tests.
3548ac_preproc_ok=:
3549break
3550fi
3551
3552rm -f conftest.err conftest.$ac_ext
3553
3554done
3555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556rm -f conftest.err conftest.$ac_ext
3557if $ac_preproc_ok; then
3558 :
3559else
3560 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3561See \`config.log' for more details." >&5
3562echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3563See \`config.log' for more details." >&2;}
3564 { (exit 1); exit 1; }; }
3565fi
3566
3567ac_ext=c
3568ac_cpp='$CPP $CPPFLAGS'
3569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572
3573
3574{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3575echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3576if test "${ac_cv_path_GREP+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 # Extract the first word of "grep ggrep" to use in msg output
3580if test -z "$GREP"; then
3581set dummy grep ggrep; ac_prog_name=$2
3582if test "${ac_cv_path_GREP+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584else
3585 ac_path_GREP_found=false
3586# Loop through the user's path and test for each of PROGNAME-LIST
3587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3589do
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_prog in grep ggrep; do
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Edwin Török20176752008-10-22 09:56:27 +00003595 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003596 # Check for GNU ac_path_GREP and select it if it is found.
3597 # Check for GNU $ac_path_GREP
3598case `"$ac_path_GREP" --version 2>&1` in
3599*GNU*)
3600 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3601*)
3602 ac_count=0
3603 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3604 while :
3605 do
3606 cat "conftest.in" "conftest.in" >"conftest.tmp"
3607 mv "conftest.tmp" "conftest.in"
3608 cp "conftest.in" "conftest.nl"
3609 echo 'GREP' >> "conftest.nl"
3610 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3612 ac_count=`expr $ac_count + 1`
3613 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3614 # Best one so far, save it but keep looking for a better one
3615 ac_cv_path_GREP="$ac_path_GREP"
3616 ac_path_GREP_max=$ac_count
3617 fi
3618 # 10*(2^10) chars as input seems more than enough
3619 test $ac_count -gt 10 && break
3620 done
3621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3622esac
3623
3624
3625 $ac_path_GREP_found && break 3
3626 done
3627done
3628
3629done
3630IFS=$as_save_IFS
3631
3632
3633fi
3634
3635GREP="$ac_cv_path_GREP"
3636if test -z "$GREP"; then
3637 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3638echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3639 { (exit 1); exit 1; }; }
3640fi
3641
3642else
3643 ac_cv_path_GREP=$GREP
3644fi
3645
3646
3647fi
3648{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3649echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3650 GREP="$ac_cv_path_GREP"
3651
3652
3653{ echo "$as_me:$LINENO: checking for egrep" >&5
3654echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3655if test "${ac_cv_path_EGREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3659 then ac_cv_path_EGREP="$GREP -E"
3660 else
3661 # Extract the first word of "egrep" to use in msg output
3662if test -z "$EGREP"; then
3663set dummy egrep; ac_prog_name=$2
3664if test "${ac_cv_path_EGREP+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667 ac_path_EGREP_found=false
3668# Loop through the user's path and test for each of PROGNAME-LIST
3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3671do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_prog in egrep; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Edwin Török20176752008-10-22 09:56:27 +00003677 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003678 # Check for GNU ac_path_EGREP and select it if it is found.
3679 # Check for GNU $ac_path_EGREP
3680case `"$ac_path_EGREP" --version 2>&1` in
3681*GNU*)
3682 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3683*)
3684 ac_count=0
3685 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3686 while :
3687 do
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 echo 'EGREP' >> "conftest.nl"
3692 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 ac_count=`expr $ac_count + 1`
3695 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_EGREP="$ac_path_EGREP"
3698 ac_path_EGREP_max=$ac_count
3699 fi
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3702 done
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3704esac
3705
3706
3707 $ac_path_EGREP_found && break 3
3708 done
3709done
3710
3711done
3712IFS=$as_save_IFS
3713
3714
3715fi
3716
3717EGREP="$ac_cv_path_EGREP"
3718if test -z "$EGREP"; then
3719 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3720echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3721 { (exit 1); exit 1; }; }
3722fi
3723
3724else
3725 ac_cv_path_EGREP=$EGREP
3726fi
3727
3728
3729 fi
3730fi
3731{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3732echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3733 EGREP="$ac_cv_path_EGREP"
3734
3735
3736{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3737echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3738if test "${ac_cv_header_stdc+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 cat >conftest.$ac_ext <<_ACEOF
3742/* confdefs.h. */
3743_ACEOF
3744cat confdefs.h >>conftest.$ac_ext
3745cat >>conftest.$ac_ext <<_ACEOF
3746/* end confdefs.h. */
3747#include <stdlib.h>
3748#include <stdarg.h>
3749#include <string.h>
3750#include <float.h>
3751
3752int
3753main ()
3754{
3755
3756 ;
3757 return 0;
3758}
3759_ACEOF
3760rm -f conftest.$ac_objext
3761if { (ac_try="$ac_compile"
3762case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765esac
3766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compile") 2>conftest.er1
3768 ac_status=$?
3769 grep -v '^ *+' conftest.er1 >conftest.err
3770 rm -f conftest.er1
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00003773 (exit $ac_status); } && {
3774 test -z "$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003777 ac_cv_header_stdc=yes
3778else
3779 echo "$as_me: failed program was:" >&5
3780sed 's/^/| /' conftest.$ac_ext >&5
3781
3782 ac_cv_header_stdc=no
3783fi
3784
3785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786
3787if test $ac_cv_header_stdc = yes; then
3788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3789 cat >conftest.$ac_ext <<_ACEOF
3790/* confdefs.h. */
3791_ACEOF
3792cat confdefs.h >>conftest.$ac_ext
3793cat >>conftest.$ac_ext <<_ACEOF
3794/* end confdefs.h. */
3795#include <string.h>
3796
3797_ACEOF
3798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799 $EGREP "memchr" >/dev/null 2>&1; then
3800 :
3801else
3802 ac_cv_header_stdc=no
3803fi
3804rm -f conftest*
3805
3806fi
3807
3808if test $ac_cv_header_stdc = yes; then
3809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3810 cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h. */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h. */
3816#include <stdlib.h>
3817
3818_ACEOF
3819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3820 $EGREP "free" >/dev/null 2>&1; then
3821 :
3822else
3823 ac_cv_header_stdc=no
3824fi
3825rm -f conftest*
3826
3827fi
3828
3829if test $ac_cv_header_stdc = yes; then
3830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3831 if test "$cross_compiling" = yes; then
3832 :
3833else
3834 cat >conftest.$ac_ext <<_ACEOF
3835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
3840#include <ctype.h>
3841#include <stdlib.h>
3842#if ((' ' & 0x0FF) == 0x020)
3843# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3844# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3845#else
3846# define ISLOWER(c) \
3847 (('a' <= (c) && (c) <= 'i') \
3848 || ('j' <= (c) && (c) <= 'r') \
3849 || ('s' <= (c) && (c) <= 'z'))
3850# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3851#endif
3852
3853#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3854int
3855main ()
3856{
3857 int i;
3858 for (i = 0; i < 256; i++)
3859 if (XOR (islower (i), ISLOWER (i))
3860 || toupper (i) != TOUPPER (i))
3861 return 2;
3862 return 0;
3863}
3864_ACEOF
3865rm -f conftest$ac_exeext
3866if { (ac_try="$ac_link"
3867case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870esac
3871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_link") 2>&5
3873 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3876 { (case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879esac
3880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_try") 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 :
3886else
3887 echo "$as_me: program exited with status $ac_status" >&5
3888echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891( exit $ac_status )
3892ac_cv_header_stdc=no
3893fi
3894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3895fi
3896
3897
3898fi
3899fi
3900{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3901echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3902if test $ac_cv_header_stdc = yes; then
3903
3904cat >>confdefs.h <<\_ACEOF
3905#define STDC_HEADERS 1
3906_ACEOF
3907
3908fi
3909
3910# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3921 inttypes.h stdint.h unistd.h
3922do
3923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3924{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929 cat >conftest.$ac_ext <<_ACEOF
3930/* confdefs.h. */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h. */
3935$ac_includes_default
3936
3937#include <$ac_header>
3938_ACEOF
3939rm -f conftest.$ac_objext
3940if { (ac_try="$ac_compile"
3941case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944esac
3945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_compile") 2>conftest.er1
3947 ac_status=$?
3948 grep -v '^ *+' conftest.er1 >conftest.err
3949 rm -f conftest.er1
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00003952 (exit $ac_status); } && {
3953 test -z "$ac_c_werror_flag" ||
3954 test ! -s conftest.err
3955 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003956 eval "$as_ac_Header=yes"
3957else
3958 echo "$as_me: failed program was:" >&5
3959sed 's/^/| /' conftest.$ac_ext >&5
3960
3961 eval "$as_ac_Header=no"
3962fi
3963
3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965fi
3966ac_res=`eval echo '${'$as_ac_Header'}'`
3967 { echo "$as_me:$LINENO: result: $ac_res" >&5
3968echo "${ECHO_T}$ac_res" >&6; }
3969if test `eval echo '${'$as_ac_Header'}'` = yes; then
3970 cat >>confdefs.h <<_ACEOF
3971#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3972_ACEOF
3973
3974fi
3975
3976done
3977
3978
3979{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3980echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3981if test "${ac_cv_c_bigendian+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984 # See if sys/param.h defines the BYTE_ORDER macro.
3985cat >conftest.$ac_ext <<_ACEOF
3986/* confdefs.h. */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h. */
3991#include <sys/types.h>
3992#include <sys/param.h>
3993
3994int
3995main ()
3996{
Edwin Török20176752008-10-22 09:56:27 +00003997#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3998 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003999 bogus endian macros
4000#endif
4001
4002 ;
4003 return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext
4007if { (ac_try="$ac_compile"
4008case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011esac
4012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_compile") 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00004019 (exit $ac_status); } && {
4020 test -z "$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004023 # It does; now see whether it defined to BIG_ENDIAN or not.
4024cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h. */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h. */
4030#include <sys/types.h>
4031#include <sys/param.h>
4032
4033int
4034main ()
4035{
4036#if BYTE_ORDER != BIG_ENDIAN
4037 not big endian
4038#endif
4039
4040 ;
4041 return 0;
4042}
4043_ACEOF
4044rm -f conftest.$ac_objext
4045if { (ac_try="$ac_compile"
4046case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049esac
4050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_compile") 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00004057 (exit $ac_status); } && {
4058 test -z "$ac_c_werror_flag" ||
4059 test ! -s conftest.err
4060 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004061 ac_cv_c_bigendian=yes
4062else
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 ac_cv_c_bigendian=no
4067fi
4068
4069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070else
4071 echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 # It does not; compile a test program.
4075if test "$cross_compiling" = yes; then
4076 # try to guess the endianness by grepping values into an object file
4077 ac_cv_c_bigendian=unknown
4078 cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h. */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h. */
4084short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4085short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4086void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4087short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4088short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4089void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4090int
4091main ()
4092{
4093 _ascii (); _ebcdic ();
4094 ;
4095 return 0;
4096}
4097_ACEOF
4098rm -f conftest.$ac_objext
4099if { (ac_try="$ac_compile"
4100case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103esac
4104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105 (eval "$ac_compile") 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00004111 (exit $ac_status); } && {
4112 test -z "$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4114 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004115 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4116 ac_cv_c_bigendian=yes
4117fi
4118if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4119 if test "$ac_cv_c_bigendian" = unknown; then
4120 ac_cv_c_bigendian=no
4121 else
4122 # finding both strings is unlikely to happen, but who knows?
4123 ac_cv_c_bigendian=unknown
4124 fi
4125fi
4126else
4127 echo "$as_me: failed program was:" >&5
4128sed 's/^/| /' conftest.$ac_ext >&5
4129
4130
4131fi
4132
4133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134else
4135 cat >conftest.$ac_ext <<_ACEOF
4136/* confdefs.h. */
4137_ACEOF
4138cat confdefs.h >>conftest.$ac_ext
4139cat >>conftest.$ac_ext <<_ACEOF
4140/* end confdefs.h. */
4141$ac_includes_default
4142int
4143main ()
4144{
4145
4146 /* Are we little or big endian? From Harbison&Steele. */
4147 union
4148 {
4149 long int l;
4150 char c[sizeof (long int)];
4151 } u;
4152 u.l = 1;
4153 return u.c[sizeof (long int) - 1] == 1;
4154
4155 ;
4156 return 0;
4157}
4158_ACEOF
4159rm -f conftest$ac_exeext
4160if { (ac_try="$ac_link"
4161case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_link") 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4176 ac_status=$?
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_c_bigendian=no
4180else
4181 echo "$as_me: program exited with status $ac_status" >&5
4182echo "$as_me: failed program was:" >&5
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
4185( exit $ac_status )
4186ac_cv_c_bigendian=yes
4187fi
4188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4189fi
4190
4191
4192fi
4193
4194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195fi
4196{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4197echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4198case $ac_cv_c_bigendian in
4199 yes)
4200 ENDIAN=big
4201 ;;
4202 no)
4203 ENDIAN=little
4204 ;;
4205 *)
4206 { { echo "$as_me:$LINENO: error: unknown endianness
4207presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4208echo "$as_me: error: unknown endianness
4209presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4210 { (exit 1); exit 1; }; } ;;
4211esac
4212
4213
4214if test "$cross_compiling" = yes; then
4215 LLVM_CROSS_COMPILING=1
4216
4217
4218{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4219echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4220if test "${ac_cv_build_exeext+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4224 ac_cv_build_exeext=.exe
4225else
4226 ac_build_prefix=${build_alias}-
4227
4228 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4229set dummy ${ac_build_prefix}gcc; ac_word=$2
4230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4232if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
4235 if test -n "$BUILD_CC"; then
4236 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00004244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004245 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249done
4250done
4251IFS=$as_save_IFS
4252
4253fi
4254fi
4255BUILD_CC=$ac_cv_prog_BUILD_CC
4256if test -n "$BUILD_CC"; then
4257 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4258echo "${ECHO_T}$BUILD_CC" >&6; }
4259else
4260 { echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6; }
4262fi
4263
4264
4265 if test -z "$BUILD_CC"; then
4266 # Extract the first word of "gcc", so it can be a program name with args.
4267set dummy gcc; ac_word=$2
4268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273 if test -n "$BUILD_CC"; then
4274 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4275else
4276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277for as_dir in $PATH
4278do
4279 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00004282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004283 ac_cv_prog_BUILD_CC="gcc"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 break 2
4286 fi
4287done
4288done
4289IFS=$as_save_IFS
4290
4291fi
4292fi
4293BUILD_CC=$ac_cv_prog_BUILD_CC
4294if test -n "$BUILD_CC"; then
4295 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4296echo "${ECHO_T}$BUILD_CC" >&6; }
4297else
4298 { echo "$as_me:$LINENO: result: no" >&5
4299echo "${ECHO_T}no" >&6; }
4300fi
4301
4302
4303 if test -z "$BUILD_CC"; then
4304 # Extract the first word of "cc", so it can be a program name with args.
4305set dummy cc; ac_word=$2
4306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311 if test -n "$BUILD_CC"; then
4312 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4313else
4314 ac_prog_rejected=no
4315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH
4317do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00004321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004322 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4323 ac_prog_rejected=yes
4324 continue
4325 fi
4326 ac_cv_prog_BUILD_CC="cc"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330done
4331done
4332IFS=$as_save_IFS
4333
4334if test $ac_prog_rejected = yes; then
4335 # We found a bogon in the path, so make sure we never use it.
4336 set dummy $ac_cv_prog_BUILD_CC
4337 shift
4338 if test $# != 0; then
4339 # We chose a different compiler from the bogus one.
4340 # However, it has the same basename, so the bogon will be chosen
4341 # first if we set BUILD_CC to just the basename; use the full file name.
4342 shift
4343 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4344 fi
4345fi
4346fi
4347fi
4348BUILD_CC=$ac_cv_prog_BUILD_CC
4349if test -n "$BUILD_CC"; then
4350 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4351echo "${ECHO_T}$BUILD_CC" >&6; }
4352else
4353 { echo "$as_me:$LINENO: result: no" >&5
4354echo "${ECHO_T}no" >&6; }
4355fi
4356
4357
4358 fi
4359 fi
4360 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4361echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4362 { (exit 1); exit 1; }; }
4363 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4364 rm -f conftest*
4365 echo 'int main () { return 0; }' > conftest.$ac_ext
4366 ac_cv_build_exeext=
4367 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4368 (eval $ac_build_link) 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; then
4372 for file in conftest.*; do
4373 case $file in
Jim Grosbach3d5fca22008-09-26 17:27:58 +00004374 *.c | *.o | *.obj | *.dSYM) ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004375 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4376 esac
4377 done
4378 else
4379 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4380echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4381 { (exit 1); exit 1; }; }
4382 fi
4383 rm -f conftest*
4384 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4385fi
4386fi
4387
4388BUILD_EXEEXT=""
4389test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4390{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4391echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4392ac_build_exeext=$BUILD_EXEEXT
4393
Jim Grosbache4c032e2008-10-02 22:56:44 +00004394 ac_build_prefix=${build_alias}-
4395 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4396set dummy ${ac_build_prefix}g++; ac_word=$2
4397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402 if test -n "$BUILD_CXX"; then
4403 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4404else
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00004411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004412 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416done
4417done
4418IFS=$as_save_IFS
4419
4420fi
4421fi
4422BUILD_CXX=$ac_cv_prog_BUILD_CXX
4423if test -n "$BUILD_CXX"; then
4424 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4425echo "${ECHO_T}$BUILD_CXX" >&6; }
4426else
4427 { echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6; }
4429fi
4430
4431
4432 if test -z "$BUILD_CXX"; then
4433 # Extract the first word of "g++", so it can be a program name with args.
4434set dummy g++; ac_word=$2
4435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439else
4440 if test -n "$BUILD_CXX"; then
4441 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4442else
4443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH
4445do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00004449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004450 ac_cv_prog_BUILD_CXX="g++"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454done
4455done
4456IFS=$as_save_IFS
4457
4458fi
4459fi
4460BUILD_CXX=$ac_cv_prog_BUILD_CXX
4461if test -n "$BUILD_CXX"; then
4462 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4463echo "${ECHO_T}$BUILD_CXX" >&6; }
4464else
4465 { echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6; }
4467fi
4468
4469
4470 if test -z "$BUILD_CXX"; then
4471 # Extract the first word of "c++", so it can be a program name with args.
4472set dummy c++; ac_word=$2
4473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4475if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477else
4478 if test -n "$BUILD_CXX"; then
4479 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4480else
4481 ac_prog_rejected=no
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00004488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbache4c032e2008-10-02 22:56:44 +00004489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4490 ac_prog_rejected=yes
4491 continue
4492 fi
4493 ac_cv_prog_BUILD_CXX="c++"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497done
4498done
4499IFS=$as_save_IFS
4500
4501if test $ac_prog_rejected = yes; then
4502 # We found a bogon in the path, so make sure we never use it.
4503 set dummy $ac_cv_prog_BUILD_CXX
4504 shift
4505 if test $# != 0; then
4506 # We chose a different compiler from the bogus one.
4507 # However, it has the same basename, so the bogon will be chosen
4508 # first if we set BUILD_CXX to just the basename; use the full file name.
4509 shift
4510 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4511 fi
4512fi
4513fi
4514fi
4515BUILD_CXX=$ac_cv_prog_BUILD_CXX
4516if test -n "$BUILD_CXX"; then
4517 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4518echo "${ECHO_T}$BUILD_CXX" >&6; }
4519else
4520 { echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6; }
4522fi
4523
4524
4525 fi
4526 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004527else
4528 LLVM_CROSS_COMPILING=0
4529
4530fi
4531
4532if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4533 cvsbuild="yes"
4534 optimize="no"
4535 CVSBUILD=CVSBUILD=1
4536
4537else
4538 cvsbuild="no"
4539 optimize="yes"
4540fi
4541
4542
4543# Check whether --enable-optimized was given.
4544if test "${enable_optimized+set}" = set; then
4545 enableval=$enable_optimized;
4546else
4547 enableval=$optimize
4548fi
4549
4550if test ${enableval} = "no" ; then
4551 ENABLE_OPTIMIZED=
4552
4553else
4554 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4555
4556fi
4557
4558# Check whether --enable-assertions was given.
4559if test "${enable_assertions+set}" = set; then
4560 enableval=$enable_assertions;
4561else
4562 enableval="yes"
4563fi
4564
4565if test ${enableval} = "yes" ; then
4566 DISABLE_ASSERTIONS=
4567
4568else
4569 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4570
4571fi
4572
4573# Check whether --enable-expensive-checks was given.
4574if test "${enable_expensive_checks+set}" = set; then
4575 enableval=$enable_expensive_checks;
4576else
4577 enableval="no"
4578fi
4579
4580if test ${enableval} = "yes" ; then
4581 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4582
4583 EXPENSIVE_CHECKS=yes
4584
4585else
4586 ENABLE_EXPENSIVE_CHECKS=
4587
4588 EXPENSIVE_CHECKS=no
4589
4590fi
4591
4592# Check whether --enable-debug-runtime was given.
4593if test "${enable_debug_runtime+set}" = set; then
4594 enableval=$enable_debug_runtime;
4595else
4596 enableval=no
4597fi
4598
4599if test ${enableval} = "no" ; then
4600 DEBUG_RUNTIME=
4601
4602else
4603 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4604
4605fi
4606
4607# Check whether --enable-jit was given.
4608if test "${enable_jit+set}" = set; then
4609 enableval=$enable_jit;
4610else
4611 enableval=default
4612fi
4613
4614if test ${enableval} = "no"
4615then
4616 JIT=
4617
4618else
4619 case "$llvm_cv_target_arch" in
4620 x86) TARGET_HAS_JIT=1
4621 ;;
4622 Sparc) TARGET_HAS_JIT=0
4623 ;;
4624 PowerPC) TARGET_HAS_JIT=1
4625 ;;
4626 x86_64) TARGET_HAS_JIT=1
4627 ;;
4628 Alpha) TARGET_HAS_JIT=1
4629 ;;
4630 IA64) TARGET_HAS_JIT=0
4631 ;;
4632 ARM) TARGET_HAS_JIT=0
4633 ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004634 Mips) TARGET_HAS_JIT=0
4635 ;;
Sanjiv Gupta9d6ad602008-05-13 17:37:32 +00004636 PIC16) TARGET_HAS_JIT=0
4637 ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004638 *) TARGET_HAS_JIT=0
4639 ;;
4640 esac
4641fi
4642
4643# Check whether --enable-doxygen was given.
4644if test "${enable_doxygen+set}" = set; then
4645 enableval=$enable_doxygen;
4646else
4647 enableval=default
4648fi
4649
4650case "$enableval" in
4651 yes) ENABLE_DOXYGEN=1
4652 ;;
4653 no) ENABLE_DOXYGEN=0
4654 ;;
4655 default) ENABLE_DOXYGEN=0
4656 ;;
4657 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4658echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4659 { (exit 1); exit 1; }; } ;;
4660esac
4661
4662# Check whether --enable-threads was given.
4663if test "${enable_threads+set}" = set; then
4664 enableval=$enable_threads;
4665else
4666 enableval=default
4667fi
4668
4669case "$enableval" in
4670 yes) ENABLE_THREADS=1
4671 ;;
4672 no) ENABLE_THREADS=0
4673 ;;
4674 default) ENABLE_THREADS=1
4675 ;;
4676 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4677echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4678 { (exit 1); exit 1; }; } ;;
4679esac
4680
4681cat >>confdefs.h <<_ACEOF
4682#define ENABLE_THREADS $ENABLE_THREADS
4683_ACEOF
4684
4685
4686# Check whether --enable-pic was given.
4687if test "${enable_pic+set}" = set; then
4688 enableval=$enable_pic;
4689else
4690 enableval=default
4691fi
4692
4693case "$enableval" in
4694 yes) ENABLE_PIC=1
4695 ;;
4696 no) ENABLE_PIC=0
4697 ;;
4698 default) ENABLE_PIC=0
4699 ;;
4700 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4701echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4702 { (exit 1); exit 1; }; } ;;
4703esac
4704
4705cat >>confdefs.h <<_ACEOF
4706#define ENABLE_PIC $ENABLE_PIC
4707_ACEOF
4708
4709
4710TARGETS_TO_BUILD=""
4711# Check whether --enable-targets was given.
4712if test "${enable_targets+set}" = set; then
4713 enableval=$enable_targets;
4714else
4715 enableval=all
4716fi
4717
4718case "$enableval" in
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004719 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004720 host-only)
4721 case "$llvm_cv_target_arch" in
4722 x86) TARGETS_TO_BUILD="X86" ;;
4723 x86_64) TARGETS_TO_BUILD="X86" ;;
4724 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4725 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4726 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4727 IA64) TARGETS_TO_BUILD="IA64" ;;
4728 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004729 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004730 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004731 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004732 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4733echo "$as_me: error: Can not set target to build" >&2;}
4734 { (exit 1); exit 1; }; } ;;
4735 esac
4736 ;;
4737 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4738 case "$a_target" in
4739 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4740 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4741 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4742 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4743 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4744 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4745 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattner81915b12007-08-29 16:38:16 +00004746 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michelbf31f8b2007-12-05 21:24:02 +00004747 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Gupta3e918f22008-05-14 08:03:23 +00004748 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Nate Begeman5eb39882007-12-13 01:18:52 +00004749 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4750 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner2c67d0d2008-05-10 04:20:38 +00004751 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004752 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4753echo "$as_me: error: Unrecognized target $a_target" >&2;}
4754 { (exit 1); exit 1; }; } ;;
4755 esac
4756 done
4757 ;;
4758esac
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004759TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4760
4761
4762# Check whether --enable-cbe-printf-a was given.
4763if test "${enable_cbe_printf_a+set}" = set; then
4764 enableval=$enable_cbe_printf_a;
4765else
4766 enableval=default
4767fi
4768
4769case "$enableval" in
4770 yes) ENABLE_CBE_PRINTF_A=1
4771 ;;
4772 no) ENABLE_CBE_PRINTF_A=0
4773 ;;
4774 default) ENABLE_CBE_PRINTF_A=1
4775 ;;
4776 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4777echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4778 { (exit 1); exit 1; }; } ;;
4779esac
4780
4781cat >>confdefs.h <<_ACEOF
4782#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4783_ACEOF
4784
4785
4786
4787# Check whether --with-llvmgccdir was given.
4788if test "${with_llvmgccdir+set}" = set; then
4789 withval=$with_llvmgccdir;
4790else
4791 withval=default
4792fi
4793
4794case "$withval" in
4795 default) WITH_LLVMGCCDIR=default ;;
4796 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4797 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4798echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4799 { (exit 1); exit 1; }; } ;;
4800esac
4801
4802
Devang Pateld84ba7b2007-12-04 22:54:47 +00004803# Check whether --with-llvmgcc was given.
4804if test "${with_llvmgcc+set}" = set; then
4805 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4806 WITH_LLVMGCCDIR=""
4807fi
4808
4809
4810
4811# Check whether --with-llvmgxx was given.
4812if test "${with_llvmgxx+set}" = set; then
4813 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4814 WITH_LLVMGCCDIR=""
4815fi
4816
4817
4818if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4819 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4820echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4821 { (exit 1); exit 1; }; };
4822fi
4823
4824if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4825 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4826echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4827 { (exit 1); exit 1; }; };
4828fi
4829
4830
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004831# Check whether --with-extra-options was given.
4832if test "${with_extra_options+set}" = set; then
4833 withval=$with_extra_options;
4834else
4835 withval=default
4836fi
4837
4838case "$withval" in
4839 default) EXTRA_OPTIONS= ;;
4840 *) EXTRA_OPTIONS=$withval ;;
4841esac
4842EXTRA_OPTIONS=$EXTRA_OPTIONS
4843
4844
Gordon Henriksen016ec472007-10-02 09:50:32 +00004845# Check whether --enable-bindings was given.
4846if test "${enable_bindings+set}" = set; then
4847 enableval=$enable_bindings;
4848else
4849 enableval=default
4850fi
4851
4852BINDINGS_TO_BUILD=""
4853case "$enableval" in
Gordon Henriksen2949f502007-10-02 10:14:42 +00004854 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksen016ec472007-10-02 09:50:32 +00004855 all ) BINDINGS_TO_BUILD="ocaml" ;;
4856 none | no) BINDINGS_TO_BUILD="" ;;
4857 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4858 case "$a_binding" in
4859 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4860 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4861echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4862 { (exit 1); exit 1; }; } ;;
4863 esac
4864 done
4865 ;;
4866esac
4867
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004868
Gordon Henriksen058a4c62007-10-02 16:42:22 +00004869# Check whether --with-ocaml-libdir was given.
4870if test "${with_ocaml_libdir+set}" = set; then
4871 withval=$with_ocaml_libdir;
4872else
4873 withval=auto
4874fi
4875
4876case "$withval" in
4877 auto) with_ocaml_libdir="$withval" ;;
4878 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4879 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4880echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4882esac
4883
4884
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004885ac_ext=c
4886ac_cpp='$CPP $CPPFLAGS'
4887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4891echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4892# On Suns, sometimes $CPP names a directory.
4893if test -n "$CPP" && test -d "$CPP"; then
4894 CPP=
4895fi
4896if test -z "$CPP"; then
4897 if test "${ac_cv_prog_CPP+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900 # Double quotes because CPP needs to be expanded
4901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4902 do
4903 ac_preproc_ok=false
4904for ac_c_preproc_warn_flag in '' yes
4905do
4906 # Use a header file that comes with gcc, so configuring glibc
4907 # with a fresh cross-compiler works.
4908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4909 # <limits.h> exists even on freestanding compilers.
4910 # On the NeXT, cc -E runs the code through the compiler's parser,
4911 # not just through cpp. "Syntax error" is here to catch this case.
4912 cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h. */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4917/* end confdefs.h. */
4918#ifdef __STDC__
4919# include <limits.h>
4920#else
4921# include <assert.h>
4922#endif
4923 Syntax error
4924_ACEOF
4925if { (ac_try="$ac_cpp conftest.$ac_ext"
4926case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929esac
4930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4932 ac_status=$?
4933 grep -v '^ *+' conftest.er1 >conftest.err
4934 rm -f conftest.er1
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00004937 (exit $ac_status); } >/dev/null && {
4938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004941 :
4942else
4943 echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 # Broken: fails on valid input.
4947continue
4948fi
4949
4950rm -f conftest.err conftest.$ac_ext
4951
4952 # OK, works on sane cases. Now check whether nonexistent headers
4953 # can be detected and how.
4954 cat >conftest.$ac_ext <<_ACEOF
4955/* confdefs.h. */
4956_ACEOF
4957cat confdefs.h >>conftest.$ac_ext
4958cat >>conftest.$ac_ext <<_ACEOF
4959/* end confdefs.h. */
4960#include <ac_nonexistent.h>
4961_ACEOF
4962if { (ac_try="$ac_cpp conftest.$ac_ext"
4963case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966esac
4967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00004974 (exit $ac_status); } >/dev/null && {
4975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004978 # Broken: success on invalid input.
4979continue
4980else
4981 echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984 # Passes both tests.
4985ac_preproc_ok=:
4986break
4987fi
4988
4989rm -f conftest.err conftest.$ac_ext
4990
4991done
4992# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4993rm -f conftest.err conftest.$ac_ext
4994if $ac_preproc_ok; then
4995 break
4996fi
4997
4998 done
4999 ac_cv_prog_CPP=$CPP
5000
5001fi
5002 CPP=$ac_cv_prog_CPP
5003else
5004 ac_cv_prog_CPP=$CPP
5005fi
5006{ echo "$as_me:$LINENO: result: $CPP" >&5
5007echo "${ECHO_T}$CPP" >&6; }
5008ac_preproc_ok=false
5009for ac_c_preproc_warn_flag in '' yes
5010do
5011 # Use a header file that comes with gcc, so configuring glibc
5012 # with a fresh cross-compiler works.
5013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5014 # <limits.h> exists even on freestanding compilers.
5015 # On the NeXT, cc -E runs the code through the compiler's parser,
5016 # not just through cpp. "Syntax error" is here to catch this case.
5017 cat >conftest.$ac_ext <<_ACEOF
5018/* confdefs.h. */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h. */
5023#ifdef __STDC__
5024# include <limits.h>
5025#else
5026# include <assert.h>
5027#endif
5028 Syntax error
5029_ACEOF
5030if { (ac_try="$ac_cpp conftest.$ac_ext"
5031case "(($ac_try" in
5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 *) ac_try_echo=$ac_try;;
5034esac
5035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5037 ac_status=$?
5038 grep -v '^ *+' conftest.er1 >conftest.err
5039 rm -f conftest.er1
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00005042 (exit $ac_status); } >/dev/null && {
5043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5044 test ! -s conftest.err
5045 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005046 :
5047else
5048 echo "$as_me: failed program was:" >&5
5049sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 # Broken: fails on valid input.
5052continue
5053fi
5054
5055rm -f conftest.err conftest.$ac_ext
5056
5057 # OK, works on sane cases. Now check whether nonexistent headers
5058 # can be detected and how.
5059 cat >conftest.$ac_ext <<_ACEOF
5060/* confdefs.h. */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h. */
5065#include <ac_nonexistent.h>
5066_ACEOF
5067if { (ac_try="$ac_cpp conftest.$ac_ext"
5068case "(($ac_try" in
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5071esac
5072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00005079 (exit $ac_status); } >/dev/null && {
5080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005083 # Broken: success on invalid input.
5084continue
5085else
5086 echo "$as_me: failed program was:" >&5
5087sed 's/^/| /' conftest.$ac_ext >&5
5088
5089 # Passes both tests.
5090ac_preproc_ok=:
5091break
5092fi
5093
5094rm -f conftest.err conftest.$ac_ext
5095
5096done
5097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5098rm -f conftest.err conftest.$ac_ext
5099if $ac_preproc_ok; then
5100 :
5101else
5102 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5103See \`config.log' for more details." >&5
5104echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5105See \`config.log' for more details." >&2;}
5106 { (exit 1); exit 1; }; }
5107fi
5108
5109ac_ext=c
5110ac_cpp='$CPP $CPPFLAGS'
5111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115ac_ext=c
5116ac_cpp='$CPP $CPPFLAGS'
5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120if test -n "$ac_tool_prefix"; then
5121 for ac_prog in gcc
5122 do
5123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127if test "${ac_cv_prog_CC+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130 if test -n "$CC"; then
5131 ac_cv_prog_CC="$CC" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00005139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144done
5145done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150CC=$ac_cv_prog_CC
5151if test -n "$CC"; then
5152 { echo "$as_me:$LINENO: result: $CC" >&5
5153echo "${ECHO_T}$CC" >&6; }
5154else
5155 { echo "$as_me:$LINENO: result: no" >&5
5156echo "${ECHO_T}no" >&6; }
5157fi
5158
5159
5160 test -n "$CC" && break
5161 done
5162fi
5163if test -z "$CC"; then
5164 ac_ct_CC=$CC
5165 for ac_prog in gcc
5166do
5167 # Extract the first word of "$ac_prog", so it can be a program name with args.
5168set dummy $ac_prog; ac_word=$2
5169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5171if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174 if test -n "$ac_ct_CC"; then
5175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00005183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005184 ac_cv_prog_ac_ct_CC="$ac_prog"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188done
5189done
5190IFS=$as_save_IFS
5191
5192fi
5193fi
5194ac_ct_CC=$ac_cv_prog_ac_ct_CC
5195if test -n "$ac_ct_CC"; then
5196 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5197echo "${ECHO_T}$ac_ct_CC" >&6; }
5198else
5199 { echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6; }
5201fi
5202
5203
5204 test -n "$ac_ct_CC" && break
5205done
5206
5207 if test "x$ac_ct_CC" = x; then
5208 CC=""
5209 else
5210 case $cross_compiling:$ac_tool_warned in
5211yes:)
5212{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5213whose name does not start with the host triplet. If you think this
5214configuration is useful to you, please write to autoconf@gnu.org." >&5
5215echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5216whose name does not start with the host triplet. If you think this
5217configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5218ac_tool_warned=yes ;;
5219esac
5220 CC=$ac_ct_CC
5221 fi
5222fi
5223
5224
5225test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5226See \`config.log' for more details." >&5
5227echo "$as_me: error: no acceptable C compiler found in \$PATH
5228See \`config.log' for more details." >&2;}
5229 { (exit 1); exit 1; }; }
5230
5231# Provide some information about the compiler.
5232echo "$as_me:$LINENO: checking for C compiler version" >&5
5233ac_compiler=`set X $ac_compile; echo $2`
5234{ (ac_try="$ac_compiler --version >&5"
5235case "(($ac_try" in
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5238esac
5239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5240 (eval "$ac_compiler --version >&5") 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }
5244{ (ac_try="$ac_compiler -v >&5"
5245case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248esac
5249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compiler -v >&5") 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }
5254{ (ac_try="$ac_compiler -V >&5"
5255case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258esac
5259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_compiler -V >&5") 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }
5264
5265{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5266echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5267if test "${ac_cv_c_compiler_gnu+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270 cat >conftest.$ac_ext <<_ACEOF
5271/* confdefs.h. */
5272_ACEOF
5273cat confdefs.h >>conftest.$ac_ext
5274cat >>conftest.$ac_ext <<_ACEOF
5275/* end confdefs.h. */
5276
5277int
5278main ()
5279{
5280#ifndef __GNUC__
5281 choke me
5282#endif
5283
5284 ;
5285 return 0;
5286}
5287_ACEOF
5288rm -f conftest.$ac_objext
5289if { (ac_try="$ac_compile"
5290case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293esac
5294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_compile") 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00005301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005305 ac_compiler_gnu=yes
5306else
5307 echo "$as_me: failed program was:" >&5
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
5310 ac_compiler_gnu=no
5311fi
5312
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314ac_cv_c_compiler_gnu=$ac_compiler_gnu
5315
5316fi
5317{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5318echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5319GCC=`test $ac_compiler_gnu = yes && echo yes`
5320ac_test_CFLAGS=${CFLAGS+set}
5321ac_save_CFLAGS=$CFLAGS
5322{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5323echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5324if test "${ac_cv_prog_cc_g+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326else
5327 ac_save_c_werror_flag=$ac_c_werror_flag
5328 ac_c_werror_flag=yes
5329 ac_cv_prog_cc_g=no
5330 CFLAGS="-g"
5331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337
5338int
5339main ()
5340{
5341
5342 ;
5343 return 0;
5344}
5345_ACEOF
5346rm -f conftest.$ac_objext
5347if { (ac_try="$ac_compile"
5348case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00005359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005363 ac_cv_prog_cc_g=yes
5364else
5365 echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 CFLAGS=""
5369 cat >conftest.$ac_ext <<_ACEOF
5370/* confdefs.h. */
5371_ACEOF
5372cat confdefs.h >>conftest.$ac_ext
5373cat >>conftest.$ac_ext <<_ACEOF
5374/* end confdefs.h. */
5375
5376int
5377main ()
5378{
5379
5380 ;
5381 return 0;
5382}
5383_ACEOF
5384rm -f conftest.$ac_objext
5385if { (ac_try="$ac_compile"
5386case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389esac
5390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_compile") 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00005397 (exit $ac_status); } && {
5398 test -z "$ac_c_werror_flag" ||
5399 test ! -s conftest.err
5400 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005401 :
5402else
5403 echo "$as_me: failed program was:" >&5
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
5406 ac_c_werror_flag=$ac_save_c_werror_flag
5407 CFLAGS="-g"
5408 cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h. */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h. */
5414
5415int
5416main ()
5417{
5418
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423rm -f conftest.$ac_objext
5424if { (ac_try="$ac_compile"
5425case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428esac
5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_compile") 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00005436 (exit $ac_status); } && {
5437 test -z "$ac_c_werror_flag" ||
5438 test ! -s conftest.err
5439 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005440 ac_cv_prog_cc_g=yes
5441else
5442 echo "$as_me: failed program was:" >&5
5443sed 's/^/| /' conftest.$ac_ext >&5
5444
5445
5446fi
5447
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449fi
5450
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452fi
5453
5454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 ac_c_werror_flag=$ac_save_c_werror_flag
5456fi
5457{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5458echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5459if test "$ac_test_CFLAGS" = set; then
5460 CFLAGS=$ac_save_CFLAGS
5461elif test $ac_cv_prog_cc_g = yes; then
5462 if test "$GCC" = yes; then
5463 CFLAGS="-g -O2"
5464 else
5465 CFLAGS="-g"
5466 fi
5467else
5468 if test "$GCC" = yes; then
5469 CFLAGS="-O2"
5470 else
5471 CFLAGS=
5472 fi
5473fi
5474{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5475echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5476if test "${ac_cv_prog_cc_c89+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479 ac_cv_prog_cc_c89=no
5480ac_save_CC=$CC
5481cat >conftest.$ac_ext <<_ACEOF
5482/* confdefs.h. */
5483_ACEOF
5484cat confdefs.h >>conftest.$ac_ext
5485cat >>conftest.$ac_ext <<_ACEOF
5486/* end confdefs.h. */
5487#include <stdarg.h>
5488#include <stdio.h>
5489#include <sys/types.h>
5490#include <sys/stat.h>
5491/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5492struct buf { int x; };
5493FILE * (*rcsopen) (struct buf *, struct stat *, int);
5494static char *e (p, i)
5495 char **p;
5496 int i;
5497{
5498 return p[i];
5499}
5500static char *f (char * (*g) (char **, int), char **p, ...)
5501{
5502 char *s;
5503 va_list v;
5504 va_start (v,p);
5505 s = g (p, va_arg (v,int));
5506 va_end (v);
5507 return s;
5508}
5509
5510/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5511 function prototypes and stuff, but not '\xHH' hex character constants.
5512 These don't provoke an error unfortunately, instead are silently treated
5513 as 'x'. The following induces an error, until -std is added to get
5514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5515 array size at least. It's necessary to write '\x00'==0 to get something
5516 that's true only with -std. */
5517int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5518
5519/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5520 inside strings and character constants. */
5521#define FOO(x) 'x'
5522int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5523
5524int test (int i, double x);
5525struct s1 {int (*f) (int a);};
5526struct s2 {int (*f) (double a);};
5527int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5528int argc;
5529char **argv;
5530int
5531main ()
5532{
5533return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5539 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5540do
5541 CC="$ac_save_CC $ac_arg"
5542 rm -f conftest.$ac_objext
5543if { (ac_try="$ac_compile"
5544case "(($ac_try" in
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5547esac
5548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5550 ac_status=$?
5551 grep -v '^ *+' conftest.er1 >conftest.err
5552 rm -f conftest.er1
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00005555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005559 ac_cv_prog_cc_c89=$ac_arg
5560else
5561 echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564
5565fi
5566
5567rm -f core conftest.err conftest.$ac_objext
5568 test "x$ac_cv_prog_cc_c89" != "xno" && break
5569done
5570rm -f conftest.$ac_ext
5571CC=$ac_save_CC
5572
5573fi
5574# AC_CACHE_VAL
5575case "x$ac_cv_prog_cc_c89" in
5576 x)
5577 { echo "$as_me:$LINENO: result: none needed" >&5
5578echo "${ECHO_T}none needed" >&6; } ;;
5579 xno)
5580 { echo "$as_me:$LINENO: result: unsupported" >&5
5581echo "${ECHO_T}unsupported" >&6; } ;;
5582 *)
5583 CC="$CC $ac_cv_prog_cc_c89"
5584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5585echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5586esac
5587
5588
5589ac_ext=c
5590ac_cpp='$CPP $CPPFLAGS'
5591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594
5595ac_ext=cpp
5596ac_cpp='$CXXCPP $CPPFLAGS'
5597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5600if test -z "$CXX"; then
5601 if test -n "$CCC"; then
5602 CXX=$CCC
5603 else
5604 if test -n "$ac_tool_prefix"; then
5605 for ac_prog in g++
5606 do
5607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5611if test "${ac_cv_prog_CXX+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614 if test -n "$CXX"; then
5615 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5616else
5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00005623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005624 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5627 fi
5628done
5629done
5630IFS=$as_save_IFS
5631
5632fi
5633fi
5634CXX=$ac_cv_prog_CXX
5635if test -n "$CXX"; then
5636 { echo "$as_me:$LINENO: result: $CXX" >&5
5637echo "${ECHO_T}$CXX" >&6; }
5638else
5639 { echo "$as_me:$LINENO: result: no" >&5
5640echo "${ECHO_T}no" >&6; }
5641fi
5642
5643
5644 test -n "$CXX" && break
5645 done
5646fi
5647if test -z "$CXX"; then
5648 ac_ct_CXX=$CXX
5649 for ac_prog in g++
5650do
5651 # Extract the first word of "$ac_prog", so it can be a program name with args.
5652set dummy $ac_prog; ac_word=$2
5653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5655if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657else
5658 if test -n "$ac_ct_CXX"; then
5659 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00005667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005668 ac_cv_prog_ac_ct_CXX="$ac_prog"
5669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672done
5673done
5674IFS=$as_save_IFS
5675
5676fi
5677fi
5678ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5679if test -n "$ac_ct_CXX"; then
5680 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5681echo "${ECHO_T}$ac_ct_CXX" >&6; }
5682else
5683 { echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6; }
5685fi
5686
5687
5688 test -n "$ac_ct_CXX" && break
5689done
5690
5691 if test "x$ac_ct_CXX" = x; then
5692 CXX="g++"
5693 else
5694 case $cross_compiling:$ac_tool_warned in
5695yes:)
5696{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5697whose name does not start with the host triplet. If you think this
5698configuration is useful to you, please write to autoconf@gnu.org." >&5
5699echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5700whose name does not start with the host triplet. If you think this
5701configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5702ac_tool_warned=yes ;;
5703esac
5704 CXX=$ac_ct_CXX
5705 fi
5706fi
5707
5708 fi
5709fi
5710# Provide some information about the compiler.
5711echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5712ac_compiler=`set X $ac_compile; echo $2`
5713{ (ac_try="$ac_compiler --version >&5"
5714case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compiler --version >&5") 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }
5723{ (ac_try="$ac_compiler -v >&5"
5724case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727esac
5728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_compiler -v >&5") 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }
5733{ (ac_try="$ac_compiler -V >&5"
5734case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737esac
5738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_compiler -V >&5") 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }
5743
5744{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5745echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5746if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748else
5749 cat >conftest.$ac_ext <<_ACEOF
5750/* confdefs.h. */
5751_ACEOF
5752cat confdefs.h >>conftest.$ac_ext
5753cat >>conftest.$ac_ext <<_ACEOF
5754/* end confdefs.h. */
5755
5756int
5757main ()
5758{
5759#ifndef __GNUC__
5760 choke me
5761#endif
5762
5763 ;
5764 return 0;
5765}
5766_ACEOF
5767rm -f conftest.$ac_objext
5768if { (ac_try="$ac_compile"
5769case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772esac
5773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compile") 2>conftest.er1
5775 ac_status=$?
5776 grep -v '^ *+' conftest.er1 >conftest.err
5777 rm -f conftest.er1
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00005780 (exit $ac_status); } && {
5781 test -z "$ac_cxx_werror_flag" ||
5782 test ! -s conftest.err
5783 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005784 ac_compiler_gnu=yes
5785else
5786 echo "$as_me: failed program was:" >&5
5787sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 ac_compiler_gnu=no
5790fi
5791
5792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5794
5795fi
5796{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5797echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5798GXX=`test $ac_compiler_gnu = yes && echo yes`
5799ac_test_CXXFLAGS=${CXXFLAGS+set}
5800ac_save_CXXFLAGS=$CXXFLAGS
5801{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5802echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5803if test "${ac_cv_prog_cxx_g+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805else
5806 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5807 ac_cxx_werror_flag=yes
5808 ac_cv_prog_cxx_g=no
5809 CXXFLAGS="-g"
5810 cat >conftest.$ac_ext <<_ACEOF
5811/* confdefs.h. */
5812_ACEOF
5813cat confdefs.h >>conftest.$ac_ext
5814cat >>conftest.$ac_ext <<_ACEOF
5815/* end confdefs.h. */
5816
5817int
5818main ()
5819{
5820
5821 ;
5822 return 0;
5823}
5824_ACEOF
5825rm -f conftest.$ac_objext
5826if { (ac_try="$ac_compile"
5827case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830esac
5831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_compile") 2>conftest.er1
5833 ac_status=$?
5834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00005838 (exit $ac_status); } && {
5839 test -z "$ac_cxx_werror_flag" ||
5840 test ! -s conftest.err
5841 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005842 ac_cv_prog_cxx_g=yes
5843else
5844 echo "$as_me: failed program was:" >&5
5845sed 's/^/| /' conftest.$ac_ext >&5
5846
5847 CXXFLAGS=""
5848 cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h. */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h. */
5854
5855int
5856main ()
5857{
5858
5859 ;
5860 return 0;
5861}
5862_ACEOF
5863rm -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
Edwin Török20176752008-10-22 09:56:27 +00005876 (exit $ac_status); } && {
5877 test -z "$ac_cxx_werror_flag" ||
5878 test ! -s conftest.err
5879 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005880 :
5881else
5882 echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5886 CXXFLAGS="-g"
5887 cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */
5893
5894int
5895main ()
5896{
5897
5898 ;
5899 return 0;
5900}
5901_ACEOF
5902rm -f conftest.$ac_objext
5903if { (ac_try="$ac_compile"
5904case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907esac
5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00005915 (exit $ac_status); } && {
5916 test -z "$ac_cxx_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005919 ac_cv_prog_cxx_g=yes
5920else
5921 echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
5923
5924
5925fi
5926
5927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928fi
5929
5930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931fi
5932
5933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5935fi
5936{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5937echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5938if test "$ac_test_CXXFLAGS" = set; then
5939 CXXFLAGS=$ac_save_CXXFLAGS
5940elif test $ac_cv_prog_cxx_g = yes; then
5941 if test "$GXX" = yes; then
5942 CXXFLAGS="-g -O2"
5943 else
5944 CXXFLAGS="-g"
5945 fi
5946else
5947 if test "$GXX" = yes; then
5948 CXXFLAGS="-O2"
5949 else
5950 CXXFLAGS=
5951 fi
5952fi
5953ac_ext=c
5954ac_cpp='$CPP $CPPFLAGS'
5955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958
5959{ echo "$as_me:$LINENO: checking " >&5
5960echo $ECHO_N "checking ... $ECHO_C" >&6; }
5961if test "${ac_cv_has_flex+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5963else
5964 for ac_prog in flex lex
5965do
5966 # Extract the first word of "$ac_prog", so it can be a program name with args.
5967set dummy $ac_prog; ac_word=$2
5968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970if test "${ac_cv_prog_LEX+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5972else
5973 if test -n "$LEX"; then
5974 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5975else
5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00005982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005983 ac_cv_prog_LEX="$ac_prog"
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987done
5988done
5989IFS=$as_save_IFS
5990
5991fi
5992fi
5993LEX=$ac_cv_prog_LEX
5994if test -n "$LEX"; then
5995 { echo "$as_me:$LINENO: result: $LEX" >&5
5996echo "${ECHO_T}$LEX" >&6; }
5997else
5998 { echo "$as_me:$LINENO: result: no" >&5
5999echo "${ECHO_T}no" >&6; }
6000fi
6001
6002
6003 test -n "$LEX" && break
6004done
6005test -n "$LEX" || LEX=":"
6006
Tanya Lattnerf4644302008-01-17 05:57:22 +00006007if test "x$LEX" != "x:"; then
Edwin Török20176752008-10-22 09:56:27 +00006008 cat >conftest.l <<_ACEOF
Tanya Lattnerf4644302008-01-17 05:57:22 +00006009%%
Edwin Török20176752008-10-22 09:56:27 +00006010a { ECHO; }
6011b { REJECT; }
6012c { yymore (); }
6013d { yyless (1); }
6014e { yyless (input () != 0); }
6015f { unput (yytext[0]); }
6016. { BEGIN INITIAL; }
Tanya Lattnerf4644302008-01-17 05:57:22 +00006017%%
Edwin Török20176752008-10-22 09:56:27 +00006018#ifdef YYTEXT_POINTER
6019extern char *yytext;
6020#endif
6021int
6022main (void)
6023{
6024 return ! yylex () + ! yywrap ();
6025}
Tanya Lattnerf4644302008-01-17 05:57:22 +00006026_ACEOF
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006027{ (ac_try="$LEX conftest.l"
6028case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031esac
6032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$LEX conftest.l") 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }
Edwin Török20176752008-10-22 09:56:27 +00006037{ echo "$as_me:$LINENO: checking lex output file root" >&5
6038echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6039if test "${ac_cv_prog_lex_root+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041else
6042
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006043if test -f lex.yy.c; then
6044 ac_cv_prog_lex_root=lex.yy
6045elif test -f lexyy.c; then
6046 ac_cv_prog_lex_root=lexyy
6047else
6048 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6049echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6050 { (exit 1); exit 1; }; }
6051fi
6052fi
6053{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6054echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006055LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6056
Edwin Török20176752008-10-22 09:56:27 +00006057if test -z "${LEXLIB+set}"; then
6058 { echo "$as_me:$LINENO: checking lex library" >&5
6059echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
6060if test "${ac_cv_lib_lex+set}" = set; then
Scott Michelbf31f8b2007-12-05 21:24:02 +00006061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
Edwin Török20176752008-10-22 09:56:27 +00006063
6064 ac_save_LIBS=$LIBS
6065 ac_cv_lib_lex='none needed'
6066 for ac_lib in '' -lfl -ll; do
6067 LIBS="$ac_lib $ac_save_LIBS"
6068 cat >conftest.$ac_ext <<_ACEOF
Scott Michelbf31f8b2007-12-05 21:24:02 +00006069`cat $LEX_OUTPUT_ROOT.c`
6070_ACEOF
6071rm -f conftest.$ac_objext conftest$ac_exeext
6072if { (ac_try="$ac_link"
6073case "(($ac_try" in
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6076esac
6077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michelbf31f8b2007-12-05 21:24:02 +00006078 (eval "$ac_link") 2>conftest.er1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006079 ac_status=$?
Scott Michelbf31f8b2007-12-05 21:24:02 +00006080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00006084 (exit $ac_status); } && {
6085 test -z "$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest$ac_exeext &&
6088 $as_test_x conftest$ac_exeext; then
6089 ac_cv_lib_lex=$ac_lib
6090else
6091 echo "$as_me: failed program was:" >&5
6092sed 's/^/| /' conftest.$ac_ext >&5
6093
6094
6095fi
6096
6097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098 conftest$ac_exeext conftest.$ac_ext
6099 test "$ac_cv_lib_lex" != 'none needed' && break
6100 done
6101 LIBS=$ac_save_LIBS
6102
6103fi
6104{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
6105echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
6106 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6107fi
6108
6109
6110{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6111echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6112if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115 # POSIX says lex can declare yytext either as a pointer or an array; the
6116# default is implementation-dependent. Figure out which it is, since
6117# not all implementations provide the %pointer and %array declarations.
6118ac_cv_prog_lex_yytext_pointer=no
6119ac_save_LIBS=$LIBS
6120LIBS="$LEXLIB $ac_save_LIBS"
6121cat >conftest.$ac_ext <<_ACEOF
6122#define YYTEXT_POINTER 1
6123`cat $LEX_OUTPUT_ROOT.c`
6124_ACEOF
6125rm -f conftest.$ac_objext conftest$ac_exeext
6126if { (ac_try="$ac_link"
6127case "(($ac_try" in
Tanya Lattnerf4644302008-01-17 05:57:22 +00006128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130esac
6131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Edwin Török20176752008-10-22 09:56:27 +00006132 (eval "$ac_link") 2>conftest.er1
Tanya Lattnerf4644302008-01-17 05:57:22 +00006133 ac_status=$?
Edwin Török20176752008-10-22 09:56:27 +00006134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
Tanya Lattnerf4644302008-01-17 05:57:22 +00006137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00006138 (exit $ac_status); } && {
6139 test -z "$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6141 } && test -s conftest$ac_exeext &&
6142 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006143 ac_cv_prog_lex_yytext_pointer=yes
6144else
6145 echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148
6149fi
6150
Edwin Török20176752008-10-22 09:56:27 +00006151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006152 conftest$ac_exeext conftest.$ac_ext
6153LIBS=$ac_save_LIBS
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006154
6155fi
6156{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6157echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6158if test $ac_cv_prog_lex_yytext_pointer = yes; then
6159
6160cat >>confdefs.h <<\_ACEOF
6161#define YYTEXT_POINTER 1
6162_ACEOF
6163
6164fi
Edwin Török20176752008-10-22 09:56:27 +00006165rm -f conftest.l $LEX_OUTPUT_ROOT.c
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006166
6167fi
6168
6169fi
6170{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6171echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6172if test "$LEX" != "flex"; then
6173 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6174echo "$as_me: error: flex not found but required" >&2;}
6175 { (exit 1); exit 1; }; }
6176else
6177 FLEX=flex
6178
6179fi
6180
6181{ echo "$as_me:$LINENO: checking " >&5
6182echo $ECHO_N "checking ... $ECHO_C" >&6; }
6183if test "${llvm_cv_has_bison+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6185else
6186 for ac_prog in 'bison -y' byacc
6187do
6188 # Extract the first word of "$ac_prog", so it can be a program name with args.
6189set dummy $ac_prog; ac_word=$2
6190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192if test "${ac_cv_prog_YACC+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194else
6195 if test -n "$YACC"; then
6196 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006205 ac_cv_prog_YACC="$ac_prog"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6208 fi
6209done
6210done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215YACC=$ac_cv_prog_YACC
6216if test -n "$YACC"; then
6217 { echo "$as_me:$LINENO: result: $YACC" >&5
6218echo "${ECHO_T}$YACC" >&6; }
6219else
6220 { echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6; }
6222fi
6223
6224
6225 test -n "$YACC" && break
6226done
6227test -n "$YACC" || YACC="yacc"
6228
6229fi
6230{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6231echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6232if test "$YACC" != "bison -y"; then
6233
6234 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6235echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6236else
6237 BISON=bison
6238
6239fi
6240
6241{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6242echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6243if test "${lt_cv_path_NM+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245else
6246 if test -n "$NM"; then
6247 # Let the user override the test.
6248 lt_cv_path_NM="$NM"
6249else
6250 lt_nm_to_check="${ac_tool_prefix}nm"
6251 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6252 lt_nm_to_check="$lt_nm_to_check nm"
6253 fi
6254 for lt_tmp_nm in $lt_nm_to_check; do
6255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6256 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6257 IFS="$lt_save_ifs"
6258 test -z "$ac_dir" && ac_dir=.
6259 tmp_nm="$ac_dir/$lt_tmp_nm"
6260 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6261 # Check to see if the nm accepts a BSD-compat flag.
6262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6263 # nm: unknown option "B" ignored
6264 # Tru64's nm complains that /dev/null is an invalid object file
6265 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6266 */dev/null* | *'Invalid file or object type'*)
6267 lt_cv_path_NM="$tmp_nm -B"
6268 break
6269 ;;
6270 *)
6271 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6272 */dev/null*)
6273 lt_cv_path_NM="$tmp_nm -p"
6274 break
6275 ;;
6276 *)
6277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6278 continue # so that we can try to find one that supports BSD flags
6279 ;;
6280 esac
6281 ;;
6282 esac
6283 fi
6284 done
6285 IFS="$lt_save_ifs"
6286 done
6287 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6288fi
6289fi
6290{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6291echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6292NM="$lt_cv_path_NM"
6293
6294
6295
6296{ echo "$as_me:$LINENO: checking for GNU make" >&5
6297echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6298if test "${llvm_cv_gnu_make_command+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6300else
6301 llvm_cv_gnu_make_command=''
6302 for a in "$MAKE" make gmake gnumake ; do
6303 if test -z "$a" ; then continue ; fi ;
6304 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6305 then
6306 llvm_cv_gnu_make_command=$a ;
6307 break;
6308 fi
6309 done
6310fi
6311{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6312echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6313 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6314 ifGNUmake='' ;
6315 else
6316 ifGNUmake='#' ;
6317 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6318echo "${ECHO_T}\"Not found\"" >&6; };
6319 fi
6320
6321
6322{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6323echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6324LN_S=$as_ln_s
6325if test "$LN_S" = "ln -s"; then
6326 { echo "$as_me:$LINENO: result: yes" >&5
6327echo "${ECHO_T}yes" >&6; }
6328else
6329 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6330echo "${ECHO_T}no, using $LN_S" >&6; }
6331fi
6332
6333# Extract the first word of "cmp", so it can be a program name with args.
6334set dummy cmp; ac_word=$2
6335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6337if test "${ac_cv_path_CMP+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340 case $CMP in
6341 [\\/]* | ?:[\\/]*)
6342 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6343 ;;
6344 *)
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346for as_dir in $PATH
6347do
6348 IFS=$as_save_IFS
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006352 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 break 2
6355 fi
6356done
6357done
6358IFS=$as_save_IFS
6359
6360 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6361 ;;
6362esac
6363fi
6364CMP=$ac_cv_path_CMP
6365if test -n "$CMP"; then
6366 { echo "$as_me:$LINENO: result: $CMP" >&5
6367echo "${ECHO_T}$CMP" >&6; }
6368else
6369 { echo "$as_me:$LINENO: result: no" >&5
6370echo "${ECHO_T}no" >&6; }
6371fi
6372
6373
6374# Extract the first word of "cp", so it can be a program name with args.
6375set dummy cp; ac_word=$2
6376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378if test "${ac_cv_path_CP+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381 case $CP in
6382 [\\/]* | ?:[\\/]*)
6383 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6384 ;;
6385 *)
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006393 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397done
6398done
6399IFS=$as_save_IFS
6400
6401 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6402 ;;
6403esac
6404fi
6405CP=$ac_cv_path_CP
6406if test -n "$CP"; then
6407 { echo "$as_me:$LINENO: result: $CP" >&5
6408echo "${ECHO_T}$CP" >&6; }
6409else
6410 { echo "$as_me:$LINENO: result: no" >&5
6411echo "${ECHO_T}no" >&6; }
6412fi
6413
6414
6415# Extract the first word of "date", so it can be a program name with args.
6416set dummy date; ac_word=$2
6417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419if test "${ac_cv_path_DATE+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421else
6422 case $DATE in
6423 [\\/]* | ?:[\\/]*)
6424 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6425 ;;
6426 *)
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006434 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438done
6439done
6440IFS=$as_save_IFS
6441
6442 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6443 ;;
6444esac
6445fi
6446DATE=$ac_cv_path_DATE
6447if test -n "$DATE"; then
6448 { echo "$as_me:$LINENO: result: $DATE" >&5
6449echo "${ECHO_T}$DATE" >&6; }
6450else
6451 { echo "$as_me:$LINENO: result: no" >&5
6452echo "${ECHO_T}no" >&6; }
6453fi
6454
6455
6456# Extract the first word of "find", so it can be a program name with args.
6457set dummy find; ac_word=$2
6458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460if test "${ac_cv_path_FIND+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463 case $FIND in
6464 [\\/]* | ?:[\\/]*)
6465 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6466 ;;
6467 *)
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006475 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479done
6480done
6481IFS=$as_save_IFS
6482
6483 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6484 ;;
6485esac
6486fi
6487FIND=$ac_cv_path_FIND
6488if test -n "$FIND"; then
6489 { echo "$as_me:$LINENO: result: $FIND" >&5
6490echo "${ECHO_T}$FIND" >&6; }
6491else
6492 { echo "$as_me:$LINENO: result: no" >&5
6493echo "${ECHO_T}no" >&6; }
6494fi
6495
6496
6497# Extract the first word of "grep", so it can be a program name with args.
6498set dummy grep; ac_word=$2
6499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6501if test "${ac_cv_path_GREP+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
6504 case $GREP in
6505 [\\/]* | ?:[\\/]*)
6506 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6507 ;;
6508 *)
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006516 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520done
6521done
6522IFS=$as_save_IFS
6523
6524 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6525 ;;
6526esac
6527fi
6528GREP=$ac_cv_path_GREP
6529if test -n "$GREP"; then
6530 { echo "$as_me:$LINENO: result: $GREP" >&5
6531echo "${ECHO_T}$GREP" >&6; }
6532else
6533 { echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6; }
6535fi
6536
6537
6538# Extract the first word of "mkdir", so it can be a program name with args.
6539set dummy mkdir; ac_word=$2
6540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542if test "${ac_cv_path_MKDIR+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 case $MKDIR in
6546 [\\/]* | ?:[\\/]*)
6547 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6548 ;;
6549 *)
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006557 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561done
6562done
6563IFS=$as_save_IFS
6564
6565 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6566 ;;
6567esac
6568fi
6569MKDIR=$ac_cv_path_MKDIR
6570if test -n "$MKDIR"; then
6571 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6572echo "${ECHO_T}$MKDIR" >&6; }
6573else
6574 { echo "$as_me:$LINENO: result: no" >&5
6575echo "${ECHO_T}no" >&6; }
6576fi
6577
6578
6579# Extract the first word of "mv", so it can be a program name with args.
6580set dummy mv; ac_word=$2
6581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583if test "${ac_cv_path_MV+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586 case $MV in
6587 [\\/]* | ?:[\\/]*)
6588 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6589 ;;
6590 *)
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006598 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602done
6603done
6604IFS=$as_save_IFS
6605
6606 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6607 ;;
6608esac
6609fi
6610MV=$ac_cv_path_MV
6611if test -n "$MV"; then
6612 { echo "$as_me:$LINENO: result: $MV" >&5
6613echo "${ECHO_T}$MV" >&6; }
6614else
6615 { echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6; }
6617fi
6618
6619
6620if test -n "$ac_tool_prefix"; then
6621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6622set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625if test "${ac_cv_prog_RANLIB+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628 if test -n "$RANLIB"; then
6629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6630else
6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632for as_dir in $PATH
6633do
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6641 fi
6642done
6643done
6644IFS=$as_save_IFS
6645
6646fi
6647fi
6648RANLIB=$ac_cv_prog_RANLIB
6649if test -n "$RANLIB"; then
6650 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6651echo "${ECHO_T}$RANLIB" >&6; }
6652else
6653 { echo "$as_me:$LINENO: result: no" >&5
6654echo "${ECHO_T}no" >&6; }
6655fi
6656
6657
6658fi
6659if test -z "$ac_cv_prog_RANLIB"; then
6660 ac_ct_RANLIB=$RANLIB
6661 # Extract the first word of "ranlib", so it can be a program name with args.
6662set dummy ranlib; ac_word=$2
6663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668 if test -n "$ac_ct_RANLIB"; then
6669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6670else
6671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006678 ac_cv_prog_ac_ct_RANLIB="ranlib"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682done
6683done
6684IFS=$as_save_IFS
6685
6686fi
6687fi
6688ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6689if test -n "$ac_ct_RANLIB"; then
6690 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6691echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6692else
6693 { echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6; }
6695fi
6696
6697 if test "x$ac_ct_RANLIB" = x; then
6698 RANLIB=":"
6699 else
6700 case $cross_compiling:$ac_tool_warned in
6701yes:)
6702{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6703whose name does not start with the host triplet. If you think this
6704configuration is useful to you, please write to autoconf@gnu.org." >&5
6705echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6706whose name does not start with the host triplet. If you think this
6707configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6708ac_tool_warned=yes ;;
6709esac
6710 RANLIB=$ac_ct_RANLIB
6711 fi
6712else
6713 RANLIB="$ac_cv_prog_RANLIB"
6714fi
6715
6716# Extract the first word of "rm", so it can be a program name with args.
6717set dummy rm; ac_word=$2
6718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720if test "${ac_cv_path_RM+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723 case $RM in
6724 [\\/]* | ?:[\\/]*)
6725 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6726 ;;
6727 *)
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006735 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739done
6740done
6741IFS=$as_save_IFS
6742
6743 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6744 ;;
6745esac
6746fi
6747RM=$ac_cv_path_RM
6748if test -n "$RM"; then
6749 { echo "$as_me:$LINENO: result: $RM" >&5
6750echo "${ECHO_T}$RM" >&6; }
6751else
6752 { echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6; }
6754fi
6755
6756
6757# Extract the first word of "sed", so it can be a program name with args.
6758set dummy sed; ac_word=$2
6759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761if test "${ac_cv_path_SED+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763else
6764 case $SED in
6765 [\\/]* | ?:[\\/]*)
6766 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6767 ;;
6768 *)
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006776 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781done
6782IFS=$as_save_IFS
6783
6784 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6785 ;;
6786esac
6787fi
6788SED=$ac_cv_path_SED
6789if test -n "$SED"; then
6790 { echo "$as_me:$LINENO: result: $SED" >&5
6791echo "${ECHO_T}$SED" >&6; }
6792else
6793 { echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6; }
6795fi
6796
6797
6798# Extract the first word of "tar", so it can be a program name with args.
6799set dummy tar; ac_word=$2
6800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802if test "${ac_cv_path_TAR+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804else
6805 case $TAR in
6806 [\\/]* | ?:[\\/]*)
6807 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6808 ;;
6809 *)
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006817 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821done
6822done
6823IFS=$as_save_IFS
6824
6825 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6826 ;;
6827esac
6828fi
6829TAR=$ac_cv_path_TAR
6830if test -n "$TAR"; then
6831 { echo "$as_me:$LINENO: result: $TAR" >&5
6832echo "${ECHO_T}$TAR" >&6; }
6833else
6834 { echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6; }
6836fi
6837
6838
6839# Extract the first word of "pwd", so it can be a program name with args.
6840set dummy pwd; ac_word=$2
6841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843if test "${ac_cv_path_BINPWD+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6845else
6846 case $BINPWD in
6847 [\\/]* | ?:[\\/]*)
6848 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6849 ;;
6850 *)
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006858 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860 break 2
6861 fi
6862done
6863done
6864IFS=$as_save_IFS
6865
6866 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6867 ;;
6868esac
6869fi
6870BINPWD=$ac_cv_path_BINPWD
6871if test -n "$BINPWD"; then
6872 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6873echo "${ECHO_T}$BINPWD" >&6; }
6874else
6875 { echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6; }
6877fi
6878
6879
6880
6881# Extract the first word of "Graphviz", so it can be a program name with args.
6882set dummy Graphviz; ac_word=$2
6883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887else
6888 case $GRAPHVIZ in
6889 [\\/]* | ?:[\\/]*)
6890 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6891 ;;
6892 *)
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894for as_dir in $PATH
6895do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006900 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904done
6905done
6906IFS=$as_save_IFS
6907
6908 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6909 ;;
6910esac
6911fi
6912GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6913if test -n "$GRAPHVIZ"; then
6914 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6915echo "${ECHO_T}$GRAPHVIZ" >&6; }
6916else
6917 { echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6; }
6919fi
6920
6921
6922if test "$GRAPHVIZ" != "echo Graphviz" ; then
6923
6924cat >>confdefs.h <<\_ACEOF
6925#define HAVE_GRAPHVIZ 1
6926_ACEOF
6927
6928 if test "$llvm_cv_os_type" = "MingW" ; then
6929 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6930 fi
6931
6932cat >>confdefs.h <<_ACEOF
6933#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6934_ACEOF
6935
6936fi
6937# Extract the first word of "dot", so it can be a program name with args.
6938set dummy dot; ac_word=$2
6939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941if test "${ac_cv_path_DOT+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944 case $DOT in
6945 [\\/]* | ?:[\\/]*)
6946 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6947 ;;
6948 *)
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00006955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006956 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960done
6961done
6962IFS=$as_save_IFS
6963
6964 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6965 ;;
6966esac
6967fi
6968DOT=$ac_cv_path_DOT
6969if test -n "$DOT"; then
6970 { echo "$as_me:$LINENO: result: $DOT" >&5
6971echo "${ECHO_T}$DOT" >&6; }
6972else
6973 { echo "$as_me:$LINENO: result: no" >&5
6974echo "${ECHO_T}no" >&6; }
6975fi
6976
6977
6978if test "$DOT" != "echo dot" ; then
6979
6980cat >>confdefs.h <<\_ACEOF
6981#define HAVE_DOT 1
6982_ACEOF
6983
6984 if test "$llvm_cv_os_type" = "MingW" ; then
6985 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6986 fi
6987
6988cat >>confdefs.h <<_ACEOF
6989#define LLVM_PATH_DOT "$DOT${EXEEXT}"
6990_ACEOF
6991
6992fi
6993for ac_prog in gv gsview32
6994do
6995 # Extract the first word of "$ac_prog", so it can be a program name with args.
6996set dummy $ac_prog; ac_word=$2
6997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999if test "${ac_cv_path_GV+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002 case $GV in
7003 [\\/]* | ?:[\\/]*)
7004 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7005 ;;
7006 *)
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008for as_dir in $PATH
7009do
7010 IFS=$as_save_IFS
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007014 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 break 2
7017 fi
7018done
7019done
7020IFS=$as_save_IFS
7021
7022 ;;
7023esac
7024fi
7025GV=$ac_cv_path_GV
7026if test -n "$GV"; then
7027 { echo "$as_me:$LINENO: result: $GV" >&5
7028echo "${ECHO_T}$GV" >&6; }
7029else
7030 { echo "$as_me:$LINENO: result: no" >&5
7031echo "${ECHO_T}no" >&6; }
7032fi
7033
7034
7035 test -n "$GV" && break
7036done
7037test -n "$GV" || GV="echo gv"
7038
7039if test "$GV" != "echo gv" ; then
7040
7041cat >>confdefs.h <<\_ACEOF
7042#define HAVE_GV 1
7043_ACEOF
7044
7045 if test "$llvm_cv_os_type" = "MingW" ; then
7046 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7047 fi
7048
7049cat >>confdefs.h <<_ACEOF
7050#define LLVM_PATH_GV "$GV${EXEEXT}"
7051_ACEOF
7052
7053fi
7054# Extract the first word of "dotty", so it can be a program name with args.
7055set dummy dotty; ac_word=$2
7056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058if test "${ac_cv_path_DOTTY+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7060else
7061 case $DOTTY in
7062 [\\/]* | ?:[\\/]*)
7063 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7064 ;;
7065 *)
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007073 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078done
7079IFS=$as_save_IFS
7080
7081 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7082 ;;
7083esac
7084fi
7085DOTTY=$ac_cv_path_DOTTY
7086if test -n "$DOTTY"; then
7087 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7088echo "${ECHO_T}$DOTTY" >&6; }
7089else
7090 { echo "$as_me:$LINENO: result: no" >&5
7091echo "${ECHO_T}no" >&6; }
7092fi
7093
7094
7095if test "$DOTTY" != "echo dotty" ; then
7096
7097cat >>confdefs.h <<\_ACEOF
7098#define HAVE_DOTTY 1
7099_ACEOF
7100
7101 if test "$llvm_cv_os_type" = "MingW" ; then
7102 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7103 fi
7104
7105cat >>confdefs.h <<_ACEOF
7106#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7107_ACEOF
7108
7109fi
7110
7111
7112# Extract the first word of "perl", so it can be a program name with args.
7113set dummy perl; ac_word=$2
7114{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116if test "${ac_cv_path_PERL+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119 case $PERL in
7120 [\\/]* | ?:[\\/]*)
7121 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7122 ;;
7123 *)
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125for as_dir in $PATH
7126do
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007131 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135done
7136done
7137IFS=$as_save_IFS
7138
7139 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7140 ;;
7141esac
7142fi
7143PERL=$ac_cv_path_PERL
7144if test -n "$PERL"; then
7145 { echo "$as_me:$LINENO: result: $PERL" >&5
7146echo "${ECHO_T}$PERL" >&6; }
7147else
7148 { echo "$as_me:$LINENO: result: no" >&5
7149echo "${ECHO_T}no" >&6; }
7150fi
7151
7152
7153if test "$PERL" != "none"; then
7154 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7155echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7156 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7157 { echo "$as_me:$LINENO: result: yes" >&5
7158echo "${ECHO_T}yes" >&6; }
7159 else
7160 PERL=none
7161 { echo "$as_me:$LINENO: result: not found" >&5
7162echo "${ECHO_T}not found" >&6; }
7163 fi
7164fi
7165
7166
7167if test x"$PERL" = xnone; then
7168 HAVE_PERL=0
7169
7170 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7171echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7172 { (exit 1); exit 1; }; }
7173else
7174 HAVE_PERL=1
7175
7176fi
7177
7178# Find a good install program. We prefer a C program (faster),
7179# so one script is as good as another. But avoid the broken or
7180# incompatible versions:
7181# SysV /etc/install, /usr/sbin/install
7182# SunOS /usr/etc/install
7183# IRIX /sbin/install
7184# AIX /bin/install
7185# AmigaOS /C/install, which installs bootblocks on floppy discs
7186# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7187# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7188# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7189# OS/2's system install, which has a completely different semantic
7190# ./install, which can be erroneously created by make from ./install.sh.
7191{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7192echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7193if test -z "$INSTALL"; then
7194if test "${ac_cv_path_install+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200 IFS=$as_save_IFS
7201 test -z "$as_dir" && as_dir=.
7202 # Account for people who put trailing slashes in PATH elements.
7203case $as_dir/ in
7204 ./ | .// | /cC/* | \
7205 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7206 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7207 /usr/ucb/* ) ;;
7208 *)
7209 # OSF1 and SCO ODT 3.0 have their own names for install.
7210 # Don't use installbsd from OSF since it installs stuff as root
7211 # by default.
7212 for ac_prog in ginstall scoinst install; do
7213 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007214 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007215 if test $ac_prog = install &&
7216 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7217 # AIX install. It has an incompatible calling convention.
7218 :
7219 elif test $ac_prog = install &&
7220 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7221 # program-specific install script used by HP pwplus--don't use.
7222 :
7223 else
7224 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7225 break 3
7226 fi
7227 fi
7228 done
7229 done
7230 ;;
7231esac
7232done
7233IFS=$as_save_IFS
7234
7235
7236fi
7237 if test "${ac_cv_path_install+set}" = set; then
7238 INSTALL=$ac_cv_path_install
7239 else
7240 # As a last resort, use the slow shell script. Don't cache a
7241 # value for INSTALL within a source directory, because that will
7242 # break other packages using the cache if that directory is
7243 # removed, or if the value is a relative name.
7244 INSTALL=$ac_install_sh
7245 fi
7246fi
7247{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7248echo "${ECHO_T}$INSTALL" >&6; }
7249
7250# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7251# It thinks the first close brace ends the variable substitution.
7252test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7253
7254test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7255
7256test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7257
7258
7259# Extract the first word of "bzip2", so it can be a program name with args.
7260set dummy bzip2; ac_word=$2
7261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263if test "${ac_cv_path_BZIP2+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265else
7266 case $BZIP2 in
7267 [\\/]* | ?:[\\/]*)
7268 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7269 ;;
7270 *)
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007278 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282done
7283done
7284IFS=$as_save_IFS
7285
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007286 ;;
7287esac
7288fi
7289BZIP2=$ac_cv_path_BZIP2
7290if test -n "$BZIP2"; then
7291 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7292echo "${ECHO_T}$BZIP2" >&6; }
7293else
7294 { echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6; }
7296fi
7297
7298
7299# Extract the first word of "doxygen", so it can be a program name with args.
7300set dummy doxygen; ac_word=$2
7301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303if test "${ac_cv_path_DOXYGEN+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305else
7306 case $DOXYGEN in
7307 [\\/]* | ?:[\\/]*)
7308 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7309 ;;
7310 *)
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007318 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7321 fi
7322done
7323done
7324IFS=$as_save_IFS
7325
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007326 ;;
7327esac
7328fi
7329DOXYGEN=$ac_cv_path_DOXYGEN
7330if test -n "$DOXYGEN"; then
7331 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7332echo "${ECHO_T}$DOXYGEN" >&6; }
7333else
7334 { echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6; }
7336fi
7337
7338
7339# Extract the first word of "groff", so it can be a program name with args.
7340set dummy groff; ac_word=$2
7341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343if test "${ac_cv_path_GROFF+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346 case $GROFF in
7347 [\\/]* | ?:[\\/]*)
7348 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7349 ;;
7350 *)
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354 IFS=$as_save_IFS
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007358 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 break 2
7361 fi
7362done
7363done
7364IFS=$as_save_IFS
7365
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007366 ;;
7367esac
7368fi
7369GROFF=$ac_cv_path_GROFF
7370if test -n "$GROFF"; then
7371 { echo "$as_me:$LINENO: result: $GROFF" >&5
7372echo "${ECHO_T}$GROFF" >&6; }
7373else
7374 { echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6; }
7376fi
7377
7378
7379# Extract the first word of "gzip", so it can be a program name with args.
7380set dummy gzip; ac_word=$2
7381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383if test "${ac_cv_path_GZIP+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386 case $GZIP in
7387 [\\/]* | ?:[\\/]*)
7388 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7389 ;;
7390 *)
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392for as_dir in $PATH
7393do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007398 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402done
7403done
7404IFS=$as_save_IFS
7405
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007406 ;;
7407esac
7408fi
7409GZIP=$ac_cv_path_GZIP
7410if test -n "$GZIP"; then
7411 { echo "$as_me:$LINENO: result: $GZIP" >&5
7412echo "${ECHO_T}$GZIP" >&6; }
7413else
7414 { echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6; }
7416fi
7417
7418
7419# Extract the first word of "pod2html", so it can be a program name with args.
7420set dummy pod2html; ac_word=$2
7421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423if test "${ac_cv_path_POD2HTML+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7425else
7426 case $POD2HTML in
7427 [\\/]* | ?:[\\/]*)
7428 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7429 ;;
7430 *)
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007438 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7441 fi
7442done
7443done
7444IFS=$as_save_IFS
7445
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007446 ;;
7447esac
7448fi
7449POD2HTML=$ac_cv_path_POD2HTML
7450if test -n "$POD2HTML"; then
7451 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7452echo "${ECHO_T}$POD2HTML" >&6; }
7453else
7454 { echo "$as_me:$LINENO: result: no" >&5
7455echo "${ECHO_T}no" >&6; }
7456fi
7457
7458
7459# Extract the first word of "pod2man", so it can be a program name with args.
7460set dummy pod2man; ac_word=$2
7461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463if test "${ac_cv_path_POD2MAN+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465else
7466 case $POD2MAN in
7467 [\\/]* | ?:[\\/]*)
7468 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7469 ;;
7470 *)
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472for as_dir in $PATH
7473do
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007478 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7481 fi
7482done
7483done
7484IFS=$as_save_IFS
7485
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007486 ;;
7487esac
7488fi
7489POD2MAN=$ac_cv_path_POD2MAN
7490if test -n "$POD2MAN"; then
7491 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7492echo "${ECHO_T}$POD2MAN" >&6; }
7493else
7494 { echo "$as_me:$LINENO: result: no" >&5
7495echo "${ECHO_T}no" >&6; }
7496fi
7497
7498
7499# Extract the first word of "runtest", so it can be a program name with args.
7500set dummy runtest; ac_word=$2
7501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503if test "${ac_cv_path_RUNTEST+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506 case $RUNTEST in
7507 [\\/]* | ?:[\\/]*)
7508 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7509 ;;
7510 *)
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512for as_dir in $PATH
7513do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007518 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522done
7523done
7524IFS=$as_save_IFS
7525
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007526 ;;
7527esac
7528fi
7529RUNTEST=$ac_cv_path_RUNTEST
7530if test -n "$RUNTEST"; then
7531 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7532echo "${ECHO_T}$RUNTEST" >&6; }
7533else
7534 { echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6; }
7536fi
7537
7538
7539
7540no_itcl=true
7541{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7542echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7543
7544# Check whether --with-tclinclude was given.
7545if test "${with_tclinclude+set}" = set; then
7546 withval=$with_tclinclude; with_tclinclude=${withval}
7547else
7548 with_tclinclude=''
7549fi
7550
7551if test "${ac_cv_path_tclsh+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553else
7554
7555if test x"${with_tclinclude}" != x ; then
7556 if test -f ${with_tclinclude}/tclsh ; then
7557 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7558 elif test -f ${with_tclinclude}/src/tclsh ; then
7559 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7560 else
7561 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7562echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7563 { (exit 1); exit 1; }; }
7564 fi
7565fi
7566
7567if test x"${ac_cv_path_tclsh}" = x ; then
7568 { echo "$as_me:$LINENO: result: none" >&5
7569echo "${ECHO_T}none" >&6; }
7570 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
7571do
7572 # Extract the first word of "$ac_prog", so it can be a program name with args.
7573set dummy $ac_prog; ac_word=$2
7574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576if test "${ac_cv_path_TCLSH+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7578else
7579 case $TCLSH in
7580 [\\/]* | ?:[\\/]*)
7581 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7582 ;;
7583 *)
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007591 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7594 fi
7595done
7596done
7597IFS=$as_save_IFS
7598
7599 ;;
7600esac
7601fi
7602TCLSH=$ac_cv_path_TCLSH
7603if test -n "$TCLSH"; then
7604 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7605echo "${ECHO_T}$TCLSH" >&6; }
7606else
7607 { echo "$as_me:$LINENO: result: no" >&5
7608echo "${ECHO_T}no" >&6; }
7609fi
7610
7611
7612 test -n "$TCLSH" && break
7613done
7614
7615 if test x"${TCLSH}" = x ; then
7616 ac_cv_path_tclsh='';
7617 else
7618 ac_cv_path_tclsh="${TCLSH}";
7619 fi
7620else
7621 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7622echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7623 TCLSH="${ac_cv_path_tclsh}"
7624
7625fi
7626
7627fi
7628
7629# Extract the first word of "zip", so it can be a program name with args.
7630set dummy zip; ac_word=$2
7631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633if test "${ac_cv_path_ZIP+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 case $ZIP in
7637 [\\/]* | ?:[\\/]*)
7638 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7639 ;;
7640 *)
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007648 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7651 fi
7652done
7653done
7654IFS=$as_save_IFS
7655
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007656 ;;
7657esac
7658fi
7659ZIP=$ac_cv_path_ZIP
7660if test -n "$ZIP"; then
7661 { echo "$as_me:$LINENO: result: $ZIP" >&5
7662echo "${ECHO_T}$ZIP" >&6; }
7663else
7664 { echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6; }
7666fi
7667
7668
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007669for ac_prog in ocamlc.opt ocamlc
7670do
7671 # Extract the first word of "$ac_prog", so it can be a program name with args.
7672set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675if test "${ac_cv_path_OCAMLC+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678 case $OCAMLC in
7679 [\\/]* | ?:[\\/]*)
7680 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7681 ;;
7682 *)
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007690 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694done
7695done
7696IFS=$as_save_IFS
7697
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007698 ;;
7699esac
7700fi
7701OCAMLC=$ac_cv_path_OCAMLC
7702if test -n "$OCAMLC"; then
7703 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7704echo "${ECHO_T}$OCAMLC" >&6; }
7705else
7706 { echo "$as_me:$LINENO: result: no" >&5
7707echo "${ECHO_T}no" >&6; }
7708fi
7709
7710
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007711 test -n "$OCAMLC" && break
7712done
7713
7714for ac_prog in ocamlopt.opt ocamlopt
7715do
7716 # Extract the first word of "$ac_prog", so it can be a program name with args.
7717set dummy $ac_prog; ac_word=$2
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722else
7723 case $OCAMLOPT in
7724 [\\/]* | ?:[\\/]*)
7725 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7726 ;;
7727 *)
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007735 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739done
7740done
7741IFS=$as_save_IFS
7742
Gordon Henriksen4ac92092007-09-18 12:27:13 +00007743 ;;
7744esac
7745fi
7746OCAMLOPT=$ac_cv_path_OCAMLOPT
7747if test -n "$OCAMLOPT"; then
7748 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7749echo "${ECHO_T}$OCAMLOPT" >&6; }
7750else
7751 { echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6; }
7753fi
7754
7755
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007756 test -n "$OCAMLOPT" && break
7757done
7758
7759for ac_prog in ocamldep.opt ocamldep
7760do
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762set dummy $ac_prog; ac_word=$2
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007763{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7765if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767else
7768 case $OCAMLDEP in
7769 [\\/]* | ?:[\\/]*)
7770 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7771 ;;
7772 *)
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007780 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784done
7785done
7786IFS=$as_save_IFS
7787
Gordon Henriksen38eefac2007-09-20 16:48:18 +00007788 ;;
7789esac
7790fi
7791OCAMLDEP=$ac_cv_path_OCAMLDEP
7792if test -n "$OCAMLDEP"; then
7793 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7794echo "${ECHO_T}$OCAMLDEP" >&6; }
7795else
7796 { echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6; }
7798fi
7799
7800
Gordon Henriksencd8389e2008-03-07 18:20:01 +00007801 test -n "$OCAMLDEP" && break
7802done
7803
Gordon Henriksen8af51f62008-03-10 15:49:38 +00007804for ac_prog in ocamldoc.opt ocamldoc
7805do
7806 # Extract the first word of "$ac_prog", so it can be a program name with args.
7807set dummy $ac_prog; ac_word=$2
7808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7810if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813 case $OCAMLDOC in
7814 [\\/]* | ?:[\\/]*)
7815 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7816 ;;
7817 *)
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819for as_dir in $PATH
7820do
7821 IFS=$as_save_IFS
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +00007824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen8af51f62008-03-10 15:49:38 +00007825 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 break 2
7828 fi
7829done
7830done
7831IFS=$as_save_IFS
7832
7833 ;;
7834esac
7835fi
7836OCAMLDOC=$ac_cv_path_OCAMLDOC
7837if test -n "$OCAMLDOC"; then
7838 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7839echo "${ECHO_T}$OCAMLDOC" >&6; }
7840else
7841 { echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6; }
7843fi
7844
7845
7846 test -n "$OCAMLDOC" && break
7847done
7848
Edwin Török20176752008-10-22 09:56:27 +00007849for ac_prog in gas as
7850do
7851 # Extract the first word of "$ac_prog", so it can be a program name with args.
7852set dummy $ac_prog; ac_word=$2
7853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7855if test "${ac_cv_path_GAS+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7857else
7858 case $GAS in
7859 [\\/]* | ?:[\\/]*)
7860 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7861 ;;
7862 *)
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864for as_dir in $PATH
7865do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874done
7875done
7876IFS=$as_save_IFS
7877
7878 ;;
7879esac
7880fi
7881GAS=$ac_cv_path_GAS
7882if test -n "$GAS"; then
7883 { echo "$as_me:$LINENO: result: $GAS" >&5
7884echo "${ECHO_T}$GAS" >&6; }
7885else
7886 { echo "$as_me:$LINENO: result: no" >&5
7887echo "${ECHO_T}no" >&6; }
7888fi
7889
7890
7891 test -n "$GAS" && break
7892done
7893
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007894
7895{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7896echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7897if test "${llvm_cv_link_use_r+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 ac_ext=c
7901ac_cpp='$CPP $CPPFLAGS'
7902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906 oldcflags="$CFLAGS"
7907 CFLAGS="$CFLAGS -Wl,-R."
7908 cat >conftest.$ac_ext <<_ACEOF
7909/* confdefs.h. */
7910_ACEOF
7911cat confdefs.h >>conftest.$ac_ext
7912cat >>conftest.$ac_ext <<_ACEOF
7913/* end confdefs.h. */
7914
7915int
7916main ()
7917{
7918int main() { return 0; }
7919 ;
7920 return 0;
7921}
7922_ACEOF
7923rm -f conftest.$ac_objext conftest$ac_exeext
7924if { (ac_try="$ac_link"
7925case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_link") 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00007936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest$ac_exeext &&
7940 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007941 llvm_cv_link_use_r=yes
7942else
7943 echo "$as_me: failed program was:" >&5
7944sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 llvm_cv_link_use_r=no
7947fi
7948
Edwin Török20176752008-10-22 09:56:27 +00007949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007950 conftest$ac_exeext conftest.$ac_ext
7951 CFLAGS="$oldcflags"
7952 ac_ext=c
7953ac_cpp='$CPP $CPPFLAGS'
7954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956ac_compiler_gnu=$ac_cv_c_compiler_gnu
7957
7958
7959fi
7960{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7961echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7962if test "$llvm_cv_link_use_r" = yes ; then
7963
7964cat >>confdefs.h <<\_ACEOF
7965#define HAVE_LINK_R 1
7966_ACEOF
7967
7968 fi
7969
7970
7971
7972
7973{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7974echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7975if test "${ac_cv_c_const+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7977else
7978 cat >conftest.$ac_ext <<_ACEOF
7979/* confdefs.h. */
7980_ACEOF
7981cat confdefs.h >>conftest.$ac_ext
7982cat >>conftest.$ac_ext <<_ACEOF
7983/* end confdefs.h. */
7984
7985int
7986main ()
7987{
7988/* FIXME: Include the comments suggested by Paul. */
7989#ifndef __cplusplus
7990 /* Ultrix mips cc rejects this. */
7991 typedef int charset[2];
Edwin Török20176752008-10-22 09:56:27 +00007992 const charset cs;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007993 /* SunOS 4.1.1 cc rejects this. */
Edwin Török20176752008-10-22 09:56:27 +00007994 char const *const *pcpcc;
7995 char **ppc;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007996 /* NEC SVR4.0.2 mips cc rejects this. */
7997 struct point {int x, y;};
7998 static struct point const zero = {0,0};
7999 /* AIX XL C 1.02.0.0 rejects this.
8000 It does not let you subtract one const X* pointer from another in
8001 an arm of an if-expression whose if-part is not a constant
8002 expression */
8003 const char *g = "string";
Edwin Török20176752008-10-22 09:56:27 +00008004 pcpcc = &g + (g ? g-g : 0);
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008005 /* HPUX 7.0 cc rejects these. */
Edwin Török20176752008-10-22 09:56:27 +00008006 ++pcpcc;
8007 ppc = (char**) pcpcc;
8008 pcpcc = (char const *const *) ppc;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008009 { /* SCO 3.2v4 cc rejects this. */
8010 char *t;
8011 char const *s = 0 ? (char *) 0 : (char const *) 0;
8012
8013 *t++ = 0;
8014 if (s) return 0;
8015 }
8016 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8017 int x[] = {25, 17};
8018 const int *foo = &x[0];
8019 ++foo;
8020 }
8021 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8022 typedef const int *iptr;
8023 iptr p = 0;
8024 ++p;
8025 }
8026 { /* AIX XL C 1.02.0.0 rejects this saying
8027 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8028 struct s { int j; const int *ap[3]; };
8029 struct s *b; b->j = 5;
8030 }
8031 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8032 const int foo = 10;
8033 if (!foo) return 0;
8034 }
Edwin Török20176752008-10-22 09:56:27 +00008035 return !cs[0] && !zero.x;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008036#endif
8037
8038 ;
8039 return 0;
8040}
8041_ACEOF
8042rm -f conftest.$ac_objext
8043if { (ac_try="$ac_compile"
8044case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8047esac
8048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00008055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008059 ac_cv_c_const=yes
8060else
8061 echo "$as_me: failed program was:" >&5
8062sed 's/^/| /' conftest.$ac_ext >&5
8063
8064 ac_cv_c_const=no
8065fi
8066
8067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068fi
8069{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8070echo "${ECHO_T}$ac_cv_c_const" >&6; }
8071if test $ac_cv_c_const = no; then
8072
8073cat >>confdefs.h <<\_ACEOF
8074#define const
8075_ACEOF
8076
8077fi
8078
8079
8080
8081
8082
8083
8084ac_header_dirent=no
8085for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8086 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8087{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8088echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092 cat >conftest.$ac_ext <<_ACEOF
8093/* confdefs.h. */
8094_ACEOF
8095cat confdefs.h >>conftest.$ac_ext
8096cat >>conftest.$ac_ext <<_ACEOF
8097/* end confdefs.h. */
8098#include <sys/types.h>
8099#include <$ac_hdr>
8100
8101int
8102main ()
8103{
8104if ((DIR *) 0)
8105return 0;
8106 ;
8107 return 0;
8108}
8109_ACEOF
8110rm -f conftest.$ac_objext
8111if { (ac_try="$ac_compile"
8112case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_compile") 2>conftest.er1
8118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00008123 (exit $ac_status); } && {
8124 test -z "$ac_c_werror_flag" ||
8125 test ! -s conftest.err
8126 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008127 eval "$as_ac_Header=yes"
8128else
8129 echo "$as_me: failed program was:" >&5
8130sed 's/^/| /' conftest.$ac_ext >&5
8131
8132 eval "$as_ac_Header=no"
8133fi
8134
8135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136fi
8137ac_res=`eval echo '${'$as_ac_Header'}'`
8138 { echo "$as_me:$LINENO: result: $ac_res" >&5
8139echo "${ECHO_T}$ac_res" >&6; }
8140if test `eval echo '${'$as_ac_Header'}'` = yes; then
8141 cat >>confdefs.h <<_ACEOF
8142#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8143_ACEOF
8144
8145ac_header_dirent=$ac_hdr; break
8146fi
8147
8148done
8149# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8150if test $ac_header_dirent = dirent.h; then
8151 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8152echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8153if test "${ac_cv_search_opendir+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155else
8156 ac_func_search_save_LIBS=$LIBS
8157cat >conftest.$ac_ext <<_ACEOF
8158/* confdefs.h. */
8159_ACEOF
8160cat confdefs.h >>conftest.$ac_ext
8161cat >>conftest.$ac_ext <<_ACEOF
8162/* end confdefs.h. */
8163
8164/* Override any GCC internal prototype to avoid an error.
8165 Use char because int might match the return type of a GCC
8166 builtin and then its argument prototype would still apply. */
8167#ifdef __cplusplus
8168extern "C"
8169#endif
8170char opendir ();
8171int
8172main ()
8173{
8174return opendir ();
8175 ;
8176 return 0;
8177}
8178_ACEOF
8179for ac_lib in '' dir; do
8180 if test -z "$ac_lib"; then
8181 ac_res="none required"
8182 else
8183 ac_res=-l$ac_lib
8184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8185 fi
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187if { (ac_try="$ac_link"
8188case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8191esac
8192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_link") 2>conftest.er1
8194 ac_status=$?
8195 grep -v '^ *+' conftest.er1 >conftest.err
8196 rm -f conftest.er1
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00008199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest$ac_exeext &&
8203 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008204 ac_cv_search_opendir=$ac_res
8205else
8206 echo "$as_me: failed program was:" >&5
8207sed 's/^/| /' conftest.$ac_ext >&5
8208
8209
8210fi
8211
Edwin Török20176752008-10-22 09:56:27 +00008212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008213 conftest$ac_exeext
8214 if test "${ac_cv_search_opendir+set}" = set; then
8215 break
8216fi
8217done
8218if test "${ac_cv_search_opendir+set}" = set; then
8219 :
8220else
8221 ac_cv_search_opendir=no
8222fi
8223rm conftest.$ac_ext
8224LIBS=$ac_func_search_save_LIBS
8225fi
8226{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8227echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8228ac_res=$ac_cv_search_opendir
8229if test "$ac_res" != no; then
8230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8231
8232fi
8233
8234else
8235 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8236echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8237if test "${ac_cv_search_opendir+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8239else
8240 ac_func_search_save_LIBS=$LIBS
8241cat >conftest.$ac_ext <<_ACEOF
8242/* confdefs.h. */
8243_ACEOF
8244cat confdefs.h >>conftest.$ac_ext
8245cat >>conftest.$ac_ext <<_ACEOF
8246/* end confdefs.h. */
8247
8248/* Override any GCC internal prototype to avoid an error.
8249 Use char because int might match the return type of a GCC
8250 builtin and then its argument prototype would still apply. */
8251#ifdef __cplusplus
8252extern "C"
8253#endif
8254char opendir ();
8255int
8256main ()
8257{
8258return opendir ();
8259 ;
8260 return 0;
8261}
8262_ACEOF
8263for ac_lib in '' x; do
8264 if test -z "$ac_lib"; then
8265 ac_res="none required"
8266 else
8267 ac_res=-l$ac_lib
8268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8269 fi
8270 rm -f conftest.$ac_objext conftest$ac_exeext
8271if { (ac_try="$ac_link"
8272case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8275esac
8276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_link") 2>conftest.er1
8278 ac_status=$?
8279 grep -v '^ *+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00008283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest$ac_exeext &&
8287 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008288 ac_cv_search_opendir=$ac_res
8289else
8290 echo "$as_me: failed program was:" >&5
8291sed 's/^/| /' conftest.$ac_ext >&5
8292
8293
8294fi
8295
Edwin Török20176752008-10-22 09:56:27 +00008296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008297 conftest$ac_exeext
8298 if test "${ac_cv_search_opendir+set}" = set; then
8299 break
8300fi
8301done
8302if test "${ac_cv_search_opendir+set}" = set; then
8303 :
8304else
8305 ac_cv_search_opendir=no
8306fi
8307rm conftest.$ac_ext
8308LIBS=$ac_func_search_save_LIBS
8309fi
8310{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8311echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8312ac_res=$ac_cv_search_opendir
8313if test "$ac_res" != no; then
8314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8315
8316fi
8317
8318fi
8319
8320
8321for ac_header in dlfcn.h
8322do
8323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8329fi
8330ac_res=`eval echo '${'$as_ac_Header'}'`
8331 { echo "$as_me:$LINENO: result: $ac_res" >&5
8332echo "${ECHO_T}$ac_res" >&6; }
8333else
8334 # Is the header compilable?
8335{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8337cat >conftest.$ac_ext <<_ACEOF
8338/* confdefs.h. */
8339_ACEOF
8340cat confdefs.h >>conftest.$ac_ext
8341cat >>conftest.$ac_ext <<_ACEOF
8342/* end confdefs.h. */
8343$ac_includes_default
8344#include <$ac_header>
8345_ACEOF
8346rm -f conftest.$ac_objext
8347if { (ac_try="$ac_compile"
8348case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_compile") 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00008359 (exit $ac_status); } && {
8360 test -z "$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008363 ac_header_compiler=yes
8364else
8365 echo "$as_me: failed program was:" >&5
8366sed 's/^/| /' conftest.$ac_ext >&5
8367
8368 ac_header_compiler=no
8369fi
8370
8371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8373echo "${ECHO_T}$ac_header_compiler" >&6; }
8374
8375# Is the header present?
8376{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8377echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8378cat >conftest.$ac_ext <<_ACEOF
8379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
8384#include <$ac_header>
8385_ACEOF
8386if { (ac_try="$ac_cpp conftest.$ac_ext"
8387case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390esac
8391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00008398 (exit $ac_status); } >/dev/null && {
8399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8400 test ! -s conftest.err
8401 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008402 ac_header_preproc=yes
8403else
8404 echo "$as_me: failed program was:" >&5
8405sed 's/^/| /' conftest.$ac_ext >&5
8406
8407 ac_header_preproc=no
8408fi
8409
8410rm -f conftest.err conftest.$ac_ext
8411{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8412echo "${ECHO_T}$ac_header_preproc" >&6; }
8413
8414# So? What about this header?
8415case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8416 yes:no: )
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8418echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8420echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8421 ac_header_preproc=yes
8422 ;;
8423 no:yes:* )
8424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8425echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8427echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8429echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8431echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8433echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8435echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8436 ( cat <<\_ASBOX
8437## ----------------------------------- ##
8438## Report this to llvmbugs@cs.uiuc.edu ##
8439## ----------------------------------- ##
8440_ASBOX
8441 ) | sed "s/^/$as_me: WARNING: /" >&2
8442 ;;
8443esac
8444{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449 eval "$as_ac_Header=\$ac_header_preproc"
8450fi
8451ac_res=`eval echo '${'$as_ac_Header'}'`
8452 { echo "$as_me:$LINENO: result: $ac_res" >&5
8453echo "${ECHO_T}$ac_res" >&6; }
8454
8455fi
8456if test `eval echo '${'$as_ac_Header'}'` = yes; then
8457 cat >>confdefs.h <<_ACEOF
8458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8459_ACEOF
8460
8461fi
8462
8463done
8464
8465# Check whether --enable-ltdl-install was given.
8466if test "${enable_ltdl_install+set}" = set; then
8467 enableval=$enable_ltdl_install;
8468fi
8469
8470
Edwin Török20176752008-10-22 09:56:27 +00008471 if test x"${enable_ltdl_install-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008472 INSTALL_LTDL_TRUE=
8473 INSTALL_LTDL_FALSE='#'
8474else
8475 INSTALL_LTDL_TRUE='#'
8476 INSTALL_LTDL_FALSE=
8477fi
8478
Edwin Török20176752008-10-22 09:56:27 +00008479 if test x"${enable_ltdl_convenience-no}" != xno; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008480 CONVENIENCE_LTDL_TRUE=
8481 CONVENIENCE_LTDL_FALSE='#'
8482else
8483 CONVENIENCE_LTDL_TRUE='#'
8484 CONVENIENCE_LTDL_FALSE=
8485fi
8486
8487
8488{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8489echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8490library_names_spec=
8491libname_spec='lib$name'
8492soname_spec=
8493shrext_cmds=".so"
8494postinstall_cmds=
8495postuninstall_cmds=
8496finish_cmds=
8497finish_eval=
8498shlibpath_var=
8499shlibpath_overrides_runpath=unknown
8500version_type=none
8501dynamic_linker="$host_os ld.so"
8502sys_lib_dlsearch_path_spec="/lib /usr/lib"
8503if test "$GCC" = yes; then
8504 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8505 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8506 # if the path contains ";" then we assume it to be the separator
8507 # otherwise default to the standard path separator (i.e. ":") - it is
8508 # assumed that no part of a normal pathname contains ";" but that should
8509 # okay in the real world where ";" in dirpaths is itself problematic.
8510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8511 else
8512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8513 fi
8514else
8515 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8516fi
8517need_lib_prefix=unknown
8518hardcode_into_libs=no
8519
8520# when you set need_version to no, make sure it does not cause -set_version
8521# flags to be left without arguments
8522need_version=unknown
8523
8524case $host_os in
8525aix3*)
8526 version_type=linux
8527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8528 shlibpath_var=LIBPATH
8529
8530 # AIX 3 has no versioning support, so we append a major version to the name.
8531 soname_spec='${libname}${release}${shared_ext}$major'
8532 ;;
8533
8534aix4* | aix5*)
8535 version_type=linux
8536 need_lib_prefix=no
8537 need_version=no
8538 hardcode_into_libs=yes
8539 if test "$host_cpu" = ia64; then
8540 # AIX 5 supports IA64
8541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8542 shlibpath_var=LD_LIBRARY_PATH
8543 else
8544 # With GCC up to 2.95.x, collect2 would create an import file
8545 # for dependence libraries. The import file would start with
8546 # the line `#! .'. This would cause the generated library to
8547 # depend on `.', always an invalid library. This was fixed in
8548 # development snapshots of GCC prior to 3.0.
8549 case $host_os in
8550 aix4 | aix4.[01] | aix4.[01].*)
8551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8552 echo ' yes '
8553 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8554 :
8555 else
8556 can_build_shared=no
8557 fi
8558 ;;
8559 esac
8560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8561 # soname into executable. Probably we can add versioning support to
8562 # collect2, so additional links can be useful in future.
8563 if test "$aix_use_runtimelinking" = yes; then
8564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8565 # instead of lib<name>.a to let people know that these are not
8566 # typical AIX shared libraries.
8567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8568 else
8569 # We preserve .a as extension for shared libraries through AIX4.2
8570 # and later when we are not doing run time linking.
8571 library_names_spec='${libname}${release}.a $libname.a'
8572 soname_spec='${libname}${release}${shared_ext}$major'
8573 fi
8574 shlibpath_var=LIBPATH
8575 fi
8576 ;;
8577
8578amigaos*)
8579 library_names_spec='$libname.ixlibrary $libname.a'
8580 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8581 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'
8582 ;;
8583
8584beos*)
8585 library_names_spec='${libname}${shared_ext}'
8586 dynamic_linker="$host_os ld.so"
8587 shlibpath_var=LIBRARY_PATH
8588 ;;
8589
8590bsdi[45]*)
8591 version_type=linux
8592 need_version=no
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594 soname_spec='${libname}${release}${shared_ext}$major'
8595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8596 shlibpath_var=LD_LIBRARY_PATH
8597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8599 # the default ld.so.conf also contains /usr/contrib/lib and
8600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8601 # libtool to hard-code these into programs
8602 ;;
8603
8604cygwin* | mingw* | pw32*)
8605 version_type=windows
8606 shrext_cmds=".dll"
8607 need_version=no
8608 need_lib_prefix=no
8609
8610 case $GCC,$host_os in
8611 yes,cygwin* | yes,mingw* | yes,pw32*)
8612 library_names_spec='$libname.dll.a'
8613 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8614 postinstall_cmds='base_file=`basename \${file}`~
8615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8616 dldir=$destdir/`dirname \$dlpath`~
8617 test -d \$dldir || mkdir -p \$dldir~
8618 $install_prog $dir/$dlname \$dldir/$dlname~
8619 chmod a+x \$dldir/$dlname'
8620 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8621 dlpath=$dir/\$dldll~
8622 $rm \$dlpath'
8623 shlibpath_overrides_runpath=yes
8624
8625 case $host_os in
8626 cygwin*)
8627 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8628 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8629 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8630 ;;
8631 mingw*)
8632 # MinGW DLLs use traditional 'lib' prefix
8633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8634 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8635 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8636 # It is most probably a Windows format PATH printed by
8637 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8638 # path with ; separators, and with drive letters. We can handle the
8639 # drive letters (cygwin fileutils understands them), so leave them,
8640 # especially as we might pass files found there to a mingw objdump,
8641 # which wouldn't understand a cygwinified path. Ahh.
8642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8643 else
8644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8645 fi
8646 ;;
8647 pw32*)
8648 # pw32 DLLs use 'pw' prefix rather than 'lib'
8649 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8650 ;;
8651 esac
8652 ;;
8653
8654 *)
8655 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8656 ;;
8657 esac
8658 dynamic_linker='Win32 ld.exe'
8659 # FIXME: first we should search . and the directory the executable is in
8660 shlibpath_var=PATH
8661 ;;
8662
8663darwin* | rhapsody*)
8664 dynamic_linker="$host_os dyld"
8665 version_type=darwin
8666 need_lib_prefix=no
8667 need_version=no
8668 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8669 soname_spec='${libname}${release}${major}$shared_ext'
8670 shlibpath_overrides_runpath=yes
8671 shlibpath_var=DYLD_LIBRARY_PATH
8672 shrext_cmds='.dylib'
8673 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8674 if test "$GCC" = yes; then
8675 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"`
8676 else
8677 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8678 fi
8679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8680 ;;
8681
8682dgux*)
8683 version_type=linux
8684 need_lib_prefix=no
8685 need_version=no
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8688 shlibpath_var=LD_LIBRARY_PATH
8689 ;;
8690
8691freebsd1*)
8692 dynamic_linker=no
8693 ;;
8694
8695kfreebsd*-gnu)
8696 version_type=linux
8697 need_lib_prefix=no
8698 need_version=no
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8700 soname_spec='${libname}${release}${shared_ext}$major'
8701 shlibpath_var=LD_LIBRARY_PATH
8702 shlibpath_overrides_runpath=no
8703 hardcode_into_libs=yes
8704 dynamic_linker='GNU ld.so'
8705 ;;
8706
8707freebsd* | dragonfly*)
8708 # DragonFly does not have aout. When/if they implement a new
8709 # versioning mechanism, adjust this.
8710 if test -x /usr/bin/objformat; then
8711 objformat=`/usr/bin/objformat`
8712 else
8713 case $host_os in
8714 freebsd[123]*) objformat=aout ;;
8715 *) objformat=elf ;;
8716 esac
8717 fi
8718 version_type=freebsd-$objformat
8719 case $version_type in
8720 freebsd-elf*)
8721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8722 need_version=no
8723 need_lib_prefix=no
8724 ;;
8725 freebsd-*)
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8727 need_version=yes
8728 ;;
8729 esac
8730 shlibpath_var=LD_LIBRARY_PATH
8731 case $host_os in
8732 freebsd2*)
8733 shlibpath_overrides_runpath=yes
8734 ;;
8735 freebsd3.[01]* | freebsdelf3.[01]*)
8736 shlibpath_overrides_runpath=yes
8737 hardcode_into_libs=yes
8738 ;;
8739 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8740 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8741 shlibpath_overrides_runpath=no
8742 hardcode_into_libs=yes
8743 ;;
8744 freebsd*) # from 4.6 on
8745 shlibpath_overrides_runpath=yes
8746 hardcode_into_libs=yes
8747 ;;
8748 esac
8749 ;;
8750
8751gnu*)
8752 version_type=linux
8753 need_lib_prefix=no
8754 need_version=no
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 hardcode_into_libs=yes
8759 ;;
8760
8761hpux9* | hpux10* | hpux11*)
8762 # Give a soname corresponding to the major version so that dld.sl refuses to
8763 # link against other versions.
8764 version_type=sunos
8765 need_lib_prefix=no
8766 need_version=no
8767 case $host_cpu in
8768 ia64*)
8769 shrext_cmds='.so'
8770 hardcode_into_libs=yes
8771 dynamic_linker="$host_os dld.so"
8772 shlibpath_var=LD_LIBRARY_PATH
8773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 if test "X$HPUX_IA64_MODE" = X32; then
8777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8778 else
8779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8780 fi
8781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8782 ;;
8783 hppa*64*)
8784 shrext_cmds='.sl'
8785 hardcode_into_libs=yes
8786 dynamic_linker="$host_os dld.sl"
8787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790 soname_spec='${libname}${release}${shared_ext}$major'
8791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8793 ;;
8794 *)
8795 shrext_cmds='.sl'
8796 dynamic_linker="$host_os dld.sl"
8797 shlibpath_var=SHLIB_PATH
8798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 ;;
8802 esac
8803 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8804 postinstall_cmds='chmod 555 $lib'
8805 ;;
8806
8807interix3*)
8808 version_type=linux
8809 need_lib_prefix=no
8810 need_version=no
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 shlibpath_overrides_runpath=no
8816 hardcode_into_libs=yes
8817 ;;
8818
8819irix5* | irix6* | nonstopux*)
8820 case $host_os in
8821 nonstopux*) version_type=nonstopux ;;
8822 *)
8823 if test "$lt_cv_prog_gnu_ld" = yes; then
8824 version_type=linux
8825 else
8826 version_type=irix
8827 fi ;;
8828 esac
8829 need_lib_prefix=no
8830 need_version=no
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8833 case $host_os in
8834 irix5* | nonstopux*)
8835 libsuff= shlibsuff=
8836 ;;
8837 *)
8838 case $LD in # libtool.m4 will add one of these switches to LD
8839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8840 libsuff= shlibsuff= libmagic=32-bit;;
8841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8842 libsuff=32 shlibsuff=N32 libmagic=N32;;
8843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8845 *) libsuff= shlibsuff= libmagic=never-match;;
8846 esac
8847 ;;
8848 esac
8849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8850 shlibpath_overrides_runpath=no
8851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8853 hardcode_into_libs=yes
8854 ;;
8855
8856# No shared lib support for Linux oldld, aout, or coff.
8857linux*oldld* | linux*aout* | linux*coff*)
8858 dynamic_linker=no
8859 ;;
8860
8861# This must be Linux ELF.
8862linux*)
8863 version_type=linux
8864 need_lib_prefix=no
8865 need_version=no
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=no
8871 # This implies no fast_install, which is unacceptable.
8872 # Some rework will be needed to allow for fast_install
8873 # before this can be enabled.
8874 hardcode_into_libs=yes
8875
8876 # Append ld.so.conf contents to the search path
8877 if test -f /etc/ld.so.conf; then
8878 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' ' '`
8879 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8880 fi
8881
8882 # We used to test for /lib/ld.so.1 and disable shared libraries on
8883 # powerpc, because MkLinux only supported shared libraries with the
8884 # GNU dynamic linker. Since this was broken with cross compilers,
8885 # most powerpc-linux boxes support dynamic linking these days and
8886 # people can always --disable-shared, the test was removed, and we
8887 # assume the GNU/Linux dynamic linker is in use.
8888 dynamic_linker='GNU/Linux ld.so'
8889 ;;
8890
8891knetbsd*-gnu)
8892 version_type=linux
8893 need_lib_prefix=no
8894 need_version=no
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 shlibpath_var=LD_LIBRARY_PATH
8898 shlibpath_overrides_runpath=no
8899 hardcode_into_libs=yes
8900 dynamic_linker='GNU ld.so'
8901 ;;
8902
8903netbsd*)
8904 version_type=sunos
8905 need_lib_prefix=no
8906 need_version=no
8907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8910 dynamic_linker='NetBSD (a.out) ld.so'
8911 else
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 dynamic_linker='NetBSD ld.elf_so'
8915 fi
8916 shlibpath_var=LD_LIBRARY_PATH
8917 shlibpath_overrides_runpath=yes
8918 hardcode_into_libs=yes
8919 ;;
8920
8921newsos6)
8922 version_type=linux
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=yes
8926 ;;
8927
8928nto-qnx*)
8929 version_type=linux
8930 need_lib_prefix=no
8931 need_version=no
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=yes
8936 ;;
8937
8938openbsd*)
8939 version_type=sunos
8940 sys_lib_dlsearch_path_spec="/usr/lib"
8941 need_lib_prefix=no
8942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8943 case $host_os in
8944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8945 *) need_version=no ;;
8946 esac
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8951 case $host_os in
8952 openbsd2.[89] | openbsd2.[89].*)
8953 shlibpath_overrides_runpath=no
8954 ;;
8955 *)
8956 shlibpath_overrides_runpath=yes
8957 ;;
8958 esac
8959 else
8960 shlibpath_overrides_runpath=yes
8961 fi
8962 ;;
8963
8964os2*)
8965 libname_spec='$name'
8966 shrext_cmds=".dll"
8967 need_lib_prefix=no
8968 library_names_spec='$libname${shared_ext} $libname.a'
8969 dynamic_linker='OS/2 ld.exe'
8970 shlibpath_var=LIBPATH
8971 ;;
8972
8973osf3* | osf4* | osf5*)
8974 version_type=osf
8975 need_lib_prefix=no
8976 need_version=no
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8982 ;;
8983
8984solaris*)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
8993 # ldd complains unless libraries are executable
8994 postinstall_cmds='chmod +x $lib'
8995 ;;
8996
8997sunos4*)
8998 version_type=sunos
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 shlibpath_overrides_runpath=yes
9003 if test "$with_gnu_ld" = yes; then
9004 need_lib_prefix=no
9005 fi
9006 need_version=yes
9007 ;;
9008
9009sysv4 | sysv4.3*)
9010 version_type=linux
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 case $host_vendor in
9015 sni)
9016 shlibpath_overrides_runpath=no
9017 need_lib_prefix=no
9018 export_dynamic_flag_spec='${wl}-Blargedynsym'
9019 runpath_var=LD_RUN_PATH
9020 ;;
9021 siemens)
9022 need_lib_prefix=no
9023 ;;
9024 motorola)
9025 need_lib_prefix=no
9026 need_version=no
9027 shlibpath_overrides_runpath=no
9028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9029 ;;
9030 esac
9031 ;;
9032
9033sysv4*MP*)
9034 if test -d /usr/nec ;then
9035 version_type=linux
9036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9037 soname_spec='$libname${shared_ext}.$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 fi
9040 ;;
9041
9042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9043 version_type=freebsd-elf
9044 need_lib_prefix=no
9045 need_version=no
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 hardcode_into_libs=yes
9050 if test "$with_gnu_ld" = yes; then
9051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9052 shlibpath_overrides_runpath=no
9053 else
9054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9055 shlibpath_overrides_runpath=yes
9056 case $host_os in
9057 sco3.2v5*)
9058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9059 ;;
9060 esac
9061 fi
9062 sys_lib_dlsearch_path_spec='/usr/lib'
9063 ;;
9064
9065uts4*)
9066 version_type=linux
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 ;;
9071
9072*)
9073 dynamic_linker=no
9074 ;;
9075esac
9076{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9077echo "${ECHO_T}$dynamic_linker" >&6; }
9078test "$dynamic_linker" = no && can_build_shared=no
9079
9080variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9081if test "$GCC" = yes; then
9082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9083fi
9084
9085
9086{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9087echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9088if test "${libltdl_cv_shlibext+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090else
9091
9092module=yes
9093eval libltdl_cv_shlibext=$shrext_cmds
9094
9095fi
9096{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9097echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9098if test -n "$libltdl_cv_shlibext"; then
9099
9100cat >>confdefs.h <<_ACEOF
9101#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9102_ACEOF
9103
9104fi
9105
9106
9107{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9108echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9109if test "${libltdl_cv_shlibpath_var+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111else
9112 libltdl_cv_shlibpath_var="$shlibpath_var"
9113fi
9114{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9115echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9116if test -n "$libltdl_cv_shlibpath_var"; then
9117
9118cat >>confdefs.h <<_ACEOF
9119#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9120_ACEOF
9121
9122fi
9123
9124
9125{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9126echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9127if test "${libltdl_cv_sys_search_path+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9129else
9130 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9131fi
9132{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9133echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9134if test -n "$libltdl_cv_sys_search_path"; then
9135 sys_search_path=
9136 for dir in $libltdl_cv_sys_search_path; do
9137 if test -z "$sys_search_path"; then
9138 sys_search_path="$dir"
9139 else
9140 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9141 fi
9142 done
9143
9144cat >>confdefs.h <<_ACEOF
9145#define LTDL_SYSSEARCHPATH "$sys_search_path"
9146_ACEOF
9147
9148fi
9149
9150{ echo "$as_me:$LINENO: checking for objdir" >&5
9151echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9152if test "${libltdl_cv_objdir+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9154else
9155 libltdl_cv_objdir="$objdir"
9156 if test -n "$objdir"; then
9157 :
9158 else
9159 rm -f .libs 2>/dev/null
9160 mkdir .libs 2>/dev/null
9161 if test -d .libs; then
9162 libltdl_cv_objdir=.libs
9163 else
9164 # MS-DOS does not allow filenames that begin with a dot.
9165 libltdl_cv_objdir=_libs
9166 fi
9167 rmdir .libs 2>/dev/null
9168 fi
9169
9170fi
9171{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9172echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9173
9174cat >>confdefs.h <<_ACEOF
9175#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9176_ACEOF
9177
9178
9179
9180
9181
9182
9183# Check for command to grab the raw symbol name followed by C symbol from nm.
9184{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9185echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9186if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188else
9189
9190# These are sane defaults that work on at least a few old systems.
9191# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9192
9193# Character class describing NM global symbol codes.
9194symcode='[BCDEGRST]'
9195
9196# Regexp to match symbols that can be accessed directly from C.
9197sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9198
9199# Transform an extracted symbol line into a proper C declaration
9200lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9201
9202# Transform an extracted symbol line into symbol name and symbol address
9203lt_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'"
9204
9205# Define system-specific variables.
9206case $host_os in
9207aix*)
9208 symcode='[BCDT]'
9209 ;;
9210cygwin* | mingw* | pw32*)
9211 symcode='[ABCDGISTW]'
9212 ;;
9213hpux*) # Its linker distinguishes data from code symbols
9214 if test "$host_cpu" = ia64; then
9215 symcode='[ABCDEGRST]'
9216 fi
9217 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9218 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'"
9219 ;;
9220linux*)
9221 if test "$host_cpu" = ia64; then
9222 symcode='[ABCDGIRSTW]'
9223 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9224 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'"
9225 fi
9226 ;;
9227irix* | nonstopux*)
9228 symcode='[BCDEGRST]'
9229 ;;
9230osf*)
9231 symcode='[BCDEGQRST]'
9232 ;;
9233solaris*)
9234 symcode='[BDRT]'
9235 ;;
9236sco3.2v5*)
9237 symcode='[DT]'
9238 ;;
9239sysv4.2uw2*)
9240 symcode='[DT]'
9241 ;;
9242sysv5* | sco5v6* | unixware* | OpenUNIX*)
9243 symcode='[ABDT]'
9244 ;;
9245sysv4)
9246 symcode='[DFNSTU]'
9247 ;;
9248esac
9249
9250# Handle CRLF in mingw tool chain
9251opt_cr=
9252case $build_os in
9253mingw*)
9254 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9255 ;;
9256esac
9257
9258# If we're using GNU nm, then use its standard symbol codes.
9259case `$NM -V 2>&1` in
9260*GNU* | *'with BFD'*)
9261 symcode='[ABCDGIRSTW]' ;;
9262esac
9263
9264# Try without a prefix undercore, then with it.
9265for ac_symprfx in "" "_"; do
9266
9267 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9268 symxfrm="\\1 $ac_symprfx\\2 \\2"
9269
9270 # Write the raw and C identifiers.
9271 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9272
9273 # Check to see that the pipe works correctly.
9274 pipe_works=no
9275
9276 rm -f conftest*
9277 cat > conftest.$ac_ext <<EOF
9278#ifdef __cplusplus
9279extern "C" {
9280#endif
9281char nm_test_var;
9282void nm_test_func(){}
9283#ifdef __cplusplus
9284}
9285#endif
9286int main(){nm_test_var='a';nm_test_func();return(0);}
9287EOF
9288
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290 (eval $ac_compile) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; then
9294 # Now try to grab the symbols.
9295 nlist=conftest.nm
9296 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9297 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } && test -s "$nlist"; then
9301 # Try sorting and uniquifying the output.
9302 if sort "$nlist" | uniq > "$nlist"T; then
9303 mv -f "$nlist"T "$nlist"
9304 else
9305 rm -f "$nlist"T
9306 fi
9307
9308 # Make sure that we snagged all the symbols we need.
9309 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9310 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9311 cat <<EOF > conftest.$ac_ext
9312#ifdef __cplusplus
9313extern "C" {
9314#endif
9315
9316EOF
9317 # Now generate the symbol file.
9318 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9319
9320 cat <<EOF >> conftest.$ac_ext
9321#if defined (__STDC__) && __STDC__
9322# define lt_ptr_t void *
9323#else
9324# define lt_ptr_t char *
9325# define const
9326#endif
9327
9328/* The mapping between symbol names and symbols. */
9329const struct {
9330 const char *name;
9331 lt_ptr_t address;
9332}
9333lt_preloaded_symbols[] =
9334{
9335EOF
9336 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9337 cat <<\EOF >> conftest.$ac_ext
9338 {0, (lt_ptr_t) 0}
9339};
9340
9341#ifdef __cplusplus
9342}
9343#endif
9344EOF
9345 # Now try linking the two files.
9346 mv conftest.$ac_objext conftstm.$ac_objext
9347 lt_save_LIBS="$LIBS"
9348 lt_save_CFLAGS="$CFLAGS"
9349 LIBS="conftstm.$ac_objext"
9350 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9356 pipe_works=yes
9357 fi
9358 LIBS="$lt_save_LIBS"
9359 CFLAGS="$lt_save_CFLAGS"
9360 else
9361 echo "cannot find nm_test_func in $nlist" >&5
9362 fi
9363 else
9364 echo "cannot find nm_test_var in $nlist" >&5
9365 fi
9366 else
9367 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9368 fi
9369 else
9370 echo "$progname: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9372 fi
9373 rm -f conftest* conftst*
9374
9375 # Do not use the global_symbol_pipe unless it works.
9376 if test "$pipe_works" = yes; then
9377 break
9378 else
9379 lt_cv_sys_global_symbol_pipe=
9380 fi
9381done
9382
9383fi
9384
9385if test -z "$lt_cv_sys_global_symbol_pipe"; then
9386 lt_cv_sys_global_symbol_to_cdecl=
9387fi
9388if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9389 { echo "$as_me:$LINENO: result: failed" >&5
9390echo "${ECHO_T}failed" >&6; }
9391else
9392 { echo "$as_me:$LINENO: result: ok" >&5
9393echo "${ECHO_T}ok" >&6; }
9394fi
9395
9396
9397{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9398echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9399if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401else
9402 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9403 libltdl_cv_preloaded_symbols=yes
9404 else
9405 libltdl_cv_preloaded_symbols=no
9406 fi
9407
9408fi
9409{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9410echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9411if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9412
9413cat >>confdefs.h <<\_ACEOF
9414#define HAVE_PRELOADED_SYMBOLS 1
9415_ACEOF
9416
9417fi
9418
9419LIBADD_DL=
9420
9421ac_ext=c
9422ac_cpp='$CPP $CPPFLAGS'
9423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9425ac_compiler_gnu=$ac_cv_c_compiler_gnu
9426
9427
9428{ echo "$as_me:$LINENO: checking for shl_load" >&5
9429echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9430if test "${ac_cv_func_shl_load+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432else
9433 cat >conftest.$ac_ext <<_ACEOF
9434/* confdefs.h. */
9435_ACEOF
9436cat confdefs.h >>conftest.$ac_ext
9437cat >>conftest.$ac_ext <<_ACEOF
9438/* end confdefs.h. */
9439/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9441#define shl_load innocuous_shl_load
9442
9443/* System header to define __stub macros and hopefully few prototypes,
9444 which can conflict with char shl_load (); below.
9445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9446 <limits.h> exists even on freestanding compilers. */
9447
9448#ifdef __STDC__
9449# include <limits.h>
9450#else
9451# include <assert.h>
9452#endif
9453
9454#undef shl_load
9455
9456/* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
9459#ifdef __cplusplus
9460extern "C"
9461#endif
9462char shl_load ();
9463/* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
9466#if defined __stub_shl_load || defined __stub___shl_load
9467choke me
9468#endif
9469
9470int
9471main ()
9472{
9473return shl_load ();
9474 ;
9475 return 0;
9476}
9477_ACEOF
9478rm -f conftest.$ac_objext conftest$ac_exeext
9479if { (ac_try="$ac_link"
9480case "(($ac_try" in
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9483esac
9484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
9486 ac_status=$?
9487 grep -v '^ *+' conftest.er1 >conftest.err
9488 rm -f conftest.er1
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00009491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009496 ac_cv_func_shl_load=yes
9497else
9498 echo "$as_me: failed program was:" >&5
9499sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 ac_cv_func_shl_load=no
9502fi
9503
Edwin Török20176752008-10-22 09:56:27 +00009504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009505 conftest$ac_exeext conftest.$ac_ext
9506fi
9507{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9508echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9509if test $ac_cv_func_shl_load = yes; then
9510
9511cat >>confdefs.h <<\_ACEOF
9512#define HAVE_SHL_LOAD 1
9513_ACEOF
9514
9515else
9516 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9517echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9518if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521 ac_check_lib_save_LIBS=$LIBS
9522LIBS="-ldld $LIBS"
9523cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h. */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h. */
9529
9530/* Override any GCC internal prototype to avoid an error.
9531 Use char because int might match the return type of a GCC
9532 builtin and then its argument prototype would still apply. */
9533#ifdef __cplusplus
9534extern "C"
9535#endif
9536char shl_load ();
9537int
9538main ()
9539{
9540return shl_load ();
9541 ;
9542 return 0;
9543}
9544_ACEOF
9545rm -f conftest.$ac_objext conftest$ac_exeext
9546if { (ac_try="$ac_link"
9547case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9550esac
9551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_link") 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00009558 (exit $ac_status); } && {
9559 test -z "$ac_c_werror_flag" ||
9560 test ! -s conftest.err
9561 } && test -s conftest$ac_exeext &&
9562 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009563 ac_cv_lib_dld_shl_load=yes
9564else
9565 echo "$as_me: failed program was:" >&5
9566sed 's/^/| /' conftest.$ac_ext >&5
9567
9568 ac_cv_lib_dld_shl_load=no
9569fi
9570
Edwin Török20176752008-10-22 09:56:27 +00009571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009572 conftest$ac_exeext conftest.$ac_ext
9573LIBS=$ac_check_lib_save_LIBS
9574fi
9575{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9576echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9577if test $ac_cv_lib_dld_shl_load = yes; then
9578
9579cat >>confdefs.h <<\_ACEOF
9580#define HAVE_SHL_LOAD 1
9581_ACEOF
9582
9583 LIBADD_DL="$LIBADD_DL -ldld"
9584else
9585 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9586echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9587if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9589else
9590 ac_check_lib_save_LIBS=$LIBS
9591LIBS="-ldl $LIBS"
9592cat >conftest.$ac_ext <<_ACEOF
9593/* confdefs.h. */
9594_ACEOF
9595cat confdefs.h >>conftest.$ac_ext
9596cat >>conftest.$ac_ext <<_ACEOF
9597/* end confdefs.h. */
9598
9599/* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
9602#ifdef __cplusplus
9603extern "C"
9604#endif
9605char dlopen ();
9606int
9607main ()
9608{
9609return dlopen ();
9610 ;
9611 return 0;
9612}
9613_ACEOF
9614rm -f conftest.$ac_objext conftest$ac_exeext
9615if { (ac_try="$ac_link"
9616case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_link") 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00009627 (exit $ac_status); } && {
9628 test -z "$ac_c_werror_flag" ||
9629 test ! -s conftest.err
9630 } && test -s conftest$ac_exeext &&
9631 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009632 ac_cv_lib_dl_dlopen=yes
9633else
9634 echo "$as_me: failed program was:" >&5
9635sed 's/^/| /' conftest.$ac_ext >&5
9636
9637 ac_cv_lib_dl_dlopen=no
9638fi
9639
Edwin Török20176752008-10-22 09:56:27 +00009640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009641 conftest$ac_exeext conftest.$ac_ext
9642LIBS=$ac_check_lib_save_LIBS
9643fi
9644{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9645echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9646if test $ac_cv_lib_dl_dlopen = yes; then
9647
9648cat >>confdefs.h <<\_ACEOF
9649#define HAVE_LIBDL 1
9650_ACEOF
9651
9652 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9653else
9654 cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
9660#if HAVE_DLFCN_H
9661# include <dlfcn.h>
9662#endif
9663
9664int
9665main ()
9666{
9667dlopen(0, 0);
9668 ;
9669 return 0;
9670}
9671_ACEOF
9672rm -f conftest.$ac_objext conftest$ac_exeext
9673if { (ac_try="$ac_link"
9674case "(($ac_try" in
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9677esac
9678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_link") 2>conftest.er1
9680 ac_status=$?
9681 grep -v '^ *+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00009685 (exit $ac_status); } && {
9686 test -z "$ac_c_werror_flag" ||
9687 test ! -s conftest.err
9688 } && test -s conftest$ac_exeext &&
9689 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009690
9691cat >>confdefs.h <<\_ACEOF
9692#define HAVE_LIBDL 1
9693_ACEOF
9694 libltdl_cv_func_dlopen="yes"
9695else
9696 echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
9698
9699 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9700echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9701if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703else
9704 ac_check_lib_save_LIBS=$LIBS
9705LIBS="-lsvld $LIBS"
9706cat >conftest.$ac_ext <<_ACEOF
9707/* confdefs.h. */
9708_ACEOF
9709cat confdefs.h >>conftest.$ac_ext
9710cat >>conftest.$ac_ext <<_ACEOF
9711/* end confdefs.h. */
9712
9713/* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9716#ifdef __cplusplus
9717extern "C"
9718#endif
9719char dlopen ();
9720int
9721main ()
9722{
9723return dlopen ();
9724 ;
9725 return 0;
9726}
9727_ACEOF
9728rm -f conftest.$ac_objext conftest$ac_exeext
9729if { (ac_try="$ac_link"
9730case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733esac
9734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_link") 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00009741 (exit $ac_status); } && {
9742 test -z "$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 } && test -s conftest$ac_exeext &&
9745 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009746 ac_cv_lib_svld_dlopen=yes
9747else
9748 echo "$as_me: failed program was:" >&5
9749sed 's/^/| /' conftest.$ac_ext >&5
9750
9751 ac_cv_lib_svld_dlopen=no
9752fi
9753
Edwin Török20176752008-10-22 09:56:27 +00009754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009755 conftest$ac_exeext conftest.$ac_ext
9756LIBS=$ac_check_lib_save_LIBS
9757fi
9758{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9759echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9760if test $ac_cv_lib_svld_dlopen = yes; then
9761
9762cat >>confdefs.h <<\_ACEOF
9763#define HAVE_LIBDL 1
9764_ACEOF
9765
9766 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9767else
9768 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9769echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9770if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773 ac_check_lib_save_LIBS=$LIBS
9774LIBS="-ldld $LIBS"
9775cat >conftest.$ac_ext <<_ACEOF
9776/* confdefs.h. */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h. */
9781
9782/* Override any GCC internal prototype to avoid an error.
9783 Use char because int might match the return type of a GCC
9784 builtin and then its argument prototype would still apply. */
9785#ifdef __cplusplus
9786extern "C"
9787#endif
9788char dld_link ();
9789int
9790main ()
9791{
9792return dld_link ();
9793 ;
9794 return 0;
9795}
9796_ACEOF
9797rm -f conftest.$ac_objext conftest$ac_exeext
9798if { (ac_try="$ac_link"
9799case "(($ac_try" in
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9802esac
9803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_link") 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00009810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest$ac_exeext &&
9814 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009815 ac_cv_lib_dld_dld_link=yes
9816else
9817 echo "$as_me: failed program was:" >&5
9818sed 's/^/| /' conftest.$ac_ext >&5
9819
9820 ac_cv_lib_dld_dld_link=no
9821fi
9822
Edwin Török20176752008-10-22 09:56:27 +00009823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009824 conftest$ac_exeext conftest.$ac_ext
9825LIBS=$ac_check_lib_save_LIBS
9826fi
9827{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9828echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9829if test $ac_cv_lib_dld_dld_link = yes; then
9830
9831cat >>confdefs.h <<\_ACEOF
9832#define HAVE_DLD 1
9833_ACEOF
9834
9835 LIBADD_DL="$LIBADD_DL -ldld"
9836else
9837 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9838echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9839if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842 cat >conftest.$ac_ext <<_ACEOF
9843/* confdefs.h. */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
9847/* end confdefs.h. */
9848/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9850#define _dyld_func_lookup innocuous__dyld_func_lookup
9851
9852/* System header to define __stub macros and hopefully few prototypes,
9853 which can conflict with char _dyld_func_lookup (); below.
9854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9855 <limits.h> exists even on freestanding compilers. */
9856
9857#ifdef __STDC__
9858# include <limits.h>
9859#else
9860# include <assert.h>
9861#endif
9862
9863#undef _dyld_func_lookup
9864
9865/* Override any GCC internal prototype to avoid an error.
9866 Use char because int might match the return type of a GCC
9867 builtin and then its argument prototype would still apply. */
9868#ifdef __cplusplus
9869extern "C"
9870#endif
9871char _dyld_func_lookup ();
9872/* The GNU C library defines this for functions which it implements
9873 to always fail with ENOSYS. Some functions are actually named
9874 something starting with __ and the normal name is an alias. */
9875#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9876choke me
9877#endif
9878
9879int
9880main ()
9881{
9882return _dyld_func_lookup ();
9883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext conftest$ac_exeext
9888if { (ac_try="$ac_link"
9889case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +00009900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009905 ac_cv_func__dyld_func_lookup=yes
9906else
9907 echo "$as_me: failed program was:" >&5
9908sed 's/^/| /' conftest.$ac_ext >&5
9909
9910 ac_cv_func__dyld_func_lookup=no
9911fi
9912
Edwin Török20176752008-10-22 09:56:27 +00009913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009914 conftest$ac_exeext conftest.$ac_ext
9915fi
9916{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9917echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9918if test $ac_cv_func__dyld_func_lookup = yes; then
9919
9920cat >>confdefs.h <<\_ACEOF
9921#define HAVE_DYLD 1
9922_ACEOF
9923
9924fi
9925
9926
9927fi
9928
9929
9930fi
9931
9932
9933fi
9934
Edwin Török20176752008-10-22 09:56:27 +00009935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009936 conftest$ac_exeext conftest.$ac_ext
9937
9938fi
9939
9940
9941fi
9942
9943
9944fi
9945
9946
9947if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9948then
9949 lt_save_LIBS="$LIBS"
9950 LIBS="$LIBS $LIBADD_DL"
9951
9952for ac_func in dlerror
9953do
9954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959else
9960 cat >conftest.$ac_ext <<_ACEOF
9961/* confdefs.h. */
9962_ACEOF
9963cat confdefs.h >>conftest.$ac_ext
9964cat >>conftest.$ac_ext <<_ACEOF
9965/* end confdefs.h. */
9966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9968#define $ac_func innocuous_$ac_func
9969
9970/* System header to define __stub macros and hopefully few prototypes,
9971 which can conflict with char $ac_func (); below.
9972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9973 <limits.h> exists even on freestanding compilers. */
9974
9975#ifdef __STDC__
9976# include <limits.h>
9977#else
9978# include <assert.h>
9979#endif
9980
9981#undef $ac_func
9982
9983/* Override any GCC internal prototype to avoid an error.
9984 Use char because int might match the return type of a GCC
9985 builtin and then its argument prototype would still apply. */
9986#ifdef __cplusplus
9987extern "C"
9988#endif
9989char $ac_func ();
9990/* The GNU C library defines this for functions which it implements
9991 to always fail with ENOSYS. Some functions are actually named
9992 something starting with __ and the normal name is an alias. */
9993#if defined __stub_$ac_func || defined __stub___$ac_func
9994choke me
9995#endif
9996
9997int
9998main ()
9999{
10000return $ac_func ();
10001 ;
10002 return 0;
10003}
10004_ACEOF
10005rm -f conftest.$ac_objext conftest$ac_exeext
10006if { (ac_try="$ac_link"
10007case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010esac
10011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_link") 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000010018 (exit $ac_status); } && {
10019 test -z "$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 } && test -s conftest$ac_exeext &&
10022 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010023 eval "$as_ac_var=yes"
10024else
10025 echo "$as_me: failed program was:" >&5
10026sed 's/^/| /' conftest.$ac_ext >&5
10027
10028 eval "$as_ac_var=no"
10029fi
10030
Edwin Török20176752008-10-22 09:56:27 +000010031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010032 conftest$ac_exeext conftest.$ac_ext
10033fi
10034ac_res=`eval echo '${'$as_ac_var'}'`
10035 { echo "$as_me:$LINENO: result: $ac_res" >&5
10036echo "${ECHO_T}$ac_res" >&6; }
10037if test `eval echo '${'$as_ac_var'}'` = yes; then
10038 cat >>confdefs.h <<_ACEOF
10039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10040_ACEOF
10041
10042fi
10043done
10044
10045 LIBS="$lt_save_LIBS"
10046fi
10047ac_ext=c
10048ac_cpp='$CPP $CPPFLAGS'
10049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10051ac_compiler_gnu=$ac_cv_c_compiler_gnu
10052
10053
10054
10055{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10056echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10057if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059else
10060 ac_cv_sys_symbol_underscore=no
10061 cat > conftest.$ac_ext <<EOF
10062void nm_test_func(){}
10063int main(){nm_test_func;return 0;}
10064EOF
10065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10066 (eval $ac_compile) 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; then
10070 # Now try to grab the symbols.
10071 ac_nlist=conftest.nm
10072 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10073 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && test -s "$ac_nlist"; then
10077 # See whether the symbols have a leading underscore.
10078 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10079 ac_cv_sys_symbol_underscore=yes
10080 else
10081 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10082 :
10083 else
10084 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10085 fi
10086 fi
10087 else
10088 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10089 fi
10090 else
10091 echo "configure: failed program was:" >&5
10092 cat conftest.c >&5
10093 fi
10094 rm -rf conftest*
10095
10096fi
10097{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10098echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10099
10100
10101if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10102 if test x"$libltdl_cv_func_dlopen" = xyes ||
10103 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10104 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10105echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10106if test "${libltdl_cv_need_uscore+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108else
10109 libltdl_cv_need_uscore=unknown
10110 save_LIBS="$LIBS"
10111 LIBS="$LIBS $LIBADD_DL"
10112 if test "$cross_compiling" = yes; then :
10113 libltdl_cv_need_uscore=cross
10114else
10115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10116 lt_status=$lt_dlunknown
10117 cat > conftest.$ac_ext <<EOF
Edwin Török20176752008-10-22 09:56:27 +000010118#line 10118 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010119#include "confdefs.h"
10120
10121#if HAVE_DLFCN_H
10122#include <dlfcn.h>
10123#endif
10124
10125#include <stdio.h>
10126
10127#ifdef RTLD_GLOBAL
10128# define LT_DLGLOBAL RTLD_GLOBAL
10129#else
10130# ifdef DL_GLOBAL
10131# define LT_DLGLOBAL DL_GLOBAL
10132# else
10133# define LT_DLGLOBAL 0
10134# endif
10135#endif
10136
10137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10138 find out it does not work in some platform. */
10139#ifndef LT_DLLAZY_OR_NOW
10140# ifdef RTLD_LAZY
10141# define LT_DLLAZY_OR_NOW RTLD_LAZY
10142# else
10143# ifdef DL_LAZY
10144# define LT_DLLAZY_OR_NOW DL_LAZY
10145# else
10146# ifdef RTLD_NOW
10147# define LT_DLLAZY_OR_NOW RTLD_NOW
10148# else
10149# ifdef DL_NOW
10150# define LT_DLLAZY_OR_NOW DL_NOW
10151# else
10152# define LT_DLLAZY_OR_NOW 0
10153# endif
10154# endif
10155# endif
10156# endif
10157#endif
10158
10159#ifdef __cplusplus
10160extern "C" void exit (int);
10161#endif
10162
10163void fnord() { int i=42;}
10164int main ()
10165{
10166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10167 int status = $lt_dlunknown;
10168
10169 if (self)
10170 {
10171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10172 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10173 /* dlclose (self); */
10174 }
10175 else
10176 puts (dlerror ());
10177
10178 exit (status);
10179}
10180EOF
10181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182 (eval $ac_link) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10186 (./conftest; exit; ) >&5 2>/dev/null
10187 lt_status=$?
10188 case x$lt_status in
10189 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10190 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10191 x$lt_dlunknown|x*) ;;
10192 esac
10193 else :
10194 # compilation failed
10195
10196 fi
10197fi
10198rm -fr conftest*
10199
10200 LIBS="$save_LIBS"
10201
10202fi
10203{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10204echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10205 fi
10206fi
10207
10208if test x"$libltdl_cv_need_uscore" = xyes; then
10209
10210cat >>confdefs.h <<\_ACEOF
10211#define NEED_USCORE 1
10212_ACEOF
10213
10214fi
10215
10216
10217{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10218echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10219if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221else
10222 # PORTME does your system automatically load deplibs for dlopen?
10223 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10224 # For now, we just catch OSes we know something about -- in the
10225 # future, we'll try test this programmatically.
10226 libltdl_cv_sys_dlopen_deplibs=unknown
10227 case "$host_os" in
10228 aix3*|aix4.1.*|aix4.2.*)
10229 # Unknown whether this is true for these versions of AIX, but
10230 # we want this `case' here to explicitly catch those versions.
10231 libltdl_cv_sys_dlopen_deplibs=unknown
10232 ;;
10233 aix[45]*)
10234 libltdl_cv_sys_dlopen_deplibs=yes
10235 ;;
10236 darwin*)
10237 # Assuming the user has installed a libdl from somewhere, this is true
10238 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10239 libltdl_cv_sys_dlopen_deplibs=yes
10240 ;;
10241 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10242 # GNU and its variants, using gnu ld.so (Glibc)
10243 libltdl_cv_sys_dlopen_deplibs=yes
10244 ;;
10245 hpux10*|hpux11*)
10246 libltdl_cv_sys_dlopen_deplibs=yes
10247 ;;
10248 interix*)
10249 libltdl_cv_sys_dlopen_deplibs=yes
10250 ;;
10251 irix[12345]*|irix6.[01]*)
10252 # Catch all versions of IRIX before 6.2, and indicate that we don't
10253 # know how it worked for any of those versions.
10254 libltdl_cv_sys_dlopen_deplibs=unknown
10255 ;;
10256 irix*)
10257 # The case above catches anything before 6.2, and it's known that
10258 # at 6.2 and later dlopen does load deplibs.
10259 libltdl_cv_sys_dlopen_deplibs=yes
10260 ;;
10261 netbsd*)
10262 libltdl_cv_sys_dlopen_deplibs=yes
10263 ;;
10264 openbsd*)
10265 libltdl_cv_sys_dlopen_deplibs=yes
10266 ;;
10267 osf[1234]*)
10268 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10269 # it did *not* use an RPATH in a shared library to find objects the
10270 # library depends on, so we explictly say `no'.
10271 libltdl_cv_sys_dlopen_deplibs=no
10272 ;;
10273 osf5.0|osf5.0a|osf5.1)
10274 # dlopen *does* load deplibs and with the right loader patch applied
10275 # it even uses RPATH in a shared library to search for shared objects
10276 # that the library depends on, but there's no easy way to know if that
10277 # patch is installed. Since this is the case, all we can really
10278 # say is unknown -- it depends on the patch being installed. If
10279 # it is, this changes to `yes'. Without it, it would be `no'.
10280 libltdl_cv_sys_dlopen_deplibs=unknown
10281 ;;
10282 osf*)
10283 # the two cases above should catch all versions of osf <= 5.1. Read
10284 # the comments above for what we know about them.
10285 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10286 # is used to find them so we can finally say `yes'.
10287 libltdl_cv_sys_dlopen_deplibs=yes
10288 ;;
10289 solaris*)
10290 libltdl_cv_sys_dlopen_deplibs=yes
10291 ;;
10292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10293 libltdl_cv_sys_dlopen_deplibs=yes
10294 ;;
10295 esac
10296
10297fi
10298{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10299echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10300if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10301
10302cat >>confdefs.h <<\_ACEOF
10303#define LTDL_DLOPEN_DEPLIBS 1
10304_ACEOF
10305
10306fi
10307
10308
10309for ac_header in argz.h
10310do
10311as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10314echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10317fi
10318ac_res=`eval echo '${'$as_ac_Header'}'`
10319 { echo "$as_me:$LINENO: result: $ac_res" >&5
10320echo "${ECHO_T}$ac_res" >&6; }
10321else
10322 # Is the header compilable?
10323{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10324echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10325cat >conftest.$ac_ext <<_ACEOF
10326/* confdefs.h. */
10327_ACEOF
10328cat confdefs.h >>conftest.$ac_ext
10329cat >>conftest.$ac_ext <<_ACEOF
10330/* end confdefs.h. */
10331$ac_includes_default
10332#include <$ac_header>
10333_ACEOF
10334rm -f conftest.$ac_objext
10335if { (ac_try="$ac_compile"
10336case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10339esac
10340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_compile") 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000010347 (exit $ac_status); } && {
10348 test -z "$ac_c_werror_flag" ||
10349 test ! -s conftest.err
10350 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010351 ac_header_compiler=yes
10352else
10353 echo "$as_me: failed program was:" >&5
10354sed 's/^/| /' conftest.$ac_ext >&5
10355
10356 ac_header_compiler=no
10357fi
10358
10359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10361echo "${ECHO_T}$ac_header_compiler" >&6; }
10362
10363# Is the header present?
10364{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10366cat >conftest.$ac_ext <<_ACEOF
10367/* confdefs.h. */
10368_ACEOF
10369cat confdefs.h >>conftest.$ac_ext
10370cat >>conftest.$ac_ext <<_ACEOF
10371/* end confdefs.h. */
10372#include <$ac_header>
10373_ACEOF
10374if { (ac_try="$ac_cpp conftest.$ac_ext"
10375case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378esac
10379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000010386 (exit $ac_status); } >/dev/null && {
10387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10388 test ! -s conftest.err
10389 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010390 ac_header_preproc=yes
10391else
10392 echo "$as_me: failed program was:" >&5
10393sed 's/^/| /' conftest.$ac_ext >&5
10394
10395 ac_header_preproc=no
10396fi
10397
10398rm -f conftest.err conftest.$ac_ext
10399{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10400echo "${ECHO_T}$ac_header_preproc" >&6; }
10401
10402# So? What about this header?
10403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10404 yes:no: )
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10409 ac_header_preproc=yes
10410 ;;
10411 no:yes:* )
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10415echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10419echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10424 ( cat <<\_ASBOX
10425## ----------------------------------- ##
10426## Report this to llvmbugs@cs.uiuc.edu ##
10427## ----------------------------------- ##
10428_ASBOX
10429 ) | sed "s/^/$as_me: WARNING: /" >&2
10430 ;;
10431esac
10432{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10436else
10437 eval "$as_ac_Header=\$ac_header_preproc"
10438fi
10439ac_res=`eval echo '${'$as_ac_Header'}'`
10440 { echo "$as_me:$LINENO: result: $ac_res" >&5
10441echo "${ECHO_T}$ac_res" >&6; }
10442
10443fi
10444if test `eval echo '${'$as_ac_Header'}'` = yes; then
10445 cat >>confdefs.h <<_ACEOF
10446#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10447_ACEOF
10448
10449fi
10450
10451done
10452
10453
10454{ echo "$as_me:$LINENO: checking for error_t" >&5
10455echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10456if test "${ac_cv_type_error_t+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10458else
10459 cat >conftest.$ac_ext <<_ACEOF
10460/* confdefs.h. */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
10464/* end confdefs.h. */
10465#if HAVE_ARGZ_H
10466# include <argz.h>
10467#endif
10468
10469typedef error_t ac__type_new_;
10470int
10471main ()
10472{
10473if ((ac__type_new_ *) 0)
10474 return 0;
10475if (sizeof (ac__type_new_))
10476 return 0;
10477 ;
10478 return 0;
10479}
10480_ACEOF
10481rm -f conftest.$ac_objext
10482if { (ac_try="$ac_compile"
10483case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486esac
10487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_compile") 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000010494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010498 ac_cv_type_error_t=yes
10499else
10500 echo "$as_me: failed program was:" >&5
10501sed 's/^/| /' conftest.$ac_ext >&5
10502
10503 ac_cv_type_error_t=no
10504fi
10505
10506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507fi
10508{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10509echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10510if test $ac_cv_type_error_t = yes; then
10511
10512cat >>confdefs.h <<_ACEOF
10513#define HAVE_ERROR_T 1
10514_ACEOF
10515
10516
10517else
10518
10519cat >>confdefs.h <<\_ACEOF
10520#define error_t int
10521_ACEOF
10522
10523fi
10524
10525
10526
10527
10528
10529
10530
10531for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10532do
10533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10534{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10536if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10538else
10539 cat >conftest.$ac_ext <<_ACEOF
10540/* confdefs.h. */
10541_ACEOF
10542cat confdefs.h >>conftest.$ac_ext
10543cat >>conftest.$ac_ext <<_ACEOF
10544/* end confdefs.h. */
10545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10547#define $ac_func innocuous_$ac_func
10548
10549/* System header to define __stub macros and hopefully few prototypes,
10550 which can conflict with char $ac_func (); below.
10551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10552 <limits.h> exists even on freestanding compilers. */
10553
10554#ifdef __STDC__
10555# include <limits.h>
10556#else
10557# include <assert.h>
10558#endif
10559
10560#undef $ac_func
10561
10562/* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10565#ifdef __cplusplus
10566extern "C"
10567#endif
10568char $ac_func ();
10569/* The GNU C library defines this for functions which it implements
10570 to always fail with ENOSYS. Some functions are actually named
10571 something starting with __ and the normal name is an alias. */
10572#if defined __stub_$ac_func || defined __stub___$ac_func
10573choke me
10574#endif
10575
10576int
10577main ()
10578{
10579return $ac_func ();
10580 ;
10581 return 0;
10582}
10583_ACEOF
10584rm -f conftest.$ac_objext conftest$ac_exeext
10585if { (ac_try="$ac_link"
10586case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10589esac
10590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_link") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000010597 (exit $ac_status); } && {
10598 test -z "$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 } && test -s conftest$ac_exeext &&
10601 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010602 eval "$as_ac_var=yes"
10603else
10604 echo "$as_me: failed program was:" >&5
10605sed 's/^/| /' conftest.$ac_ext >&5
10606
10607 eval "$as_ac_var=no"
10608fi
10609
Edwin Török20176752008-10-22 09:56:27 +000010610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010611 conftest$ac_exeext conftest.$ac_ext
10612fi
10613ac_res=`eval echo '${'$as_ac_var'}'`
10614 { echo "$as_me:$LINENO: result: $ac_res" >&5
10615echo "${ECHO_T}$ac_res" >&6; }
10616if test `eval echo '${'$as_ac_var'}'` = yes; then
10617 cat >>confdefs.h <<_ACEOF
10618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10619_ACEOF
10620
10621fi
10622done
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10652 stdio.h unistd.h
10653do
10654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660fi
10661ac_res=`eval echo '${'$as_ac_Header'}'`
10662 { echo "$as_me:$LINENO: result: $ac_res" >&5
10663echo "${ECHO_T}$ac_res" >&6; }
10664else
10665 # Is the header compilable?
10666{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10668cat >conftest.$ac_ext <<_ACEOF
10669/* confdefs.h. */
10670_ACEOF
10671cat confdefs.h >>conftest.$ac_ext
10672cat >>conftest.$ac_ext <<_ACEOF
10673/* end confdefs.h. */
10674$ac_includes_default
10675#include <$ac_header>
10676_ACEOF
10677rm -f conftest.$ac_objext
10678if { (ac_try="$ac_compile"
10679case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682esac
10683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_compile") 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000010690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010694 ac_header_compiler=yes
10695else
10696 echo "$as_me: failed program was:" >&5
10697sed 's/^/| /' conftest.$ac_ext >&5
10698
10699 ac_header_compiler=no
10700fi
10701
10702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10704echo "${ECHO_T}$ac_header_compiler" >&6; }
10705
10706# Is the header present?
10707{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10708echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10709cat >conftest.$ac_ext <<_ACEOF
10710/* confdefs.h. */
10711_ACEOF
10712cat confdefs.h >>conftest.$ac_ext
10713cat >>conftest.$ac_ext <<_ACEOF
10714/* end confdefs.h. */
10715#include <$ac_header>
10716_ACEOF
10717if { (ac_try="$ac_cpp conftest.$ac_ext"
10718case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10721esac
10722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000010729 (exit $ac_status); } >/dev/null && {
10730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10732 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010733 ac_header_preproc=yes
10734else
10735 echo "$as_me: failed program was:" >&5
10736sed 's/^/| /' conftest.$ac_ext >&5
10737
10738 ac_header_preproc=no
10739fi
10740
10741rm -f conftest.err conftest.$ac_ext
10742{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10743echo "${ECHO_T}$ac_header_preproc" >&6; }
10744
10745# So? What about this header?
10746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10747 yes:no: )
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10749echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10751echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10752 ac_header_preproc=yes
10753 ;;
10754 no:yes:* )
10755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10756echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10758echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10760echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10762echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10766echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10767 ( cat <<\_ASBOX
10768## ----------------------------------- ##
10769## Report this to llvmbugs@cs.uiuc.edu ##
10770## ----------------------------------- ##
10771_ASBOX
10772 ) | sed "s/^/$as_me: WARNING: /" >&2
10773 ;;
10774esac
10775{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779else
10780 eval "$as_ac_Header=\$ac_header_preproc"
10781fi
10782ac_res=`eval echo '${'$as_ac_Header'}'`
10783 { echo "$as_me:$LINENO: result: $ac_res" >&5
10784echo "${ECHO_T}$ac_res" >&6; }
10785
10786fi
10787if test `eval echo '${'$as_ac_Header'}'` = yes; then
10788 cat >>confdefs.h <<_ACEOF
10789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10790_ACEOF
10791
10792fi
10793
10794done
10795
10796
10797
10798
10799
10800for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10801do
10802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808fi
10809ac_res=`eval echo '${'$as_ac_Header'}'`
10810 { echo "$as_me:$LINENO: result: $ac_res" >&5
10811echo "${ECHO_T}$ac_res" >&6; }
10812else
10813 # Is the header compilable?
10814{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10816cat >conftest.$ac_ext <<_ACEOF
10817/* confdefs.h. */
10818_ACEOF
10819cat confdefs.h >>conftest.$ac_ext
10820cat >>conftest.$ac_ext <<_ACEOF
10821/* end confdefs.h. */
10822$ac_includes_default
10823#include <$ac_header>
10824_ACEOF
10825rm -f conftest.$ac_objext
10826if { (ac_try="$ac_compile"
10827case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830esac
10831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_compile") 2>conftest.er1
10833 ac_status=$?
10834 grep -v '^ *+' conftest.er1 >conftest.err
10835 rm -f conftest.er1
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000010838 (exit $ac_status); } && {
10839 test -z "$ac_c_werror_flag" ||
10840 test ! -s conftest.err
10841 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010842 ac_header_compiler=yes
10843else
10844 echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_header_compiler=no
10848fi
10849
10850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10851{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10852echo "${ECHO_T}$ac_header_compiler" >&6; }
10853
10854# Is the header present?
10855{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10857cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h. */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
10862/* end confdefs.h. */
10863#include <$ac_header>
10864_ACEOF
10865if { (ac_try="$ac_cpp conftest.$ac_ext"
10866case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869esac
10870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000010877 (exit $ac_status); } >/dev/null && {
10878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010881 ac_header_preproc=yes
10882else
10883 echo "$as_me: failed program was:" >&5
10884sed 's/^/| /' conftest.$ac_ext >&5
10885
10886 ac_header_preproc=no
10887fi
10888
10889rm -f conftest.err conftest.$ac_ext
10890{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10891echo "${ECHO_T}$ac_header_preproc" >&6; }
10892
10893# So? What about this header?
10894case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10895 yes:no: )
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10897echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10899echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10900 ac_header_preproc=yes
10901 ;;
10902 no:yes:* )
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10904echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10906echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10908echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10910echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10914echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10915 ( cat <<\_ASBOX
10916## ----------------------------------- ##
10917## Report this to llvmbugs@cs.uiuc.edu ##
10918## ----------------------------------- ##
10919_ASBOX
10920 ) | sed "s/^/$as_me: WARNING: /" >&2
10921 ;;
10922esac
10923{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10925if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 eval "$as_ac_Header=\$ac_header_preproc"
10929fi
10930ac_res=`eval echo '${'$as_ac_Header'}'`
10931 { echo "$as_me:$LINENO: result: $ac_res" >&5
10932echo "${ECHO_T}$ac_res" >&6; }
10933
10934fi
10935if test `eval echo '${'$as_ac_Header'}'` = yes; then
10936 cat >>confdefs.h <<_ACEOF
10937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10938_ACEOF
10939
10940fi
10941
10942done
10943
10944
10945
10946for ac_header in string.h strings.h
10947do
10948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954fi
10955ac_res=`eval echo '${'$as_ac_Header'}'`
10956 { echo "$as_me:$LINENO: result: $ac_res" >&5
10957echo "${ECHO_T}$ac_res" >&6; }
10958else
10959 # Is the header compilable?
10960{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10962cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h. */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h. */
10968$ac_includes_default
10969#include <$ac_header>
10970_ACEOF
10971rm -f conftest.$ac_objext
10972if { (ac_try="$ac_compile"
10973case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976esac
10977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_compile") 2>conftest.er1
10979 ac_status=$?
10980 grep -v '^ *+' conftest.er1 >conftest.err
10981 rm -f conftest.er1
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000010984 (exit $ac_status); } && {
10985 test -z "$ac_c_werror_flag" ||
10986 test ! -s conftest.err
10987 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010988 ac_header_compiler=yes
10989else
10990 echo "$as_me: failed program was:" >&5
10991sed 's/^/| /' conftest.$ac_ext >&5
10992
10993 ac_header_compiler=no
10994fi
10995
10996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10997{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10998echo "${ECHO_T}$ac_header_compiler" >&6; }
10999
11000# Is the header present?
11001{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11003cat >conftest.$ac_ext <<_ACEOF
11004/* confdefs.h. */
11005_ACEOF
11006cat confdefs.h >>conftest.$ac_ext
11007cat >>conftest.$ac_ext <<_ACEOF
11008/* end confdefs.h. */
11009#include <$ac_header>
11010_ACEOF
11011if { (ac_try="$ac_cpp conftest.$ac_ext"
11012case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015esac
11016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000011023 (exit $ac_status); } >/dev/null && {
11024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11025 test ! -s conftest.err
11026 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011027 ac_header_preproc=yes
11028else
11029 echo "$as_me: failed program was:" >&5
11030sed 's/^/| /' conftest.$ac_ext >&5
11031
11032 ac_header_preproc=no
11033fi
11034
11035rm -f conftest.err conftest.$ac_ext
11036{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11037echo "${ECHO_T}$ac_header_preproc" >&6; }
11038
11039# So? What about this header?
11040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11041 yes:no: )
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11043echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11045echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11046 ac_header_preproc=yes
11047 ;;
11048 no:yes:* )
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11050echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11052echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11054echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11056echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11058echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11060echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11061 ( cat <<\_ASBOX
11062## ----------------------------------- ##
11063## Report this to llvmbugs@cs.uiuc.edu ##
11064## ----------------------------------- ##
11065_ASBOX
11066 ) | sed "s/^/$as_me: WARNING: /" >&2
11067 ;;
11068esac
11069{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073else
11074 eval "$as_ac_Header=\$ac_header_preproc"
11075fi
11076ac_res=`eval echo '${'$as_ac_Header'}'`
11077 { echo "$as_me:$LINENO: result: $ac_res" >&5
11078echo "${ECHO_T}$ac_res" >&6; }
11079
11080fi
11081if test `eval echo '${'$as_ac_Header'}'` = yes; then
11082 cat >>confdefs.h <<_ACEOF
11083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11084_ACEOF
11085 break
11086fi
11087
11088done
11089
11090
11091
11092
11093for ac_func in strchr index
11094do
11095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11096{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11098if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100else
11101 cat >conftest.$ac_ext <<_ACEOF
11102/* confdefs.h. */
11103_ACEOF
11104cat confdefs.h >>conftest.$ac_ext
11105cat >>conftest.$ac_ext <<_ACEOF
11106/* end confdefs.h. */
11107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11109#define $ac_func innocuous_$ac_func
11110
11111/* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char $ac_func (); below.
11113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114 <limits.h> exists even on freestanding compilers. */
11115
11116#ifdef __STDC__
11117# include <limits.h>
11118#else
11119# include <assert.h>
11120#endif
11121
11122#undef $ac_func
11123
11124/* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11127#ifdef __cplusplus
11128extern "C"
11129#endif
11130char $ac_func ();
11131/* The GNU C library defines this for functions which it implements
11132 to always fail with ENOSYS. Some functions are actually named
11133 something starting with __ and the normal name is an alias. */
11134#if defined __stub_$ac_func || defined __stub___$ac_func
11135choke me
11136#endif
11137
11138int
11139main ()
11140{
11141return $ac_func ();
11142 ;
11143 return 0;
11144}
11145_ACEOF
11146rm -f conftest.$ac_objext conftest$ac_exeext
11147if { (ac_try="$ac_link"
11148case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11151esac
11152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_link") 2>conftest.er1
11154 ac_status=$?
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -f conftest.er1
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000011159 (exit $ac_status); } && {
11160 test -z "$ac_c_werror_flag" ||
11161 test ! -s conftest.err
11162 } && test -s conftest$ac_exeext &&
11163 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011164 eval "$as_ac_var=yes"
11165else
11166 echo "$as_me: failed program was:" >&5
11167sed 's/^/| /' conftest.$ac_ext >&5
11168
11169 eval "$as_ac_var=no"
11170fi
11171
Edwin Török20176752008-10-22 09:56:27 +000011172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011173 conftest$ac_exeext conftest.$ac_ext
11174fi
11175ac_res=`eval echo '${'$as_ac_var'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177echo "${ECHO_T}$ac_res" >&6; }
11178if test `eval echo '${'$as_ac_var'}'` = yes; then
11179 cat >>confdefs.h <<_ACEOF
11180#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11181_ACEOF
11182 break
11183fi
11184done
11185
11186
11187
11188for ac_func in strrchr rindex
11189do
11190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11191{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11193if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11195else
11196 cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h. */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h. */
11202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11204#define $ac_func innocuous_$ac_func
11205
11206/* System header to define __stub macros and hopefully few prototypes,
11207 which can conflict with char $ac_func (); below.
11208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11209 <limits.h> exists even on freestanding compilers. */
11210
11211#ifdef __STDC__
11212# include <limits.h>
11213#else
11214# include <assert.h>
11215#endif
11216
11217#undef $ac_func
11218
11219/* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
11222#ifdef __cplusplus
11223extern "C"
11224#endif
11225char $ac_func ();
11226/* The GNU C library defines this for functions which it implements
11227 to always fail with ENOSYS. Some functions are actually named
11228 something starting with __ and the normal name is an alias. */
11229#if defined __stub_$ac_func || defined __stub___$ac_func
11230choke me
11231#endif
11232
11233int
11234main ()
11235{
11236return $ac_func ();
11237 ;
11238 return 0;
11239}
11240_ACEOF
11241rm -f conftest.$ac_objext conftest$ac_exeext
11242if { (ac_try="$ac_link"
11243case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246esac
11247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_link") 2>conftest.er1
11249 ac_status=$?
11250 grep -v '^ *+' conftest.er1 >conftest.err
11251 rm -f conftest.er1
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000011254 (exit $ac_status); } && {
11255 test -z "$ac_c_werror_flag" ||
11256 test ! -s conftest.err
11257 } && test -s conftest$ac_exeext &&
11258 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011259 eval "$as_ac_var=yes"
11260else
11261 echo "$as_me: failed program was:" >&5
11262sed 's/^/| /' conftest.$ac_ext >&5
11263
11264 eval "$as_ac_var=no"
11265fi
11266
Edwin Török20176752008-10-22 09:56:27 +000011267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011268 conftest$ac_exeext conftest.$ac_ext
11269fi
11270ac_res=`eval echo '${'$as_ac_var'}'`
11271 { echo "$as_me:$LINENO: result: $ac_res" >&5
11272echo "${ECHO_T}$ac_res" >&6; }
11273if test `eval echo '${'$as_ac_var'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11276_ACEOF
11277 break
11278fi
11279done
11280
11281
11282
11283for ac_func in memcpy bcopy
11284do
11285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11286{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11288if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290else
11291 cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11299#define $ac_func innocuous_$ac_func
11300
11301/* System header to define __stub macros and hopefully few prototypes,
11302 which can conflict with char $ac_func (); below.
11303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11304 <limits.h> exists even on freestanding compilers. */
11305
11306#ifdef __STDC__
11307# include <limits.h>
11308#else
11309# include <assert.h>
11310#endif
11311
11312#undef $ac_func
11313
11314/* Override any GCC internal prototype to avoid an error.
11315 Use char because int might match the return type of a GCC
11316 builtin and then its argument prototype would still apply. */
11317#ifdef __cplusplus
11318extern "C"
11319#endif
11320char $ac_func ();
11321/* The GNU C library defines this for functions which it implements
11322 to always fail with ENOSYS. Some functions are actually named
11323 something starting with __ and the normal name is an alias. */
11324#if defined __stub_$ac_func || defined __stub___$ac_func
11325choke me
11326#endif
11327
11328int
11329main ()
11330{
11331return $ac_func ();
11332 ;
11333 return 0;
11334}
11335_ACEOF
11336rm -f conftest.$ac_objext conftest$ac_exeext
11337if { (ac_try="$ac_link"
11338case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11341esac
11342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_link") 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000011349 (exit $ac_status); } && {
11350 test -z "$ac_c_werror_flag" ||
11351 test ! -s conftest.err
11352 } && test -s conftest$ac_exeext &&
11353 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011354 eval "$as_ac_var=yes"
11355else
11356 echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
11358
11359 eval "$as_ac_var=no"
11360fi
11361
Edwin Török20176752008-10-22 09:56:27 +000011362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011363 conftest$ac_exeext conftest.$ac_ext
11364fi
11365ac_res=`eval echo '${'$as_ac_var'}'`
11366 { echo "$as_me:$LINENO: result: $ac_res" >&5
11367echo "${ECHO_T}$ac_res" >&6; }
11368if test `eval echo '${'$as_ac_var'}'` = yes; then
11369 cat >>confdefs.h <<_ACEOF
11370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11371_ACEOF
11372 break
11373fi
11374done
11375
11376
11377
11378for ac_func in memmove strcmp
11379do
11380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11381{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11383if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385else
11386 cat >conftest.$ac_ext <<_ACEOF
11387/* confdefs.h. */
11388_ACEOF
11389cat confdefs.h >>conftest.$ac_ext
11390cat >>conftest.$ac_ext <<_ACEOF
11391/* end confdefs.h. */
11392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11394#define $ac_func innocuous_$ac_func
11395
11396/* System header to define __stub macros and hopefully few prototypes,
11397 which can conflict with char $ac_func (); below.
11398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11399 <limits.h> exists even on freestanding compilers. */
11400
11401#ifdef __STDC__
11402# include <limits.h>
11403#else
11404# include <assert.h>
11405#endif
11406
11407#undef $ac_func
11408
11409/* Override any GCC internal prototype to avoid an error.
11410 Use char because int might match the return type of a GCC
11411 builtin and then its argument prototype would still apply. */
11412#ifdef __cplusplus
11413extern "C"
11414#endif
11415char $ac_func ();
11416/* The GNU C library defines this for functions which it implements
11417 to always fail with ENOSYS. Some functions are actually named
11418 something starting with __ and the normal name is an alias. */
11419#if defined __stub_$ac_func || defined __stub___$ac_func
11420choke me
11421#endif
11422
11423int
11424main ()
11425{
11426return $ac_func ();
11427 ;
11428 return 0;
11429}
11430_ACEOF
11431rm -f conftest.$ac_objext conftest$ac_exeext
11432if { (ac_try="$ac_link"
11433case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436esac
11437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_link") 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000011444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest$ac_exeext &&
11448 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011449 eval "$as_ac_var=yes"
11450else
11451 echo "$as_me: failed program was:" >&5
11452sed 's/^/| /' conftest.$ac_ext >&5
11453
11454 eval "$as_ac_var=no"
11455fi
11456
Edwin Török20176752008-10-22 09:56:27 +000011457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011458 conftest$ac_exeext conftest.$ac_ext
11459fi
11460ac_res=`eval echo '${'$as_ac_var'}'`
11461 { echo "$as_me:$LINENO: result: $ac_res" >&5
11462echo "${ECHO_T}$ac_res" >&6; }
11463if test `eval echo '${'$as_ac_var'}'` = yes; then
11464 cat >>confdefs.h <<_ACEOF
11465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11466_ACEOF
11467
11468fi
11469done
11470
11471
11472
11473
11474for ac_func in closedir opendir readdir
11475do
11476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11477{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11479if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11481else
11482 cat >conftest.$ac_ext <<_ACEOF
11483/* confdefs.h. */
11484_ACEOF
11485cat confdefs.h >>conftest.$ac_ext
11486cat >>conftest.$ac_ext <<_ACEOF
11487/* end confdefs.h. */
11488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11490#define $ac_func innocuous_$ac_func
11491
11492/* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func (); below.
11494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11495 <limits.h> exists even on freestanding compilers. */
11496
11497#ifdef __STDC__
11498# include <limits.h>
11499#else
11500# include <assert.h>
11501#endif
11502
11503#undef $ac_func
11504
11505/* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11508#ifdef __cplusplus
11509extern "C"
11510#endif
11511char $ac_func ();
11512/* The GNU C library defines this for functions which it implements
11513 to always fail with ENOSYS. Some functions are actually named
11514 something starting with __ and the normal name is an alias. */
11515#if defined __stub_$ac_func || defined __stub___$ac_func
11516choke me
11517#endif
11518
11519int
11520main ()
11521{
11522return $ac_func ();
11523 ;
11524 return 0;
11525}
11526_ACEOF
11527rm -f conftest.$ac_objext conftest$ac_exeext
11528if { (ac_try="$ac_link"
11529case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_link") 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000011540 (exit $ac_status); } && {
11541 test -z "$ac_c_werror_flag" ||
11542 test ! -s conftest.err
11543 } && test -s conftest$ac_exeext &&
11544 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011545 eval "$as_ac_var=yes"
11546else
11547 echo "$as_me: failed program was:" >&5
11548sed 's/^/| /' conftest.$ac_ext >&5
11549
11550 eval "$as_ac_var=no"
11551fi
11552
Edwin Török20176752008-10-22 09:56:27 +000011553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011554 conftest$ac_exeext conftest.$ac_ext
11555fi
11556ac_res=`eval echo '${'$as_ac_var'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558echo "${ECHO_T}$ac_res" >&6; }
11559if test `eval echo '${'$as_ac_var'}'` = yes; then
11560 cat >>confdefs.h <<_ACEOF
11561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11562_ACEOF
11563
11564fi
11565done
11566
11567
11568# Check whether --enable-shared was given.
11569if test "${enable_shared+set}" = set; then
11570 enableval=$enable_shared; p=${PACKAGE-default}
11571 case $enableval in
11572 yes) enable_shared=yes ;;
11573 no) enable_shared=no ;;
11574 *)
11575 enable_shared=no
11576 # Look at the argument we got. We use all the common list separators.
11577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11578 for pkg in $enableval; do
11579 IFS="$lt_save_ifs"
11580 if test "X$pkg" = "X$p"; then
11581 enable_shared=yes
11582 fi
11583 done
11584 IFS="$lt_save_ifs"
11585 ;;
11586 esac
11587else
11588 enable_shared=yes
11589fi
11590
11591
11592# Check whether --enable-static was given.
11593if test "${enable_static+set}" = set; then
11594 enableval=$enable_static; p=${PACKAGE-default}
11595 case $enableval in
11596 yes) enable_static=yes ;;
11597 no) enable_static=no ;;
11598 *)
11599 enable_static=no
11600 # Look at the argument we got. We use all the common list separators.
11601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11602 for pkg in $enableval; do
11603 IFS="$lt_save_ifs"
11604 if test "X$pkg" = "X$p"; then
11605 enable_static=yes
11606 fi
11607 done
11608 IFS="$lt_save_ifs"
11609 ;;
11610 esac
11611else
11612 enable_static=yes
11613fi
11614
11615
11616# Check whether --enable-fast-install was given.
11617if test "${enable_fast_install+set}" = set; then
11618 enableval=$enable_fast_install; p=${PACKAGE-default}
11619 case $enableval in
11620 yes) enable_fast_install=yes ;;
11621 no) enable_fast_install=no ;;
11622 *)
11623 enable_fast_install=no
11624 # Look at the argument we got. We use all the common list separators.
11625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11626 for pkg in $enableval; do
11627 IFS="$lt_save_ifs"
11628 if test "X$pkg" = "X$p"; then
11629 enable_fast_install=yes
11630 fi
11631 done
11632 IFS="$lt_save_ifs"
11633 ;;
11634 esac
11635else
11636 enable_fast_install=yes
11637fi
11638
11639
11640{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11641echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11642if test "${lt_cv_path_SED+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645 # Loop through the user's path and test for sed and gsed.
11646# Then use that list of sed's as ones to test for truncation.
11647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648for as_dir in $PATH
11649do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for lt_ac_prog in sed gsed; do
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11655 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11656 fi
11657 done
11658 done
11659done
11660lt_ac_max=0
11661lt_ac_count=0
11662# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11663# along with /bin/sed that truncates output.
11664for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11665 test ! -f $lt_ac_sed && continue
11666 cat /dev/null > conftest.in
11667 lt_ac_count=0
11668 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11669 # Check for GNU sed and select it if it is found.
11670 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11671 lt_cv_path_SED=$lt_ac_sed
11672 break
11673 fi
11674 while true; do
11675 cat conftest.in conftest.in >conftest.tmp
11676 mv conftest.tmp conftest.in
11677 cp conftest.in conftest.nl
11678 echo >>conftest.nl
11679 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11680 cmp -s conftest.out conftest.nl || break
11681 # 10000 chars as input seems more than enough
11682 test $lt_ac_count -gt 10 && break
11683 lt_ac_count=`expr $lt_ac_count + 1`
11684 if test $lt_ac_count -gt $lt_ac_max; then
11685 lt_ac_max=$lt_ac_count
11686 lt_cv_path_SED=$lt_ac_sed
11687 fi
11688 done
11689done
11690
11691fi
11692
11693SED=$lt_cv_path_SED
11694{ echo "$as_me:$LINENO: result: $SED" >&5
11695echo "${ECHO_T}$SED" >&6; }
11696
11697
11698# Check whether --with-gnu-ld was given.
11699if test "${with_gnu_ld+set}" = set; then
11700 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11701else
11702 with_gnu_ld=no
11703fi
11704
11705ac_prog=ld
11706if test "$GCC" = yes; then
11707 # Check if gcc -print-prog-name=ld gives a path.
11708 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11709echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11710 case $host in
11711 *-*-mingw*)
11712 # gcc leaves a trailing carriage return which upsets mingw
11713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11714 *)
11715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11716 esac
11717 case $ac_prog in
11718 # Accept absolute paths.
11719 [\\/]* | ?:[\\/]*)
11720 re_direlt='/[^/][^/]*/\.\./'
11721 # Canonicalize the pathname of ld
11722 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11723 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11724 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11725 done
11726 test -z "$LD" && LD="$ac_prog"
11727 ;;
11728 "")
11729 # If it fails, then pretend we aren't using GCC.
11730 ac_prog=ld
11731 ;;
11732 *)
11733 # If it is relative, then search for the first ld in PATH.
11734 with_gnu_ld=unknown
11735 ;;
11736 esac
11737elif test "$with_gnu_ld" = yes; then
11738 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11739echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11740else
11741 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11742echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11743fi
11744if test "${lt_cv_path_LD+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11746else
11747 if test -z "$LD"; then
11748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11749 for ac_dir in $PATH; do
11750 IFS="$lt_save_ifs"
11751 test -z "$ac_dir" && ac_dir=.
11752 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11753 lt_cv_path_LD="$ac_dir/$ac_prog"
11754 # Check to see if the program is GNU ld. I'd rather use --version,
11755 # but apparently some variants of GNU ld only accept -v.
11756 # Break only if it was the GNU/non-GNU ld that we prefer.
11757 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11758 *GNU* | *'with BFD'*)
11759 test "$with_gnu_ld" != no && break
11760 ;;
11761 *)
11762 test "$with_gnu_ld" != yes && break
11763 ;;
11764 esac
11765 fi
11766 done
11767 IFS="$lt_save_ifs"
11768else
11769 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11770fi
11771fi
11772
11773LD="$lt_cv_path_LD"
11774if test -n "$LD"; then
11775 { echo "$as_me:$LINENO: result: $LD" >&5
11776echo "${ECHO_T}$LD" >&6; }
11777else
11778 { echo "$as_me:$LINENO: result: no" >&5
11779echo "${ECHO_T}no" >&6; }
11780fi
11781test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11782echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11783 { (exit 1); exit 1; }; }
11784{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11785echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11786if test "${lt_cv_prog_gnu_ld+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788else
11789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11790case `$LD -v 2>&1 </dev/null` in
11791*GNU* | *'with BFD'*)
11792 lt_cv_prog_gnu_ld=yes
11793 ;;
11794*)
11795 lt_cv_prog_gnu_ld=no
11796 ;;
11797esac
11798fi
11799{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11800echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11801with_gnu_ld=$lt_cv_prog_gnu_ld
11802
11803
11804{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11805echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11806if test "${lt_cv_ld_reload_flag+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 lt_cv_ld_reload_flag='-r'
11810fi
11811{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11812echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11813reload_flag=$lt_cv_ld_reload_flag
11814case $reload_flag in
11815"" | " "*) ;;
11816*) reload_flag=" $reload_flag" ;;
11817esac
11818reload_cmds='$LD$reload_flag -o $output$reload_objs'
11819case $host_os in
11820 darwin*)
11821 if test "$GCC" = yes; then
11822 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11823 else
11824 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11825 fi
11826 ;;
11827esac
11828
11829{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11830echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11831if test "${lt_cv_deplibs_check_method+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11833else
11834 lt_cv_file_magic_cmd='$MAGIC_CMD'
11835lt_cv_file_magic_test_file=
11836lt_cv_deplibs_check_method='unknown'
11837# Need to set the preceding variable on all platforms that support
11838# interlibrary dependencies.
11839# 'none' -- dependencies not supported.
11840# `unknown' -- same as none, but documents that we really don't know.
11841# 'pass_all' -- all dependencies passed with no checks.
11842# 'test_compile' -- check by making test program.
11843# 'file_magic [[regex]]' -- check by looking for files in library path
11844# which responds to the $file_magic_cmd with a given extended regex.
11845# If you have `file' or equivalent on your system and you're not sure
11846# whether `pass_all' will *always* work, you probably want this one.
11847
11848case $host_os in
11849aix4* | aix5*)
11850 lt_cv_deplibs_check_method=pass_all
11851 ;;
11852
11853beos*)
11854 lt_cv_deplibs_check_method=pass_all
11855 ;;
11856
11857bsdi[45]*)
11858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11859 lt_cv_file_magic_cmd='/usr/bin/file -L'
11860 lt_cv_file_magic_test_file=/shlib/libc.so
11861 ;;
11862
11863cygwin*)
11864 # func_win32_libid is a shell function defined in ltmain.sh
11865 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11866 lt_cv_file_magic_cmd='func_win32_libid'
11867 ;;
11868
11869mingw* | pw32*)
11870 # Base MSYS/MinGW do not provide the 'file' command needed by
11871 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11872 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11873 lt_cv_file_magic_cmd='$OBJDUMP -f'
11874 ;;
11875
11876darwin* | rhapsody*)
11877 lt_cv_deplibs_check_method=pass_all
11878 ;;
11879
11880freebsd* | kfreebsd*-gnu | dragonfly*)
11881 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11882 case $host_cpu in
11883 i*86 )
11884 # Not sure whether the presence of OpenBSD here was a mistake.
11885 # Let's accept both of them until this is cleared up.
11886 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11887 lt_cv_file_magic_cmd=/usr/bin/file
11888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11889 ;;
11890 esac
11891 else
11892 lt_cv_deplibs_check_method=pass_all
11893 fi
11894 ;;
11895
11896gnu*)
11897 lt_cv_deplibs_check_method=pass_all
11898 ;;
11899
11900hpux10.20* | hpux11*)
11901 lt_cv_file_magic_cmd=/usr/bin/file
11902 case $host_cpu in
11903 ia64*)
11904 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11905 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11906 ;;
11907 hppa*64*)
11908 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]'
11909 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11910 ;;
11911 *)
11912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11913 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11914 ;;
11915 esac
11916 ;;
11917
11918interix3*)
11919 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11921 ;;
11922
11923irix5* | irix6* | nonstopux*)
11924 case $LD in
11925 *-32|*"-32 ") libmagic=32-bit;;
11926 *-n32|*"-n32 ") libmagic=N32;;
11927 *-64|*"-64 ") libmagic=64-bit;;
11928 *) libmagic=never-match;;
11929 esac
11930 lt_cv_deplibs_check_method=pass_all
11931 ;;
11932
11933# This must be Linux ELF.
11934linux*)
11935 lt_cv_deplibs_check_method=pass_all
11936 ;;
11937
11938netbsd*)
11939 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11941 else
11942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11943 fi
11944 ;;
11945
11946newos6*)
11947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11948 lt_cv_file_magic_cmd=/usr/bin/file
11949 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11950 ;;
11951
11952nto-qnx*)
11953 lt_cv_deplibs_check_method=unknown
11954 ;;
11955
11956openbsd*)
11957 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11959 else
11960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11961 fi
11962 ;;
11963
11964osf3* | osf4* | osf5*)
11965 lt_cv_deplibs_check_method=pass_all
11966 ;;
11967
11968solaris*)
11969 lt_cv_deplibs_check_method=pass_all
11970 ;;
11971
11972sysv4 | sysv4.3*)
11973 case $host_vendor in
11974 motorola)
11975 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]'
11976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11977 ;;
11978 ncr)
11979 lt_cv_deplibs_check_method=pass_all
11980 ;;
11981 sequent)
11982 lt_cv_file_magic_cmd='/bin/file'
11983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11984 ;;
11985 sni)
11986 lt_cv_file_magic_cmd='/bin/file'
11987 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11988 lt_cv_file_magic_test_file=/lib/libc.so
11989 ;;
11990 siemens)
11991 lt_cv_deplibs_check_method=pass_all
11992 ;;
11993 pc)
11994 lt_cv_deplibs_check_method=pass_all
11995 ;;
11996 esac
11997 ;;
11998
11999sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12000 lt_cv_deplibs_check_method=pass_all
12001 ;;
12002esac
12003
12004fi
12005{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12006echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12007file_magic_cmd=$lt_cv_file_magic_cmd
12008deplibs_check_method=$lt_cv_deplibs_check_method
12009test -z "$deplibs_check_method" && deplibs_check_method=unknown
12010
12011
12012
12013# If no C compiler was specified, use CC.
12014LTCC=${LTCC-"$CC"}
12015
12016# If no C compiler flags were specified, use CFLAGS.
12017LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12018
12019# Allow CC to be a program name with arguments.
12020compiler=$CC
12021
12022# Check whether --enable-libtool-lock was given.
12023if test "${enable_libtool_lock+set}" = set; then
12024 enableval=$enable_libtool_lock;
12025fi
12026
12027test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12028
12029# Some flags need to be propagated to the compiler or linker for good
12030# libtool support.
12031case $host in
12032ia64-*-hpux*)
12033 # Find out which ABI we are using.
12034 echo 'int i;' > conftest.$ac_ext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; then
12040 case `/usr/bin/file conftest.$ac_objext` in
12041 *ELF-32*)
12042 HPUX_IA64_MODE="32"
12043 ;;
12044 *ELF-64*)
12045 HPUX_IA64_MODE="64"
12046 ;;
12047 esac
12048 fi
12049 rm -rf conftest*
12050 ;;
12051*-*-irix6*)
12052 # Find out which ABI we are using.
Edwin Török20176752008-10-22 09:56:27 +000012053 echo '#line 12053 "configure"' > conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12055 (eval $ac_compile) 2>&5
12056 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; then
12059 if test "$lt_cv_prog_gnu_ld" = yes; then
12060 case `/usr/bin/file conftest.$ac_objext` in
12061 *32-bit*)
12062 LD="${LD-ld} -melf32bsmip"
12063 ;;
12064 *N32*)
12065 LD="${LD-ld} -melf32bmipn32"
12066 ;;
12067 *64-bit*)
12068 LD="${LD-ld} -melf64bmip"
12069 ;;
12070 esac
12071 else
12072 case `/usr/bin/file conftest.$ac_objext` in
12073 *32-bit*)
12074 LD="${LD-ld} -32"
12075 ;;
12076 *N32*)
12077 LD="${LD-ld} -n32"
12078 ;;
12079 *64-bit*)
12080 LD="${LD-ld} -64"
12081 ;;
12082 esac
12083 fi
12084 fi
12085 rm -rf conftest*
12086 ;;
12087
12088x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12089 # Find out which ABI we are using.
12090 echo 'int i;' > conftest.$ac_ext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12092 (eval $ac_compile) 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; then
12096 case `/usr/bin/file conftest.o` in
12097 *32-bit*)
12098 case $host in
12099 x86_64-*linux*)
12100 LD="${LD-ld} -m elf_i386"
12101 ;;
12102 ppc64-*linux*|powerpc64-*linux*)
12103 LD="${LD-ld} -m elf32ppclinux"
12104 ;;
12105 s390x-*linux*)
12106 LD="${LD-ld} -m elf_s390"
12107 ;;
12108 sparc64-*linux*)
12109 LD="${LD-ld} -m elf32_sparc"
12110 ;;
12111 esac
12112 ;;
12113 *64-bit*)
12114 case $host in
12115 x86_64-*linux*)
12116 LD="${LD-ld} -m elf_x86_64"
12117 ;;
12118 ppc*-*linux*|powerpc*-*linux*)
12119 LD="${LD-ld} -m elf64ppc"
12120 ;;
12121 s390*-*linux*)
12122 LD="${LD-ld} -m elf64_s390"
12123 ;;
12124 sparc*-*linux*)
12125 LD="${LD-ld} -m elf64_sparc"
12126 ;;
12127 esac
12128 ;;
12129 esac
12130 fi
12131 rm -rf conftest*
12132 ;;
12133
12134*-*-sco3.2v5*)
12135 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12136 SAVE_CFLAGS="$CFLAGS"
12137 CFLAGS="$CFLAGS -belf"
12138 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12139echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12140if test "${lt_cv_cc_needs_belf+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142else
12143 ac_ext=c
12144ac_cpp='$CPP $CPPFLAGS'
12145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12147ac_compiler_gnu=$ac_cv_c_compiler_gnu
12148
12149 cat >conftest.$ac_ext <<_ACEOF
12150/* confdefs.h. */
12151_ACEOF
12152cat confdefs.h >>conftest.$ac_ext
12153cat >>conftest.$ac_ext <<_ACEOF
12154/* end confdefs.h. */
12155
12156int
12157main ()
12158{
12159
12160 ;
12161 return 0;
12162}
12163_ACEOF
12164rm -f conftest.$ac_objext conftest$ac_exeext
12165if { (ac_try="$ac_link"
12166case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169esac
12170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
12172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000012177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest$ac_exeext &&
12181 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012182 lt_cv_cc_needs_belf=yes
12183else
12184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 lt_cv_cc_needs_belf=no
12188fi
12189
Edwin Török20176752008-10-22 09:56:27 +000012190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012191 conftest$ac_exeext conftest.$ac_ext
12192 ac_ext=c
12193ac_cpp='$CPP $CPPFLAGS'
12194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196ac_compiler_gnu=$ac_cv_c_compiler_gnu
12197
12198fi
12199{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12200echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12201 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12202 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12203 CFLAGS="$SAVE_CFLAGS"
12204 fi
12205 ;;
12206sparc*-*solaris*)
12207 # Find out which ABI we are using.
12208 echo 'int i;' > conftest.$ac_ext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210 (eval $ac_compile) 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; then
12214 case `/usr/bin/file conftest.o` in
12215 *64-bit*)
12216 case $lt_cv_prog_gnu_ld in
12217 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12218 *) LD="${LD-ld} -64" ;;
12219 esac
12220 ;;
12221 esac
12222 fi
12223 rm -rf conftest*
12224 ;;
12225
12226
12227esac
12228
12229need_locks="$enable_libtool_lock"
12230
12231
12232
12233
12234if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12235 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12236 (test "X$CXX" != "Xg++"))) ; then
12237 ac_ext=cpp
12238ac_cpp='$CXXCPP $CPPFLAGS'
12239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12242{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12243echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12244if test -z "$CXXCPP"; then
12245 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12247else
12248 # Double quotes because CXXCPP needs to be expanded
12249 for CXXCPP in "$CXX -E" "/lib/cpp"
12250 do
12251 ac_preproc_ok=false
12252for ac_cxx_preproc_warn_flag in '' yes
12253do
12254 # Use a header file that comes with gcc, so configuring glibc
12255 # with a fresh cross-compiler works.
12256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12257 # <limits.h> exists even on freestanding compilers.
12258 # On the NeXT, cc -E runs the code through the compiler's parser,
12259 # not just through cpp. "Syntax error" is here to catch this case.
12260 cat >conftest.$ac_ext <<_ACEOF
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266#ifdef __STDC__
12267# include <limits.h>
12268#else
12269# include <assert.h>
12270#endif
12271 Syntax error
12272_ACEOF
12273if { (ac_try="$ac_cpp conftest.$ac_ext"
12274case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277esac
12278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000012285 (exit $ac_status); } >/dev/null && {
12286 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12287 test ! -s conftest.err
12288 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012289 :
12290else
12291 echo "$as_me: failed program was:" >&5
12292sed 's/^/| /' conftest.$ac_ext >&5
12293
12294 # Broken: fails on valid input.
12295continue
12296fi
12297
12298rm -f conftest.err conftest.$ac_ext
12299
12300 # OK, works on sane cases. Now check whether nonexistent headers
12301 # can be detected and how.
12302 cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308#include <ac_nonexistent.h>
12309_ACEOF
12310if { (ac_try="$ac_cpp conftest.$ac_ext"
12311case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314esac
12315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000012322 (exit $ac_status); } >/dev/null && {
12323 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12324 test ! -s conftest.err
12325 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012326 # Broken: success on invalid input.
12327continue
12328else
12329 echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
12332 # Passes both tests.
12333ac_preproc_ok=:
12334break
12335fi
12336
12337rm -f conftest.err conftest.$ac_ext
12338
12339done
12340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12341rm -f conftest.err conftest.$ac_ext
12342if $ac_preproc_ok; then
12343 break
12344fi
12345
12346 done
12347 ac_cv_prog_CXXCPP=$CXXCPP
12348
12349fi
12350 CXXCPP=$ac_cv_prog_CXXCPP
12351else
12352 ac_cv_prog_CXXCPP=$CXXCPP
12353fi
12354{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12355echo "${ECHO_T}$CXXCPP" >&6; }
12356ac_preproc_ok=false
12357for ac_cxx_preproc_warn_flag in '' yes
12358do
12359 # Use a header file that comes with gcc, so configuring glibc
12360 # with a fresh cross-compiler works.
12361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12362 # <limits.h> exists even on freestanding compilers.
12363 # On the NeXT, cc -E runs the code through the compiler's parser,
12364 # not just through cpp. "Syntax error" is here to catch this case.
12365 cat >conftest.$ac_ext <<_ACEOF
12366/* confdefs.h. */
12367_ACEOF
12368cat confdefs.h >>conftest.$ac_ext
12369cat >>conftest.$ac_ext <<_ACEOF
12370/* end confdefs.h. */
12371#ifdef __STDC__
12372# include <limits.h>
12373#else
12374# include <assert.h>
12375#endif
12376 Syntax error
12377_ACEOF
12378if { (ac_try="$ac_cpp conftest.$ac_ext"
12379case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382esac
12383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12385 ac_status=$?
12386 grep -v '^ *+' conftest.er1 >conftest.err
12387 rm -f conftest.er1
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000012390 (exit $ac_status); } >/dev/null && {
12391 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12392 test ! -s conftest.err
12393 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012394 :
12395else
12396 echo "$as_me: failed program was:" >&5
12397sed 's/^/| /' conftest.$ac_ext >&5
12398
12399 # Broken: fails on valid input.
12400continue
12401fi
12402
12403rm -f conftest.err conftest.$ac_ext
12404
12405 # OK, works on sane cases. Now check whether nonexistent headers
12406 # can be detected and how.
12407 cat >conftest.$ac_ext <<_ACEOF
12408/* confdefs.h. */
12409_ACEOF
12410cat confdefs.h >>conftest.$ac_ext
12411cat >>conftest.$ac_ext <<_ACEOF
12412/* end confdefs.h. */
12413#include <ac_nonexistent.h>
12414_ACEOF
12415if { (ac_try="$ac_cpp conftest.$ac_ext"
12416case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12419esac
12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000012427 (exit $ac_status); } >/dev/null && {
12428 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12429 test ! -s conftest.err
12430 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012431 # Broken: success on invalid input.
12432continue
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 # Passes both tests.
12438ac_preproc_ok=:
12439break
12440fi
12441
12442rm -f conftest.err conftest.$ac_ext
12443
12444done
12445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12446rm -f conftest.err conftest.$ac_ext
12447if $ac_preproc_ok; then
12448 :
12449else
12450 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12451See \`config.log' for more details." >&5
12452echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12453See \`config.log' for more details." >&2;}
12454 { (exit 1); exit 1; }; }
12455fi
12456
12457ac_ext=cpp
12458ac_cpp='$CXXCPP $CPPFLAGS'
12459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12462
12463fi
12464
12465
12466ac_ext=f
12467ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12468ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12469ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12470if test -n "$ac_tool_prefix"; then
Edwin Török20176752008-10-22 09:56:27 +000012471 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012472 do
12473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12474set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12477if test "${ac_cv_prog_F77+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479else
12480 if test -n "$F77"; then
12481 ac_cv_prog_F77="$F77" # Let the user override the test.
12482else
12483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484for as_dir in $PATH
12485do
12486 IFS=$as_save_IFS
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +000012489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012490 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12492 break 2
12493 fi
12494done
12495done
12496IFS=$as_save_IFS
12497
12498fi
12499fi
12500F77=$ac_cv_prog_F77
12501if test -n "$F77"; then
12502 { echo "$as_me:$LINENO: result: $F77" >&5
12503echo "${ECHO_T}$F77" >&6; }
12504else
12505 { echo "$as_me:$LINENO: result: no" >&5
12506echo "${ECHO_T}no" >&6; }
12507fi
12508
12509
12510 test -n "$F77" && break
12511 done
12512fi
12513if test -z "$F77"; then
12514 ac_ct_F77=$F77
Edwin Török20176752008-10-22 09:56:27 +000012515 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012516do
12517 # Extract the first word of "$ac_prog", so it can be a program name with args.
12518set dummy $ac_prog; ac_word=$2
12519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12521if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12523else
12524 if test -n "$ac_ct_F77"; then
12525 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12526else
12527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528for as_dir in $PATH
12529do
12530 IFS=$as_save_IFS
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +000012533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012534 ac_cv_prog_ac_ct_F77="$ac_prog"
12535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12536 break 2
12537 fi
12538done
12539done
12540IFS=$as_save_IFS
12541
12542fi
12543fi
12544ac_ct_F77=$ac_cv_prog_ac_ct_F77
12545if test -n "$ac_ct_F77"; then
12546 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12547echo "${ECHO_T}$ac_ct_F77" >&6; }
12548else
12549 { echo "$as_me:$LINENO: result: no" >&5
12550echo "${ECHO_T}no" >&6; }
12551fi
12552
12553
12554 test -n "$ac_ct_F77" && break
12555done
12556
12557 if test "x$ac_ct_F77" = x; then
12558 F77=""
12559 else
12560 case $cross_compiling:$ac_tool_warned in
12561yes:)
12562{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12563whose name does not start with the host triplet. If you think this
12564configuration is useful to you, please write to autoconf@gnu.org." >&5
12565echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12566whose name does not start with the host triplet. If you think this
12567configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12568ac_tool_warned=yes ;;
12569esac
12570 F77=$ac_ct_F77
12571 fi
12572fi
12573
12574
12575# Provide some information about the compiler.
12576echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12577ac_compiler=`set X $ac_compile; echo $2`
12578{ (ac_try="$ac_compiler --version >&5"
12579case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582esac
12583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_compiler --version >&5") 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }
12588{ (ac_try="$ac_compiler -v >&5"
12589case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12592esac
12593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_compiler -v >&5") 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }
12598{ (ac_try="$ac_compiler -V >&5"
12599case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602esac
12603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_compiler -V >&5") 2>&5
12605 ac_status=$?
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }
12608rm -f a.out
12609
12610# If we don't use `.F' as extension, the preprocessor is not run on the
12611# input file. (Note that this only needs to work for GNU compilers.)
12612ac_save_ext=$ac_ext
12613ac_ext=F
12614{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12615echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12616if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12618else
12619 cat >conftest.$ac_ext <<_ACEOF
12620 program main
12621#ifndef __GNUC__
12622 choke me
12623#endif
12624
12625 end
12626_ACEOF
12627rm -f conftest.$ac_objext
12628if { (ac_try="$ac_compile"
12629case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_compile") 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000012640 (exit $ac_status); } && {
12641 test -z "$ac_f77_werror_flag" ||
12642 test ! -s conftest.err
12643 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012644 ac_compiler_gnu=yes
12645else
12646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
12649 ac_compiler_gnu=no
12650fi
12651
12652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12654
12655fi
12656{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12657echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12658ac_ext=$ac_save_ext
12659ac_test_FFLAGS=${FFLAGS+set}
12660ac_save_FFLAGS=$FFLAGS
12661FFLAGS=
12662{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12663echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12664if test "${ac_cv_prog_f77_g+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666else
12667 FFLAGS=-g
12668cat >conftest.$ac_ext <<_ACEOF
12669 program main
12670
12671 end
12672_ACEOF
12673rm -f conftest.$ac_objext
12674if { (ac_try="$ac_compile"
12675case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12678esac
12679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000012686 (exit $ac_status); } && {
12687 test -z "$ac_f77_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012690 ac_cv_prog_f77_g=yes
12691else
12692 echo "$as_me: failed program was:" >&5
12693sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 ac_cv_prog_f77_g=no
12696fi
12697
12698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699
12700fi
12701{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12702echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12703if test "$ac_test_FFLAGS" = set; then
12704 FFLAGS=$ac_save_FFLAGS
12705elif test $ac_cv_prog_f77_g = yes; then
12706 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12707 FFLAGS="-g -O2"
12708 else
12709 FFLAGS="-g"
12710 fi
12711else
12712 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12713 FFLAGS="-O2"
12714 else
12715 FFLAGS=
12716 fi
12717fi
12718
12719G77=`test $ac_compiler_gnu = yes && echo yes`
12720ac_ext=c
12721ac_cpp='$CPP $CPPFLAGS'
12722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12724ac_compiler_gnu=$ac_cv_c_compiler_gnu
12725
12726
12727
12728# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12729
12730# find the maximum length of command line arguments
12731{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12732echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12733if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735else
12736 i=0
12737 teststring="ABCD"
12738
12739 case $build_os in
12740 msdosdjgpp*)
12741 # On DJGPP, this test can blow up pretty badly due to problems in libc
12742 # (any single argument exceeding 2000 bytes causes a buffer overrun
12743 # during glob expansion). Even if it were fixed, the result of this
12744 # check would be larger than it should be.
12745 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12746 ;;
12747
12748 gnu*)
12749 # Under GNU Hurd, this test is not required because there is
12750 # no limit to the length of command line arguments.
12751 # Libtool will interpret -1 as no limit whatsoever
12752 lt_cv_sys_max_cmd_len=-1;
12753 ;;
12754
12755 cygwin* | mingw*)
12756 # On Win9x/ME, this test blows up -- it succeeds, but takes
12757 # about 5 minutes as the teststring grows exponentially.
12758 # Worse, since 9x/ME are not pre-emptively multitasking,
12759 # you end up with a "frozen" computer, even though with patience
12760 # the test eventually succeeds (with a max line length of 256k).
12761 # Instead, let's just punt: use the minimum linelength reported by
12762 # all of the supported platforms: 8192 (on NT/2K/XP).
12763 lt_cv_sys_max_cmd_len=8192;
12764 ;;
12765
12766 amigaos*)
12767 # On AmigaOS with pdksh, this test takes hours, literally.
12768 # So we just punt and use a minimum line length of 8192.
12769 lt_cv_sys_max_cmd_len=8192;
12770 ;;
12771
12772 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12773 # This has been around since 386BSD, at least. Likely further.
12774 if test -x /sbin/sysctl; then
12775 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12776 elif test -x /usr/sbin/sysctl; then
12777 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12778 else
12779 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12780 fi
12781 # And add a safety zone
12782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12784 ;;
12785
12786 interix*)
12787 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12788 lt_cv_sys_max_cmd_len=196608
12789 ;;
12790
12791 osf*)
12792 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12793 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12794 # nice to cause kernel panics so lets avoid the loop below.
12795 # First set a reasonable default.
12796 lt_cv_sys_max_cmd_len=16384
12797 #
12798 if test -x /sbin/sysconfig; then
12799 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12800 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12801 esac
12802 fi
12803 ;;
12804 sco3.2v5*)
12805 lt_cv_sys_max_cmd_len=102400
12806 ;;
12807 sysv5* | sco5v6* | sysv4.2uw2*)
12808 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12809 if test -n "$kargmax"; then
12810 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12811 else
12812 lt_cv_sys_max_cmd_len=32768
12813 fi
12814 ;;
12815 *)
12816 # If test is not a shell built-in, we'll probably end up computing a
12817 # maximum length that is only half of the actual maximum length, but
12818 # we can't tell.
12819 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12820 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12821 = "XX$teststring") >/dev/null 2>&1 &&
12822 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12823 lt_cv_sys_max_cmd_len=$new_result &&
12824 test $i != 17 # 1/2 MB should be enough
12825 do
12826 i=`expr $i + 1`
12827 teststring=$teststring$teststring
12828 done
12829 teststring=
12830 # Add a significant safety factor because C++ compilers can tack on massive
12831 # amounts of additional arguments before passing them to the linker.
12832 # It appears as though 1/2 is a usable value.
12833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12834 ;;
12835 esac
12836
12837fi
12838
12839if test -n $lt_cv_sys_max_cmd_len ; then
12840 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12841echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12842else
12843 { echo "$as_me:$LINENO: result: none" >&5
12844echo "${ECHO_T}none" >&6; }
12845fi
12846
12847
12848
12849
12850# Check for command to grab the raw symbol name followed by C symbol from nm.
12851{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12852echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12853if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855else
12856
12857# These are sane defaults that work on at least a few old systems.
12858# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12859
12860# Character class describing NM global symbol codes.
12861symcode='[BCDEGRST]'
12862
12863# Regexp to match symbols that can be accessed directly from C.
12864sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12865
12866# Transform an extracted symbol line into a proper C declaration
12867lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12868
12869# Transform an extracted symbol line into symbol name and symbol address
12870lt_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'"
12871
12872# Define system-specific variables.
12873case $host_os in
12874aix*)
12875 symcode='[BCDT]'
12876 ;;
12877cygwin* | mingw* | pw32*)
12878 symcode='[ABCDGISTW]'
12879 ;;
12880hpux*) # Its linker distinguishes data from code symbols
12881 if test "$host_cpu" = ia64; then
12882 symcode='[ABCDEGRST]'
12883 fi
12884 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12885 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'"
12886 ;;
12887linux*)
12888 if test "$host_cpu" = ia64; then
12889 symcode='[ABCDGIRSTW]'
12890 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12891 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'"
12892 fi
12893 ;;
12894irix* | nonstopux*)
12895 symcode='[BCDEGRST]'
12896 ;;
12897osf*)
12898 symcode='[BCDEGQRST]'
12899 ;;
12900solaris*)
12901 symcode='[BDRT]'
12902 ;;
12903sco3.2v5*)
12904 symcode='[DT]'
12905 ;;
12906sysv4.2uw2*)
12907 symcode='[DT]'
12908 ;;
12909sysv5* | sco5v6* | unixware* | OpenUNIX*)
12910 symcode='[ABDT]'
12911 ;;
12912sysv4)
12913 symcode='[DFNSTU]'
12914 ;;
12915esac
12916
12917# Handle CRLF in mingw tool chain
12918opt_cr=
12919case $build_os in
12920mingw*)
12921 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12922 ;;
12923esac
12924
12925# If we're using GNU nm, then use its standard symbol codes.
12926case `$NM -V 2>&1` in
12927*GNU* | *'with BFD'*)
12928 symcode='[ABCDGIRSTW]' ;;
12929esac
12930
12931# Try without a prefix undercore, then with it.
12932for ac_symprfx in "" "_"; do
12933
12934 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12935 symxfrm="\\1 $ac_symprfx\\2 \\2"
12936
12937 # Write the raw and C identifiers.
12938 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12939
12940 # Check to see that the pipe works correctly.
12941 pipe_works=no
12942
12943 rm -f conftest*
12944 cat > conftest.$ac_ext <<EOF
12945#ifdef __cplusplus
12946extern "C" {
12947#endif
12948char nm_test_var;
12949void nm_test_func(){}
12950#ifdef __cplusplus
12951}
12952#endif
12953int main(){nm_test_var='a';nm_test_func();return(0);}
12954EOF
12955
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; then
12961 # Now try to grab the symbols.
12962 nlist=conftest.nm
12963 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12964 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } && test -s "$nlist"; then
12968 # Try sorting and uniquifying the output.
12969 if sort "$nlist" | uniq > "$nlist"T; then
12970 mv -f "$nlist"T "$nlist"
12971 else
12972 rm -f "$nlist"T
12973 fi
12974
12975 # Make sure that we snagged all the symbols we need.
12976 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12977 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12978 cat <<EOF > conftest.$ac_ext
12979#ifdef __cplusplus
12980extern "C" {
12981#endif
12982
12983EOF
12984 # Now generate the symbol file.
12985 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12986
12987 cat <<EOF >> conftest.$ac_ext
12988#if defined (__STDC__) && __STDC__
12989# define lt_ptr_t void *
12990#else
12991# define lt_ptr_t char *
12992# define const
12993#endif
12994
12995/* The mapping between symbol names and symbols. */
12996const struct {
12997 const char *name;
12998 lt_ptr_t address;
12999}
13000lt_preloaded_symbols[] =
13001{
13002EOF
13003 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13004 cat <<\EOF >> conftest.$ac_ext
13005 {0, (lt_ptr_t) 0}
13006};
13007
13008#ifdef __cplusplus
13009}
13010#endif
13011EOF
13012 # Now try linking the two files.
13013 mv conftest.$ac_objext conftstm.$ac_objext
13014 lt_save_LIBS="$LIBS"
13015 lt_save_CFLAGS="$CFLAGS"
13016 LIBS="conftstm.$ac_objext"
13017 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13023 pipe_works=yes
13024 fi
13025 LIBS="$lt_save_LIBS"
13026 CFLAGS="$lt_save_CFLAGS"
13027 else
13028 echo "cannot find nm_test_func in $nlist" >&5
13029 fi
13030 else
13031 echo "cannot find nm_test_var in $nlist" >&5
13032 fi
13033 else
13034 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13035 fi
13036 else
13037 echo "$progname: failed program was:" >&5
13038 cat conftest.$ac_ext >&5
13039 fi
13040 rm -f conftest* conftst*
13041
13042 # Do not use the global_symbol_pipe unless it works.
13043 if test "$pipe_works" = yes; then
13044 break
13045 else
13046 lt_cv_sys_global_symbol_pipe=
13047 fi
13048done
13049
13050fi
13051
13052if test -z "$lt_cv_sys_global_symbol_pipe"; then
13053 lt_cv_sys_global_symbol_to_cdecl=
13054fi
13055if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13056 { echo "$as_me:$LINENO: result: failed" >&5
13057echo "${ECHO_T}failed" >&6; }
13058else
13059 { echo "$as_me:$LINENO: result: ok" >&5
13060echo "${ECHO_T}ok" >&6; }
13061fi
13062
13063{ echo "$as_me:$LINENO: checking for objdir" >&5
13064echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13065if test "${lt_cv_objdir+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067else
13068 rm -f .libs 2>/dev/null
13069mkdir .libs 2>/dev/null
13070if test -d .libs; then
13071 lt_cv_objdir=.libs
13072else
13073 # MS-DOS does not allow filenames that begin with a dot.
13074 lt_cv_objdir=_libs
13075fi
13076rmdir .libs 2>/dev/null
13077fi
13078{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13079echo "${ECHO_T}$lt_cv_objdir" >&6; }
13080objdir=$lt_cv_objdir
13081
13082
13083
13084
13085
13086case $host_os in
13087aix3*)
13088 # AIX sometimes has problems with the GCC collect2 program. For some
13089 # reason, if we set the COLLECT_NAMES environment variable, the problems
13090 # vanish in a puff of smoke.
13091 if test "X${COLLECT_NAMES+set}" != Xset; then
13092 COLLECT_NAMES=
13093 export COLLECT_NAMES
13094 fi
13095 ;;
13096esac
13097
13098# Sed substitution that helps us do robust quoting. It backslashifies
13099# metacharacters that are still active within double-quoted strings.
13100Xsed='sed -e 1s/^X//'
13101sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13102
13103# Same as above, but do not quote variable references.
13104double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13105
13106# Sed substitution to delay expansion of an escaped shell variable in a
13107# double_quote_subst'ed string.
13108delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13109
13110# Sed substitution to avoid accidental globbing in evaled expressions
13111no_glob_subst='s/\*/\\\*/g'
13112
13113# Constants:
13114rm="rm -f"
13115
13116# Global variables:
13117default_ofile=mklib
13118can_build_shared=yes
13119
13120# All known linkers require a `.a' archive for static linking (except MSVC,
13121# which needs '.lib').
13122libext=a
13123ltmain="$ac_aux_dir/ltmain.sh"
13124ofile="$default_ofile"
13125with_gnu_ld="$lt_cv_prog_gnu_ld"
13126
13127if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13129set dummy ${ac_tool_prefix}ar; ac_word=$2
13130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13132if test "${ac_cv_prog_AR+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134else
13135 if test -n "$AR"; then
13136 ac_cv_prog_AR="$AR" # Let the user override the test.
13137else
13138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139for as_dir in $PATH
13140do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +000013144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013145 ac_cv_prog_AR="${ac_tool_prefix}ar"
13146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13147 break 2
13148 fi
13149done
13150done
13151IFS=$as_save_IFS
13152
13153fi
13154fi
13155AR=$ac_cv_prog_AR
13156if test -n "$AR"; then
13157 { echo "$as_me:$LINENO: result: $AR" >&5
13158echo "${ECHO_T}$AR" >&6; }
13159else
13160 { echo "$as_me:$LINENO: result: no" >&5
13161echo "${ECHO_T}no" >&6; }
13162fi
13163
13164
13165fi
13166if test -z "$ac_cv_prog_AR"; then
13167 ac_ct_AR=$AR
13168 # Extract the first word of "ar", so it can be a program name with args.
13169set dummy ar; ac_word=$2
13170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13172if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13174else
13175 if test -n "$ac_ct_AR"; then
13176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13177else
13178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179for as_dir in $PATH
13180do
13181 IFS=$as_save_IFS
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +000013184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013185 ac_cv_prog_ac_ct_AR="ar"
13186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13187 break 2
13188 fi
13189done
13190done
13191IFS=$as_save_IFS
13192
13193fi
13194fi
13195ac_ct_AR=$ac_cv_prog_ac_ct_AR
13196if test -n "$ac_ct_AR"; then
13197 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13198echo "${ECHO_T}$ac_ct_AR" >&6; }
13199else
13200 { echo "$as_me:$LINENO: result: no" >&5
13201echo "${ECHO_T}no" >&6; }
13202fi
13203
13204 if test "x$ac_ct_AR" = x; then
13205 AR="false"
13206 else
13207 case $cross_compiling:$ac_tool_warned in
13208yes:)
13209{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13210whose name does not start with the host triplet. If you think this
13211configuration is useful to you, please write to autoconf@gnu.org." >&5
13212echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13213whose name does not start with the host triplet. If you think this
13214configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13215ac_tool_warned=yes ;;
13216esac
13217 AR=$ac_ct_AR
13218 fi
13219else
13220 AR="$ac_cv_prog_AR"
13221fi
13222
13223if test -n "$ac_tool_prefix"; then
13224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13225set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13228if test "${ac_cv_prog_RANLIB+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13230else
13231 if test -n "$RANLIB"; then
13232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13233else
13234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235for as_dir in $PATH
13236do
13237 IFS=$as_save_IFS
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +000013240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013241 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243 break 2
13244 fi
13245done
13246done
13247IFS=$as_save_IFS
13248
13249fi
13250fi
13251RANLIB=$ac_cv_prog_RANLIB
13252if test -n "$RANLIB"; then
13253 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13254echo "${ECHO_T}$RANLIB" >&6; }
13255else
13256 { echo "$as_me:$LINENO: result: no" >&5
13257echo "${ECHO_T}no" >&6; }
13258fi
13259
13260
13261fi
13262if test -z "$ac_cv_prog_RANLIB"; then
13263 ac_ct_RANLIB=$RANLIB
13264 # Extract the first word of "ranlib", so it can be a program name with args.
13265set dummy ranlib; ac_word=$2
13266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13268if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
13271 if test -n "$ac_ct_RANLIB"; then
13272 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13273else
13274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $PATH
13276do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +000013280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013281 ac_cv_prog_ac_ct_RANLIB="ranlib"
13282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13284 fi
13285done
13286done
13287IFS=$as_save_IFS
13288
13289fi
13290fi
13291ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13292if test -n "$ac_ct_RANLIB"; then
13293 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13294echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13295else
13296 { echo "$as_me:$LINENO: result: no" >&5
13297echo "${ECHO_T}no" >&6; }
13298fi
13299
13300 if test "x$ac_ct_RANLIB" = x; then
13301 RANLIB=":"
13302 else
13303 case $cross_compiling:$ac_tool_warned in
13304yes:)
13305{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13306whose name does not start with the host triplet. If you think this
13307configuration is useful to you, please write to autoconf@gnu.org." >&5
13308echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13309whose name does not start with the host triplet. If you think this
13310configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13311ac_tool_warned=yes ;;
13312esac
13313 RANLIB=$ac_ct_RANLIB
13314 fi
13315else
13316 RANLIB="$ac_cv_prog_RANLIB"
13317fi
13318
13319if test -n "$ac_tool_prefix"; then
13320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13321set dummy ${ac_tool_prefix}strip; ac_word=$2
13322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13324if test "${ac_cv_prog_STRIP+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326else
13327 if test -n "$STRIP"; then
13328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13329else
13330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331for as_dir in $PATH
13332do
13333 IFS=$as_save_IFS
13334 test -z "$as_dir" && as_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +000013336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13339 break 2
13340 fi
13341done
13342done
13343IFS=$as_save_IFS
13344
13345fi
13346fi
13347STRIP=$ac_cv_prog_STRIP
13348if test -n "$STRIP"; then
13349 { echo "$as_me:$LINENO: result: $STRIP" >&5
13350echo "${ECHO_T}$STRIP" >&6; }
13351else
13352 { echo "$as_me:$LINENO: result: no" >&5
13353echo "${ECHO_T}no" >&6; }
13354fi
13355
13356
13357fi
13358if test -z "$ac_cv_prog_STRIP"; then
13359 ac_ct_STRIP=$STRIP
13360 # Extract the first word of "strip", so it can be a program name with args.
13361set dummy strip; ac_word=$2
13362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13364if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
13367 if test -n "$ac_ct_STRIP"; then
13368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13369else
13370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371for as_dir in $PATH
13372do
13373 IFS=$as_save_IFS
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +000013376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013377 ac_cv_prog_ac_ct_STRIP="strip"
13378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13379 break 2
13380 fi
13381done
13382done
13383IFS=$as_save_IFS
13384
13385fi
13386fi
13387ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13388if test -n "$ac_ct_STRIP"; then
13389 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13390echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13391else
13392 { echo "$as_me:$LINENO: result: no" >&5
13393echo "${ECHO_T}no" >&6; }
13394fi
13395
13396 if test "x$ac_ct_STRIP" = x; then
13397 STRIP=":"
13398 else
13399 case $cross_compiling:$ac_tool_warned in
13400yes:)
13401{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13402whose name does not start with the host triplet. If you think this
13403configuration is useful to you, please write to autoconf@gnu.org." >&5
13404echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13405whose name does not start with the host triplet. If you think this
13406configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13407ac_tool_warned=yes ;;
13408esac
13409 STRIP=$ac_ct_STRIP
13410 fi
13411else
13412 STRIP="$ac_cv_prog_STRIP"
13413fi
13414
13415
13416old_CC="$CC"
13417old_CFLAGS="$CFLAGS"
13418
13419# Set sane defaults for various variables
13420test -z "$AR" && AR=ar
13421test -z "$AR_FLAGS" && AR_FLAGS=cru
13422test -z "$AS" && AS=as
13423test -z "$CC" && CC=cc
13424test -z "$LTCC" && LTCC=$CC
13425test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13426test -z "$DLLTOOL" && DLLTOOL=dlltool
13427test -z "$LD" && LD=ld
13428test -z "$LN_S" && LN_S="ln -s"
13429test -z "$MAGIC_CMD" && MAGIC_CMD=file
13430test -z "$NM" && NM=nm
13431test -z "$SED" && SED=sed
13432test -z "$OBJDUMP" && OBJDUMP=objdump
13433test -z "$RANLIB" && RANLIB=:
13434test -z "$STRIP" && STRIP=:
13435test -z "$ac_objext" && ac_objext=o
13436
13437# Determine commands to create old-style static archives.
13438old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13439old_postinstall_cmds='chmod 644 $oldlib'
13440old_postuninstall_cmds=
13441
13442if test -n "$RANLIB"; then
13443 case $host_os in
13444 openbsd*)
13445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13446 ;;
13447 *)
13448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13449 ;;
13450 esac
13451 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13452fi
13453
13454for cc_temp in $compiler""; do
13455 case $cc_temp in
13456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13458 \-*) ;;
13459 *) break;;
13460 esac
13461done
13462cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13463
13464
13465# Only perform the check for file, if the check method requires it
13466case $deplibs_check_method in
13467file_magic*)
13468 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13469 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13470echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13471if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13473else
13474 case $MAGIC_CMD in
13475[\\/*] | ?:[\\/]*)
13476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13477 ;;
13478*)
13479 lt_save_MAGIC_CMD="$MAGIC_CMD"
13480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13481 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13482 for ac_dir in $ac_dummy; do
13483 IFS="$lt_save_ifs"
13484 test -z "$ac_dir" && ac_dir=.
13485 if test -f $ac_dir/${ac_tool_prefix}file; then
13486 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13487 if test -n "$file_magic_test_file"; then
13488 case $deplibs_check_method in
13489 "file_magic "*)
13490 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13493 $EGREP "$file_magic_regex" > /dev/null; then
13494 :
13495 else
13496 cat <<EOF 1>&2
13497
13498*** Warning: the command libtool uses to detect shared libraries,
13499*** $file_magic_cmd, produces output that libtool cannot recognize.
13500*** The result is that libtool may fail to recognize shared libraries
13501*** as such. This will affect the creation of libtool libraries that
13502*** depend on shared libraries, but programs linked with such libtool
13503*** libraries will work regardless of this problem. Nevertheless, you
13504*** may want to report the problem to your system manager and/or to
13505*** bug-libtool@gnu.org
13506
13507EOF
13508 fi ;;
13509 esac
13510 fi
13511 break
13512 fi
13513 done
13514 IFS="$lt_save_ifs"
13515 MAGIC_CMD="$lt_save_MAGIC_CMD"
13516 ;;
13517esac
13518fi
13519
13520MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13521if test -n "$MAGIC_CMD"; then
13522 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13523echo "${ECHO_T}$MAGIC_CMD" >&6; }
13524else
13525 { echo "$as_me:$LINENO: result: no" >&5
13526echo "${ECHO_T}no" >&6; }
13527fi
13528
13529if test -z "$lt_cv_path_MAGIC_CMD"; then
13530 if test -n "$ac_tool_prefix"; then
13531 { echo "$as_me:$LINENO: checking for file" >&5
13532echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13533if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
13536 case $MAGIC_CMD in
13537[\\/*] | ?:[\\/]*)
13538 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13539 ;;
13540*)
13541 lt_save_MAGIC_CMD="$MAGIC_CMD"
13542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13544 for ac_dir in $ac_dummy; do
13545 IFS="$lt_save_ifs"
13546 test -z "$ac_dir" && ac_dir=.
13547 if test -f $ac_dir/file; then
13548 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13549 if test -n "$file_magic_test_file"; then
13550 case $deplibs_check_method in
13551 "file_magic "*)
13552 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13555 $EGREP "$file_magic_regex" > /dev/null; then
13556 :
13557 else
13558 cat <<EOF 1>&2
13559
13560*** Warning: the command libtool uses to detect shared libraries,
13561*** $file_magic_cmd, produces output that libtool cannot recognize.
13562*** The result is that libtool may fail to recognize shared libraries
13563*** as such. This will affect the creation of libtool libraries that
13564*** depend on shared libraries, but programs linked with such libtool
13565*** libraries will work regardless of this problem. Nevertheless, you
13566*** may want to report the problem to your system manager and/or to
13567*** bug-libtool@gnu.org
13568
13569EOF
13570 fi ;;
13571 esac
13572 fi
13573 break
13574 fi
13575 done
13576 IFS="$lt_save_ifs"
13577 MAGIC_CMD="$lt_save_MAGIC_CMD"
13578 ;;
13579esac
13580fi
13581
13582MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13583if test -n "$MAGIC_CMD"; then
13584 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13585echo "${ECHO_T}$MAGIC_CMD" >&6; }
13586else
13587 { echo "$as_me:$LINENO: result: no" >&5
13588echo "${ECHO_T}no" >&6; }
13589fi
13590
13591 else
13592 MAGIC_CMD=:
13593 fi
13594fi
13595
13596 fi
13597 ;;
13598esac
13599
13600enable_dlopen=yes
13601enable_win32_dll=no
13602
13603# Check whether --enable-libtool-lock was given.
13604if test "${enable_libtool_lock+set}" = set; then
13605 enableval=$enable_libtool_lock;
13606fi
13607
13608test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13609
13610
13611# Check whether --with-pic was given.
13612if test "${with_pic+set}" = set; then
13613 withval=$with_pic; pic_mode="$withval"
13614else
13615 pic_mode=default
13616fi
13617
13618test -z "$pic_mode" && pic_mode=default
13619
13620# Use C for the default configuration in the libtool script
13621tagname=
13622lt_save_CC="$CC"
13623ac_ext=c
13624ac_cpp='$CPP $CPPFLAGS'
13625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13627ac_compiler_gnu=$ac_cv_c_compiler_gnu
13628
13629
13630# Source file extension for C test sources.
13631ac_ext=c
13632
13633# Object file extension for compiled C test sources.
13634objext=o
13635objext=$objext
13636
13637# Code to be used in simple compile tests
13638lt_simple_compile_test_code="int some_variable = 0;\n"
13639
13640# Code to be used in simple link tests
13641lt_simple_link_test_code='int main(){return(0);}\n'
13642
13643
13644# If no C compiler was specified, use CC.
13645LTCC=${LTCC-"$CC"}
13646
13647# If no C compiler flags were specified, use CFLAGS.
13648LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13649
13650# Allow CC to be a program name with arguments.
13651compiler=$CC
13652
13653
13654# save warnings/boilerplate of simple test code
13655ac_outfile=conftest.$ac_objext
13656printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13657eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13658_lt_compiler_boilerplate=`cat conftest.err`
13659$rm conftest*
13660
13661ac_outfile=conftest.$ac_objext
13662printf "$lt_simple_link_test_code" >conftest.$ac_ext
13663eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13664_lt_linker_boilerplate=`cat conftest.err`
13665$rm conftest*
13666
13667
Edwin Török20176752008-10-22 09:56:27 +000013668## CAVEAT EMPTOR:
13669## There is no encapsulation within the following macros, do not change
13670## the running order or otherwise move them around unless you know exactly
13671## what you are doing...
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013672
13673lt_prog_compiler_no_builtin_flag=
13674
13675if test "$GCC" = yes; then
13676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13677
13678
13679{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13680echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13681if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684 lt_cv_prog_compiler_rtti_exceptions=no
13685 ac_outfile=conftest.$ac_objext
13686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13687 lt_compiler_flag="-fno-rtti -fno-exceptions"
13688 # Insert the option either (1) after the last *FLAGS variable, or
13689 # (2) before a word containing "conftest.", or (3) at the end.
13690 # Note that $ac_compile itself does not contain backslashes and begins
13691 # with a dollar sign (not a hyphen), so the echo should work correctly.
13692 # The option is referenced via a variable to avoid confusing sed.
13693 lt_compile=`echo "$ac_compile" | $SED \
13694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13696 -e 's:$: $lt_compiler_flag:'`
Edwin Török20176752008-10-22 09:56:27 +000013697 (eval echo "\"\$as_me:13697: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013698 (eval "$lt_compile" 2>conftest.err)
13699 ac_status=$?
13700 cat conftest.err >&5
Edwin Török20176752008-10-22 09:56:27 +000013701 echo "$as_me:13701: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013702 if (exit $ac_status) && test -s "$ac_outfile"; then
13703 # The compiler can only warn and ignore the option if not recognized
13704 # So say no if there are warnings other than the usual output.
13705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13708 lt_cv_prog_compiler_rtti_exceptions=yes
13709 fi
13710 fi
13711 $rm conftest*
13712
13713fi
13714{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13715echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13716
13717if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13719else
13720 :
13721fi
13722
13723fi
13724
13725lt_prog_compiler_wl=
13726lt_prog_compiler_pic=
13727lt_prog_compiler_static=
13728
13729{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13730echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13731
13732 if test "$GCC" = yes; then
13733 lt_prog_compiler_wl='-Wl,'
13734 lt_prog_compiler_static='-static'
13735
13736 case $host_os in
13737 aix*)
13738 # All AIX code is PIC.
13739 if test "$host_cpu" = ia64; then
13740 # AIX 5 now supports IA64 processor
13741 lt_prog_compiler_static='-Bstatic'
13742 fi
13743 ;;
13744
13745 amigaos*)
13746 # FIXME: we need at least 68020 code to build shared libraries, but
13747 # adding the `-m68020' flag to GCC prevents building anything better,
13748 # like `-m68040'.
13749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13750 ;;
13751
13752 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13753 # PIC is the default for these OSes.
13754 ;;
13755
13756 mingw* | pw32* | os2*)
13757 # This hack is so that the source file can tell whether it is being
13758 # built for inclusion in a dll (and should export symbols for example).
13759 lt_prog_compiler_pic='-DDLL_EXPORT'
13760 ;;
13761
13762 darwin* | rhapsody*)
13763 # PIC is the default on this platform
13764 # Common symbols not allowed in MH_DYLIB files
13765 lt_prog_compiler_pic='-fno-common'
13766 ;;
13767
13768 interix3*)
13769 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13770 # Instead, we relocate shared libraries at runtime.
13771 ;;
13772
13773 msdosdjgpp*)
13774 # Just because we use GCC doesn't mean we suddenly get shared libraries
13775 # on systems that don't support them.
13776 lt_prog_compiler_can_build_shared=no
13777 enable_shared=no
13778 ;;
13779
13780 sysv4*MP*)
13781 if test -d /usr/nec; then
13782 lt_prog_compiler_pic=-Kconform_pic
13783 fi
13784 ;;
13785
13786 hpux*)
13787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13788 # not for PA HP-UX.
13789 case $host_cpu in
13790 hppa*64*|ia64*)
13791 # +Z the default
13792 ;;
13793 *)
13794 lt_prog_compiler_pic='-fPIC'
13795 ;;
13796 esac
13797 ;;
13798
13799 *)
13800 lt_prog_compiler_pic='-fPIC'
13801 ;;
13802 esac
13803 else
13804 # PORTME Check for flag to pass linker flags through the system compiler.
13805 case $host_os in
13806 aix*)
13807 lt_prog_compiler_wl='-Wl,'
13808 if test "$host_cpu" = ia64; then
13809 # AIX 5 now supports IA64 processor
13810 lt_prog_compiler_static='-Bstatic'
13811 else
13812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13813 fi
13814 ;;
13815 darwin*)
13816 # PIC is the default on this platform
13817 # Common symbols not allowed in MH_DYLIB files
13818 case $cc_basename in
13819 xlc*)
13820 lt_prog_compiler_pic='-qnocommon'
13821 lt_prog_compiler_wl='-Wl,'
13822 ;;
13823 esac
13824 ;;
13825
13826 mingw* | pw32* | os2*)
13827 # This hack is so that the source file can tell whether it is being
13828 # built for inclusion in a dll (and should export symbols for example).
13829 lt_prog_compiler_pic='-DDLL_EXPORT'
13830 ;;
13831
13832 hpux9* | hpux10* | hpux11*)
13833 lt_prog_compiler_wl='-Wl,'
13834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13835 # not for PA HP-UX.
13836 case $host_cpu in
13837 hppa*64*|ia64*)
13838 # +Z the default
13839 ;;
13840 *)
13841 lt_prog_compiler_pic='+Z'
13842 ;;
13843 esac
13844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13845 lt_prog_compiler_static='${wl}-a ${wl}archive'
13846 ;;
13847
13848 irix5* | irix6* | nonstopux*)
13849 lt_prog_compiler_wl='-Wl,'
13850 # PIC (with -KPIC) is the default.
13851 lt_prog_compiler_static='-non_shared'
13852 ;;
13853
13854 newsos6)
13855 lt_prog_compiler_pic='-KPIC'
13856 lt_prog_compiler_static='-Bstatic'
13857 ;;
13858
13859 linux*)
13860 case $cc_basename in
13861 icc* | ecc*)
13862 lt_prog_compiler_wl='-Wl,'
13863 lt_prog_compiler_pic='-KPIC'
13864 lt_prog_compiler_static='-static'
13865 ;;
13866 pgcc* | pgf77* | pgf90* | pgf95*)
13867 # Portland Group compilers (*not* the Pentium gcc compiler,
13868 # which looks to be a dead project)
13869 lt_prog_compiler_wl='-Wl,'
13870 lt_prog_compiler_pic='-fpic'
13871 lt_prog_compiler_static='-Bstatic'
13872 ;;
13873 ccc*)
13874 lt_prog_compiler_wl='-Wl,'
13875 # All Alpha code is PIC.
13876 lt_prog_compiler_static='-non_shared'
13877 ;;
13878 esac
13879 ;;
13880
13881 osf3* | osf4* | osf5*)
13882 lt_prog_compiler_wl='-Wl,'
13883 # All OSF/1 code is PIC.
13884 lt_prog_compiler_static='-non_shared'
13885 ;;
13886
13887 solaris*)
13888 lt_prog_compiler_pic='-KPIC'
13889 lt_prog_compiler_static='-Bstatic'
13890 case $cc_basename in
13891 f77* | f90* | f95*)
13892 lt_prog_compiler_wl='-Qoption ld ';;
13893 *)
13894 lt_prog_compiler_wl='-Wl,';;
13895 esac
13896 ;;
13897
13898 sunos4*)
13899 lt_prog_compiler_wl='-Qoption ld '
13900 lt_prog_compiler_pic='-PIC'
13901 lt_prog_compiler_static='-Bstatic'
13902 ;;
13903
13904 sysv4 | sysv4.2uw2* | sysv4.3*)
13905 lt_prog_compiler_wl='-Wl,'
13906 lt_prog_compiler_pic='-KPIC'
13907 lt_prog_compiler_static='-Bstatic'
13908 ;;
13909
13910 sysv4*MP*)
13911 if test -d /usr/nec ;then
13912 lt_prog_compiler_pic='-Kconform_pic'
13913 lt_prog_compiler_static='-Bstatic'
13914 fi
13915 ;;
13916
13917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13918 lt_prog_compiler_wl='-Wl,'
13919 lt_prog_compiler_pic='-KPIC'
13920 lt_prog_compiler_static='-Bstatic'
13921 ;;
13922
13923 unicos*)
13924 lt_prog_compiler_wl='-Wl,'
13925 lt_prog_compiler_can_build_shared=no
13926 ;;
13927
13928 uts4*)
13929 lt_prog_compiler_pic='-pic'
13930 lt_prog_compiler_static='-Bstatic'
13931 ;;
13932
13933 *)
13934 lt_prog_compiler_can_build_shared=no
13935 ;;
13936 esac
13937 fi
13938
13939{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13940echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13941
13942#
13943# Check to make sure the PIC flag actually works.
13944#
13945if test -n "$lt_prog_compiler_pic"; then
13946
13947{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13948echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13949if test "${lt_prog_compiler_pic_works+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13951else
13952 lt_prog_compiler_pic_works=no
13953 ac_outfile=conftest.$ac_objext
13954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13955 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13956 # Insert the option either (1) after the last *FLAGS variable, or
13957 # (2) before a word containing "conftest.", or (3) at the end.
13958 # Note that $ac_compile itself does not contain backslashes and begins
13959 # with a dollar sign (not a hyphen), so the echo should work correctly.
13960 # The option is referenced via a variable to avoid confusing sed.
13961 lt_compile=`echo "$ac_compile" | $SED \
13962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13964 -e 's:$: $lt_compiler_flag:'`
Edwin Török20176752008-10-22 09:56:27 +000013965 (eval echo "\"\$as_me:13965: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013966 (eval "$lt_compile" 2>conftest.err)
13967 ac_status=$?
13968 cat conftest.err >&5
Edwin Török20176752008-10-22 09:56:27 +000013969 echo "$as_me:13969: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013970 if (exit $ac_status) && test -s "$ac_outfile"; then
13971 # The compiler can only warn and ignore the option if not recognized
13972 # So say no if there are warnings other than the usual output.
13973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13976 lt_prog_compiler_pic_works=yes
13977 fi
13978 fi
13979 $rm conftest*
13980
13981fi
13982{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13983echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13984
13985if test x"$lt_prog_compiler_pic_works" = xyes; then
13986 case $lt_prog_compiler_pic in
13987 "" | " "*) ;;
13988 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13989 esac
13990else
13991 lt_prog_compiler_pic=
13992 lt_prog_compiler_can_build_shared=no
13993fi
13994
13995fi
13996case $host_os in
13997 # For platforms which do not support PIC, -DPIC is meaningless:
13998 *djgpp*)
13999 lt_prog_compiler_pic=
14000 ;;
14001 *)
14002 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14003 ;;
14004esac
14005
14006#
14007# Check to make sure the static flag actually works.
14008#
14009wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14010{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14011echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14012if test "${lt_prog_compiler_static_works+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14014else
14015 lt_prog_compiler_static_works=no
14016 save_LDFLAGS="$LDFLAGS"
14017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14018 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14020 # The linker can only warn and ignore the option if not recognized
14021 # So say no if there are warnings
14022 if test -s conftest.err; then
14023 # Append any errors to the config.log.
14024 cat conftest.err 1>&5
14025 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14027 if diff conftest.exp conftest.er2 >/dev/null; then
14028 lt_prog_compiler_static_works=yes
14029 fi
14030 else
14031 lt_prog_compiler_static_works=yes
14032 fi
14033 fi
14034 $rm conftest*
14035 LDFLAGS="$save_LDFLAGS"
14036
14037fi
14038{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14039echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14040
14041if test x"$lt_prog_compiler_static_works" = xyes; then
14042 :
14043else
14044 lt_prog_compiler_static=
14045fi
14046
14047
14048{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14049echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14050if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052else
14053 lt_cv_prog_compiler_c_o=no
14054 $rm -r conftest 2>/dev/null
14055 mkdir conftest
14056 cd conftest
14057 mkdir out
14058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14059
14060 lt_compiler_flag="-o out/conftest2.$ac_objext"
14061 # Insert the option either (1) after the last *FLAGS variable, or
14062 # (2) before a word containing "conftest.", or (3) at the end.
14063 # Note that $ac_compile itself does not contain backslashes and begins
14064 # with a dollar sign (not a hyphen), so the echo should work correctly.
14065 lt_compile=`echo "$ac_compile" | $SED \
14066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14068 -e 's:$: $lt_compiler_flag:'`
Edwin Török20176752008-10-22 09:56:27 +000014069 (eval echo "\"\$as_me:14069: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014070 (eval "$lt_compile" 2>out/conftest.err)
14071 ac_status=$?
14072 cat out/conftest.err >&5
Edwin Török20176752008-10-22 09:56:27 +000014073 echo "$as_me:14073: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14075 then
14076 # The compiler can only warn and ignore the option if not recognized
14077 # So say no if there are warnings
14078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14081 lt_cv_prog_compiler_c_o=yes
14082 fi
14083 fi
14084 chmod u+w . 2>&5
14085 $rm conftest*
14086 # SGI C++ compiler will create directory out/ii_files/ for
14087 # template instantiation
14088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14089 $rm out/* && rmdir out
14090 cd ..
14091 rmdir conftest
14092 $rm conftest*
14093
14094fi
14095{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14096echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14097
14098
14099hard_links="nottested"
14100if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14101 # do not overwrite the value of need_locks provided by the user
14102 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14103echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14104 hard_links=yes
14105 $rm conftest*
14106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14107 touch conftest.a
14108 ln conftest.a conftest.b 2>&5 || hard_links=no
14109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14110 { echo "$as_me:$LINENO: result: $hard_links" >&5
14111echo "${ECHO_T}$hard_links" >&6; }
14112 if test "$hard_links" = no; then
14113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14114echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14115 need_locks=warn
14116 fi
14117else
14118 need_locks=no
14119fi
14120
14121{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14122echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14123
14124 runpath_var=
14125 allow_undefined_flag=
14126 enable_shared_with_static_runtimes=no
14127 archive_cmds=
14128 archive_expsym_cmds=
14129 old_archive_From_new_cmds=
14130 old_archive_from_expsyms_cmds=
14131 export_dynamic_flag_spec=
14132 whole_archive_flag_spec=
14133 thread_safe_flag_spec=
14134 hardcode_libdir_flag_spec=
14135 hardcode_libdir_flag_spec_ld=
14136 hardcode_libdir_separator=
14137 hardcode_direct=no
14138 hardcode_minus_L=no
14139 hardcode_shlibpath_var=unsupported
14140 link_all_deplibs=unknown
14141 hardcode_automatic=no
14142 module_cmds=
14143 module_expsym_cmds=
14144 always_export_symbols=no
14145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14146 # include_expsyms should be a list of space-separated symbols to be *always*
14147 # included in the symbol list
14148 include_expsyms=
14149 # exclude_expsyms can be an extended regexp of symbols to exclude
14150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14152 # as well as any symbol that contains `d'.
14153 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14155 # platforms (ab)use it in PIC code, but their linkers get confused if
14156 # the symbol is explicitly referenced. Since portable code cannot
14157 # rely on this symbol name, it's probably fine to never include it in
14158 # preloaded symbol tables.
14159 extract_expsyms_cmds=
14160 # Just being paranoid about ensuring that cc_basename is set.
14161 for cc_temp in $compiler""; do
14162 case $cc_temp in
14163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14165 \-*) ;;
14166 *) break;;
14167 esac
14168done
14169cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14170
14171 case $host_os in
14172 cygwin* | mingw* | pw32*)
14173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14174 # When not using gcc, we currently assume that we are using
14175 # Microsoft Visual C++.
14176 if test "$GCC" != yes; then
14177 with_gnu_ld=no
14178 fi
14179 ;;
14180 interix*)
14181 # we just hope/assume this is gcc and not c89 (= MSVC++)
14182 with_gnu_ld=yes
14183 ;;
14184 openbsd*)
14185 with_gnu_ld=no
14186 ;;
14187 esac
14188
14189 ld_shlibs=yes
14190 if test "$with_gnu_ld" = yes; then
14191 # If archive_cmds runs LD, not CC, wlarc should be empty
14192 wlarc='${wl}'
14193
14194 # Set some defaults for GNU ld with shared library support. These
14195 # are reset later if shared libraries are not supported. Putting them
14196 # here allows them to be overridden if necessary.
14197 runpath_var=LD_RUN_PATH
14198 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14199 export_dynamic_flag_spec='${wl}--export-dynamic'
14200 # ancient GNU ld didn't support --whole-archive et. al.
14201 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14202 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14203 else
14204 whole_archive_flag_spec=
14205 fi
14206 supports_anon_versioning=no
14207 case `$LD -v 2>/dev/null` in
14208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14211 *\ 2.11.*) ;; # other 2.11 versions
14212 *) supports_anon_versioning=yes ;;
14213 esac
14214
14215 # See if GNU ld supports shared libraries.
14216 case $host_os in
14217 aix3* | aix4* | aix5*)
14218 # On AIX/PPC, the GNU linker is very broken
14219 if test "$host_cpu" != ia64; then
14220 ld_shlibs=no
14221 cat <<EOF 1>&2
14222
14223*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14224*** to be unable to reliably create shared libraries on AIX.
14225*** Therefore, libtool is disabling shared libraries support. If you
14226*** really care for shared libraries, you may want to modify your PATH
14227*** so that a non-GNU linker is found, and then restart.
14228
14229EOF
14230 fi
14231 ;;
14232
14233 amigaos*)
14234 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)'
14235 hardcode_libdir_flag_spec='-L$libdir'
14236 hardcode_minus_L=yes
14237
14238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14239 # that the semantics of dynamic libraries on AmigaOS, at least up
14240 # to version 4, is to share data among multiple programs linked
14241 # with the same dynamic library. Since this doesn't match the
14242 # behavior of shared libraries on other platforms, we can't use
14243 # them.
14244 ld_shlibs=no
14245 ;;
14246
14247 beos*)
14248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14249 allow_undefined_flag=unsupported
14250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14251 # support --undefined. This deserves some investigation. FIXME
14252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14253 else
14254 ld_shlibs=no
14255 fi
14256 ;;
14257
14258 cygwin* | mingw* | pw32*)
14259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14260 # as there is no search path for DLLs.
14261 hardcode_libdir_flag_spec='-L$libdir'
14262 allow_undefined_flag=unsupported
14263 always_export_symbols=no
14264 enable_shared_with_static_runtimes=yes
14265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14266
14267 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14269 # If the export-symbols file already is a .def file (1st line
14270 # is EXPORTS), use it as is; otherwise, prepend...
14271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14272 cp $export_symbols $output_objdir/$soname.def;
14273 else
14274 echo EXPORTS > $output_objdir/$soname.def;
14275 cat $export_symbols >> $output_objdir/$soname.def;
14276 fi~
14277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14278 else
14279 ld_shlibs=no
14280 fi
14281 ;;
14282
14283 interix3*)
14284 hardcode_direct=no
14285 hardcode_shlibpath_var=no
14286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14287 export_dynamic_flag_spec='${wl}-E'
14288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14289 # Instead, shared libraries are loaded at an image base (0x10000000 by
14290 # default) and relocated if they conflict, which is a slow very memory
14291 # consuming and fragmenting process. To avoid this, we pick a random,
14292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14295 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'
14296 ;;
14297
14298 linux*)
14299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14300 tmp_addflag=
14301 case $cc_basename,$host_cpu in
14302 pgcc*) # Portland Group C compiler
14303 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'
14304 tmp_addflag=' $pic_flag'
14305 ;;
14306 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14307 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'
14308 tmp_addflag=' $pic_flag -Mnomain' ;;
14309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14310 tmp_addflag=' -i_dynamic' ;;
14311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14312 tmp_addflag=' -i_dynamic -nofor_main' ;;
14313 ifc* | ifort*) # Intel Fortran compiler
14314 tmp_addflag=' -nofor_main' ;;
14315 esac
14316 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317
14318 if test $supports_anon_versioning = yes; then
14319 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14321 $echo "local: *; };" >> $output_objdir/$libname.ver~
14322 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14323 fi
14324 else
14325 ld_shlibs=no
14326 fi
14327 ;;
14328
14329 netbsd*)
14330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14331 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14332 wlarc=
14333 else
14334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14336 fi
14337 ;;
14338
14339 solaris*)
14340 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14341 ld_shlibs=no
14342 cat <<EOF 1>&2
14343
14344*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14345*** create shared libraries on Solaris systems. Therefore, libtool
14346*** is disabling shared libraries support. We urge you to upgrade GNU
14347*** binutils to release 2.9.1 or newer. Another option is to modify
14348*** your PATH or compiler configuration so that the native linker is
14349*** used, and then restart.
14350
14351EOF
14352 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14355 else
14356 ld_shlibs=no
14357 fi
14358 ;;
14359
14360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14361 case `$LD -v 2>&1` in
14362 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14363 ld_shlibs=no
14364 cat <<_LT_EOF 1>&2
14365
14366*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14367*** reliably create shared libraries on SCO systems. Therefore, libtool
14368*** is disabling shared libraries support. We urge you to upgrade GNU
14369*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14370*** your PATH or compiler configuration so that the native linker is
14371*** used, and then restart.
14372
14373_LT_EOF
14374 ;;
14375 *)
14376 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14377 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14380 else
14381 ld_shlibs=no
14382 fi
14383 ;;
14384 esac
14385 ;;
14386
14387 sunos4*)
14388 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14389 wlarc=
14390 hardcode_direct=yes
14391 hardcode_shlibpath_var=no
14392 ;;
14393
14394 *)
14395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14398 else
14399 ld_shlibs=no
14400 fi
14401 ;;
14402 esac
14403
14404 if test "$ld_shlibs" = no; then
14405 runpath_var=
14406 hardcode_libdir_flag_spec=
14407 export_dynamic_flag_spec=
14408 whole_archive_flag_spec=
14409 fi
14410 else
14411 # PORTME fill in a description of your system's linker (not GNU ld)
14412 case $host_os in
14413 aix3*)
14414 allow_undefined_flag=unsupported
14415 always_export_symbols=yes
14416 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'
14417 # Note: this linker hardcodes the directories in LIBPATH if there
14418 # are no directories specified by -L.
14419 hardcode_minus_L=yes
14420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14421 # Neither direct hardcoding nor static linking is supported with a
14422 # broken collect2.
14423 hardcode_direct=unsupported
14424 fi
14425 ;;
14426
14427 aix4* | aix5*)
14428 if test "$host_cpu" = ia64; then
14429 # On IA64, the linker does run time linking by default, so we don't
14430 # have to do anything special.
14431 aix_use_runtimelinking=no
14432 exp_sym_flag='-Bexport'
14433 no_entry_flag=""
14434 else
14435 # If we're using GNU nm, then we don't want the "-C" option.
14436 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14437 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14438 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'
14439 else
14440 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'
14441 fi
14442 aix_use_runtimelinking=no
14443
14444 # Test if we are trying to use run time linking or normal
14445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14446 # need to do runtime linking.
14447 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14448 for ld_flag in $LDFLAGS; do
14449 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14450 aix_use_runtimelinking=yes
14451 break
14452 fi
14453 done
14454 ;;
14455 esac
14456
14457 exp_sym_flag='-bexport'
14458 no_entry_flag='-bnoentry'
14459 fi
14460
14461 # When large executables or shared objects are built, AIX ld can
14462 # have problems creating the table of contents. If linking a library
14463 # or program results in "error TOC overflow" add -mminimal-toc to
14464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14466
14467 archive_cmds=''
14468 hardcode_direct=yes
14469 hardcode_libdir_separator=':'
14470 link_all_deplibs=yes
14471
14472 if test "$GCC" = yes; then
14473 case $host_os in aix4.[012]|aix4.[012].*)
14474 # We only want to do this on AIX 4.2 and lower, the check
14475 # below for broken collect2 doesn't work under 4.3+
14476 collect2name=`${CC} -print-prog-name=collect2`
14477 if test -f "$collect2name" && \
14478 strings "$collect2name" | grep resolve_lib_name >/dev/null
14479 then
14480 # We have reworked collect2
14481 hardcode_direct=yes
14482 else
14483 # We have old collect2
14484 hardcode_direct=unsupported
14485 # It fails to find uninstalled libraries when the uninstalled
14486 # path is not listed in the libpath. Setting hardcode_minus_L
14487 # to unsupported forces relinking
14488 hardcode_minus_L=yes
14489 hardcode_libdir_flag_spec='-L$libdir'
14490 hardcode_libdir_separator=
14491 fi
14492 ;;
14493 esac
14494 shared_flag='-shared'
14495 if test "$aix_use_runtimelinking" = yes; then
14496 shared_flag="$shared_flag "'${wl}-G'
14497 fi
14498 else
14499 # not using gcc
14500 if test "$host_cpu" = ia64; then
14501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14502 # chokes on -Wl,-G. The following line is correct:
14503 shared_flag='-G'
14504 else
14505 if test "$aix_use_runtimelinking" = yes; then
14506 shared_flag='${wl}-G'
14507 else
14508 shared_flag='${wl}-bM:SRE'
14509 fi
14510 fi
14511 fi
14512
14513 # It seems that -bexpall does not export symbols beginning with
14514 # underscore (_), so it is better to generate a list of symbols to export.
14515 always_export_symbols=yes
14516 if test "$aix_use_runtimelinking" = yes; then
14517 # Warning - without using the other runtime loading flags (-brtl),
14518 # -berok will link without error, but may produce a broken library.
14519 allow_undefined_flag='-berok'
14520 # Determine the default libpath from the value encoded in an empty executable.
14521 cat >conftest.$ac_ext <<_ACEOF
14522/* confdefs.h. */
14523_ACEOF
14524cat confdefs.h >>conftest.$ac_ext
14525cat >>conftest.$ac_ext <<_ACEOF
14526/* end confdefs.h. */
14527
14528int
14529main ()
14530{
14531
14532 ;
14533 return 0;
14534}
14535_ACEOF
14536rm -f conftest.$ac_objext conftest$ac_exeext
14537if { (ac_try="$ac_link"
14538case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14541esac
14542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
14544 ac_status=$?
14545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000014549 (exit $ac_status); } && {
14550 test -z "$ac_c_werror_flag" ||
14551 test ! -s conftest.err
14552 } && test -s conftest$ac_exeext &&
14553 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014554
14555aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14556}'`
14557# Check for a 64-bit object if we didn't find anything.
14558if 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; }
14559}'`; fi
14560else
14561 echo "$as_me: failed program was:" >&5
14562sed 's/^/| /' conftest.$ac_ext >&5
14563
14564
14565fi
14566
Edwin Török20176752008-10-22 09:56:27 +000014567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014568 conftest$ac_exeext conftest.$ac_ext
14569if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14570
14571 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14572 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"
14573 else
14574 if test "$host_cpu" = ia64; then
14575 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14576 allow_undefined_flag="-z nodefs"
14577 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"
14578 else
14579 # Determine the default libpath from the value encoded in an empty executable.
14580 cat >conftest.$ac_ext <<_ACEOF
14581/* confdefs.h. */
14582_ACEOF
14583cat confdefs.h >>conftest.$ac_ext
14584cat >>conftest.$ac_ext <<_ACEOF
14585/* end confdefs.h. */
14586
14587int
14588main ()
14589{
14590
14591 ;
14592 return 0;
14593}
14594_ACEOF
14595rm -f conftest.$ac_objext conftest$ac_exeext
14596if { (ac_try="$ac_link"
14597case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600esac
14601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_link") 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000014608 (exit $ac_status); } && {
14609 test -z "$ac_c_werror_flag" ||
14610 test ! -s conftest.err
14611 } && test -s conftest$ac_exeext &&
14612 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014613
14614aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14615}'`
14616# Check for a 64-bit object if we didn't find anything.
14617if 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; }
14618}'`; fi
14619else
14620 echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623
14624fi
14625
Edwin Török20176752008-10-22 09:56:27 +000014626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014627 conftest$ac_exeext conftest.$ac_ext
14628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14629
14630 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14631 # Warning - without using the other run time loading flags,
14632 # -berok will link without error, but may produce a broken library.
14633 no_undefined_flag=' ${wl}-bernotok'
14634 allow_undefined_flag=' ${wl}-berok'
14635 # Exported symbols can be pulled into shared objects from archives
14636 whole_archive_flag_spec='$convenience'
14637 archive_cmds_need_lc=yes
14638 # This is similar to how AIX traditionally builds its shared libraries.
14639 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'
14640 fi
14641 fi
14642 ;;
14643
14644 amigaos*)
14645 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)'
14646 hardcode_libdir_flag_spec='-L$libdir'
14647 hardcode_minus_L=yes
14648 # see comment about different semantics on the GNU ld section
14649 ld_shlibs=no
14650 ;;
14651
14652 bsdi[45]*)
14653 export_dynamic_flag_spec=-rdynamic
14654 ;;
14655
14656 cygwin* | mingw* | pw32*)
14657 # When not using gcc, we currently assume that we are using
14658 # Microsoft Visual C++.
14659 # hardcode_libdir_flag_spec is actually meaningless, as there is
14660 # no search path for DLLs.
14661 hardcode_libdir_flag_spec=' '
14662 allow_undefined_flag=unsupported
14663 # Tell ltmain to make .lib files, not .a files.
14664 libext=lib
14665 # Tell ltmain to make .dll files, not .so files.
14666 shrext_cmds=".dll"
14667 # FIXME: Setting linknames here is a bad hack.
14668 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14669 # The linker will automatically build a .lib file if we build a DLL.
14670 old_archive_From_new_cmds='true'
14671 # FIXME: Should let the user specify the lib program.
14672 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14673 fix_srcfile_path='`cygpath -w "$srcfile"`'
14674 enable_shared_with_static_runtimes=yes
14675 ;;
14676
14677 darwin* | rhapsody*)
14678 case $host_os in
14679 rhapsody* | darwin1.[012])
14680 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14681 ;;
14682 *) # Darwin 1.3 on
14683 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14684 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14685 else
14686 case ${MACOSX_DEPLOYMENT_TARGET} in
14687 10.[012])
14688 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14689 ;;
14690 10.*)
14691 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14692 ;;
14693 esac
14694 fi
14695 ;;
14696 esac
14697 archive_cmds_need_lc=no
14698 hardcode_direct=no
14699 hardcode_automatic=yes
14700 hardcode_shlibpath_var=unsupported
14701 whole_archive_flag_spec=''
14702 link_all_deplibs=yes
14703 if test "$GCC" = yes ; then
14704 output_verbose_link_cmd='echo'
14705 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14706 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14708 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}'
14709 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}'
14710 else
14711 case $cc_basename in
14712 xlc*)
14713 output_verbose_link_cmd='echo'
14714 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14715 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14716 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14717 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}'
14718 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}'
14719 ;;
14720 *)
14721 ld_shlibs=no
14722 ;;
14723 esac
14724 fi
14725 ;;
14726
14727 dgux*)
14728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14729 hardcode_libdir_flag_spec='-L$libdir'
14730 hardcode_shlibpath_var=no
14731 ;;
14732
14733 freebsd1*)
14734 ld_shlibs=no
14735 ;;
14736
14737 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14738 # support. Future versions do this automatically, but an explicit c++rt0.o
14739 # does not break anything, and helps significantly (at the cost of a little
14740 # extra space).
14741 freebsd2.2*)
14742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14743 hardcode_libdir_flag_spec='-R$libdir'
14744 hardcode_direct=yes
14745 hardcode_shlibpath_var=no
14746 ;;
14747
14748 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14749 freebsd2*)
14750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14751 hardcode_direct=yes
14752 hardcode_minus_L=yes
14753 hardcode_shlibpath_var=no
14754 ;;
14755
14756 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14757 freebsd* | kfreebsd*-gnu | dragonfly*)
14758 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14759 hardcode_libdir_flag_spec='-R$libdir'
14760 hardcode_direct=yes
14761 hardcode_shlibpath_var=no
14762 ;;
14763
14764 hpux9*)
14765 if test "$GCC" = yes; then
14766 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'
14767 else
14768 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'
14769 fi
14770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14771 hardcode_libdir_separator=:
14772 hardcode_direct=yes
14773
14774 # hardcode_minus_L: Not really in the search PATH,
14775 # but as the default location of the library.
14776 hardcode_minus_L=yes
14777 export_dynamic_flag_spec='${wl}-E'
14778 ;;
14779
14780 hpux10*)
14781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14782 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14783 else
14784 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14785 fi
14786 if test "$with_gnu_ld" = no; then
14787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14788 hardcode_libdir_separator=:
14789
14790 hardcode_direct=yes
14791 export_dynamic_flag_spec='${wl}-E'
14792
14793 # hardcode_minus_L: Not really in the search PATH,
14794 # but as the default location of the library.
14795 hardcode_minus_L=yes
14796 fi
14797 ;;
14798
14799 hpux11*)
14800 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14801 case $host_cpu in
14802 hppa*64*)
14803 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14804 ;;
14805 ia64*)
14806 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14807 ;;
14808 *)
14809 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14810 ;;
14811 esac
14812 else
14813 case $host_cpu in
14814 hppa*64*)
14815 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14816 ;;
14817 ia64*)
14818 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14819 ;;
14820 *)
14821 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14822 ;;
14823 esac
14824 fi
14825 if test "$with_gnu_ld" = no; then
14826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14827 hardcode_libdir_separator=:
14828
14829 case $host_cpu in
14830 hppa*64*|ia64*)
14831 hardcode_libdir_flag_spec_ld='+b $libdir'
14832 hardcode_direct=no
14833 hardcode_shlibpath_var=no
14834 ;;
14835 *)
14836 hardcode_direct=yes
14837 export_dynamic_flag_spec='${wl}-E'
14838
14839 # hardcode_minus_L: Not really in the search PATH,
14840 # but as the default location of the library.
14841 hardcode_minus_L=yes
14842 ;;
14843 esac
14844 fi
14845 ;;
14846
14847 irix5* | irix6* | nonstopux*)
14848 if test "$GCC" = yes; then
14849 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'
14850 else
14851 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'
14852 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14853 fi
14854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14855 hardcode_libdir_separator=:
14856 link_all_deplibs=yes
14857 ;;
14858
14859 netbsd*)
14860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14862 else
14863 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14864 fi
14865 hardcode_libdir_flag_spec='-R$libdir'
14866 hardcode_direct=yes
14867 hardcode_shlibpath_var=no
14868 ;;
14869
14870 newsos6)
14871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872 hardcode_direct=yes
14873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14874 hardcode_libdir_separator=:
14875 hardcode_shlibpath_var=no
14876 ;;
14877
14878 openbsd*)
14879 hardcode_direct=yes
14880 hardcode_shlibpath_var=no
14881 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14882 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14883 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14885 export_dynamic_flag_spec='${wl}-E'
14886 else
14887 case $host_os in
14888 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14890 hardcode_libdir_flag_spec='-R$libdir'
14891 ;;
14892 *)
14893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14895 ;;
14896 esac
14897 fi
14898 ;;
14899
14900 os2*)
14901 hardcode_libdir_flag_spec='-L$libdir'
14902 hardcode_minus_L=yes
14903 allow_undefined_flag=unsupported
14904 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'
14905 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14906 ;;
14907
14908 osf3*)
14909 if test "$GCC" = yes; then
14910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14911 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'
14912 else
14913 allow_undefined_flag=' -expect_unresolved \*'
14914 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'
14915 fi
14916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14917 hardcode_libdir_separator=:
14918 ;;
14919
14920 osf4* | osf5*) # as osf3* with the addition of -msym flag
14921 if test "$GCC" = yes; then
14922 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14923 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'
14924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14925 else
14926 allow_undefined_flag=' -expect_unresolved \*'
14927 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'
14928 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14929 $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'
14930
14931 # Both c and cxx compiler support -rpath directly
14932 hardcode_libdir_flag_spec='-rpath $libdir'
14933 fi
14934 hardcode_libdir_separator=:
14935 ;;
14936
14937 solaris*)
14938 no_undefined_flag=' -z text'
14939 if test "$GCC" = yes; then
14940 wlarc='${wl}'
14941 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14942 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14943 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14944 else
14945 wlarc=''
14946 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14947 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14948 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14949 fi
14950 hardcode_libdir_flag_spec='-R$libdir'
14951 hardcode_shlibpath_var=no
14952 case $host_os in
14953 solaris2.[0-5] | solaris2.[0-5].*) ;;
14954 *)
14955 # The compiler driver will combine linker options so we
14956 # cannot just pass the convience library names through
14957 # without $wl, iff we do not link with $LD.
14958 # Luckily, gcc supports the same syntax we need for Sun Studio.
14959 # Supported since Solaris 2.6 (maybe 2.5.1?)
14960 case $wlarc in
14961 '')
14962 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14963 *)
14964 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' ;;
14965 esac ;;
14966 esac
14967 link_all_deplibs=yes
14968 ;;
14969
14970 sunos4*)
14971 if test "x$host_vendor" = xsequent; then
14972 # Use $CC to link under sequent, because it throws in some extra .o
14973 # files that make .init and .fini sections work.
14974 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14975 else
14976 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14977 fi
14978 hardcode_libdir_flag_spec='-L$libdir'
14979 hardcode_direct=yes
14980 hardcode_minus_L=yes
14981 hardcode_shlibpath_var=no
14982 ;;
14983
14984 sysv4)
14985 case $host_vendor in
14986 sni)
14987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14988 hardcode_direct=yes # is this really true???
14989 ;;
14990 siemens)
14991 ## LD is ld it makes a PLAMLIB
14992 ## CC just makes a GrossModule.
14993 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14994 reload_cmds='$CC -r -o $output$reload_objs'
14995 hardcode_direct=no
14996 ;;
14997 motorola)
14998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14999 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15000 ;;
15001 esac
15002 runpath_var='LD_RUN_PATH'
15003 hardcode_shlibpath_var=no
15004 ;;
15005
15006 sysv4.3*)
15007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15008 hardcode_shlibpath_var=no
15009 export_dynamic_flag_spec='-Bexport'
15010 ;;
15011
15012 sysv4*MP*)
15013 if test -d /usr/nec; then
15014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15015 hardcode_shlibpath_var=no
15016 runpath_var=LD_RUN_PATH
15017 hardcode_runpath_var=yes
15018 ld_shlibs=yes
15019 fi
15020 ;;
15021
15022 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15023 no_undefined_flag='${wl}-z,text'
15024 archive_cmds_need_lc=no
15025 hardcode_shlibpath_var=no
15026 runpath_var='LD_RUN_PATH'
15027
15028 if test "$GCC" = yes; then
15029 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15030 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15031 else
15032 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15033 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15034 fi
15035 ;;
15036
15037 sysv5* | sco3.2v5* | sco5v6*)
15038 # Note: We can NOT use -z defs as we might desire, because we do not
15039 # link with -lc, and that would cause any symbols used from libc to
15040 # always be unresolved, which means just about no library would
15041 # ever link correctly. If we're not using GNU ld we use -z text
15042 # though, which does catch some bad symbols but isn't as heavy-handed
15043 # as -z defs.
15044 no_undefined_flag='${wl}-z,text'
15045 allow_undefined_flag='${wl}-z,nodefs'
15046 archive_cmds_need_lc=no
15047 hardcode_shlibpath_var=no
15048 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15049 hardcode_libdir_separator=':'
15050 link_all_deplibs=yes
15051 export_dynamic_flag_spec='${wl}-Bexport'
15052 runpath_var='LD_RUN_PATH'
15053
15054 if test "$GCC" = yes; then
15055 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15056 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15057 else
15058 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15060 fi
15061 ;;
15062
15063 uts4*)
15064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15065 hardcode_libdir_flag_spec='-L$libdir'
15066 hardcode_shlibpath_var=no
15067 ;;
15068
15069 *)
15070 ld_shlibs=no
15071 ;;
15072 esac
15073 fi
15074
15075{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15076echo "${ECHO_T}$ld_shlibs" >&6; }
15077test "$ld_shlibs" = no && can_build_shared=no
15078
15079#
15080# Do we need to explicitly link libc?
15081#
15082case "x$archive_cmds_need_lc" in
15083x|xyes)
15084 # Assume -lc should be added
15085 archive_cmds_need_lc=yes
15086
15087 if test "$enable_shared" = yes && test "$GCC" = yes; then
15088 case $archive_cmds in
15089 *'~'*)
15090 # FIXME: we may have to deal with multi-command sequences.
15091 ;;
15092 '$CC '*)
15093 # Test whether the compiler implicitly links with -lc since on some
15094 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15095 # to ld, don't add -lc before -lgcc.
15096 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15097echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15098 $rm conftest*
15099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15100
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102 (eval $ac_compile) 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } 2>conftest.err; then
15106 soname=conftest
15107 lib=conftest
15108 libobjs=conftest.$ac_objext
15109 deplibs=
15110 wl=$lt_prog_compiler_wl
15111 pic_flag=$lt_prog_compiler_pic
15112 compiler_flags=-v
15113 linker_flags=-v
15114 verstring=
15115 output_objdir=.
15116 libname=conftest
15117 lt_save_allow_undefined_flag=$allow_undefined_flag
15118 allow_undefined_flag=
15119 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15120 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }
15124 then
15125 archive_cmds_need_lc=no
15126 else
15127 archive_cmds_need_lc=yes
15128 fi
15129 allow_undefined_flag=$lt_save_allow_undefined_flag
15130 else
15131 cat conftest.err 1>&5
15132 fi
15133 $rm conftest*
15134 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15135echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15136 ;;
15137 esac
15138 fi
15139 ;;
15140esac
15141
15142{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15143echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15144library_names_spec=
15145libname_spec='lib$name'
15146soname_spec=
15147shrext_cmds=".so"
15148postinstall_cmds=
15149postuninstall_cmds=
15150finish_cmds=
15151finish_eval=
15152shlibpath_var=
15153shlibpath_overrides_runpath=unknown
15154version_type=none
15155dynamic_linker="$host_os ld.so"
15156sys_lib_dlsearch_path_spec="/lib /usr/lib"
15157if test "$GCC" = yes; then
15158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15159 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15160 # if the path contains ";" then we assume it to be the separator
15161 # otherwise default to the standard path separator (i.e. ":") - it is
15162 # assumed that no part of a normal pathname contains ";" but that should
15163 # okay in the real world where ";" in dirpaths is itself problematic.
15164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15165 else
15166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15167 fi
15168else
15169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15170fi
15171need_lib_prefix=unknown
15172hardcode_into_libs=no
15173
15174# when you set need_version to no, make sure it does not cause -set_version
15175# flags to be left without arguments
15176need_version=unknown
15177
15178case $host_os in
15179aix3*)
15180 version_type=linux
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15182 shlibpath_var=LIBPATH
15183
15184 # AIX 3 has no versioning support, so we append a major version to the name.
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 ;;
15187
15188aix4* | aix5*)
15189 version_type=linux
15190 need_lib_prefix=no
15191 need_version=no
15192 hardcode_into_libs=yes
15193 if test "$host_cpu" = ia64; then
15194 # AIX 5 supports IA64
15195 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 else
15198 # With GCC up to 2.95.x, collect2 would create an import file
15199 # for dependence libraries. The import file would start with
15200 # the line `#! .'. This would cause the generated library to
15201 # depend on `.', always an invalid library. This was fixed in
15202 # development snapshots of GCC prior to 3.0.
15203 case $host_os in
15204 aix4 | aix4.[01] | aix4.[01].*)
15205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15206 echo ' yes '
15207 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15208 :
15209 else
15210 can_build_shared=no
15211 fi
15212 ;;
15213 esac
15214 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15215 # soname into executable. Probably we can add versioning support to
15216 # collect2, so additional links can be useful in future.
15217 if test "$aix_use_runtimelinking" = yes; then
15218 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15219 # instead of lib<name>.a to let people know that these are not
15220 # typical AIX shared libraries.
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222 else
15223 # We preserve .a as extension for shared libraries through AIX4.2
15224 # and later when we are not doing run time linking.
15225 library_names_spec='${libname}${release}.a $libname.a'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 fi
15228 shlibpath_var=LIBPATH
15229 fi
15230 ;;
15231
15232amigaos*)
15233 library_names_spec='$libname.ixlibrary $libname.a'
15234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15235 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'
15236 ;;
15237
15238beos*)
15239 library_names_spec='${libname}${shared_ext}'
15240 dynamic_linker="$host_os ld.so"
15241 shlibpath_var=LIBRARY_PATH
15242 ;;
15243
15244bsdi[45]*)
15245 version_type=linux
15246 need_version=no
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15249 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15252 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15253 # the default ld.so.conf also contains /usr/contrib/lib and
15254 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15255 # libtool to hard-code these into programs
15256 ;;
15257
15258cygwin* | mingw* | pw32*)
15259 version_type=windows
15260 shrext_cmds=".dll"
15261 need_version=no
15262 need_lib_prefix=no
15263
15264 case $GCC,$host_os in
15265 yes,cygwin* | yes,mingw* | yes,pw32*)
15266 library_names_spec='$libname.dll.a'
15267 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15268 postinstall_cmds='base_file=`basename \${file}`~
15269 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15270 dldir=$destdir/`dirname \$dlpath`~
15271 test -d \$dldir || mkdir -p \$dldir~
15272 $install_prog $dir/$dlname \$dldir/$dlname~
15273 chmod a+x \$dldir/$dlname'
15274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15275 dlpath=$dir/\$dldll~
15276 $rm \$dlpath'
15277 shlibpath_overrides_runpath=yes
15278
15279 case $host_os in
15280 cygwin*)
15281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15282 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15283 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15284 ;;
15285 mingw*)
15286 # MinGW DLLs use traditional 'lib' prefix
15287 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15289 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15290 # It is most probably a Windows format PATH printed by
15291 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15292 # path with ; separators, and with drive letters. We can handle the
15293 # drive letters (cygwin fileutils understands them), so leave them,
15294 # especially as we might pass files found there to a mingw objdump,
15295 # which wouldn't understand a cygwinified path. Ahh.
15296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15297 else
15298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15299 fi
15300 ;;
15301 pw32*)
15302 # pw32 DLLs use 'pw' prefix rather than 'lib'
15303 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15304 ;;
15305 esac
15306 ;;
15307
15308 *)
15309 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15310 ;;
15311 esac
15312 dynamic_linker='Win32 ld.exe'
15313 # FIXME: first we should search . and the directory the executable is in
15314 shlibpath_var=PATH
15315 ;;
15316
15317darwin* | rhapsody*)
15318 dynamic_linker="$host_os dyld"
15319 version_type=darwin
15320 need_lib_prefix=no
15321 need_version=no
15322 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15323 soname_spec='${libname}${release}${major}$shared_ext'
15324 shlibpath_overrides_runpath=yes
15325 shlibpath_var=DYLD_LIBRARY_PATH
15326 shrext_cmds='.dylib'
15327 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15328 if test "$GCC" = yes; then
15329 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"`
15330 else
15331 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15332 fi
15333 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15334 ;;
15335
15336dgux*)
15337 version_type=linux
15338 need_lib_prefix=no
15339 need_version=no
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15341 soname_spec='${libname}${release}${shared_ext}$major'
15342 shlibpath_var=LD_LIBRARY_PATH
15343 ;;
15344
15345freebsd1*)
15346 dynamic_linker=no
15347 ;;
15348
15349kfreebsd*-gnu)
15350 version_type=linux
15351 need_lib_prefix=no
15352 need_version=no
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=no
15357 hardcode_into_libs=yes
15358 dynamic_linker='GNU ld.so'
15359 ;;
15360
15361freebsd* | dragonfly*)
15362 # DragonFly does not have aout. When/if they implement a new
15363 # versioning mechanism, adjust this.
15364 if test -x /usr/bin/objformat; then
15365 objformat=`/usr/bin/objformat`
15366 else
15367 case $host_os in
15368 freebsd[123]*) objformat=aout ;;
15369 *) objformat=elf ;;
15370 esac
15371 fi
15372 version_type=freebsd-$objformat
15373 case $version_type in
15374 freebsd-elf*)
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15376 need_version=no
15377 need_lib_prefix=no
15378 ;;
15379 freebsd-*)
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15381 need_version=yes
15382 ;;
15383 esac
15384 shlibpath_var=LD_LIBRARY_PATH
15385 case $host_os in
15386 freebsd2*)
15387 shlibpath_overrides_runpath=yes
15388 ;;
15389 freebsd3.[01]* | freebsdelf3.[01]*)
15390 shlibpath_overrides_runpath=yes
15391 hardcode_into_libs=yes
15392 ;;
15393 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15394 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15395 shlibpath_overrides_runpath=no
15396 hardcode_into_libs=yes
15397 ;;
15398 freebsd*) # from 4.6 on
15399 shlibpath_overrides_runpath=yes
15400 hardcode_into_libs=yes
15401 ;;
15402 esac
15403 ;;
15404
15405gnu*)
15406 version_type=linux
15407 need_lib_prefix=no
15408 need_version=no
15409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15410 soname_spec='${libname}${release}${shared_ext}$major'
15411 shlibpath_var=LD_LIBRARY_PATH
15412 hardcode_into_libs=yes
15413 ;;
15414
15415hpux9* | hpux10* | hpux11*)
15416 # Give a soname corresponding to the major version so that dld.sl refuses to
15417 # link against other versions.
15418 version_type=sunos
15419 need_lib_prefix=no
15420 need_version=no
15421 case $host_cpu in
15422 ia64*)
15423 shrext_cmds='.so'
15424 hardcode_into_libs=yes
15425 dynamic_linker="$host_os dld.so"
15426 shlibpath_var=LD_LIBRARY_PATH
15427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 if test "X$HPUX_IA64_MODE" = X32; then
15431 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15432 else
15433 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15434 fi
15435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15436 ;;
15437 hppa*64*)
15438 shrext_cmds='.sl'
15439 hardcode_into_libs=yes
15440 dynamic_linker="$host_os dld.sl"
15441 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15447 ;;
15448 *)
15449 shrext_cmds='.sl'
15450 dynamic_linker="$host_os dld.sl"
15451 shlibpath_var=SHLIB_PATH
15452 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 ;;
15456 esac
15457 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15458 postinstall_cmds='chmod 555 $lib'
15459 ;;
15460
15461interix3*)
15462 version_type=linux
15463 need_lib_prefix=no
15464 need_version=no
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15466 soname_spec='${libname}${release}${shared_ext}$major'
15467 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 shlibpath_overrides_runpath=no
15470 hardcode_into_libs=yes
15471 ;;
15472
15473irix5* | irix6* | nonstopux*)
15474 case $host_os in
15475 nonstopux*) version_type=nonstopux ;;
15476 *)
15477 if test "$lt_cv_prog_gnu_ld" = yes; then
15478 version_type=linux
15479 else
15480 version_type=irix
15481 fi ;;
15482 esac
15483 need_lib_prefix=no
15484 need_version=no
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15487 case $host_os in
15488 irix5* | nonstopux*)
15489 libsuff= shlibsuff=
15490 ;;
15491 *)
15492 case $LD in # libtool.m4 will add one of these switches to LD
15493 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15494 libsuff= shlibsuff= libmagic=32-bit;;
15495 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15496 libsuff=32 shlibsuff=N32 libmagic=N32;;
15497 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15498 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15499 *) libsuff= shlibsuff= libmagic=never-match;;
15500 esac
15501 ;;
15502 esac
15503 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15504 shlibpath_overrides_runpath=no
15505 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15506 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15507 hardcode_into_libs=yes
15508 ;;
15509
15510# No shared lib support for Linux oldld, aout, or coff.
15511linux*oldld* | linux*aout* | linux*coff*)
15512 dynamic_linker=no
15513 ;;
15514
15515# This must be Linux ELF.
15516linux*)
15517 version_type=linux
15518 need_lib_prefix=no
15519 need_version=no
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=no
15525 # This implies no fast_install, which is unacceptable.
15526 # Some rework will be needed to allow for fast_install
15527 # before this can be enabled.
15528 hardcode_into_libs=yes
15529
15530 # Append ld.so.conf contents to the search path
15531 if test -f /etc/ld.so.conf; then
15532 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' ' '`
15533 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15534 fi
15535
15536 # We used to test for /lib/ld.so.1 and disable shared libraries on
15537 # powerpc, because MkLinux only supported shared libraries with the
15538 # GNU dynamic linker. Since this was broken with cross compilers,
15539 # most powerpc-linux boxes support dynamic linking these days and
15540 # people can always --disable-shared, the test was removed, and we
15541 # assume the GNU/Linux dynamic linker is in use.
15542 dynamic_linker='GNU/Linux ld.so'
15543 ;;
15544
15545knetbsd*-gnu)
15546 version_type=linux
15547 need_lib_prefix=no
15548 need_version=no
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15550 soname_spec='${libname}${release}${shared_ext}$major'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=no
15553 hardcode_into_libs=yes
15554 dynamic_linker='GNU ld.so'
15555 ;;
15556
15557netbsd*)
15558 version_type=sunos
15559 need_lib_prefix=no
15560 need_version=no
15561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15564 dynamic_linker='NetBSD (a.out) ld.so'
15565 else
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 dynamic_linker='NetBSD ld.elf_so'
15569 fi
15570 shlibpath_var=LD_LIBRARY_PATH
15571 shlibpath_overrides_runpath=yes
15572 hardcode_into_libs=yes
15573 ;;
15574
15575newsos6)
15576 version_type=linux
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 shlibpath_overrides_runpath=yes
15580 ;;
15581
15582nto-qnx*)
15583 version_type=linux
15584 need_lib_prefix=no
15585 need_version=no
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 shlibpath_var=LD_LIBRARY_PATH
15589 shlibpath_overrides_runpath=yes
15590 ;;
15591
15592openbsd*)
15593 version_type=sunos
15594 sys_lib_dlsearch_path_spec="/usr/lib"
15595 need_lib_prefix=no
15596 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15597 case $host_os in
15598 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15599 *) need_version=no ;;
15600 esac
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15605 case $host_os in
15606 openbsd2.[89] | openbsd2.[89].*)
15607 shlibpath_overrides_runpath=no
15608 ;;
15609 *)
15610 shlibpath_overrides_runpath=yes
15611 ;;
15612 esac
15613 else
15614 shlibpath_overrides_runpath=yes
15615 fi
15616 ;;
15617
15618os2*)
15619 libname_spec='$name'
15620 shrext_cmds=".dll"
15621 need_lib_prefix=no
15622 library_names_spec='$libname${shared_ext} $libname.a'
15623 dynamic_linker='OS/2 ld.exe'
15624 shlibpath_var=LIBPATH
15625 ;;
15626
15627osf3* | osf4* | osf5*)
15628 version_type=osf
15629 need_lib_prefix=no
15630 need_version=no
15631 soname_spec='${libname}${release}${shared_ext}$major'
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633 shlibpath_var=LD_LIBRARY_PATH
15634 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15635 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15636 ;;
15637
15638solaris*)
15639 version_type=linux
15640 need_lib_prefix=no
15641 need_version=no
15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 soname_spec='${libname}${release}${shared_ext}$major'
15644 shlibpath_var=LD_LIBRARY_PATH
15645 shlibpath_overrides_runpath=yes
15646 hardcode_into_libs=yes
15647 # ldd complains unless libraries are executable
15648 postinstall_cmds='chmod +x $lib'
15649 ;;
15650
15651sunos4*)
15652 version_type=sunos
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15654 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15655 shlibpath_var=LD_LIBRARY_PATH
15656 shlibpath_overrides_runpath=yes
15657 if test "$with_gnu_ld" = yes; then
15658 need_lib_prefix=no
15659 fi
15660 need_version=yes
15661 ;;
15662
15663sysv4 | sysv4.3*)
15664 version_type=linux
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666 soname_spec='${libname}${release}${shared_ext}$major'
15667 shlibpath_var=LD_LIBRARY_PATH
15668 case $host_vendor in
15669 sni)
15670 shlibpath_overrides_runpath=no
15671 need_lib_prefix=no
15672 export_dynamic_flag_spec='${wl}-Blargedynsym'
15673 runpath_var=LD_RUN_PATH
15674 ;;
15675 siemens)
15676 need_lib_prefix=no
15677 ;;
15678 motorola)
15679 need_lib_prefix=no
15680 need_version=no
15681 shlibpath_overrides_runpath=no
15682 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15683 ;;
15684 esac
15685 ;;
15686
15687sysv4*MP*)
15688 if test -d /usr/nec ;then
15689 version_type=linux
15690 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15691 soname_spec='$libname${shared_ext}.$major'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 fi
15694 ;;
15695
15696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15697 version_type=freebsd-elf
15698 need_lib_prefix=no
15699 need_version=no
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 hardcode_into_libs=yes
15704 if test "$with_gnu_ld" = yes; then
15705 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15706 shlibpath_overrides_runpath=no
15707 else
15708 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15709 shlibpath_overrides_runpath=yes
15710 case $host_os in
15711 sco3.2v5*)
15712 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15713 ;;
15714 esac
15715 fi
15716 sys_lib_dlsearch_path_spec='/usr/lib'
15717 ;;
15718
15719uts4*)
15720 version_type=linux
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 soname_spec='${libname}${release}${shared_ext}$major'
15723 shlibpath_var=LD_LIBRARY_PATH
15724 ;;
15725
15726*)
15727 dynamic_linker=no
15728 ;;
15729esac
15730{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15731echo "${ECHO_T}$dynamic_linker" >&6; }
15732test "$dynamic_linker" = no && can_build_shared=no
15733
15734variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15735if test "$GCC" = yes; then
15736 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15737fi
15738
15739{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15740echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15741hardcode_action=
15742if test -n "$hardcode_libdir_flag_spec" || \
15743 test -n "$runpath_var" || \
15744 test "X$hardcode_automatic" = "Xyes" ; then
15745
15746 # We can hardcode non-existant directories.
15747 if test "$hardcode_direct" != no &&
15748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15749 # have to relink, otherwise we might link with an installed library
15750 # when we should be linking with a yet-to-be-installed one
15751 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15752 test "$hardcode_minus_L" != no; then
15753 # Linking always hardcodes the temporary library directory.
15754 hardcode_action=relink
15755 else
15756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15757 hardcode_action=immediate
15758 fi
15759else
15760 # We cannot hardcode anything, or else we can only hardcode existing
15761 # directories.
15762 hardcode_action=unsupported
15763fi
15764{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
15765echo "${ECHO_T}$hardcode_action" >&6; }
15766
15767if test "$hardcode_action" = relink; then
15768 # Fast installation is not supported
15769 enable_fast_install=no
15770elif test "$shlibpath_overrides_runpath" = yes ||
15771 test "$enable_shared" = no; then
15772 # Fast installation is not necessary
15773 enable_fast_install=needless
15774fi
15775
15776striplib=
15777old_striplib=
15778{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15779echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15780if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15781 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15782 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15783 { echo "$as_me:$LINENO: result: yes" >&5
15784echo "${ECHO_T}yes" >&6; }
15785else
15786# FIXME - insert some real tests, host_os isn't really good enough
15787 case $host_os in
15788 darwin*)
15789 if test -n "$STRIP" ; then
15790 striplib="$STRIP -x"
15791 { echo "$as_me:$LINENO: result: yes" >&5
15792echo "${ECHO_T}yes" >&6; }
15793 else
15794 { echo "$as_me:$LINENO: result: no" >&5
15795echo "${ECHO_T}no" >&6; }
15796fi
15797 ;;
15798 *)
15799 { echo "$as_me:$LINENO: result: no" >&5
15800echo "${ECHO_T}no" >&6; }
15801 ;;
15802 esac
15803fi
15804
15805if test "x$enable_dlopen" != xyes; then
15806 enable_dlopen=unknown
15807 enable_dlopen_self=unknown
15808 enable_dlopen_self_static=unknown
15809else
15810 lt_cv_dlopen=no
15811 lt_cv_dlopen_libs=
15812
15813 case $host_os in
15814 beos*)
15815 lt_cv_dlopen="load_add_on"
15816 lt_cv_dlopen_libs=
15817 lt_cv_dlopen_self=yes
15818 ;;
15819
15820 mingw* | pw32*)
15821 lt_cv_dlopen="LoadLibrary"
15822 lt_cv_dlopen_libs=
15823 ;;
15824
15825 cygwin*)
15826 lt_cv_dlopen="dlopen"
15827 lt_cv_dlopen_libs=
15828 ;;
15829
15830 darwin*)
15831 # if libdl is installed we need to link against it
15832 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15833echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15834if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15836else
15837 ac_check_lib_save_LIBS=$LIBS
15838LIBS="-ldl $LIBS"
15839cat >conftest.$ac_ext <<_ACEOF
15840/* confdefs.h. */
15841_ACEOF
15842cat confdefs.h >>conftest.$ac_ext
15843cat >>conftest.$ac_ext <<_ACEOF
15844/* end confdefs.h. */
15845
15846/* Override any GCC internal prototype to avoid an error.
15847 Use char because int might match the return type of a GCC
15848 builtin and then its argument prototype would still apply. */
15849#ifdef __cplusplus
15850extern "C"
15851#endif
15852char dlopen ();
15853int
15854main ()
15855{
15856return dlopen ();
15857 ;
15858 return 0;
15859}
15860_ACEOF
15861rm -f conftest.$ac_objext conftest$ac_exeext
15862if { (ac_try="$ac_link"
15863case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15866esac
15867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_link") 2>conftest.er1
15869 ac_status=$?
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000015874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest$ac_exeext &&
15878 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015879 ac_cv_lib_dl_dlopen=yes
15880else
15881 echo "$as_me: failed program was:" >&5
15882sed 's/^/| /' conftest.$ac_ext >&5
15883
15884 ac_cv_lib_dl_dlopen=no
15885fi
15886
Edwin Török20176752008-10-22 09:56:27 +000015887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015888 conftest$ac_exeext conftest.$ac_ext
15889LIBS=$ac_check_lib_save_LIBS
15890fi
15891{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15892echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15893if test $ac_cv_lib_dl_dlopen = yes; then
15894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15895else
15896
15897 lt_cv_dlopen="dyld"
15898 lt_cv_dlopen_libs=
15899 lt_cv_dlopen_self=yes
15900
15901fi
15902
15903 ;;
15904
15905 *)
15906 { echo "$as_me:$LINENO: checking for shl_load" >&5
15907echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15908if test "${ac_cv_func_shl_load+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910else
15911 cat >conftest.$ac_ext <<_ACEOF
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15919#define shl_load innocuous_shl_load
15920
15921/* System header to define __stub macros and hopefully few prototypes,
15922 which can conflict with char shl_load (); below.
15923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15924 <limits.h> exists even on freestanding compilers. */
15925
15926#ifdef __STDC__
15927# include <limits.h>
15928#else
15929# include <assert.h>
15930#endif
15931
15932#undef shl_load
15933
15934/* Override any GCC internal prototype to avoid an error.
15935 Use char because int might match the return type of a GCC
15936 builtin and then its argument prototype would still apply. */
15937#ifdef __cplusplus
15938extern "C"
15939#endif
15940char shl_load ();
15941/* The GNU C library defines this for functions which it implements
15942 to always fail with ENOSYS. Some functions are actually named
15943 something starting with __ and the normal name is an alias. */
15944#if defined __stub_shl_load || defined __stub___shl_load
15945choke me
15946#endif
15947
15948int
15949main ()
15950{
15951return shl_load ();
15952 ;
15953 return 0;
15954}
15955_ACEOF
15956rm -f conftest.$ac_objext conftest$ac_exeext
15957if { (ac_try="$ac_link"
15958case "(($ac_try" in
15959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960 *) ac_try_echo=$ac_try;;
15961esac
15962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963 (eval "$ac_link") 2>conftest.er1
15964 ac_status=$?
15965 grep -v '^ *+' conftest.er1 >conftest.err
15966 rm -f conftest.er1
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000015969 (exit $ac_status); } && {
15970 test -z "$ac_c_werror_flag" ||
15971 test ! -s conftest.err
15972 } && test -s conftest$ac_exeext &&
15973 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015974 ac_cv_func_shl_load=yes
15975else
15976 echo "$as_me: failed program was:" >&5
15977sed 's/^/| /' conftest.$ac_ext >&5
15978
15979 ac_cv_func_shl_load=no
15980fi
15981
Edwin Török20176752008-10-22 09:56:27 +000015982rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015983 conftest$ac_exeext conftest.$ac_ext
15984fi
15985{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15986echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15987if test $ac_cv_func_shl_load = yes; then
15988 lt_cv_dlopen="shl_load"
15989else
15990 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15991echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15992if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15994else
15995 ac_check_lib_save_LIBS=$LIBS
15996LIBS="-ldld $LIBS"
15997cat >conftest.$ac_ext <<_ACEOF
15998/* confdefs.h. */
15999_ACEOF
16000cat confdefs.h >>conftest.$ac_ext
16001cat >>conftest.$ac_ext <<_ACEOF
16002/* end confdefs.h. */
16003
16004/* Override any GCC internal prototype to avoid an error.
16005 Use char because int might match the return type of a GCC
16006 builtin and then its argument prototype would still apply. */
16007#ifdef __cplusplus
16008extern "C"
16009#endif
16010char shl_load ();
16011int
16012main ()
16013{
16014return shl_load ();
16015 ;
16016 return 0;
16017}
16018_ACEOF
16019rm -f conftest.$ac_objext conftest$ac_exeext
16020if { (ac_try="$ac_link"
16021case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16024esac
16025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_link") 2>conftest.er1
16027 ac_status=$?
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000016032 (exit $ac_status); } && {
16033 test -z "$ac_c_werror_flag" ||
16034 test ! -s conftest.err
16035 } && test -s conftest$ac_exeext &&
16036 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016037 ac_cv_lib_dld_shl_load=yes
16038else
16039 echo "$as_me: failed program was:" >&5
16040sed 's/^/| /' conftest.$ac_ext >&5
16041
16042 ac_cv_lib_dld_shl_load=no
16043fi
16044
Edwin Török20176752008-10-22 09:56:27 +000016045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016046 conftest$ac_exeext conftest.$ac_ext
16047LIBS=$ac_check_lib_save_LIBS
16048fi
16049{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16050echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16051if test $ac_cv_lib_dld_shl_load = yes; then
16052 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16053else
16054 { echo "$as_me:$LINENO: checking for dlopen" >&5
16055echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16056if test "${ac_cv_func_dlopen+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058else
16059 cat >conftest.$ac_ext <<_ACEOF
16060/* confdefs.h. */
16061_ACEOF
16062cat confdefs.h >>conftest.$ac_ext
16063cat >>conftest.$ac_ext <<_ACEOF
16064/* end confdefs.h. */
16065/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16067#define dlopen innocuous_dlopen
16068
16069/* System header to define __stub macros and hopefully few prototypes,
16070 which can conflict with char dlopen (); below.
16071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16072 <limits.h> exists even on freestanding compilers. */
16073
16074#ifdef __STDC__
16075# include <limits.h>
16076#else
16077# include <assert.h>
16078#endif
16079
16080#undef dlopen
16081
16082/* Override any GCC internal prototype to avoid an error.
16083 Use char because int might match the return type of a GCC
16084 builtin and then its argument prototype would still apply. */
16085#ifdef __cplusplus
16086extern "C"
16087#endif
16088char dlopen ();
16089/* The GNU C library defines this for functions which it implements
16090 to always fail with ENOSYS. Some functions are actually named
16091 something starting with __ and the normal name is an alias. */
16092#if defined __stub_dlopen || defined __stub___dlopen
16093choke me
16094#endif
16095
16096int
16097main ()
16098{
16099return dlopen ();
16100 ;
16101 return 0;
16102}
16103_ACEOF
16104rm -f conftest.$ac_objext conftest$ac_exeext
16105if { (ac_try="$ac_link"
16106case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16109esac
16110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_link") 2>conftest.er1
16112 ac_status=$?
16113 grep -v '^ *+' conftest.er1 >conftest.err
16114 rm -f conftest.er1
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000016117 (exit $ac_status); } && {
16118 test -z "$ac_c_werror_flag" ||
16119 test ! -s conftest.err
16120 } && test -s conftest$ac_exeext &&
16121 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016122 ac_cv_func_dlopen=yes
16123else
16124 echo "$as_me: failed program was:" >&5
16125sed 's/^/| /' conftest.$ac_ext >&5
16126
16127 ac_cv_func_dlopen=no
16128fi
16129
Edwin Török20176752008-10-22 09:56:27 +000016130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016131 conftest$ac_exeext conftest.$ac_ext
16132fi
16133{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16134echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16135if test $ac_cv_func_dlopen = yes; then
16136 lt_cv_dlopen="dlopen"
16137else
16138 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16139echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16140if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16142else
16143 ac_check_lib_save_LIBS=$LIBS
16144LIBS="-ldl $LIBS"
16145cat >conftest.$ac_ext <<_ACEOF
16146/* confdefs.h. */
16147_ACEOF
16148cat confdefs.h >>conftest.$ac_ext
16149cat >>conftest.$ac_ext <<_ACEOF
16150/* end confdefs.h. */
16151
16152/* Override any GCC internal prototype to avoid an error.
16153 Use char because int might match the return type of a GCC
16154 builtin and then its argument prototype would still apply. */
16155#ifdef __cplusplus
16156extern "C"
16157#endif
16158char dlopen ();
16159int
16160main ()
16161{
16162return dlopen ();
16163 ;
16164 return 0;
16165}
16166_ACEOF
16167rm -f conftest.$ac_objext conftest$ac_exeext
16168if { (ac_try="$ac_link"
16169case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16172esac
16173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_link") 2>conftest.er1
16175 ac_status=$?
16176 grep -v '^ *+' conftest.er1 >conftest.err
16177 rm -f conftest.er1
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000016180 (exit $ac_status); } && {
16181 test -z "$ac_c_werror_flag" ||
16182 test ! -s conftest.err
16183 } && test -s conftest$ac_exeext &&
16184 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016185 ac_cv_lib_dl_dlopen=yes
16186else
16187 echo "$as_me: failed program was:" >&5
16188sed 's/^/| /' conftest.$ac_ext >&5
16189
16190 ac_cv_lib_dl_dlopen=no
16191fi
16192
Edwin Török20176752008-10-22 09:56:27 +000016193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016194 conftest$ac_exeext conftest.$ac_ext
16195LIBS=$ac_check_lib_save_LIBS
16196fi
16197{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16198echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16199if test $ac_cv_lib_dl_dlopen = yes; then
16200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16201else
16202 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16203echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16204if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16206else
16207 ac_check_lib_save_LIBS=$LIBS
16208LIBS="-lsvld $LIBS"
16209cat >conftest.$ac_ext <<_ACEOF
16210/* confdefs.h. */
16211_ACEOF
16212cat confdefs.h >>conftest.$ac_ext
16213cat >>conftest.$ac_ext <<_ACEOF
16214/* end confdefs.h. */
16215
16216/* Override any GCC internal prototype to avoid an error.
16217 Use char because int might match the return type of a GCC
16218 builtin and then its argument prototype would still apply. */
16219#ifdef __cplusplus
16220extern "C"
16221#endif
16222char dlopen ();
16223int
16224main ()
16225{
16226return dlopen ();
16227 ;
16228 return 0;
16229}
16230_ACEOF
16231rm -f conftest.$ac_objext conftest$ac_exeext
16232if { (ac_try="$ac_link"
16233case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16236esac
16237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_link") 2>conftest.er1
16239 ac_status=$?
16240 grep -v '^ *+' conftest.er1 >conftest.err
16241 rm -f conftest.er1
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000016244 (exit $ac_status); } && {
16245 test -z "$ac_c_werror_flag" ||
16246 test ! -s conftest.err
16247 } && test -s conftest$ac_exeext &&
16248 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016249 ac_cv_lib_svld_dlopen=yes
16250else
16251 echo "$as_me: failed program was:" >&5
16252sed 's/^/| /' conftest.$ac_ext >&5
16253
16254 ac_cv_lib_svld_dlopen=no
16255fi
16256
Edwin Török20176752008-10-22 09:56:27 +000016257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016258 conftest$ac_exeext conftest.$ac_ext
16259LIBS=$ac_check_lib_save_LIBS
16260fi
16261{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16262echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16263if test $ac_cv_lib_svld_dlopen = yes; then
16264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16265else
16266 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16267echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16268if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16270else
16271 ac_check_lib_save_LIBS=$LIBS
16272LIBS="-ldld $LIBS"
16273cat >conftest.$ac_ext <<_ACEOF
16274/* confdefs.h. */
16275_ACEOF
16276cat confdefs.h >>conftest.$ac_ext
16277cat >>conftest.$ac_ext <<_ACEOF
16278/* end confdefs.h. */
16279
16280/* Override any GCC internal prototype to avoid an error.
16281 Use char because int might match the return type of a GCC
16282 builtin and then its argument prototype would still apply. */
16283#ifdef __cplusplus
16284extern "C"
16285#endif
16286char dld_link ();
16287int
16288main ()
16289{
16290return dld_link ();
16291 ;
16292 return 0;
16293}
16294_ACEOF
16295rm -f conftest.$ac_objext conftest$ac_exeext
16296if { (ac_try="$ac_link"
16297case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300esac
16301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_link") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000016308 (exit $ac_status); } && {
16309 test -z "$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest$ac_exeext &&
16312 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016313 ac_cv_lib_dld_dld_link=yes
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 ac_cv_lib_dld_dld_link=no
16319fi
16320
Edwin Török20176752008-10-22 09:56:27 +000016321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016322 conftest$ac_exeext conftest.$ac_ext
16323LIBS=$ac_check_lib_save_LIBS
16324fi
16325{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16326echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16327if test $ac_cv_lib_dld_dld_link = yes; then
16328 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16329fi
16330
16331
16332fi
16333
16334
16335fi
16336
16337
16338fi
16339
16340
16341fi
16342
16343
16344fi
16345
16346 ;;
16347 esac
16348
16349 if test "x$lt_cv_dlopen" != xno; then
16350 enable_dlopen=yes
16351 else
16352 enable_dlopen=no
16353 fi
16354
16355 case $lt_cv_dlopen in
16356 dlopen)
16357 save_CPPFLAGS="$CPPFLAGS"
16358 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16359
16360 save_LDFLAGS="$LDFLAGS"
16361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16362
16363 save_LIBS="$LIBS"
16364 LIBS="$lt_cv_dlopen_libs $LIBS"
16365
16366 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16367echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16368if test "${lt_cv_dlopen_self+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16370else
16371 if test "$cross_compiling" = yes; then :
16372 lt_cv_dlopen_self=cross
16373else
16374 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16375 lt_status=$lt_dlunknown
16376 cat > conftest.$ac_ext <<EOF
Edwin Török20176752008-10-22 09:56:27 +000016377#line 16377 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016378#include "confdefs.h"
16379
16380#if HAVE_DLFCN_H
16381#include <dlfcn.h>
16382#endif
16383
16384#include <stdio.h>
16385
16386#ifdef RTLD_GLOBAL
16387# define LT_DLGLOBAL RTLD_GLOBAL
16388#else
16389# ifdef DL_GLOBAL
16390# define LT_DLGLOBAL DL_GLOBAL
16391# else
16392# define LT_DLGLOBAL 0
16393# endif
16394#endif
16395
16396/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16397 find out it does not work in some platform. */
16398#ifndef LT_DLLAZY_OR_NOW
16399# ifdef RTLD_LAZY
16400# define LT_DLLAZY_OR_NOW RTLD_LAZY
16401# else
16402# ifdef DL_LAZY
16403# define LT_DLLAZY_OR_NOW DL_LAZY
16404# else
16405# ifdef RTLD_NOW
16406# define LT_DLLAZY_OR_NOW RTLD_NOW
16407# else
16408# ifdef DL_NOW
16409# define LT_DLLAZY_OR_NOW DL_NOW
16410# else
16411# define LT_DLLAZY_OR_NOW 0
16412# endif
16413# endif
16414# endif
16415# endif
16416#endif
16417
16418#ifdef __cplusplus
16419extern "C" void exit (int);
16420#endif
16421
16422void fnord() { int i=42;}
16423int main ()
16424{
16425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16426 int status = $lt_dlunknown;
16427
16428 if (self)
16429 {
16430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16431 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16432 /* dlclose (self); */
16433 }
16434 else
16435 puts (dlerror ());
16436
16437 exit (status);
16438}
16439EOF
16440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441 (eval $ac_link) 2>&5
16442 ac_status=$?
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16445 (./conftest; exit; ) >&5 2>/dev/null
16446 lt_status=$?
16447 case x$lt_status in
16448 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16449 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16450 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16451 esac
16452 else :
16453 # compilation failed
16454 lt_cv_dlopen_self=no
16455 fi
16456fi
16457rm -fr conftest*
16458
16459
16460fi
16461{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16462echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16463
16464 if test "x$lt_cv_dlopen_self" = xyes; then
16465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16466 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16467echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16468if test "${lt_cv_dlopen_self_static+set}" = set; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16470else
16471 if test "$cross_compiling" = yes; then :
16472 lt_cv_dlopen_self_static=cross
16473else
16474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16475 lt_status=$lt_dlunknown
16476 cat > conftest.$ac_ext <<EOF
Edwin Török20176752008-10-22 09:56:27 +000016477#line 16477 "configure"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016478#include "confdefs.h"
16479
16480#if HAVE_DLFCN_H
16481#include <dlfcn.h>
16482#endif
16483
16484#include <stdio.h>
16485
16486#ifdef RTLD_GLOBAL
16487# define LT_DLGLOBAL RTLD_GLOBAL
16488#else
16489# ifdef DL_GLOBAL
16490# define LT_DLGLOBAL DL_GLOBAL
16491# else
16492# define LT_DLGLOBAL 0
16493# endif
16494#endif
16495
16496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16497 find out it does not work in some platform. */
16498#ifndef LT_DLLAZY_OR_NOW
16499# ifdef RTLD_LAZY
16500# define LT_DLLAZY_OR_NOW RTLD_LAZY
16501# else
16502# ifdef DL_LAZY
16503# define LT_DLLAZY_OR_NOW DL_LAZY
16504# else
16505# ifdef RTLD_NOW
16506# define LT_DLLAZY_OR_NOW RTLD_NOW
16507# else
16508# ifdef DL_NOW
16509# define LT_DLLAZY_OR_NOW DL_NOW
16510# else
16511# define LT_DLLAZY_OR_NOW 0
16512# endif
16513# endif
16514# endif
16515# endif
16516#endif
16517
16518#ifdef __cplusplus
16519extern "C" void exit (int);
16520#endif
16521
16522void fnord() { int i=42;}
16523int main ()
16524{
16525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16526 int status = $lt_dlunknown;
16527
16528 if (self)
16529 {
16530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16532 /* dlclose (self); */
16533 }
16534 else
16535 puts (dlerror ());
16536
16537 exit (status);
16538}
16539EOF
16540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16541 (eval $ac_link) 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16545 (./conftest; exit; ) >&5 2>/dev/null
16546 lt_status=$?
16547 case x$lt_status in
16548 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16549 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16550 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16551 esac
16552 else :
16553 # compilation failed
16554 lt_cv_dlopen_self_static=no
16555 fi
16556fi
16557rm -fr conftest*
16558
16559
16560fi
16561{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16562echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16563 fi
16564
16565 CPPFLAGS="$save_CPPFLAGS"
16566 LDFLAGS="$save_LDFLAGS"
16567 LIBS="$save_LIBS"
16568 ;;
16569 esac
16570
16571 case $lt_cv_dlopen_self in
16572 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16573 *) enable_dlopen_self=unknown ;;
16574 esac
16575
16576 case $lt_cv_dlopen_self_static in
16577 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16578 *) enable_dlopen_self_static=unknown ;;
16579 esac
16580fi
16581
16582
16583# Report which library types will actually be built
16584{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16585echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16586{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16587echo "${ECHO_T}$can_build_shared" >&6; }
16588
16589{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16590echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16591test "$can_build_shared" = "no" && enable_shared=no
16592
16593# On AIX, shared libraries and static libraries use the same namespace, and
16594# are all built from PIC.
16595case $host_os in
16596aix3*)
16597 test "$enable_shared" = yes && enable_static=no
16598 if test -n "$RANLIB"; then
16599 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16600 postinstall_cmds='$RANLIB $lib'
16601 fi
16602 ;;
16603
16604aix4* | aix5*)
16605 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16606 test "$enable_shared" = yes && enable_static=no
16607 fi
16608 ;;
16609esac
16610{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16611echo "${ECHO_T}$enable_shared" >&6; }
16612
16613{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16614echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16615# Make sure either enable_shared or enable_static is yes.
16616test "$enable_shared" = yes || enable_static=yes
16617{ echo "$as_me:$LINENO: result: $enable_static" >&5
16618echo "${ECHO_T}$enable_static" >&6; }
16619
16620# The else clause should only fire when bootstrapping the
16621# libtool distribution, otherwise you forgot to ship ltmain.sh
16622# with your package, and you will get complaints that there are
16623# no rules to generate ltmain.sh.
16624if test -f "$ltmain"; then
16625 # See if we are running on zsh, and set the options which allow our commands through
16626 # without removal of \ escapes.
16627 if test -n "${ZSH_VERSION+set}" ; then
16628 setopt NO_GLOB_SUBST
16629 fi
16630 # Now quote all the things that may contain metacharacters while being
16631 # careful not to overquote the AC_SUBSTed values. We take copies of the
16632 # variables and quote the copies for generation of the libtool script.
16633 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16634 SED SHELL STRIP \
16635 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16636 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16637 deplibs_check_method reload_flag reload_cmds need_locks \
16638 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16639 lt_cv_sys_global_symbol_to_c_name_address \
16640 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16641 old_postinstall_cmds old_postuninstall_cmds \
16642 compiler \
16643 CC \
16644 LD \
16645 lt_prog_compiler_wl \
16646 lt_prog_compiler_pic \
16647 lt_prog_compiler_static \
16648 lt_prog_compiler_no_builtin_flag \
16649 export_dynamic_flag_spec \
16650 thread_safe_flag_spec \
16651 whole_archive_flag_spec \
16652 enable_shared_with_static_runtimes \
16653 old_archive_cmds \
16654 old_archive_from_new_cmds \
16655 predep_objects \
16656 postdep_objects \
16657 predeps \
16658 postdeps \
16659 compiler_lib_search_path \
16660 archive_cmds \
16661 archive_expsym_cmds \
16662 postinstall_cmds \
16663 postuninstall_cmds \
16664 old_archive_from_expsyms_cmds \
16665 allow_undefined_flag \
16666 no_undefined_flag \
16667 export_symbols_cmds \
16668 hardcode_libdir_flag_spec \
16669 hardcode_libdir_flag_spec_ld \
16670 hardcode_libdir_separator \
16671 hardcode_automatic \
16672 module_cmds \
16673 module_expsym_cmds \
16674 lt_cv_prog_compiler_c_o \
16675 exclude_expsyms \
16676 include_expsyms; do
16677
16678 case $var in
16679 old_archive_cmds | \
16680 old_archive_from_new_cmds | \
16681 archive_cmds | \
16682 archive_expsym_cmds | \
16683 module_cmds | \
16684 module_expsym_cmds | \
16685 old_archive_from_expsyms_cmds | \
16686 export_symbols_cmds | \
16687 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16688 postinstall_cmds | postuninstall_cmds | \
16689 old_postinstall_cmds | old_postuninstall_cmds | \
16690 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16691 # Double-quote double-evaled strings.
16692 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16693 ;;
16694 *)
16695 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16696 ;;
16697 esac
16698 done
16699
16700 case $lt_echo in
16701 *'\$0 --fallback-echo"')
16702 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16703 ;;
16704 esac
16705
16706cfgfile="${ofile}T"
16707 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16708 $rm -f "$cfgfile"
16709 { echo "$as_me:$LINENO: creating $ofile" >&5
16710echo "$as_me: creating $ofile" >&6;}
16711
16712 cat <<__EOF__ >> "$cfgfile"
16713#! $SHELL
16714
16715# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16716# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16717# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16718#
16719# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16720# Free Software Foundation, Inc.
16721#
16722# This file is part of GNU Libtool:
16723# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16724#
16725# This program is free software; you can redistribute it and/or modify
16726# it under the terms of the GNU General Public License as published by
16727# the Free Software Foundation; either version 2 of the License, or
16728# (at your option) any later version.
16729#
16730# This program is distributed in the hope that it will be useful, but
16731# WITHOUT ANY WARRANTY; without even the implied warranty of
16732# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16733# General Public License for more details.
16734#
16735# You should have received a copy of the GNU General Public License
16736# along with this program; if not, write to the Free Software
16737# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16738#
16739# As a special exception to the GNU General Public License, if you
16740# distribute this file as part of a program that contains a
16741# configuration script generated by Autoconf, you may include it under
16742# the same distribution terms that you use for the rest of that program.
16743
16744# A sed program that does not truncate output.
16745SED=$lt_SED
16746
16747# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16748Xsed="$SED -e 1s/^X//"
16749
16750# The HP-UX ksh and POSIX shell print the target directory to stdout
16751# if CDPATH is set.
16752(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16753
16754# The names of the tagged configurations supported by this script.
16755available_tags=
16756
16757# ### BEGIN LIBTOOL CONFIG
16758
16759# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16760
16761# Shell to use when invoking shell scripts.
16762SHELL=$lt_SHELL
16763
16764# Whether or not to build shared libraries.
16765build_libtool_libs=$enable_shared
16766
16767# Whether or not to build static libraries.
16768build_old_libs=$enable_static
16769
16770# Whether or not to add -lc for building shared libraries.
16771build_libtool_need_lc=$archive_cmds_need_lc
16772
16773# Whether or not to disallow shared libs when runtime libs are static
16774allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16775
16776# Whether or not to optimize for fast installation.
16777fast_install=$enable_fast_install
16778
16779# The host system.
16780host_alias=$host_alias
16781host=$host
16782host_os=$host_os
16783
16784# The build system.
16785build_alias=$build_alias
16786build=$build
16787build_os=$build_os
16788
16789# An echo program that does not interpret backslashes.
16790echo=$lt_echo
16791
16792# The archiver.
16793AR=$lt_AR
16794AR_FLAGS=$lt_AR_FLAGS
16795
16796# A C compiler.
16797LTCC=$lt_LTCC
16798
16799# LTCC compiler flags.
16800LTCFLAGS=$lt_LTCFLAGS
16801
16802# A language-specific compiler.
16803CC=$lt_compiler
16804
16805# Is the compiler the GNU C compiler?
16806with_gcc=$GCC
16807
16808# An ERE matcher.
16809EGREP=$lt_EGREP
16810
16811# The linker used to build libraries.
16812LD=$lt_LD
16813
16814# Whether we need hard or soft links.
16815LN_S=$lt_LN_S
16816
16817# A BSD-compatible nm program.
16818NM=$lt_NM
16819
16820# A symbol stripping program
16821STRIP=$lt_STRIP
16822
16823# Used to examine libraries when file_magic_cmd begins "file"
16824MAGIC_CMD=$MAGIC_CMD
16825
16826# Used on cygwin: DLL creation program.
16827DLLTOOL="$DLLTOOL"
16828
16829# Used on cygwin: object dumper.
16830OBJDUMP="$OBJDUMP"
16831
16832# Used on cygwin: assembler.
16833AS="$AS"
16834
16835# The name of the directory that contains temporary libtool files.
16836objdir=$objdir
16837
16838# How to create reloadable object files.
16839reload_flag=$lt_reload_flag
16840reload_cmds=$lt_reload_cmds
16841
16842# How to pass a linker flag through the compiler.
16843wl=$lt_lt_prog_compiler_wl
16844
16845# Object file suffix (normally "o").
16846objext="$ac_objext"
16847
16848# Old archive suffix (normally "a").
16849libext="$libext"
16850
16851# Shared library suffix (normally ".so").
16852shrext_cmds='$shrext_cmds'
16853
16854# Executable file suffix (normally "").
16855exeext="$exeext"
16856
16857# Additional compiler flags for building library objects.
16858pic_flag=$lt_lt_prog_compiler_pic
16859pic_mode=$pic_mode
16860
16861# What is the maximum length of a command?
16862max_cmd_len=$lt_cv_sys_max_cmd_len
16863
16864# Does compiler simultaneously support -c and -o options?
16865compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16866
16867# Must we lock files when doing compilation?
16868need_locks=$lt_need_locks
16869
16870# Do we need the lib prefix for modules?
16871need_lib_prefix=$need_lib_prefix
16872
16873# Do we need a version for libraries?
16874need_version=$need_version
16875
16876# Whether dlopen is supported.
16877dlopen_support=$enable_dlopen
16878
16879# Whether dlopen of programs is supported.
16880dlopen_self=$enable_dlopen_self
16881
16882# Whether dlopen of statically linked programs is supported.
16883dlopen_self_static=$enable_dlopen_self_static
16884
16885# Compiler flag to prevent dynamic linking.
16886link_static_flag=$lt_lt_prog_compiler_static
16887
16888# Compiler flag to turn off builtin functions.
16889no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16890
16891# Compiler flag to allow reflexive dlopens.
16892export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16893
16894# Compiler flag to generate shared objects directly from archives.
16895whole_archive_flag_spec=$lt_whole_archive_flag_spec
16896
16897# Compiler flag to generate thread-safe objects.
16898thread_safe_flag_spec=$lt_thread_safe_flag_spec
16899
16900# Library versioning type.
16901version_type=$version_type
16902
16903# Format of library name prefix.
16904libname_spec=$lt_libname_spec
16905
16906# List of archive names. First name is the real one, the rest are links.
16907# The last name is the one that the linker finds with -lNAME.
16908library_names_spec=$lt_library_names_spec
16909
16910# The coded name of the library, if different from the real name.
16911soname_spec=$lt_soname_spec
16912
16913# Commands used to build and install an old-style archive.
16914RANLIB=$lt_RANLIB
16915old_archive_cmds=$lt_old_archive_cmds
16916old_postinstall_cmds=$lt_old_postinstall_cmds
16917old_postuninstall_cmds=$lt_old_postuninstall_cmds
16918
16919# Create an old-style archive from a shared archive.
16920old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16921
16922# Create a temporary old-style archive to link instead of a shared archive.
16923old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16924
16925# Commands used to build and install a shared archive.
16926archive_cmds=$lt_archive_cmds
16927archive_expsym_cmds=$lt_archive_expsym_cmds
16928postinstall_cmds=$lt_postinstall_cmds
16929postuninstall_cmds=$lt_postuninstall_cmds
16930
16931# Commands used to build a loadable module (assumed same as above if empty)
16932module_cmds=$lt_module_cmds
16933module_expsym_cmds=$lt_module_expsym_cmds
16934
16935# Commands to strip libraries.
16936old_striplib=$lt_old_striplib
16937striplib=$lt_striplib
16938
16939# Dependencies to place before the objects being linked to create a
16940# shared library.
16941predep_objects=$lt_predep_objects
16942
16943# Dependencies to place after the objects being linked to create a
16944# shared library.
16945postdep_objects=$lt_postdep_objects
16946
16947# Dependencies to place before the objects being linked to create a
16948# shared library.
16949predeps=$lt_predeps
16950
16951# Dependencies to place after the objects being linked to create a
16952# shared library.
16953postdeps=$lt_postdeps
16954
16955# The library search path used internally by the compiler when linking
16956# a shared library.
16957compiler_lib_search_path=$lt_compiler_lib_search_path
16958
16959# Method to check whether dependent libraries are shared objects.
16960deplibs_check_method=$lt_deplibs_check_method
16961
16962# Command to use when deplibs_check_method == file_magic.
16963file_magic_cmd=$lt_file_magic_cmd
16964
16965# Flag that allows shared libraries with undefined symbols to be built.
16966allow_undefined_flag=$lt_allow_undefined_flag
16967
16968# Flag that forces no undefined symbols.
16969no_undefined_flag=$lt_no_undefined_flag
16970
16971# Commands used to finish a libtool library installation in a directory.
16972finish_cmds=$lt_finish_cmds
16973
16974# Same as above, but a single script fragment to be evaled but not shown.
16975finish_eval=$lt_finish_eval
16976
16977# Take the output of nm and produce a listing of raw symbols and C names.
16978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16979
16980# Transform the output of nm in a proper C declaration
16981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16982
16983# Transform the output of nm in a C name address pair
16984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16985
16986# This is the shared library runtime path variable.
16987runpath_var=$runpath_var
16988
16989# This is the shared library path variable.
16990shlibpath_var=$shlibpath_var
16991
16992# Is shlibpath searched before the hard-coded library search path?
16993shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16994
16995# How to hardcode a shared library path into an executable.
16996hardcode_action=$hardcode_action
16997
16998# Whether we should hardcode library paths into libraries.
16999hardcode_into_libs=$hardcode_into_libs
17000
17001# Flag to hardcode \$libdir into a binary during linking.
17002# This must work even if \$libdir does not exist.
17003hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17004
17005# If ld is used when linking, flag to hardcode \$libdir into
17006# a binary during linking. This must work even if \$libdir does
17007# not exist.
17008hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17009
17010# Whether we need a single -rpath flag with a separated argument.
17011hardcode_libdir_separator=$lt_hardcode_libdir_separator
17012
17013# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17014# resulting binary.
17015hardcode_direct=$hardcode_direct
17016
17017# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17018# resulting binary.
17019hardcode_minus_L=$hardcode_minus_L
17020
17021# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17022# the resulting binary.
17023hardcode_shlibpath_var=$hardcode_shlibpath_var
17024
17025# Set to yes if building a shared library automatically hardcodes DIR into the library
17026# and all subsequent libraries and executables linked against it.
17027hardcode_automatic=$hardcode_automatic
17028
17029# Variables whose values should be saved in libtool wrapper scripts and
17030# restored at relink time.
17031variables_saved_for_relink="$variables_saved_for_relink"
17032
17033# Whether libtool must link a program against all its dependency libraries.
17034link_all_deplibs=$link_all_deplibs
17035
17036# Compile-time system search path for libraries
17037sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17038
17039# Run-time system search path for libraries
17040sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17041
17042# Fix the shell variable \$srcfile for the compiler.
17043fix_srcfile_path="$fix_srcfile_path"
17044
17045# Set to yes if exported symbols are required.
17046always_export_symbols=$always_export_symbols
17047
17048# The commands to list exported symbols.
17049export_symbols_cmds=$lt_export_symbols_cmds
17050
17051# The commands to extract the exported symbol list from a shared archive.
17052extract_expsyms_cmds=$lt_extract_expsyms_cmds
17053
17054# Symbols that should not be listed in the preloaded symbols.
17055exclude_expsyms=$lt_exclude_expsyms
17056
17057# Symbols that must always be exported.
17058include_expsyms=$lt_include_expsyms
17059
17060# ### END LIBTOOL CONFIG
17061
17062__EOF__
17063
17064
17065 case $host_os in
17066 aix3*)
17067 cat <<\EOF >> "$cfgfile"
17068
17069# AIX sometimes has problems with the GCC collect2 program. For some
17070# reason, if we set the COLLECT_NAMES environment variable, the problems
17071# vanish in a puff of smoke.
17072if test "X${COLLECT_NAMES+set}" != Xset; then
17073 COLLECT_NAMES=
17074 export COLLECT_NAMES
17075fi
17076EOF
17077 ;;
17078 esac
17079
17080 # We use sed instead of cat because bash on DJGPP gets confused if
17081 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17082 # text mode, it properly converts lines to CR/LF. This bash problem
17083 # is reportedly fixed, but why not run on old versions too?
17084 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17085
17086 mv -f "$cfgfile" "$ofile" || \
17087 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17088 chmod +x "$ofile"
17089
17090else
17091 # If there is no Makefile yet, we rely on a make rule to execute
17092 # `config.status --recheck' to rerun these tests and create the
17093 # libtool script then.
17094 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17095 if test -f "$ltmain_in"; then
17096 test -f Makefile && make "$ltmain"
17097 fi
17098fi
17099
17100
17101ac_ext=c
17102ac_cpp='$CPP $CPPFLAGS'
17103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17105ac_compiler_gnu=$ac_cv_c_compiler_gnu
17106
17107CC="$lt_save_CC"
17108
17109
17110# Check whether --with-tags was given.
17111if test "${with_tags+set}" = set; then
17112 withval=$with_tags; tagnames="$withval"
17113fi
17114
17115
17116if test -f "$ltmain" && test -n "$tagnames"; then
17117 if test ! -f "${ofile}"; then
17118 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17119echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17120 fi
17121
17122 if test -z "$LTCC"; then
17123 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17124 if test -z "$LTCC"; then
17125 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17126echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17127 else
17128 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17129echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17130 fi
17131 fi
17132 if test -z "$LTCFLAGS"; then
17133 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17134 fi
17135
17136 # Extract list of available tagged configurations in $ofile.
17137 # Note that this assumes the entire list is on one line.
17138 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17139
17140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17141 for tagname in $tagnames; do
17142 IFS="$lt_save_ifs"
17143 # Check whether tagname contains only valid characters
17144 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17145 "") ;;
17146 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17147echo "$as_me: error: invalid tag name: $tagname" >&2;}
17148 { (exit 1); exit 1; }; }
17149 ;;
17150 esac
17151
17152 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17153 then
17154 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17155echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17156 { (exit 1); exit 1; }; }
17157 fi
17158
17159 # Update the list of available tags.
17160 if test -n "$tagname"; then
17161 echo appending configuration tag \"$tagname\" to $ofile
17162
17163 case $tagname in
17164 CXX)
17165 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17166 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17167 (test "X$CXX" != "Xg++"))) ; then
17168 ac_ext=cpp
17169ac_cpp='$CXXCPP $CPPFLAGS'
17170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17173
17174
17175
17176
17177archive_cmds_need_lc_CXX=no
17178allow_undefined_flag_CXX=
17179always_export_symbols_CXX=no
17180archive_expsym_cmds_CXX=
17181export_dynamic_flag_spec_CXX=
17182hardcode_direct_CXX=no
17183hardcode_libdir_flag_spec_CXX=
17184hardcode_libdir_flag_spec_ld_CXX=
17185hardcode_libdir_separator_CXX=
17186hardcode_minus_L_CXX=no
17187hardcode_shlibpath_var_CXX=unsupported
17188hardcode_automatic_CXX=no
17189module_cmds_CXX=
17190module_expsym_cmds_CXX=
17191link_all_deplibs_CXX=unknown
17192old_archive_cmds_CXX=$old_archive_cmds
17193no_undefined_flag_CXX=
17194whole_archive_flag_spec_CXX=
17195enable_shared_with_static_runtimes_CXX=no
17196
17197# Dependencies to place before and after the object being linked:
17198predep_objects_CXX=
17199postdep_objects_CXX=
17200predeps_CXX=
17201postdeps_CXX=
17202compiler_lib_search_path_CXX=
17203
17204# Source file extension for C++ test sources.
17205ac_ext=cpp
17206
17207# Object file extension for compiled C++ test sources.
17208objext=o
17209objext_CXX=$objext
17210
17211# Code to be used in simple compile tests
17212lt_simple_compile_test_code="int some_variable = 0;\n"
17213
17214# Code to be used in simple link tests
17215lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17216
17217# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17218
17219# If no C compiler was specified, use CC.
17220LTCC=${LTCC-"$CC"}
17221
17222# If no C compiler flags were specified, use CFLAGS.
17223LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17224
17225# Allow CC to be a program name with arguments.
17226compiler=$CC
17227
17228
17229# save warnings/boilerplate of simple test code
17230ac_outfile=conftest.$ac_objext
17231printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17232eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17233_lt_compiler_boilerplate=`cat conftest.err`
17234$rm conftest*
17235
17236ac_outfile=conftest.$ac_objext
17237printf "$lt_simple_link_test_code" >conftest.$ac_ext
17238eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17239_lt_linker_boilerplate=`cat conftest.err`
17240$rm conftest*
17241
17242
17243# Allow CC to be a program name with arguments.
17244lt_save_CC=$CC
17245lt_save_LD=$LD
17246lt_save_GCC=$GCC
17247GCC=$GXX
17248lt_save_with_gnu_ld=$with_gnu_ld
17249lt_save_path_LD=$lt_cv_path_LD
17250if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17251 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17252else
17253 $as_unset lt_cv_prog_gnu_ld
17254fi
17255if test -n "${lt_cv_path_LDCXX+set}"; then
17256 lt_cv_path_LD=$lt_cv_path_LDCXX
17257else
17258 $as_unset lt_cv_path_LD
17259fi
17260test -z "${LDCXX+set}" || LD=$LDCXX
17261CC=${CXX-"c++"}
17262compiler=$CC
17263compiler_CXX=$CC
17264for cc_temp in $compiler""; do
17265 case $cc_temp in
17266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17268 \-*) ;;
17269 *) break;;
17270 esac
17271done
17272cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17273
17274
17275# We don't want -fno-exception wen compiling C++ code, so set the
17276# no_builtin_flag separately
17277if test "$GXX" = yes; then
17278 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17279else
17280 lt_prog_compiler_no_builtin_flag_CXX=
17281fi
17282
17283if test "$GXX" = yes; then
17284 # Set up default GNU C++ configuration
17285
17286
17287# Check whether --with-gnu-ld was given.
17288if test "${with_gnu_ld+set}" = set; then
17289 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17290else
17291 with_gnu_ld=no
17292fi
17293
17294ac_prog=ld
17295if test "$GCC" = yes; then
17296 # Check if gcc -print-prog-name=ld gives a path.
17297 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17298echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17299 case $host in
17300 *-*-mingw*)
17301 # gcc leaves a trailing carriage return which upsets mingw
17302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17303 *)
17304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17305 esac
17306 case $ac_prog in
17307 # Accept absolute paths.
17308 [\\/]* | ?:[\\/]*)
17309 re_direlt='/[^/][^/]*/\.\./'
17310 # Canonicalize the pathname of ld
17311 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17313 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17314 done
17315 test -z "$LD" && LD="$ac_prog"
17316 ;;
17317 "")
17318 # If it fails, then pretend we aren't using GCC.
17319 ac_prog=ld
17320 ;;
17321 *)
17322 # If it is relative, then search for the first ld in PATH.
17323 with_gnu_ld=unknown
17324 ;;
17325 esac
17326elif test "$with_gnu_ld" = yes; then
17327 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17328echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17329else
17330 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17331echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17332fi
17333if test "${lt_cv_path_LD+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17335else
17336 if test -z "$LD"; then
17337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17338 for ac_dir in $PATH; do
17339 IFS="$lt_save_ifs"
17340 test -z "$ac_dir" && ac_dir=.
17341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17342 lt_cv_path_LD="$ac_dir/$ac_prog"
17343 # Check to see if the program is GNU ld. I'd rather use --version,
17344 # but apparently some variants of GNU ld only accept -v.
17345 # Break only if it was the GNU/non-GNU ld that we prefer.
17346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17347 *GNU* | *'with BFD'*)
17348 test "$with_gnu_ld" != no && break
17349 ;;
17350 *)
17351 test "$with_gnu_ld" != yes && break
17352 ;;
17353 esac
17354 fi
17355 done
17356 IFS="$lt_save_ifs"
17357else
17358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17359fi
17360fi
17361
17362LD="$lt_cv_path_LD"
17363if test -n "$LD"; then
17364 { echo "$as_me:$LINENO: result: $LD" >&5
17365echo "${ECHO_T}$LD" >&6; }
17366else
17367 { echo "$as_me:$LINENO: result: no" >&5
17368echo "${ECHO_T}no" >&6; }
17369fi
17370test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17371echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17372 { (exit 1); exit 1; }; }
17373{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17374echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17375if test "${lt_cv_prog_gnu_ld+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17377else
17378 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17379case `$LD -v 2>&1 </dev/null` in
17380*GNU* | *'with BFD'*)
17381 lt_cv_prog_gnu_ld=yes
17382 ;;
17383*)
17384 lt_cv_prog_gnu_ld=no
17385 ;;
17386esac
17387fi
17388{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17389echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17390with_gnu_ld=$lt_cv_prog_gnu_ld
17391
17392
17393
17394 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17395 # archiving commands below assume that GNU ld is being used.
17396 if test "$with_gnu_ld" = yes; then
17397 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17398 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'
17399
17400 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17402
17403 # If archive_cmds runs LD, not CC, wlarc should be empty
17404 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17405 # investigate it a little bit more. (MM)
17406 wlarc='${wl}'
17407
17408 # ancient GNU ld didn't support --whole-archive et. al.
17409 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17410 grep 'no-whole-archive' > /dev/null; then
17411 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17412 else
17413 whole_archive_flag_spec_CXX=
17414 fi
17415 else
17416 with_gnu_ld=no
17417 wlarc=
17418
17419 # A generic and very simple default shared library creation
17420 # command for GNU C++ for the case where it uses the native
17421 # linker, instead of GNU ld. If possible, this setting should
17422 # overridden to take advantage of the native linker features on
17423 # the platform it is being used on.
17424 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17425 fi
17426
17427 # Commands to make compiler produce verbose output that lists
17428 # what "hidden" libraries, object files and flags are used when
17429 # linking a shared library.
17430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17431
17432else
17433 GXX=no
17434 with_gnu_ld=no
17435 wlarc=
17436fi
17437
17438# PORTME: fill in a description of your system's C++ link characteristics
17439{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17440echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17441ld_shlibs_CXX=yes
17442case $host_os in
17443 aix3*)
17444 # FIXME: insert proper C++ library support
17445 ld_shlibs_CXX=no
17446 ;;
17447 aix4* | aix5*)
17448 if test "$host_cpu" = ia64; then
17449 # On IA64, the linker does run time linking by default, so we don't
17450 # have to do anything special.
17451 aix_use_runtimelinking=no
17452 exp_sym_flag='-Bexport'
17453 no_entry_flag=""
17454 else
17455 aix_use_runtimelinking=no
17456
17457 # Test if we are trying to use run time linking or normal
17458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17459 # need to do runtime linking.
17460 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17461 for ld_flag in $LDFLAGS; do
17462 case $ld_flag in
17463 *-brtl*)
17464 aix_use_runtimelinking=yes
17465 break
17466 ;;
17467 esac
17468 done
17469 ;;
17470 esac
17471
17472 exp_sym_flag='-bexport'
17473 no_entry_flag='-bnoentry'
17474 fi
17475
17476 # When large executables or shared objects are built, AIX ld can
17477 # have problems creating the table of contents. If linking a library
17478 # or program results in "error TOC overflow" add -mminimal-toc to
17479 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17480 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17481
17482 archive_cmds_CXX=''
17483 hardcode_direct_CXX=yes
17484 hardcode_libdir_separator_CXX=':'
17485 link_all_deplibs_CXX=yes
17486
17487 if test "$GXX" = yes; then
17488 case $host_os in aix4.[012]|aix4.[012].*)
17489 # We only want to do this on AIX 4.2 and lower, the check
17490 # below for broken collect2 doesn't work under 4.3+
17491 collect2name=`${CC} -print-prog-name=collect2`
17492 if test -f "$collect2name" && \
17493 strings "$collect2name" | grep resolve_lib_name >/dev/null
17494 then
17495 # We have reworked collect2
17496 hardcode_direct_CXX=yes
17497 else
17498 # We have old collect2
17499 hardcode_direct_CXX=unsupported
17500 # It fails to find uninstalled libraries when the uninstalled
17501 # path is not listed in the libpath. Setting hardcode_minus_L
17502 # to unsupported forces relinking
17503 hardcode_minus_L_CXX=yes
17504 hardcode_libdir_flag_spec_CXX='-L$libdir'
17505 hardcode_libdir_separator_CXX=
17506 fi
17507 ;;
17508 esac
17509 shared_flag='-shared'
17510 if test "$aix_use_runtimelinking" = yes; then
17511 shared_flag="$shared_flag "'${wl}-G'
17512 fi
17513 else
17514 # not using gcc
17515 if test "$host_cpu" = ia64; then
17516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17517 # chokes on -Wl,-G. The following line is correct:
17518 shared_flag='-G'
17519 else
17520 if test "$aix_use_runtimelinking" = yes; then
17521 shared_flag='${wl}-G'
17522 else
17523 shared_flag='${wl}-bM:SRE'
17524 fi
17525 fi
17526 fi
17527
17528 # It seems that -bexpall does not export symbols beginning with
17529 # underscore (_), so it is better to generate a list of symbols to export.
17530 always_export_symbols_CXX=yes
17531 if test "$aix_use_runtimelinking" = yes; then
17532 # Warning - without using the other runtime loading flags (-brtl),
17533 # -berok will link without error, but may produce a broken library.
17534 allow_undefined_flag_CXX='-berok'
17535 # Determine the default libpath from the value encoded in an empty executable.
17536 cat >conftest.$ac_ext <<_ACEOF
17537/* confdefs.h. */
17538_ACEOF
17539cat confdefs.h >>conftest.$ac_ext
17540cat >>conftest.$ac_ext <<_ACEOF
17541/* end confdefs.h. */
17542
17543int
17544main ()
17545{
17546
17547 ;
17548 return 0;
17549}
17550_ACEOF
17551rm -f conftest.$ac_objext conftest$ac_exeext
17552if { (ac_try="$ac_link"
17553case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17556esac
17557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_link") 2>conftest.er1
17559 ac_status=$?
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000017564 (exit $ac_status); } && {
17565 test -z "$ac_cxx_werror_flag" ||
17566 test ! -s conftest.err
17567 } && test -s conftest$ac_exeext &&
17568 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017569
17570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17571}'`
17572# Check for a 64-bit object if we didn't find anything.
17573if 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; }
17574}'`; fi
17575else
17576 echo "$as_me: failed program was:" >&5
17577sed 's/^/| /' conftest.$ac_ext >&5
17578
17579
17580fi
17581
Edwin Török20176752008-10-22 09:56:27 +000017582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017583 conftest$ac_exeext conftest.$ac_ext
17584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17585
17586 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17587
17588 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"
17589 else
17590 if test "$host_cpu" = ia64; then
17591 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17592 allow_undefined_flag_CXX="-z nodefs"
17593 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"
17594 else
17595 # Determine the default libpath from the value encoded in an empty executable.
17596 cat >conftest.$ac_ext <<_ACEOF
17597/* confdefs.h. */
17598_ACEOF
17599cat confdefs.h >>conftest.$ac_ext
17600cat >>conftest.$ac_ext <<_ACEOF
17601/* end confdefs.h. */
17602
17603int
17604main ()
17605{
17606
17607 ;
17608 return 0;
17609}
17610_ACEOF
17611rm -f conftest.$ac_objext conftest$ac_exeext
17612if { (ac_try="$ac_link"
17613case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616esac
17617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_link") 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000017624 (exit $ac_status); } && {
17625 test -z "$ac_cxx_werror_flag" ||
17626 test ! -s conftest.err
17627 } && test -s conftest$ac_exeext &&
17628 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017629
17630aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17631}'`
17632# Check for a 64-bit object if we didn't find anything.
17633if 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; }
17634}'`; fi
17635else
17636 echo "$as_me: failed program was:" >&5
17637sed 's/^/| /' conftest.$ac_ext >&5
17638
17639
17640fi
17641
Edwin Török20176752008-10-22 09:56:27 +000017642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000017643 conftest$ac_exeext conftest.$ac_ext
17644if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17645
17646 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17647 # Warning - without using the other run time loading flags,
17648 # -berok will link without error, but may produce a broken library.
17649 no_undefined_flag_CXX=' ${wl}-bernotok'
17650 allow_undefined_flag_CXX=' ${wl}-berok'
17651 # Exported symbols can be pulled into shared objects from archives
17652 whole_archive_flag_spec_CXX='$convenience'
17653 archive_cmds_need_lc_CXX=yes
17654 # This is similar to how AIX traditionally builds its shared libraries.
17655 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'
17656 fi
17657 fi
17658 ;;
17659
17660 beos*)
17661 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17662 allow_undefined_flag_CXX=unsupported
17663 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17664 # support --undefined. This deserves some investigation. FIXME
17665 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17666 else
17667 ld_shlibs_CXX=no
17668 fi
17669 ;;
17670
17671 chorus*)
17672 case $cc_basename in
17673 *)
17674 # FIXME: insert proper C++ library support
17675 ld_shlibs_CXX=no
17676 ;;
17677 esac
17678 ;;
17679
17680 cygwin* | mingw* | pw32*)
17681 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17682 # as there is no search path for DLLs.
17683 hardcode_libdir_flag_spec_CXX='-L$libdir'
17684 allow_undefined_flag_CXX=unsupported
17685 always_export_symbols_CXX=no
17686 enable_shared_with_static_runtimes_CXX=yes
17687
17688 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17689 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'
17690 # If the export-symbols file already is a .def file (1st line
17691 # is EXPORTS), use it as is; otherwise, prepend...
17692 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17693 cp $export_symbols $output_objdir/$soname.def;
17694 else
17695 echo EXPORTS > $output_objdir/$soname.def;
17696 cat $export_symbols >> $output_objdir/$soname.def;
17697 fi~
17698 $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'
17699 else
17700 ld_shlibs_CXX=no
17701 fi
17702 ;;
17703 darwin* | rhapsody*)
17704 case $host_os in
17705 rhapsody* | darwin1.[012])
17706 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17707 ;;
17708 *) # Darwin 1.3 on
17709 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17710 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17711 else
17712 case ${MACOSX_DEPLOYMENT_TARGET} in
17713 10.[012])
17714 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17715 ;;
17716 10.*)
17717 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17718 ;;
17719 esac
17720 fi
17721 ;;
17722 esac
17723 archive_cmds_need_lc_CXX=no
17724 hardcode_direct_CXX=no
17725 hardcode_automatic_CXX=yes
17726 hardcode_shlibpath_var_CXX=unsupported
17727 whole_archive_flag_spec_CXX=''
17728 link_all_deplibs_CXX=yes
17729
17730 if test "$GXX" = yes ; then
17731 lt_int_apple_cc_single_mod=no
17732 output_verbose_link_cmd='echo'
17733 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17734 lt_int_apple_cc_single_mod=yes
17735 fi
17736 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17737 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17738 else
17739 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'
17740 fi
17741 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17742 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17743 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17744 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}'
17745 else
17746 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}'
17747 fi
17748 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}'
17749 else
17750 case $cc_basename in
17751 xlc*)
17752 output_verbose_link_cmd='echo'
17753 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'
17754 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17755 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17756 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}'
17757 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}'
17758 ;;
17759 *)
17760 ld_shlibs_CXX=no
17761 ;;
17762 esac
17763 fi
17764 ;;
17765
17766 dgux*)
17767 case $cc_basename in
17768 ec++*)
17769 # FIXME: insert proper C++ library support
17770 ld_shlibs_CXX=no
17771 ;;
17772 ghcx*)
17773 # Green Hills C++ Compiler
17774 # FIXME: insert proper C++ library support
17775 ld_shlibs_CXX=no
17776 ;;
17777 *)
17778 # FIXME: insert proper C++ library support
17779 ld_shlibs_CXX=no
17780 ;;
17781 esac
17782 ;;
17783 freebsd[12]*)
17784 # C++ shared libraries reported to be fairly broken before switch to ELF
17785 ld_shlibs_CXX=no
17786 ;;
17787 freebsd-elf*)
17788 archive_cmds_need_lc_CXX=no
17789 ;;
17790 freebsd* | kfreebsd*-gnu | dragonfly*)
17791 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17792 # conventions
17793 ld_shlibs_CXX=yes
17794 ;;
17795 gnu*)
17796 ;;
17797 hpux9*)
17798 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17799 hardcode_libdir_separator_CXX=:
17800 export_dynamic_flag_spec_CXX='${wl}-E'
17801 hardcode_direct_CXX=yes
17802 hardcode_minus_L_CXX=yes # Not in the search PATH,
17803 # but as the default
17804 # location of the library.
17805
17806 case $cc_basename in
17807 CC*)
17808 # FIXME: insert proper C++ library support
17809 ld_shlibs_CXX=no
17810 ;;
17811 aCC*)
17812 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'
17813 # Commands to make compiler produce verbose output that lists
17814 # what "hidden" libraries, object files and flags are used when
17815 # linking a shared library.
17816 #
17817 # There doesn't appear to be a way to prevent this compiler from
17818 # explicitly linking system object files so we need to strip them
17819 # from the output so that they don't get included in the library
17820 # dependencies.
17821 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'
17822 ;;
17823 *)
17824 if test "$GXX" = yes; then
17825 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'
17826 else
17827 # FIXME: insert proper C++ library support
17828 ld_shlibs_CXX=no
17829 fi
17830 ;;
17831 esac
17832 ;;
17833 hpux10*|hpux11*)
17834 if test $with_gnu_ld = no; then
17835 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17836 hardcode_libdir_separator_CXX=:
17837
17838 case $host_cpu in
17839 hppa*64*|ia64*)
17840 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17841 ;;
17842 *)
17843 export_dynamic_flag_spec_CXX='${wl}-E'
17844 ;;
17845 esac
17846 fi
17847 case $host_cpu in
17848 hppa*64*|ia64*)
17849 hardcode_direct_CXX=no
17850 hardcode_shlibpath_var_CXX=no
17851 ;;
17852 *)
17853 hardcode_direct_CXX=yes
17854 hardcode_minus_L_CXX=yes # Not in the search PATH,
17855 # but as the default
17856 # location of the library.
17857 ;;
17858 esac
17859
17860 case $cc_basename in
17861 CC*)
17862 # FIXME: insert proper C++ library support
17863 ld_shlibs_CXX=no
17864 ;;
17865 aCC*)
17866 case $host_cpu in
17867 hppa*64*)
17868 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17869 ;;
17870 ia64*)
17871 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17872 ;;
17873 *)
17874 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17875 ;;
17876 esac
17877 # Commands to make compiler produce verbose output that lists
17878 # what "hidden" libraries, object files and flags are used when
17879 # linking a shared library.
17880 #
17881 # There doesn't appear to be a way to prevent this compiler from
17882 # explicitly linking system object files so we need to strip them
17883 # from the output so that they don't get included in the library
17884 # dependencies.
17885 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'
17886 ;;
17887 *)
17888 if test "$GXX" = yes; then
17889 if test $with_gnu_ld = no; then
17890 case $host_cpu in
17891 hppa*64*)
17892 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17893 ;;
17894 ia64*)
17895 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17896 ;;
17897 *)
17898 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'
17899 ;;
17900 esac
17901 fi
17902 else
17903 # FIXME: insert proper C++ library support
17904 ld_shlibs_CXX=no
17905 fi
17906 ;;
17907 esac
17908 ;;
17909 interix3*)
17910 hardcode_direct_CXX=no
17911 hardcode_shlibpath_var_CXX=no
17912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17913 export_dynamic_flag_spec_CXX='${wl}-E'
17914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17915 # Instead, shared libraries are loaded at an image base (0x10000000 by
17916 # default) and relocated if they conflict, which is a slow very memory
17917 # consuming and fragmenting process. To avoid this, we pick a random,
17918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17919 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17920 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'
17921 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'
17922 ;;
17923 irix5* | irix6*)
17924 case $cc_basename in
17925 CC*)
17926 # SGI C++
17927 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'
17928
17929 # Archives containing C++ object files must be created using
17930 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17931 # necessary to make sure instantiated templates are included
17932 # in the archive.
17933 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17934 ;;
17935 *)
17936 if test "$GXX" = yes; then
17937 if test "$with_gnu_ld" = no; then
17938 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'
17939 else
17940 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'
17941 fi
17942 fi
17943 link_all_deplibs_CXX=yes
17944 ;;
17945 esac
17946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17947 hardcode_libdir_separator_CXX=:
17948 ;;
17949 linux*)
17950 case $cc_basename in
17951 KCC*)
17952 # Kuck and Associates, Inc. (KAI) C++ Compiler
17953
17954 # KCC will only create a shared library if the output file
17955 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17956 # to its proper name (with version) after linking.
17957 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'
17958 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'
17959 # Commands to make compiler produce verbose output that lists
17960 # what "hidden" libraries, object files and flags are used when
17961 # linking a shared library.
17962 #
17963 # There doesn't appear to be a way to prevent this compiler from
17964 # explicitly linking system object files so we need to strip them
17965 # from the output so that they don't get included in the library
17966 # dependencies.
17967 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'
17968
17969 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17970 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17971
17972 # Archives containing C++ object files must be created using
17973 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17974 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17975 ;;
17976 icpc*)
17977 # Intel C++
17978 with_gnu_ld=yes
17979 # version 8.0 and above of icpc choke on multiply defined symbols
17980 # if we add $predep_objects and $postdep_objects, however 7.1 and
17981 # earlier do not add the objects themselves.
17982 case `$CC -V 2>&1` in
17983 *"Version 7."*)
17984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17985 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'
17986 ;;
17987 *) # Version 8.0 or newer
17988 tmp_idyn=
17989 case $host_cpu in
17990 ia64*) tmp_idyn=' -i_dynamic';;
17991 esac
17992 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17993 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'
17994 ;;
17995 esac
17996 archive_cmds_need_lc_CXX=no
17997 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17998 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17999 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18000 ;;
18001 pgCC*)
18002 # Portland Group C++ compiler
18003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18004 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'
18005
18006 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18008 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'
18009 ;;
18010 cxx*)
18011 # Compaq C++
18012 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18013 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'
18014
18015 runpath_var=LD_RUN_PATH
18016 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18017 hardcode_libdir_separator_CXX=:
18018
18019 # Commands to make compiler produce verbose output that lists
18020 # what "hidden" libraries, object files and flags are used when
18021 # linking a shared library.
18022 #
18023 # There doesn't appear to be a way to prevent this compiler from
18024 # explicitly linking system object files so we need to strip them
18025 # from the output so that they don't get included in the library
18026 # dependencies.
18027 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'
18028 ;;
18029 esac
18030 ;;
18031 lynxos*)
18032 # FIXME: insert proper C++ library support
18033 ld_shlibs_CXX=no
18034 ;;
18035 m88k*)
18036 # FIXME: insert proper C++ library support
18037 ld_shlibs_CXX=no
18038 ;;
18039 mvs*)
18040 case $cc_basename in
18041 cxx*)
18042 # FIXME: insert proper C++ library support
18043 ld_shlibs_CXX=no
18044 ;;
18045 *)
18046 # FIXME: insert proper C++ library support
18047 ld_shlibs_CXX=no
18048 ;;
18049 esac
18050 ;;
18051 netbsd*)
18052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18053 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18054 wlarc=
18055 hardcode_libdir_flag_spec_CXX='-R$libdir'
18056 hardcode_direct_CXX=yes
18057 hardcode_shlibpath_var_CXX=no
18058 fi
18059 # Workaround some broken pre-1.5 toolchains
18060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18061 ;;
18062 openbsd2*)
18063 # C++ shared libraries are fairly broken
18064 ld_shlibs_CXX=no
18065 ;;
18066 openbsd*)
18067 hardcode_direct_CXX=yes
18068 hardcode_shlibpath_var_CXX=no
18069 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18070 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18071 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18072 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18073 export_dynamic_flag_spec_CXX='${wl}-E'
18074 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18075 fi
18076 output_verbose_link_cmd='echo'
18077 ;;
18078 osf3*)
18079 case $cc_basename in
18080 KCC*)
18081 # Kuck and Associates, Inc. (KAI) C++ Compiler
18082
18083 # KCC will only create a shared library if the output file
18084 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18085 # to its proper name (with version) after linking.
18086 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'
18087
18088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18089 hardcode_libdir_separator_CXX=:
18090
18091 # Archives containing C++ object files must be created using
18092 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18093 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18094
18095 ;;
18096 RCC*)
18097 # Rational C++ 2.4.1
18098 # FIXME: insert proper C++ library support
18099 ld_shlibs_CXX=no
18100 ;;
18101 cxx*)
18102 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18103 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'
18104
18105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18106 hardcode_libdir_separator_CXX=:
18107
18108 # Commands to make compiler produce verbose output that lists
18109 # what "hidden" libraries, object files and flags are used when
18110 # linking a shared library.
18111 #
18112 # There doesn't appear to be a way to prevent this compiler from
18113 # explicitly linking system object files so we need to strip them
18114 # from the output so that they don't get included in the library
18115 # dependencies.
18116 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'
18117 ;;
18118 *)
18119 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18120 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18121 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'
18122
18123 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18124 hardcode_libdir_separator_CXX=:
18125
18126 # Commands to make compiler produce verbose output that lists
18127 # what "hidden" libraries, object files and flags are used when
18128 # linking a shared library.
18129 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18130
18131 else
18132 # FIXME: insert proper C++ library support
18133 ld_shlibs_CXX=no
18134 fi
18135 ;;
18136 esac
18137 ;;
18138 osf4* | osf5*)
18139 case $cc_basename in
18140 KCC*)
18141 # Kuck and Associates, Inc. (KAI) C++ Compiler
18142
18143 # KCC will only create a shared library if the output file
18144 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18145 # to its proper name (with version) after linking.
18146 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'
18147
18148 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18149 hardcode_libdir_separator_CXX=:
18150
18151 # Archives containing C++ object files must be created using
18152 # the KAI C++ compiler.
18153 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18154 ;;
18155 RCC*)
18156 # Rational C++ 2.4.1
18157 # FIXME: insert proper C++ library support
18158 ld_shlibs_CXX=no
18159 ;;
18160 cxx*)
18161 allow_undefined_flag_CXX=' -expect_unresolved \*'
18162 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'
18163 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18164 echo "-hidden">> $lib.exp~
18165 $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~
18166 $rm $lib.exp'
18167
18168 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18169 hardcode_libdir_separator_CXX=:
18170
18171 # Commands to make compiler produce verbose output that lists
18172 # what "hidden" libraries, object files and flags are used when
18173 # linking a shared library.
18174 #
18175 # There doesn't appear to be a way to prevent this compiler from
18176 # explicitly linking system object files so we need to strip them
18177 # from the output so that they don't get included in the library
18178 # dependencies.
18179 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'
18180 ;;
18181 *)
18182 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18183 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18184 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'
18185
18186 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18187 hardcode_libdir_separator_CXX=:
18188
18189 # Commands to make compiler produce verbose output that lists
18190 # what "hidden" libraries, object files and flags are used when
18191 # linking a shared library.
18192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18193
18194 else
18195 # FIXME: insert proper C++ library support
18196 ld_shlibs_CXX=no
18197 fi
18198 ;;
18199 esac
18200 ;;
18201 psos*)
18202 # FIXME: insert proper C++ library support
18203 ld_shlibs_CXX=no
18204 ;;
18205 sunos4*)
18206 case $cc_basename in
18207 CC*)
18208 # Sun C++ 4.x
18209 # FIXME: insert proper C++ library support
18210 ld_shlibs_CXX=no
18211 ;;
18212 lcc*)
18213 # Lucid
18214 # FIXME: insert proper C++ library support
18215 ld_shlibs_CXX=no
18216 ;;
18217 *)
18218 # FIXME: insert proper C++ library support
18219 ld_shlibs_CXX=no
18220 ;;
18221 esac
18222 ;;
18223 solaris*)
18224 case $cc_basename in
18225 CC*)
18226 # Sun C++ 4.2, 5.x and Centerline C++
18227 archive_cmds_need_lc_CXX=yes
18228 no_undefined_flag_CXX=' -zdefs'
18229 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18230 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18231 $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'
18232
18233 hardcode_libdir_flag_spec_CXX='-R$libdir'
18234 hardcode_shlibpath_var_CXX=no
18235 case $host_os in
18236 solaris2.[0-5] | solaris2.[0-5].*) ;;
18237 *)
18238 # The C++ compiler is used as linker so we must use $wl
18239 # flag to pass the commands to the underlying system
18240 # linker. We must also pass each convience library through
18241 # to the system linker between allextract/defaultextract.
18242 # The C++ compiler will combine linker options so we
18243 # cannot just pass the convience library names through
18244 # without $wl.
18245 # Supported since Solaris 2.6 (maybe 2.5.1?)
18246 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'
18247 ;;
18248 esac
18249 link_all_deplibs_CXX=yes
18250
18251 output_verbose_link_cmd='echo'
18252
18253 # Archives containing C++ object files must be created using
18254 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18255 # necessary to make sure instantiated templates are included
18256 # in the archive.
18257 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18258 ;;
18259 gcx*)
18260 # Green Hills C++ Compiler
18261 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18262
18263 # The C++ compiler must be used to create the archive.
18264 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18265 ;;
18266 *)
18267 # GNU C++ compiler with Solaris linker
18268 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18269 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18270 if $CC --version | grep -v '^2\.7' > /dev/null; then
18271 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18272 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18273 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18274
18275 # Commands to make compiler produce verbose output that lists
18276 # what "hidden" libraries, object files and flags are used when
18277 # linking a shared library.
18278 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18279 else
18280 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18281 # platform.
18282 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18283 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18284 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18285
18286 # Commands to make compiler produce verbose output that lists
18287 # what "hidden" libraries, object files and flags are used when
18288 # linking a shared library.
18289 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18290 fi
18291
18292 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18293 fi
18294 ;;
18295 esac
18296 ;;
18297 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18298 no_undefined_flag_CXX='${wl}-z,text'
18299 archive_cmds_need_lc_CXX=no
18300 hardcode_shlibpath_var_CXX=no
18301 runpath_var='LD_RUN_PATH'
18302
18303 case $cc_basename in
18304 CC*)
18305 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18306 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18307 ;;
18308 *)
18309 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18310 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18311 ;;
18312 esac
18313 ;;
18314 sysv5* | sco3.2v5* | sco5v6*)
18315 # Note: We can NOT use -z defs as we might desire, because we do not
18316 # link with -lc, and that would cause any symbols used from libc to
18317 # always be unresolved, which means just about no library would
18318 # ever link correctly. If we're not using GNU ld we use -z text
18319 # though, which does catch some bad symbols but isn't as heavy-handed
18320 # as -z defs.
18321 # For security reasons, it is highly recommended that you always
18322 # use absolute paths for naming shared libraries, and exclude the
18323 # DT_RUNPATH tag from executables and libraries. But doing so
18324 # requires that you compile everything twice, which is a pain.
18325 # So that behaviour is only enabled if SCOABSPATH is set to a
18326 # non-empty value in the environment. Most likely only useful for
18327 # creating official distributions of packages.
18328 # This is a hack until libtool officially supports absolute path
18329 # names for shared libraries.
18330 no_undefined_flag_CXX='${wl}-z,text'
18331 allow_undefined_flag_CXX='${wl}-z,nodefs'
18332 archive_cmds_need_lc_CXX=no
18333 hardcode_shlibpath_var_CXX=no
18334 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18335 hardcode_libdir_separator_CXX=':'
18336 link_all_deplibs_CXX=yes
18337 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18338 runpath_var='LD_RUN_PATH'
18339
18340 case $cc_basename in
18341 CC*)
18342 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18343 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18344 ;;
18345 *)
18346 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18347 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18348 ;;
18349 esac
18350 ;;
18351 tandem*)
18352 case $cc_basename in
18353 NCC*)
18354 # NonStop-UX NCC 3.20
18355 # FIXME: insert proper C++ library support
18356 ld_shlibs_CXX=no
18357 ;;
18358 *)
18359 # FIXME: insert proper C++ library support
18360 ld_shlibs_CXX=no
18361 ;;
18362 esac
18363 ;;
18364 vxworks*)
18365 # FIXME: insert proper C++ library support
18366 ld_shlibs_CXX=no
18367 ;;
18368 *)
18369 # FIXME: insert proper C++ library support
18370 ld_shlibs_CXX=no
18371 ;;
18372esac
18373{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18374echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18375test "$ld_shlibs_CXX" = no && can_build_shared=no
18376
18377GCC_CXX="$GXX"
18378LD_CXX="$LD"
18379
Edwin Török20176752008-10-22 09:56:27 +000018380## CAVEAT EMPTOR:
18381## There is no encapsulation within the following macros, do not change
18382## the running order or otherwise move them around unless you know exactly
18383## what you are doing...
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018384
18385cat > conftest.$ac_ext <<EOF
18386class Foo
18387{
18388public:
18389 Foo (void) { a = 0; }
18390private:
18391 int a;
18392};
18393EOF
18394
18395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396 (eval $ac_compile) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; then
18400 # Parse the compiler output and extract the necessary
18401 # objects, libraries and library flags.
18402
18403 # Sentinel used to keep track of whether or not we are before
18404 # the conftest object file.
18405 pre_test_object_deps_done=no
18406
18407 # The `*' in the case matches for architectures that use `case' in
18408 # $output_verbose_cmd can trigger glob expansion during the loop
18409 # eval without this substitution.
18410 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18411
18412 for p in `eval $output_verbose_link_cmd`; do
18413 case $p in
18414
18415 -L* | -R* | -l*)
18416 # Some compilers place space between "-{L,R}" and the path.
18417 # Remove the space.
18418 if test $p = "-L" \
18419 || test $p = "-R"; then
18420 prev=$p
18421 continue
18422 else
18423 prev=
18424 fi
18425
18426 if test "$pre_test_object_deps_done" = no; then
18427 case $p in
18428 -L* | -R*)
18429 # Internal compiler library paths should come after those
18430 # provided the user. The postdeps already come after the
18431 # user supplied libs so there is no need to process them.
18432 if test -z "$compiler_lib_search_path_CXX"; then
18433 compiler_lib_search_path_CXX="${prev}${p}"
18434 else
18435 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18436 fi
18437 ;;
18438 # The "-l" case would never come before the object being
18439 # linked, so don't bother handling this case.
18440 esac
18441 else
18442 if test -z "$postdeps_CXX"; then
18443 postdeps_CXX="${prev}${p}"
18444 else
18445 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18446 fi
18447 fi
18448 ;;
18449
18450 *.$objext)
18451 # This assumes that the test object file only shows up
18452 # once in the compiler output.
18453 if test "$p" = "conftest.$objext"; then
18454 pre_test_object_deps_done=yes
18455 continue
18456 fi
18457
18458 if test "$pre_test_object_deps_done" = no; then
18459 if test -z "$predep_objects_CXX"; then
18460 predep_objects_CXX="$p"
18461 else
18462 predep_objects_CXX="$predep_objects_CXX $p"
18463 fi
18464 else
18465 if test -z "$postdep_objects_CXX"; then
18466 postdep_objects_CXX="$p"
18467 else
18468 postdep_objects_CXX="$postdep_objects_CXX $p"
18469 fi
18470 fi
18471 ;;
18472
18473 *) ;; # Ignore the rest.
18474
18475 esac
18476 done
18477
18478 # Clean up.
18479 rm -f a.out a.exe
18480else
18481 echo "libtool.m4: error: problem compiling CXX test program"
18482fi
18483
18484$rm -f confest.$objext
18485
18486# PORTME: override above test on systems where it is broken
18487case $host_os in
18488interix3*)
18489 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18490 # hack all around it, let's just trust "g++" to DTRT.
18491 predep_objects_CXX=
18492 postdep_objects_CXX=
18493 postdeps_CXX=
18494 ;;
18495
18496solaris*)
18497 case $cc_basename in
18498 CC*)
18499 # Adding this requires a known-good setup of shared libraries for
18500 # Sun compiler versions before 5.6, else PIC objects from an old
18501 # archive will be linked into the output, leading to subtle bugs.
18502 postdeps_CXX='-lCstd -lCrun'
18503 ;;
18504 esac
18505 ;;
18506esac
18507
18508
18509case " $postdeps_CXX " in
18510*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18511esac
18512
18513lt_prog_compiler_wl_CXX=
18514lt_prog_compiler_pic_CXX=
18515lt_prog_compiler_static_CXX=
18516
18517{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18518echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18519
18520 # C++ specific cases for pic, static, wl, etc.
18521 if test "$GXX" = yes; then
18522 lt_prog_compiler_wl_CXX='-Wl,'
18523 lt_prog_compiler_static_CXX='-static'
18524
18525 case $host_os in
18526 aix*)
18527 # All AIX code is PIC.
18528 if test "$host_cpu" = ia64; then
18529 # AIX 5 now supports IA64 processor
18530 lt_prog_compiler_static_CXX='-Bstatic'
18531 fi
18532 ;;
18533 amigaos*)
18534 # FIXME: we need at least 68020 code to build shared libraries, but
18535 # adding the `-m68020' flag to GCC prevents building anything better,
18536 # like `-m68040'.
18537 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18538 ;;
18539 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18540 # PIC is the default for these OSes.
18541 ;;
18542 mingw* | os2* | pw32*)
18543 # This hack is so that the source file can tell whether it is being
18544 # built for inclusion in a dll (and should export symbols for example).
18545 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18546 ;;
18547 darwin* | rhapsody*)
18548 # PIC is the default on this platform
18549 # Common symbols not allowed in MH_DYLIB files
18550 lt_prog_compiler_pic_CXX='-fno-common'
18551 ;;
18552 *djgpp*)
18553 # DJGPP does not support shared libraries at all
18554 lt_prog_compiler_pic_CXX=
18555 ;;
18556 interix3*)
18557 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18558 # Instead, we relocate shared libraries at runtime.
18559 ;;
18560 sysv4*MP*)
18561 if test -d /usr/nec; then
18562 lt_prog_compiler_pic_CXX=-Kconform_pic
18563 fi
18564 ;;
18565 hpux*)
18566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18567 # not for PA HP-UX.
18568 case $host_cpu in
18569 hppa*64*|ia64*)
18570 ;;
18571 *)
18572 lt_prog_compiler_pic_CXX='-fPIC'
18573 ;;
18574 esac
18575 ;;
18576 *)
18577 lt_prog_compiler_pic_CXX='-fPIC'
18578 ;;
18579 esac
18580 else
18581 case $host_os in
18582 aix4* | aix5*)
18583 # All AIX code is PIC.
18584 if test "$host_cpu" = ia64; then
18585 # AIX 5 now supports IA64 processor
18586 lt_prog_compiler_static_CXX='-Bstatic'
18587 else
18588 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18589 fi
18590 ;;
18591 chorus*)
18592 case $cc_basename in
18593 cxch68*)
18594 # Green Hills C++ Compiler
18595 # _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"
18596 ;;
18597 esac
18598 ;;
18599 darwin*)
18600 # PIC is the default on this platform
18601 # Common symbols not allowed in MH_DYLIB files
18602 case $cc_basename in
18603 xlc*)
18604 lt_prog_compiler_pic_CXX='-qnocommon'
18605 lt_prog_compiler_wl_CXX='-Wl,'
18606 ;;
18607 esac
18608 ;;
18609 dgux*)
18610 case $cc_basename in
18611 ec++*)
18612 lt_prog_compiler_pic_CXX='-KPIC'
18613 ;;
18614 ghcx*)
18615 # Green Hills C++ Compiler
18616 lt_prog_compiler_pic_CXX='-pic'
18617 ;;
18618 *)
18619 ;;
18620 esac
18621 ;;
18622 freebsd* | kfreebsd*-gnu | dragonfly*)
18623 # FreeBSD uses GNU C++
18624 ;;
18625 hpux9* | hpux10* | hpux11*)
18626 case $cc_basename in
18627 CC*)
18628 lt_prog_compiler_wl_CXX='-Wl,'
18629 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18630 if test "$host_cpu" != ia64; then
18631 lt_prog_compiler_pic_CXX='+Z'
18632 fi
18633 ;;
18634 aCC*)
18635 lt_prog_compiler_wl_CXX='-Wl,'
18636 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18637 case $host_cpu in
18638 hppa*64*|ia64*)
18639 # +Z the default
18640 ;;
18641 *)
18642 lt_prog_compiler_pic_CXX='+Z'
18643 ;;
18644 esac
18645 ;;
18646 *)
18647 ;;
18648 esac
18649 ;;
18650 interix*)
18651 # This is c89, which is MS Visual C++ (no shared libs)
18652 # Anyone wants to do a port?
18653 ;;
18654 irix5* | irix6* | nonstopux*)
18655 case $cc_basename in
18656 CC*)
18657 lt_prog_compiler_wl_CXX='-Wl,'
18658 lt_prog_compiler_static_CXX='-non_shared'
18659 # CC pic flag -KPIC is the default.
18660 ;;
18661 *)
18662 ;;
18663 esac
18664 ;;
18665 linux*)
18666 case $cc_basename in
18667 KCC*)
18668 # KAI C++ Compiler
18669 lt_prog_compiler_wl_CXX='--backend -Wl,'
18670 lt_prog_compiler_pic_CXX='-fPIC'
18671 ;;
18672 icpc* | ecpc*)
18673 # Intel C++
18674 lt_prog_compiler_wl_CXX='-Wl,'
18675 lt_prog_compiler_pic_CXX='-KPIC'
18676 lt_prog_compiler_static_CXX='-static'
18677 ;;
18678 pgCC*)
18679 # Portland Group C++ compiler.
18680 lt_prog_compiler_wl_CXX='-Wl,'
18681 lt_prog_compiler_pic_CXX='-fpic'
18682 lt_prog_compiler_static_CXX='-Bstatic'
18683 ;;
18684 cxx*)
18685 # Compaq C++
18686 # Make sure the PIC flag is empty. It appears that all Alpha
18687 # Linux and Compaq Tru64 Unix objects are PIC.
18688 lt_prog_compiler_pic_CXX=
18689 lt_prog_compiler_static_CXX='-non_shared'
18690 ;;
18691 *)
18692 ;;
18693 esac
18694 ;;
18695 lynxos*)
18696 ;;
18697 m88k*)
18698 ;;
18699 mvs*)
18700 case $cc_basename in
18701 cxx*)
18702 lt_prog_compiler_pic_CXX='-W c,exportall'
18703 ;;
18704 *)
18705 ;;
18706 esac
18707 ;;
18708 netbsd*)
18709 ;;
18710 osf3* | osf4* | osf5*)
18711 case $cc_basename in
18712 KCC*)
18713 lt_prog_compiler_wl_CXX='--backend -Wl,'
18714 ;;
18715 RCC*)
18716 # Rational C++ 2.4.1
18717 lt_prog_compiler_pic_CXX='-pic'
18718 ;;
18719 cxx*)
18720 # Digital/Compaq C++
18721 lt_prog_compiler_wl_CXX='-Wl,'
18722 # Make sure the PIC flag is empty. It appears that all Alpha
18723 # Linux and Compaq Tru64 Unix objects are PIC.
18724 lt_prog_compiler_pic_CXX=
18725 lt_prog_compiler_static_CXX='-non_shared'
18726 ;;
18727 *)
18728 ;;
18729 esac
18730 ;;
18731 psos*)
18732 ;;
18733 solaris*)
18734 case $cc_basename in
18735 CC*)
18736 # Sun C++ 4.2, 5.x and Centerline C++
18737 lt_prog_compiler_pic_CXX='-KPIC'
18738 lt_prog_compiler_static_CXX='-Bstatic'
18739 lt_prog_compiler_wl_CXX='-Qoption ld '
18740 ;;
18741 gcx*)
18742 # Green Hills C++ Compiler
18743 lt_prog_compiler_pic_CXX='-PIC'
18744 ;;
18745 *)
18746 ;;
18747 esac
18748 ;;
18749 sunos4*)
18750 case $cc_basename in
18751 CC*)
18752 # Sun C++ 4.x
18753 lt_prog_compiler_pic_CXX='-pic'
18754 lt_prog_compiler_static_CXX='-Bstatic'
18755 ;;
18756 lcc*)
18757 # Lucid
18758 lt_prog_compiler_pic_CXX='-pic'
18759 ;;
18760 *)
18761 ;;
18762 esac
18763 ;;
18764 tandem*)
18765 case $cc_basename in
18766 NCC*)
18767 # NonStop-UX NCC 3.20
18768 lt_prog_compiler_pic_CXX='-KPIC'
18769 ;;
18770 *)
18771 ;;
18772 esac
18773 ;;
18774 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18775 case $cc_basename in
18776 CC*)
18777 lt_prog_compiler_wl_CXX='-Wl,'
18778 lt_prog_compiler_pic_CXX='-KPIC'
18779 lt_prog_compiler_static_CXX='-Bstatic'
18780 ;;
18781 esac
18782 ;;
18783 vxworks*)
18784 ;;
18785 *)
18786 lt_prog_compiler_can_build_shared_CXX=no
18787 ;;
18788 esac
18789 fi
18790
18791{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18792echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18793
18794#
18795# Check to make sure the PIC flag actually works.
18796#
18797if test -n "$lt_prog_compiler_pic_CXX"; then
18798
18799{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18800echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18801if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18803else
18804 lt_prog_compiler_pic_works_CXX=no
18805 ac_outfile=conftest.$ac_objext
18806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18807 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18808 # Insert the option either (1) after the last *FLAGS variable, or
18809 # (2) before a word containing "conftest.", or (3) at the end.
18810 # Note that $ac_compile itself does not contain backslashes and begins
18811 # with a dollar sign (not a hyphen), so the echo should work correctly.
18812 # The option is referenced via a variable to avoid confusing sed.
18813 lt_compile=`echo "$ac_compile" | $SED \
18814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18816 -e 's:$: $lt_compiler_flag:'`
Edwin Török20176752008-10-22 09:56:27 +000018817 (eval echo "\"\$as_me:18817: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018818 (eval "$lt_compile" 2>conftest.err)
18819 ac_status=$?
18820 cat conftest.err >&5
Edwin Török20176752008-10-22 09:56:27 +000018821 echo "$as_me:18821: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018822 if (exit $ac_status) && test -s "$ac_outfile"; then
18823 # The compiler can only warn and ignore the option if not recognized
18824 # So say no if there are warnings other than the usual output.
18825 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18828 lt_prog_compiler_pic_works_CXX=yes
18829 fi
18830 fi
18831 $rm conftest*
18832
18833fi
18834{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18835echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18836
18837if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18838 case $lt_prog_compiler_pic_CXX in
18839 "" | " "*) ;;
18840 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18841 esac
18842else
18843 lt_prog_compiler_pic_CXX=
18844 lt_prog_compiler_can_build_shared_CXX=no
18845fi
18846
18847fi
18848case $host_os in
18849 # For platforms which do not support PIC, -DPIC is meaningless:
18850 *djgpp*)
18851 lt_prog_compiler_pic_CXX=
18852 ;;
18853 *)
18854 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18855 ;;
18856esac
18857
18858#
18859# Check to make sure the static flag actually works.
18860#
18861wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18862{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18863echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18864if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18866else
18867 lt_prog_compiler_static_works_CXX=no
18868 save_LDFLAGS="$LDFLAGS"
18869 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18870 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18871 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18872 # The linker can only warn and ignore the option if not recognized
18873 # So say no if there are warnings
18874 if test -s conftest.err; then
18875 # Append any errors to the config.log.
18876 cat conftest.err 1>&5
18877 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18879 if diff conftest.exp conftest.er2 >/dev/null; then
18880 lt_prog_compiler_static_works_CXX=yes
18881 fi
18882 else
18883 lt_prog_compiler_static_works_CXX=yes
18884 fi
18885 fi
18886 $rm conftest*
18887 LDFLAGS="$save_LDFLAGS"
18888
18889fi
18890{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18891echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18892
18893if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18894 :
18895else
18896 lt_prog_compiler_static_CXX=
18897fi
18898
18899
18900{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18901echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18902if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18904else
18905 lt_cv_prog_compiler_c_o_CXX=no
18906 $rm -r conftest 2>/dev/null
18907 mkdir conftest
18908 cd conftest
18909 mkdir out
18910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18911
18912 lt_compiler_flag="-o out/conftest2.$ac_objext"
18913 # Insert the option either (1) after the last *FLAGS variable, or
18914 # (2) before a word containing "conftest.", or (3) at the end.
18915 # Note that $ac_compile itself does not contain backslashes and begins
18916 # with a dollar sign (not a hyphen), so the echo should work correctly.
18917 lt_compile=`echo "$ac_compile" | $SED \
18918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18920 -e 's:$: $lt_compiler_flag:'`
Edwin Török20176752008-10-22 09:56:27 +000018921 (eval echo "\"\$as_me:18921: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018922 (eval "$lt_compile" 2>out/conftest.err)
18923 ac_status=$?
18924 cat out/conftest.err >&5
Edwin Török20176752008-10-22 09:56:27 +000018925 echo "$as_me:18925: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18927 then
18928 # The compiler can only warn and ignore the option if not recognized
18929 # So say no if there are warnings
18930 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18933 lt_cv_prog_compiler_c_o_CXX=yes
18934 fi
18935 fi
18936 chmod u+w . 2>&5
18937 $rm conftest*
18938 # SGI C++ compiler will create directory out/ii_files/ for
18939 # template instantiation
18940 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18941 $rm out/* && rmdir out
18942 cd ..
18943 rmdir conftest
18944 $rm conftest*
18945
18946fi
18947{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18948echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18949
18950
18951hard_links="nottested"
18952if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18953 # do not overwrite the value of need_locks provided by the user
18954 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18955echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18956 hard_links=yes
18957 $rm conftest*
18958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18959 touch conftest.a
18960 ln conftest.a conftest.b 2>&5 || hard_links=no
18961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18962 { echo "$as_me:$LINENO: result: $hard_links" >&5
18963echo "${ECHO_T}$hard_links" >&6; }
18964 if test "$hard_links" = no; then
18965 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18966echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18967 need_locks=warn
18968 fi
18969else
18970 need_locks=no
18971fi
18972
18973{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18974echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18975
18976 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18977 case $host_os in
18978 aix4* | aix5*)
18979 # If we're using GNU nm, then we don't want the "-C" option.
18980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18981 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18982 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'
18983 else
18984 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'
18985 fi
18986 ;;
18987 pw32*)
18988 export_symbols_cmds_CXX="$ltdll_cmds"
18989 ;;
18990 cygwin* | mingw*)
18991 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'
18992 ;;
18993 *)
18994 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18995 ;;
18996 esac
18997
18998{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18999echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19000test "$ld_shlibs_CXX" = no && can_build_shared=no
19001
19002#
19003# Do we need to explicitly link libc?
19004#
19005case "x$archive_cmds_need_lc_CXX" in
19006x|xyes)
19007 # Assume -lc should be added
19008 archive_cmds_need_lc_CXX=yes
19009
19010 if test "$enable_shared" = yes && test "$GCC" = yes; then
19011 case $archive_cmds_CXX in
19012 *'~'*)
19013 # FIXME: we may have to deal with multi-command sequences.
19014 ;;
19015 '$CC '*)
19016 # Test whether the compiler implicitly links with -lc since on some
19017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19018 # to ld, don't add -lc before -lgcc.
19019 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19020echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19021 $rm conftest*
19022 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19023
19024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19025 (eval $ac_compile) 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } 2>conftest.err; then
19029 soname=conftest
19030 lib=conftest
19031 libobjs=conftest.$ac_objext
19032 deplibs=
19033 wl=$lt_prog_compiler_wl_CXX
19034 pic_flag=$lt_prog_compiler_pic_CXX
19035 compiler_flags=-v
19036 linker_flags=-v
19037 verstring=
19038 output_objdir=.
19039 libname=conftest
19040 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19041 allow_undefined_flag_CXX=
19042 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19043 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }
19047 then
19048 archive_cmds_need_lc_CXX=no
19049 else
19050 archive_cmds_need_lc_CXX=yes
19051 fi
19052 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19053 else
19054 cat conftest.err 1>&5
19055 fi
19056 $rm conftest*
19057 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19058echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19059 ;;
19060 esac
19061 fi
19062 ;;
19063esac
19064
19065{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19066echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19067library_names_spec=
19068libname_spec='lib$name'
19069soname_spec=
19070shrext_cmds=".so"
19071postinstall_cmds=
19072postuninstall_cmds=
19073finish_cmds=
19074finish_eval=
19075shlibpath_var=
19076shlibpath_overrides_runpath=unknown
19077version_type=none
19078dynamic_linker="$host_os ld.so"
19079sys_lib_dlsearch_path_spec="/lib /usr/lib"
19080if test "$GCC" = yes; then
19081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19082 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19083 # if the path contains ";" then we assume it to be the separator
19084 # otherwise default to the standard path separator (i.e. ":") - it is
19085 # assumed that no part of a normal pathname contains ";" but that should
19086 # okay in the real world where ";" in dirpaths is itself problematic.
19087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19088 else
19089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19090 fi
19091else
19092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19093fi
19094need_lib_prefix=unknown
19095hardcode_into_libs=no
19096
19097# when you set need_version to no, make sure it does not cause -set_version
19098# flags to be left without arguments
19099need_version=unknown
19100
19101case $host_os in
19102aix3*)
19103 version_type=linux
19104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19105 shlibpath_var=LIBPATH
19106
19107 # AIX 3 has no versioning support, so we append a major version to the name.
19108 soname_spec='${libname}${release}${shared_ext}$major'
19109 ;;
19110
19111aix4* | aix5*)
19112 version_type=linux
19113 need_lib_prefix=no
19114 need_version=no
19115 hardcode_into_libs=yes
19116 if test "$host_cpu" = ia64; then
19117 # AIX 5 supports IA64
19118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19119 shlibpath_var=LD_LIBRARY_PATH
19120 else
19121 # With GCC up to 2.95.x, collect2 would create an import file
19122 # for dependence libraries. The import file would start with
19123 # the line `#! .'. This would cause the generated library to
19124 # depend on `.', always an invalid library. This was fixed in
19125 # development snapshots of GCC prior to 3.0.
19126 case $host_os in
19127 aix4 | aix4.[01] | aix4.[01].*)
19128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19129 echo ' yes '
19130 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19131 :
19132 else
19133 can_build_shared=no
19134 fi
19135 ;;
19136 esac
19137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19138 # soname into executable. Probably we can add versioning support to
19139 # collect2, so additional links can be useful in future.
19140 if test "$aix_use_runtimelinking" = yes; then
19141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19142 # instead of lib<name>.a to let people know that these are not
19143 # typical AIX shared libraries.
19144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19145 else
19146 # We preserve .a as extension for shared libraries through AIX4.2
19147 # and later when we are not doing run time linking.
19148 library_names_spec='${libname}${release}.a $libname.a'
19149 soname_spec='${libname}${release}${shared_ext}$major'
19150 fi
19151 shlibpath_var=LIBPATH
19152 fi
19153 ;;
19154
19155amigaos*)
19156 library_names_spec='$libname.ixlibrary $libname.a'
19157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19158 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'
19159 ;;
19160
19161beos*)
19162 library_names_spec='${libname}${shared_ext}'
19163 dynamic_linker="$host_os ld.so"
19164 shlibpath_var=LIBRARY_PATH
19165 ;;
19166
19167bsdi[45]*)
19168 version_type=linux
19169 need_version=no
19170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19171 soname_spec='${libname}${release}${shared_ext}$major'
19172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19173 shlibpath_var=LD_LIBRARY_PATH
19174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19176 # the default ld.so.conf also contains /usr/contrib/lib and
19177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19178 # libtool to hard-code these into programs
19179 ;;
19180
19181cygwin* | mingw* | pw32*)
19182 version_type=windows
19183 shrext_cmds=".dll"
19184 need_version=no
19185 need_lib_prefix=no
19186
19187 case $GCC,$host_os in
19188 yes,cygwin* | yes,mingw* | yes,pw32*)
19189 library_names_spec='$libname.dll.a'
19190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19191 postinstall_cmds='base_file=`basename \${file}`~
19192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19193 dldir=$destdir/`dirname \$dlpath`~
19194 test -d \$dldir || mkdir -p \$dldir~
19195 $install_prog $dir/$dlname \$dldir/$dlname~
19196 chmod a+x \$dldir/$dlname'
19197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19198 dlpath=$dir/\$dldll~
19199 $rm \$dlpath'
19200 shlibpath_overrides_runpath=yes
19201
19202 case $host_os in
19203 cygwin*)
19204 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19205 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19206 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19207 ;;
19208 mingw*)
19209 # MinGW DLLs use traditional 'lib' prefix
19210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19212 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19213 # It is most probably a Windows format PATH printed by
19214 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19215 # path with ; separators, and with drive letters. We can handle the
19216 # drive letters (cygwin fileutils understands them), so leave them,
19217 # especially as we might pass files found there to a mingw objdump,
19218 # which wouldn't understand a cygwinified path. Ahh.
19219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19220 else
19221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19222 fi
19223 ;;
19224 pw32*)
19225 # pw32 DLLs use 'pw' prefix rather than 'lib'
19226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19227 ;;
19228 esac
19229 ;;
19230
19231 *)
19232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19233 ;;
19234 esac
19235 dynamic_linker='Win32 ld.exe'
19236 # FIXME: first we should search . and the directory the executable is in
19237 shlibpath_var=PATH
19238 ;;
19239
19240darwin* | rhapsody*)
19241 dynamic_linker="$host_os dyld"
19242 version_type=darwin
19243 need_lib_prefix=no
19244 need_version=no
19245 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19246 soname_spec='${libname}${release}${major}$shared_ext'
19247 shlibpath_overrides_runpath=yes
19248 shlibpath_var=DYLD_LIBRARY_PATH
19249 shrext_cmds='.dylib'
19250 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19251 if test "$GCC" = yes; then
19252 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"`
19253 else
19254 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19255 fi
19256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19257 ;;
19258
19259dgux*)
19260 version_type=linux
19261 need_lib_prefix=no
19262 need_version=no
19263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19264 soname_spec='${libname}${release}${shared_ext}$major'
19265 shlibpath_var=LD_LIBRARY_PATH
19266 ;;
19267
19268freebsd1*)
19269 dynamic_linker=no
19270 ;;
19271
19272kfreebsd*-gnu)
19273 version_type=linux
19274 need_lib_prefix=no
19275 need_version=no
19276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19277 soname_spec='${libname}${release}${shared_ext}$major'
19278 shlibpath_var=LD_LIBRARY_PATH
19279 shlibpath_overrides_runpath=no
19280 hardcode_into_libs=yes
19281 dynamic_linker='GNU ld.so'
19282 ;;
19283
19284freebsd* | dragonfly*)
19285 # DragonFly does not have aout. When/if they implement a new
19286 # versioning mechanism, adjust this.
19287 if test -x /usr/bin/objformat; then
19288 objformat=`/usr/bin/objformat`
19289 else
19290 case $host_os in
19291 freebsd[123]*) objformat=aout ;;
19292 *) objformat=elf ;;
19293 esac
19294 fi
19295 version_type=freebsd-$objformat
19296 case $version_type in
19297 freebsd-elf*)
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19299 need_version=no
19300 need_lib_prefix=no
19301 ;;
19302 freebsd-*)
19303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19304 need_version=yes
19305 ;;
19306 esac
19307 shlibpath_var=LD_LIBRARY_PATH
19308 case $host_os in
19309 freebsd2*)
19310 shlibpath_overrides_runpath=yes
19311 ;;
19312 freebsd3.[01]* | freebsdelf3.[01]*)
19313 shlibpath_overrides_runpath=yes
19314 hardcode_into_libs=yes
19315 ;;
19316 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19317 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19318 shlibpath_overrides_runpath=no
19319 hardcode_into_libs=yes
19320 ;;
19321 freebsd*) # from 4.6 on
19322 shlibpath_overrides_runpath=yes
19323 hardcode_into_libs=yes
19324 ;;
19325 esac
19326 ;;
19327
19328gnu*)
19329 version_type=linux
19330 need_lib_prefix=no
19331 need_version=no
19332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19333 soname_spec='${libname}${release}${shared_ext}$major'
19334 shlibpath_var=LD_LIBRARY_PATH
19335 hardcode_into_libs=yes
19336 ;;
19337
19338hpux9* | hpux10* | hpux11*)
19339 # Give a soname corresponding to the major version so that dld.sl refuses to
19340 # link against other versions.
19341 version_type=sunos
19342 need_lib_prefix=no
19343 need_version=no
19344 case $host_cpu in
19345 ia64*)
19346 shrext_cmds='.so'
19347 hardcode_into_libs=yes
19348 dynamic_linker="$host_os dld.so"
19349 shlibpath_var=LD_LIBRARY_PATH
19350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19352 soname_spec='${libname}${release}${shared_ext}$major'
19353 if test "X$HPUX_IA64_MODE" = X32; then
19354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19355 else
19356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19357 fi
19358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19359 ;;
19360 hppa*64*)
19361 shrext_cmds='.sl'
19362 hardcode_into_libs=yes
19363 dynamic_linker="$host_os dld.sl"
19364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19367 soname_spec='${libname}${release}${shared_ext}$major'
19368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19370 ;;
19371 *)
19372 shrext_cmds='.sl'
19373 dynamic_linker="$host_os dld.sl"
19374 shlibpath_var=SHLIB_PATH
19375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19377 soname_spec='${libname}${release}${shared_ext}$major'
19378 ;;
19379 esac
19380 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19381 postinstall_cmds='chmod 555 $lib'
19382 ;;
19383
19384interix3*)
19385 version_type=linux
19386 need_lib_prefix=no
19387 need_version=no
19388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19389 soname_spec='${libname}${release}${shared_ext}$major'
19390 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19391 shlibpath_var=LD_LIBRARY_PATH
19392 shlibpath_overrides_runpath=no
19393 hardcode_into_libs=yes
19394 ;;
19395
19396irix5* | irix6* | nonstopux*)
19397 case $host_os in
19398 nonstopux*) version_type=nonstopux ;;
19399 *)
19400 if test "$lt_cv_prog_gnu_ld" = yes; then
19401 version_type=linux
19402 else
19403 version_type=irix
19404 fi ;;
19405 esac
19406 need_lib_prefix=no
19407 need_version=no
19408 soname_spec='${libname}${release}${shared_ext}$major'
19409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19410 case $host_os in
19411 irix5* | nonstopux*)
19412 libsuff= shlibsuff=
19413 ;;
19414 *)
19415 case $LD in # libtool.m4 will add one of these switches to LD
19416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19417 libsuff= shlibsuff= libmagic=32-bit;;
19418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19419 libsuff=32 shlibsuff=N32 libmagic=N32;;
19420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19422 *) libsuff= shlibsuff= libmagic=never-match;;
19423 esac
19424 ;;
19425 esac
19426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19427 shlibpath_overrides_runpath=no
19428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19430 hardcode_into_libs=yes
19431 ;;
19432
19433# No shared lib support for Linux oldld, aout, or coff.
19434linux*oldld* | linux*aout* | linux*coff*)
19435 dynamic_linker=no
19436 ;;
19437
19438# This must be Linux ELF.
19439linux*)
19440 version_type=linux
19441 need_lib_prefix=no
19442 need_version=no
19443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19444 soname_spec='${libname}${release}${shared_ext}$major'
19445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19446 shlibpath_var=LD_LIBRARY_PATH
19447 shlibpath_overrides_runpath=no
19448 # This implies no fast_install, which is unacceptable.
19449 # Some rework will be needed to allow for fast_install
19450 # before this can be enabled.
19451 hardcode_into_libs=yes
19452
19453 # Append ld.so.conf contents to the search path
19454 if test -f /etc/ld.so.conf; then
19455 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' ' '`
19456 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19457 fi
19458
19459 # We used to test for /lib/ld.so.1 and disable shared libraries on
19460 # powerpc, because MkLinux only supported shared libraries with the
19461 # GNU dynamic linker. Since this was broken with cross compilers,
19462 # most powerpc-linux boxes support dynamic linking these days and
19463 # people can always --disable-shared, the test was removed, and we
19464 # assume the GNU/Linux dynamic linker is in use.
19465 dynamic_linker='GNU/Linux ld.so'
19466 ;;
19467
19468knetbsd*-gnu)
19469 version_type=linux
19470 need_lib_prefix=no
19471 need_version=no
19472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19473 soname_spec='${libname}${release}${shared_ext}$major'
19474 shlibpath_var=LD_LIBRARY_PATH
19475 shlibpath_overrides_runpath=no
19476 hardcode_into_libs=yes
19477 dynamic_linker='GNU ld.so'
19478 ;;
19479
19480netbsd*)
19481 version_type=sunos
19482 need_lib_prefix=no
19483 need_version=no
19484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19487 dynamic_linker='NetBSD (a.out) ld.so'
19488 else
19489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19490 soname_spec='${libname}${release}${shared_ext}$major'
19491 dynamic_linker='NetBSD ld.elf_so'
19492 fi
19493 shlibpath_var=LD_LIBRARY_PATH
19494 shlibpath_overrides_runpath=yes
19495 hardcode_into_libs=yes
19496 ;;
19497
19498newsos6)
19499 version_type=linux
19500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19501 shlibpath_var=LD_LIBRARY_PATH
19502 shlibpath_overrides_runpath=yes
19503 ;;
19504
19505nto-qnx*)
19506 version_type=linux
19507 need_lib_prefix=no
19508 need_version=no
19509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19510 soname_spec='${libname}${release}${shared_ext}$major'
19511 shlibpath_var=LD_LIBRARY_PATH
19512 shlibpath_overrides_runpath=yes
19513 ;;
19514
19515openbsd*)
19516 version_type=sunos
19517 sys_lib_dlsearch_path_spec="/usr/lib"
19518 need_lib_prefix=no
19519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19520 case $host_os in
19521 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19522 *) need_version=no ;;
19523 esac
19524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19526 shlibpath_var=LD_LIBRARY_PATH
19527 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19528 case $host_os in
19529 openbsd2.[89] | openbsd2.[89].*)
19530 shlibpath_overrides_runpath=no
19531 ;;
19532 *)
19533 shlibpath_overrides_runpath=yes
19534 ;;
19535 esac
19536 else
19537 shlibpath_overrides_runpath=yes
19538 fi
19539 ;;
19540
19541os2*)
19542 libname_spec='$name'
19543 shrext_cmds=".dll"
19544 need_lib_prefix=no
19545 library_names_spec='$libname${shared_ext} $libname.a'
19546 dynamic_linker='OS/2 ld.exe'
19547 shlibpath_var=LIBPATH
19548 ;;
19549
19550osf3* | osf4* | osf5*)
19551 version_type=osf
19552 need_lib_prefix=no
19553 need_version=no
19554 soname_spec='${libname}${release}${shared_ext}$major'
19555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19556 shlibpath_var=LD_LIBRARY_PATH
19557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19559 ;;
19560
19561solaris*)
19562 version_type=linux
19563 need_lib_prefix=no
19564 need_version=no
19565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19566 soname_spec='${libname}${release}${shared_ext}$major'
19567 shlibpath_var=LD_LIBRARY_PATH
19568 shlibpath_overrides_runpath=yes
19569 hardcode_into_libs=yes
19570 # ldd complains unless libraries are executable
19571 postinstall_cmds='chmod +x $lib'
19572 ;;
19573
19574sunos4*)
19575 version_type=sunos
19576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19577 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19578 shlibpath_var=LD_LIBRARY_PATH
19579 shlibpath_overrides_runpath=yes
19580 if test "$with_gnu_ld" = yes; then
19581 need_lib_prefix=no
19582 fi
19583 need_version=yes
19584 ;;
19585
19586sysv4 | sysv4.3*)
19587 version_type=linux
19588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19589 soname_spec='${libname}${release}${shared_ext}$major'
19590 shlibpath_var=LD_LIBRARY_PATH
19591 case $host_vendor in
19592 sni)
19593 shlibpath_overrides_runpath=no
19594 need_lib_prefix=no
19595 export_dynamic_flag_spec='${wl}-Blargedynsym'
19596 runpath_var=LD_RUN_PATH
19597 ;;
19598 siemens)
19599 need_lib_prefix=no
19600 ;;
19601 motorola)
19602 need_lib_prefix=no
19603 need_version=no
19604 shlibpath_overrides_runpath=no
19605 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19606 ;;
19607 esac
19608 ;;
19609
19610sysv4*MP*)
19611 if test -d /usr/nec ;then
19612 version_type=linux
19613 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19614 soname_spec='$libname${shared_ext}.$major'
19615 shlibpath_var=LD_LIBRARY_PATH
19616 fi
19617 ;;
19618
19619sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19620 version_type=freebsd-elf
19621 need_lib_prefix=no
19622 need_version=no
19623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19624 soname_spec='${libname}${release}${shared_ext}$major'
19625 shlibpath_var=LD_LIBRARY_PATH
19626 hardcode_into_libs=yes
19627 if test "$with_gnu_ld" = yes; then
19628 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19629 shlibpath_overrides_runpath=no
19630 else
19631 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19632 shlibpath_overrides_runpath=yes
19633 case $host_os in
19634 sco3.2v5*)
19635 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19636 ;;
19637 esac
19638 fi
19639 sys_lib_dlsearch_path_spec='/usr/lib'
19640 ;;
19641
19642uts4*)
19643 version_type=linux
19644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19645 soname_spec='${libname}${release}${shared_ext}$major'
19646 shlibpath_var=LD_LIBRARY_PATH
19647 ;;
19648
19649*)
19650 dynamic_linker=no
19651 ;;
19652esac
19653{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19654echo "${ECHO_T}$dynamic_linker" >&6; }
19655test "$dynamic_linker" = no && can_build_shared=no
19656
19657variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19658if test "$GCC" = yes; then
19659 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19660fi
19661
19662{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19663echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19664hardcode_action_CXX=
19665if test -n "$hardcode_libdir_flag_spec_CXX" || \
19666 test -n "$runpath_var_CXX" || \
19667 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19668
19669 # We can hardcode non-existant directories.
19670 if test "$hardcode_direct_CXX" != no &&
19671 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19672 # have to relink, otherwise we might link with an installed library
19673 # when we should be linking with a yet-to-be-installed one
19674 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19675 test "$hardcode_minus_L_CXX" != no; then
19676 # Linking always hardcodes the temporary library directory.
19677 hardcode_action_CXX=relink
19678 else
19679 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19680 hardcode_action_CXX=immediate
19681 fi
19682else
19683 # We cannot hardcode anything, or else we can only hardcode existing
19684 # directories.
19685 hardcode_action_CXX=unsupported
19686fi
19687{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19688echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19689
19690if test "$hardcode_action_CXX" = relink; then
19691 # Fast installation is not supported
19692 enable_fast_install=no
19693elif test "$shlibpath_overrides_runpath" = yes ||
19694 test "$enable_shared" = no; then
19695 # Fast installation is not necessary
19696 enable_fast_install=needless
19697fi
19698
19699
19700# The else clause should only fire when bootstrapping the
19701# libtool distribution, otherwise you forgot to ship ltmain.sh
19702# with your package, and you will get complaints that there are
19703# no rules to generate ltmain.sh.
19704if test -f "$ltmain"; then
19705 # See if we are running on zsh, and set the options which allow our commands through
19706 # without removal of \ escapes.
19707 if test -n "${ZSH_VERSION+set}" ; then
19708 setopt NO_GLOB_SUBST
19709 fi
19710 # Now quote all the things that may contain metacharacters while being
19711 # careful not to overquote the AC_SUBSTed values. We take copies of the
19712 # variables and quote the copies for generation of the libtool script.
19713 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19714 SED SHELL STRIP \
19715 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19716 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19717 deplibs_check_method reload_flag reload_cmds need_locks \
19718 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19719 lt_cv_sys_global_symbol_to_c_name_address \
19720 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19721 old_postinstall_cmds old_postuninstall_cmds \
19722 compiler_CXX \
19723 CC_CXX \
19724 LD_CXX \
19725 lt_prog_compiler_wl_CXX \
19726 lt_prog_compiler_pic_CXX \
19727 lt_prog_compiler_static_CXX \
19728 lt_prog_compiler_no_builtin_flag_CXX \
19729 export_dynamic_flag_spec_CXX \
19730 thread_safe_flag_spec_CXX \
19731 whole_archive_flag_spec_CXX \
19732 enable_shared_with_static_runtimes_CXX \
19733 old_archive_cmds_CXX \
19734 old_archive_from_new_cmds_CXX \
19735 predep_objects_CXX \
19736 postdep_objects_CXX \
19737 predeps_CXX \
19738 postdeps_CXX \
19739 compiler_lib_search_path_CXX \
19740 archive_cmds_CXX \
19741 archive_expsym_cmds_CXX \
19742 postinstall_cmds_CXX \
19743 postuninstall_cmds_CXX \
19744 old_archive_from_expsyms_cmds_CXX \
19745 allow_undefined_flag_CXX \
19746 no_undefined_flag_CXX \
19747 export_symbols_cmds_CXX \
19748 hardcode_libdir_flag_spec_CXX \
19749 hardcode_libdir_flag_spec_ld_CXX \
19750 hardcode_libdir_separator_CXX \
19751 hardcode_automatic_CXX \
19752 module_cmds_CXX \
19753 module_expsym_cmds_CXX \
19754 lt_cv_prog_compiler_c_o_CXX \
19755 exclude_expsyms_CXX \
19756 include_expsyms_CXX; do
19757
19758 case $var in
19759 old_archive_cmds_CXX | \
19760 old_archive_from_new_cmds_CXX | \
19761 archive_cmds_CXX | \
19762 archive_expsym_cmds_CXX | \
19763 module_cmds_CXX | \
19764 module_expsym_cmds_CXX | \
19765 old_archive_from_expsyms_cmds_CXX | \
19766 export_symbols_cmds_CXX | \
19767 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19768 postinstall_cmds | postuninstall_cmds | \
19769 old_postinstall_cmds | old_postuninstall_cmds | \
19770 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19771 # Double-quote double-evaled strings.
19772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19773 ;;
19774 *)
19775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19776 ;;
19777 esac
19778 done
19779
19780 case $lt_echo in
19781 *'\$0 --fallback-echo"')
19782 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19783 ;;
19784 esac
19785
19786cfgfile="$ofile"
19787
19788 cat <<__EOF__ >> "$cfgfile"
19789# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19790
19791# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19792
19793# Shell to use when invoking shell scripts.
19794SHELL=$lt_SHELL
19795
19796# Whether or not to build shared libraries.
19797build_libtool_libs=$enable_shared
19798
19799# Whether or not to build static libraries.
19800build_old_libs=$enable_static
19801
19802# Whether or not to add -lc for building shared libraries.
19803build_libtool_need_lc=$archive_cmds_need_lc_CXX
19804
19805# Whether or not to disallow shared libs when runtime libs are static
19806allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19807
19808# Whether or not to optimize for fast installation.
19809fast_install=$enable_fast_install
19810
19811# The host system.
19812host_alias=$host_alias
19813host=$host
19814host_os=$host_os
19815
19816# The build system.
19817build_alias=$build_alias
19818build=$build
19819build_os=$build_os
19820
19821# An echo program that does not interpret backslashes.
19822echo=$lt_echo
19823
19824# The archiver.
19825AR=$lt_AR
19826AR_FLAGS=$lt_AR_FLAGS
19827
19828# A C compiler.
19829LTCC=$lt_LTCC
19830
19831# LTCC compiler flags.
19832LTCFLAGS=$lt_LTCFLAGS
19833
19834# A language-specific compiler.
19835CC=$lt_compiler_CXX
19836
19837# Is the compiler the GNU C compiler?
19838with_gcc=$GCC_CXX
19839
19840# An ERE matcher.
19841EGREP=$lt_EGREP
19842
19843# The linker used to build libraries.
19844LD=$lt_LD_CXX
19845
19846# Whether we need hard or soft links.
19847LN_S=$lt_LN_S
19848
19849# A BSD-compatible nm program.
19850NM=$lt_NM
19851
19852# A symbol stripping program
19853STRIP=$lt_STRIP
19854
19855# Used to examine libraries when file_magic_cmd begins "file"
19856MAGIC_CMD=$MAGIC_CMD
19857
19858# Used on cygwin: DLL creation program.
19859DLLTOOL="$DLLTOOL"
19860
19861# Used on cygwin: object dumper.
19862OBJDUMP="$OBJDUMP"
19863
19864# Used on cygwin: assembler.
19865AS="$AS"
19866
19867# The name of the directory that contains temporary libtool files.
19868objdir=$objdir
19869
19870# How to create reloadable object files.
19871reload_flag=$lt_reload_flag
19872reload_cmds=$lt_reload_cmds
19873
19874# How to pass a linker flag through the compiler.
19875wl=$lt_lt_prog_compiler_wl_CXX
19876
19877# Object file suffix (normally "o").
19878objext="$ac_objext"
19879
19880# Old archive suffix (normally "a").
19881libext="$libext"
19882
19883# Shared library suffix (normally ".so").
19884shrext_cmds='$shrext_cmds'
19885
19886# Executable file suffix (normally "").
19887exeext="$exeext"
19888
19889# Additional compiler flags for building library objects.
19890pic_flag=$lt_lt_prog_compiler_pic_CXX
19891pic_mode=$pic_mode
19892
19893# What is the maximum length of a command?
19894max_cmd_len=$lt_cv_sys_max_cmd_len
19895
19896# Does compiler simultaneously support -c and -o options?
19897compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19898
19899# Must we lock files when doing compilation?
19900need_locks=$lt_need_locks
19901
19902# Do we need the lib prefix for modules?
19903need_lib_prefix=$need_lib_prefix
19904
19905# Do we need a version for libraries?
19906need_version=$need_version
19907
19908# Whether dlopen is supported.
19909dlopen_support=$enable_dlopen
19910
19911# Whether dlopen of programs is supported.
19912dlopen_self=$enable_dlopen_self
19913
19914# Whether dlopen of statically linked programs is supported.
19915dlopen_self_static=$enable_dlopen_self_static
19916
19917# Compiler flag to prevent dynamic linking.
19918link_static_flag=$lt_lt_prog_compiler_static_CXX
19919
19920# Compiler flag to turn off builtin functions.
19921no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19922
19923# Compiler flag to allow reflexive dlopens.
19924export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19925
19926# Compiler flag to generate shared objects directly from archives.
19927whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19928
19929# Compiler flag to generate thread-safe objects.
19930thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19931
19932# Library versioning type.
19933version_type=$version_type
19934
19935# Format of library name prefix.
19936libname_spec=$lt_libname_spec
19937
19938# List of archive names. First name is the real one, the rest are links.
19939# The last name is the one that the linker finds with -lNAME.
19940library_names_spec=$lt_library_names_spec
19941
19942# The coded name of the library, if different from the real name.
19943soname_spec=$lt_soname_spec
19944
19945# Commands used to build and install an old-style archive.
19946RANLIB=$lt_RANLIB
19947old_archive_cmds=$lt_old_archive_cmds_CXX
19948old_postinstall_cmds=$lt_old_postinstall_cmds
19949old_postuninstall_cmds=$lt_old_postuninstall_cmds
19950
19951# Create an old-style archive from a shared archive.
19952old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19953
19954# Create a temporary old-style archive to link instead of a shared archive.
19955old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19956
19957# Commands used to build and install a shared archive.
19958archive_cmds=$lt_archive_cmds_CXX
19959archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19960postinstall_cmds=$lt_postinstall_cmds
19961postuninstall_cmds=$lt_postuninstall_cmds
19962
19963# Commands used to build a loadable module (assumed same as above if empty)
19964module_cmds=$lt_module_cmds_CXX
19965module_expsym_cmds=$lt_module_expsym_cmds_CXX
19966
19967# Commands to strip libraries.
19968old_striplib=$lt_old_striplib
19969striplib=$lt_striplib
19970
19971# Dependencies to place before the objects being linked to create a
19972# shared library.
19973predep_objects=$lt_predep_objects_CXX
19974
19975# Dependencies to place after the objects being linked to create a
19976# shared library.
19977postdep_objects=$lt_postdep_objects_CXX
19978
19979# Dependencies to place before the objects being linked to create a
19980# shared library.
19981predeps=$lt_predeps_CXX
19982
19983# Dependencies to place after the objects being linked to create a
19984# shared library.
19985postdeps=$lt_postdeps_CXX
19986
19987# The library search path used internally by the compiler when linking
19988# a shared library.
19989compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19990
19991# Method to check whether dependent libraries are shared objects.
19992deplibs_check_method=$lt_deplibs_check_method
19993
19994# Command to use when deplibs_check_method == file_magic.
19995file_magic_cmd=$lt_file_magic_cmd
19996
19997# Flag that allows shared libraries with undefined symbols to be built.
19998allow_undefined_flag=$lt_allow_undefined_flag_CXX
19999
20000# Flag that forces no undefined symbols.
20001no_undefined_flag=$lt_no_undefined_flag_CXX
20002
20003# Commands used to finish a libtool library installation in a directory.
20004finish_cmds=$lt_finish_cmds
20005
20006# Same as above, but a single script fragment to be evaled but not shown.
20007finish_eval=$lt_finish_eval
20008
20009# Take the output of nm and produce a listing of raw symbols and C names.
20010global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20011
20012# Transform the output of nm in a proper C declaration
20013global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20014
20015# Transform the output of nm in a C name address pair
20016global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20017
20018# This is the shared library runtime path variable.
20019runpath_var=$runpath_var
20020
20021# This is the shared library path variable.
20022shlibpath_var=$shlibpath_var
20023
20024# Is shlibpath searched before the hard-coded library search path?
20025shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20026
20027# How to hardcode a shared library path into an executable.
20028hardcode_action=$hardcode_action_CXX
20029
20030# Whether we should hardcode library paths into libraries.
20031hardcode_into_libs=$hardcode_into_libs
20032
20033# Flag to hardcode \$libdir into a binary during linking.
20034# This must work even if \$libdir does not exist.
20035hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20036
20037# If ld is used when linking, flag to hardcode \$libdir into
20038# a binary during linking. This must work even if \$libdir does
20039# not exist.
20040hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20041
20042# Whether we need a single -rpath flag with a separated argument.
20043hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20044
20045# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20046# resulting binary.
20047hardcode_direct=$hardcode_direct_CXX
20048
20049# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20050# resulting binary.
20051hardcode_minus_L=$hardcode_minus_L_CXX
20052
20053# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20054# the resulting binary.
20055hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20056
20057# Set to yes if building a shared library automatically hardcodes DIR into the library
20058# and all subsequent libraries and executables linked against it.
20059hardcode_automatic=$hardcode_automatic_CXX
20060
20061# Variables whose values should be saved in libtool wrapper scripts and
20062# restored at relink time.
20063variables_saved_for_relink="$variables_saved_for_relink"
20064
20065# Whether libtool must link a program against all its dependency libraries.
20066link_all_deplibs=$link_all_deplibs_CXX
20067
20068# Compile-time system search path for libraries
20069sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20070
20071# Run-time system search path for libraries
20072sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20073
20074# Fix the shell variable \$srcfile for the compiler.
20075fix_srcfile_path="$fix_srcfile_path_CXX"
20076
20077# Set to yes if exported symbols are required.
20078always_export_symbols=$always_export_symbols_CXX
20079
20080# The commands to list exported symbols.
20081export_symbols_cmds=$lt_export_symbols_cmds_CXX
20082
20083# The commands to extract the exported symbol list from a shared archive.
20084extract_expsyms_cmds=$lt_extract_expsyms_cmds
20085
20086# Symbols that should not be listed in the preloaded symbols.
20087exclude_expsyms=$lt_exclude_expsyms_CXX
20088
20089# Symbols that must always be exported.
20090include_expsyms=$lt_include_expsyms_CXX
20091
20092# ### END LIBTOOL TAG CONFIG: $tagname
20093
20094__EOF__
20095
20096
20097else
20098 # If there is no Makefile yet, we rely on a make rule to execute
20099 # `config.status --recheck' to rerun these tests and create the
20100 # libtool script then.
20101 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20102 if test -f "$ltmain_in"; then
20103 test -f Makefile && make "$ltmain"
20104 fi
20105fi
20106
20107
20108ac_ext=c
20109ac_cpp='$CPP $CPPFLAGS'
20110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20112ac_compiler_gnu=$ac_cv_c_compiler_gnu
20113
20114CC=$lt_save_CC
20115LDCXX=$LD
20116LD=$lt_save_LD
20117GCC=$lt_save_GCC
20118with_gnu_ldcxx=$with_gnu_ld
20119with_gnu_ld=$lt_save_with_gnu_ld
20120lt_cv_path_LDCXX=$lt_cv_path_LD
20121lt_cv_path_LD=$lt_save_path_LD
20122lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20123lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20124
20125 else
20126 tagname=""
20127 fi
20128 ;;
20129
20130 F77)
20131 if test -n "$F77" && test "X$F77" != "Xno"; then
20132
20133ac_ext=f
20134ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20135ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20136ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20137
20138
20139archive_cmds_need_lc_F77=no
20140allow_undefined_flag_F77=
20141always_export_symbols_F77=no
20142archive_expsym_cmds_F77=
20143export_dynamic_flag_spec_F77=
20144hardcode_direct_F77=no
20145hardcode_libdir_flag_spec_F77=
20146hardcode_libdir_flag_spec_ld_F77=
20147hardcode_libdir_separator_F77=
20148hardcode_minus_L_F77=no
20149hardcode_automatic_F77=no
20150module_cmds_F77=
20151module_expsym_cmds_F77=
20152link_all_deplibs_F77=unknown
20153old_archive_cmds_F77=$old_archive_cmds
20154no_undefined_flag_F77=
20155whole_archive_flag_spec_F77=
20156enable_shared_with_static_runtimes_F77=no
20157
20158# Source file extension for f77 test sources.
20159ac_ext=f
20160
20161# Object file extension for compiled f77 test sources.
20162objext=o
20163objext_F77=$objext
20164
20165# Code to be used in simple compile tests
20166lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20167
20168# Code to be used in simple link tests
20169lt_simple_link_test_code=" program t\n end\n"
20170
20171# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20172
20173# If no C compiler was specified, use CC.
20174LTCC=${LTCC-"$CC"}
20175
20176# If no C compiler flags were specified, use CFLAGS.
20177LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20178
20179# Allow CC to be a program name with arguments.
20180compiler=$CC
20181
20182
20183# save warnings/boilerplate of simple test code
20184ac_outfile=conftest.$ac_objext
20185printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20186eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20187_lt_compiler_boilerplate=`cat conftest.err`
20188$rm conftest*
20189
20190ac_outfile=conftest.$ac_objext
20191printf "$lt_simple_link_test_code" >conftest.$ac_ext
20192eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20193_lt_linker_boilerplate=`cat conftest.err`
20194$rm conftest*
20195
20196
20197# Allow CC to be a program name with arguments.
20198lt_save_CC="$CC"
20199CC=${F77-"f77"}
20200compiler=$CC
20201compiler_F77=$CC
20202for cc_temp in $compiler""; do
20203 case $cc_temp in
20204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20206 \-*) ;;
20207 *) break;;
20208 esac
20209done
20210cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20211
20212
20213{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20214echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20215{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20216echo "${ECHO_T}$can_build_shared" >&6; }
20217
20218{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20219echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20220test "$can_build_shared" = "no" && enable_shared=no
20221
20222# On AIX, shared libraries and static libraries use the same namespace, and
20223# are all built from PIC.
20224case $host_os in
20225aix3*)
20226 test "$enable_shared" = yes && enable_static=no
20227 if test -n "$RANLIB"; then
20228 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20229 postinstall_cmds='$RANLIB $lib'
20230 fi
20231 ;;
20232aix4* | aix5*)
20233 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20234 test "$enable_shared" = yes && enable_static=no
20235 fi
20236 ;;
20237esac
20238{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20239echo "${ECHO_T}$enable_shared" >&6; }
20240
20241{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20242echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20243# Make sure either enable_shared or enable_static is yes.
20244test "$enable_shared" = yes || enable_static=yes
20245{ echo "$as_me:$LINENO: result: $enable_static" >&5
20246echo "${ECHO_T}$enable_static" >&6; }
20247
20248GCC_F77="$G77"
20249LD_F77="$LD"
20250
20251lt_prog_compiler_wl_F77=
20252lt_prog_compiler_pic_F77=
20253lt_prog_compiler_static_F77=
20254
20255{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20256echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20257
20258 if test "$GCC" = yes; then
20259 lt_prog_compiler_wl_F77='-Wl,'
20260 lt_prog_compiler_static_F77='-static'
20261
20262 case $host_os in
20263 aix*)
20264 # All AIX code is PIC.
20265 if test "$host_cpu" = ia64; then
20266 # AIX 5 now supports IA64 processor
20267 lt_prog_compiler_static_F77='-Bstatic'
20268 fi
20269 ;;
20270
20271 amigaos*)
20272 # FIXME: we need at least 68020 code to build shared libraries, but
20273 # adding the `-m68020' flag to GCC prevents building anything better,
20274 # like `-m68040'.
20275 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20276 ;;
20277
20278 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20279 # PIC is the default for these OSes.
20280 ;;
20281
20282 mingw* | pw32* | os2*)
20283 # This hack is so that the source file can tell whether it is being
20284 # built for inclusion in a dll (and should export symbols for example).
20285 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20286 ;;
20287
20288 darwin* | rhapsody*)
20289 # PIC is the default on this platform
20290 # Common symbols not allowed in MH_DYLIB files
20291 lt_prog_compiler_pic_F77='-fno-common'
20292 ;;
20293
20294 interix3*)
20295 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20296 # Instead, we relocate shared libraries at runtime.
20297 ;;
20298
20299 msdosdjgpp*)
20300 # Just because we use GCC doesn't mean we suddenly get shared libraries
20301 # on systems that don't support them.
20302 lt_prog_compiler_can_build_shared_F77=no
20303 enable_shared=no
20304 ;;
20305
20306 sysv4*MP*)
20307 if test -d /usr/nec; then
20308 lt_prog_compiler_pic_F77=-Kconform_pic
20309 fi
20310 ;;
20311
20312 hpux*)
20313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20314 # not for PA HP-UX.
20315 case $host_cpu in
20316 hppa*64*|ia64*)
20317 # +Z the default
20318 ;;
20319 *)
20320 lt_prog_compiler_pic_F77='-fPIC'
20321 ;;
20322 esac
20323 ;;
20324
20325 *)
20326 lt_prog_compiler_pic_F77='-fPIC'
20327 ;;
20328 esac
20329 else
20330 # PORTME Check for flag to pass linker flags through the system compiler.
20331 case $host_os in
20332 aix*)
20333 lt_prog_compiler_wl_F77='-Wl,'
20334 if test "$host_cpu" = ia64; then
20335 # AIX 5 now supports IA64 processor
20336 lt_prog_compiler_static_F77='-Bstatic'
20337 else
20338 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20339 fi
20340 ;;
20341 darwin*)
20342 # PIC is the default on this platform
20343 # Common symbols not allowed in MH_DYLIB files
20344 case $cc_basename in
20345 xlc*)
20346 lt_prog_compiler_pic_F77='-qnocommon'
20347 lt_prog_compiler_wl_F77='-Wl,'
20348 ;;
20349 esac
20350 ;;
20351
20352 mingw* | pw32* | os2*)
20353 # This hack is so that the source file can tell whether it is being
20354 # built for inclusion in a dll (and should export symbols for example).
20355 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20356 ;;
20357
20358 hpux9* | hpux10* | hpux11*)
20359 lt_prog_compiler_wl_F77='-Wl,'
20360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20361 # not for PA HP-UX.
20362 case $host_cpu in
20363 hppa*64*|ia64*)
20364 # +Z the default
20365 ;;
20366 *)
20367 lt_prog_compiler_pic_F77='+Z'
20368 ;;
20369 esac
20370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20371 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20372 ;;
20373
20374 irix5* | irix6* | nonstopux*)
20375 lt_prog_compiler_wl_F77='-Wl,'
20376 # PIC (with -KPIC) is the default.
20377 lt_prog_compiler_static_F77='-non_shared'
20378 ;;
20379
20380 newsos6)
20381 lt_prog_compiler_pic_F77='-KPIC'
20382 lt_prog_compiler_static_F77='-Bstatic'
20383 ;;
20384
20385 linux*)
20386 case $cc_basename in
20387 icc* | ecc*)
20388 lt_prog_compiler_wl_F77='-Wl,'
20389 lt_prog_compiler_pic_F77='-KPIC'
20390 lt_prog_compiler_static_F77='-static'
20391 ;;
20392 pgcc* | pgf77* | pgf90* | pgf95*)
20393 # Portland Group compilers (*not* the Pentium gcc compiler,
20394 # which looks to be a dead project)
20395 lt_prog_compiler_wl_F77='-Wl,'
20396 lt_prog_compiler_pic_F77='-fpic'
20397 lt_prog_compiler_static_F77='-Bstatic'
20398 ;;
20399 ccc*)
20400 lt_prog_compiler_wl_F77='-Wl,'
20401 # All Alpha code is PIC.
20402 lt_prog_compiler_static_F77='-non_shared'
20403 ;;
20404 esac
20405 ;;
20406
20407 osf3* | osf4* | osf5*)
20408 lt_prog_compiler_wl_F77='-Wl,'
20409 # All OSF/1 code is PIC.
20410 lt_prog_compiler_static_F77='-non_shared'
20411 ;;
20412
20413 solaris*)
20414 lt_prog_compiler_pic_F77='-KPIC'
20415 lt_prog_compiler_static_F77='-Bstatic'
20416 case $cc_basename in
20417 f77* | f90* | f95*)
20418 lt_prog_compiler_wl_F77='-Qoption ld ';;
20419 *)
20420 lt_prog_compiler_wl_F77='-Wl,';;
20421 esac
20422 ;;
20423
20424 sunos4*)
20425 lt_prog_compiler_wl_F77='-Qoption ld '
20426 lt_prog_compiler_pic_F77='-PIC'
20427 lt_prog_compiler_static_F77='-Bstatic'
20428 ;;
20429
20430 sysv4 | sysv4.2uw2* | sysv4.3*)
20431 lt_prog_compiler_wl_F77='-Wl,'
20432 lt_prog_compiler_pic_F77='-KPIC'
20433 lt_prog_compiler_static_F77='-Bstatic'
20434 ;;
20435
20436 sysv4*MP*)
20437 if test -d /usr/nec ;then
20438 lt_prog_compiler_pic_F77='-Kconform_pic'
20439 lt_prog_compiler_static_F77='-Bstatic'
20440 fi
20441 ;;
20442
20443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20444 lt_prog_compiler_wl_F77='-Wl,'
20445 lt_prog_compiler_pic_F77='-KPIC'
20446 lt_prog_compiler_static_F77='-Bstatic'
20447 ;;
20448
20449 unicos*)
20450 lt_prog_compiler_wl_F77='-Wl,'
20451 lt_prog_compiler_can_build_shared_F77=no
20452 ;;
20453
20454 uts4*)
20455 lt_prog_compiler_pic_F77='-pic'
20456 lt_prog_compiler_static_F77='-Bstatic'
20457 ;;
20458
20459 *)
20460 lt_prog_compiler_can_build_shared_F77=no
20461 ;;
20462 esac
20463 fi
20464
20465{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20466echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20467
20468#
20469# Check to make sure the PIC flag actually works.
20470#
20471if test -n "$lt_prog_compiler_pic_F77"; then
20472
20473{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20474echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20475if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477else
20478 lt_prog_compiler_pic_works_F77=no
20479 ac_outfile=conftest.$ac_objext
20480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20481 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20482 # Insert the option either (1) after the last *FLAGS variable, or
20483 # (2) before a word containing "conftest.", or (3) at the end.
20484 # Note that $ac_compile itself does not contain backslashes and begins
20485 # with a dollar sign (not a hyphen), so the echo should work correctly.
20486 # The option is referenced via a variable to avoid confusing sed.
20487 lt_compile=`echo "$ac_compile" | $SED \
20488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20490 -e 's:$: $lt_compiler_flag:'`
Edwin Török20176752008-10-22 09:56:27 +000020491 (eval echo "\"\$as_me:20491: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020492 (eval "$lt_compile" 2>conftest.err)
20493 ac_status=$?
20494 cat conftest.err >&5
Edwin Török20176752008-10-22 09:56:27 +000020495 echo "$as_me:20495: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020496 if (exit $ac_status) && test -s "$ac_outfile"; then
20497 # The compiler can only warn and ignore the option if not recognized
20498 # So say no if there are warnings other than the usual output.
20499 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20502 lt_prog_compiler_pic_works_F77=yes
20503 fi
20504 fi
20505 $rm conftest*
20506
20507fi
20508{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20509echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20510
20511if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20512 case $lt_prog_compiler_pic_F77 in
20513 "" | " "*) ;;
20514 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20515 esac
20516else
20517 lt_prog_compiler_pic_F77=
20518 lt_prog_compiler_can_build_shared_F77=no
20519fi
20520
20521fi
20522case $host_os in
20523 # For platforms which do not support PIC, -DPIC is meaningless:
20524 *djgpp*)
20525 lt_prog_compiler_pic_F77=
20526 ;;
20527 *)
20528 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20529 ;;
20530esac
20531
20532#
20533# Check to make sure the static flag actually works.
20534#
20535wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20536{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20537echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20538if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540else
20541 lt_prog_compiler_static_works_F77=no
20542 save_LDFLAGS="$LDFLAGS"
20543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20544 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20546 # The linker can only warn and ignore the option if not recognized
20547 # So say no if there are warnings
20548 if test -s conftest.err; then
20549 # Append any errors to the config.log.
20550 cat conftest.err 1>&5
20551 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20553 if diff conftest.exp conftest.er2 >/dev/null; then
20554 lt_prog_compiler_static_works_F77=yes
20555 fi
20556 else
20557 lt_prog_compiler_static_works_F77=yes
20558 fi
20559 fi
20560 $rm conftest*
20561 LDFLAGS="$save_LDFLAGS"
20562
20563fi
20564{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20565echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20566
20567if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20568 :
20569else
20570 lt_prog_compiler_static_F77=
20571fi
20572
20573
20574{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20575echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20576if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20578else
20579 lt_cv_prog_compiler_c_o_F77=no
20580 $rm -r conftest 2>/dev/null
20581 mkdir conftest
20582 cd conftest
20583 mkdir out
20584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20585
20586 lt_compiler_flag="-o out/conftest2.$ac_objext"
20587 # Insert the option either (1) after the last *FLAGS variable, or
20588 # (2) before a word containing "conftest.", or (3) at the end.
20589 # Note that $ac_compile itself does not contain backslashes and begins
20590 # with a dollar sign (not a hyphen), so the echo should work correctly.
20591 lt_compile=`echo "$ac_compile" | $SED \
20592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20594 -e 's:$: $lt_compiler_flag:'`
Edwin Török20176752008-10-22 09:56:27 +000020595 (eval echo "\"\$as_me:20595: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020596 (eval "$lt_compile" 2>out/conftest.err)
20597 ac_status=$?
20598 cat out/conftest.err >&5
Edwin Török20176752008-10-22 09:56:27 +000020599 echo "$as_me:20599: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000020600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20601 then
20602 # The compiler can only warn and ignore the option if not recognized
20603 # So say no if there are warnings
20604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20607 lt_cv_prog_compiler_c_o_F77=yes
20608 fi
20609 fi
20610 chmod u+w . 2>&5
20611 $rm conftest*
20612 # SGI C++ compiler will create directory out/ii_files/ for
20613 # template instantiation
20614 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20615 $rm out/* && rmdir out
20616 cd ..
20617 rmdir conftest
20618 $rm conftest*
20619
20620fi
20621{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20622echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20623
20624
20625hard_links="nottested"
20626if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20627 # do not overwrite the value of need_locks provided by the user
20628 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20629echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20630 hard_links=yes
20631 $rm conftest*
20632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20633 touch conftest.a
20634 ln conftest.a conftest.b 2>&5 || hard_links=no
20635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20636 { echo "$as_me:$LINENO: result: $hard_links" >&5
20637echo "${ECHO_T}$hard_links" >&6; }
20638 if test "$hard_links" = no; then
20639 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20640echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20641 need_locks=warn
20642 fi
20643else
20644 need_locks=no
20645fi
20646
20647{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20648echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20649
20650 runpath_var=
20651 allow_undefined_flag_F77=
20652 enable_shared_with_static_runtimes_F77=no
20653 archive_cmds_F77=
20654 archive_expsym_cmds_F77=
20655 old_archive_From_new_cmds_F77=
20656 old_archive_from_expsyms_cmds_F77=
20657 export_dynamic_flag_spec_F77=
20658 whole_archive_flag_spec_F77=
20659 thread_safe_flag_spec_F77=
20660 hardcode_libdir_flag_spec_F77=
20661 hardcode_libdir_flag_spec_ld_F77=
20662 hardcode_libdir_separator_F77=
20663 hardcode_direct_F77=no
20664 hardcode_minus_L_F77=no
20665 hardcode_shlibpath_var_F77=unsupported
20666 link_all_deplibs_F77=unknown
20667 hardcode_automatic_F77=no
20668 module_cmds_F77=
20669 module_expsym_cmds_F77=
20670 always_export_symbols_F77=no
20671 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20672 # include_expsyms should be a list of space-separated symbols to be *always*
20673 # included in the symbol list
20674 include_expsyms_F77=
20675 # exclude_expsyms can be an extended regexp of symbols to exclude
20676 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20677 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20678 # as well as any symbol that contains `d'.
20679 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20680 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20681 # platforms (ab)use it in PIC code, but their linkers get confused if
20682 # the symbol is explicitly referenced. Since portable code cannot
20683 # rely on this symbol name, it's probably fine to never include it in
20684 # preloaded symbol tables.
20685 extract_expsyms_cmds=
20686 # Just being paranoid about ensuring that cc_basename is set.
20687 for cc_temp in $compiler""; do
20688 case $cc_temp in
20689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20691 \-*) ;;
20692 *) break;;
20693 esac
20694done
20695cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20696
20697 case $host_os in
20698 cygwin* | mingw* | pw32*)
20699 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20700 # When not using gcc, we currently assume that we are using
20701 # Microsoft Visual C++.
20702 if test "$GCC" != yes; then
20703 with_gnu_ld=no
20704 fi
20705 ;;
20706 interix*)
20707 # we just hope/assume this is gcc and not c89 (= MSVC++)
20708 with_gnu_ld=yes
20709 ;;
20710 openbsd*)
20711 with_gnu_ld=no
20712 ;;
20713 esac
20714
20715 ld_shlibs_F77=yes
20716 if test "$with_gnu_ld" = yes; then
20717 # If archive_cmds runs LD, not CC, wlarc should be empty
20718 wlarc='${wl}'
20719
20720 # Set some defaults for GNU ld with shared library support. These
20721 # are reset later if shared libraries are not supported. Putting them
20722 # here allows them to be overridden if necessary.
20723 runpath_var=LD_RUN_PATH
20724 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20725 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20726 # ancient GNU ld didn't support --whole-archive et. al.
20727 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20728 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20729 else
20730 whole_archive_flag_spec_F77=
20731 fi
20732 supports_anon_versioning=no
20733 case `$LD -v 2>/dev/null` in
20734 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20735 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20736 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20737 *\ 2.11.*) ;; # other 2.11 versions
20738 *) supports_anon_versioning=yes ;;
20739 esac
20740
20741 # See if GNU ld supports shared libraries.
20742 case $host_os in
20743 aix3* | aix4* | aix5*)
20744 # On AIX/PPC, the GNU linker is very broken
20745 if test "$host_cpu" != ia64; then
20746 ld_shlibs_F77=no
20747 cat <<EOF 1>&2
20748
20749*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20750*** to be unable to reliably create shared libraries on AIX.
20751*** Therefore, libtool is disabling shared libraries support. If you
20752*** really care for shared libraries, you may want to modify your PATH
20753*** so that a non-GNU linker is found, and then restart.
20754
20755EOF
20756 fi
20757 ;;
20758
20759 amigaos*)
20760 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)'
20761 hardcode_libdir_flag_spec_F77='-L$libdir'
20762 hardcode_minus_L_F77=yes
20763
20764 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20765 # that the semantics of dynamic libraries on AmigaOS, at least up
20766 # to version 4, is to share data among multiple programs linked
20767 # with the same dynamic library. Since this doesn't match the
20768 # behavior of shared libraries on other platforms, we can't use
20769 # them.
20770 ld_shlibs_F77=no
20771 ;;
20772
20773 beos*)
20774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20775 allow_undefined_flag_F77=unsupported
20776 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20777 # support --undefined. This deserves some investigation. FIXME
20778 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20779 else
20780 ld_shlibs_F77=no
20781 fi
20782 ;;
20783
20784 cygwin* | mingw* | pw32*)
20785 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20786 # as there is no search path for DLLs.
20787 hardcode_libdir_flag_spec_F77='-L$libdir'
20788 allow_undefined_flag_F77=unsupported
20789 always_export_symbols_F77=no
20790 enable_shared_with_static_runtimes_F77=yes
20791 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20792
20793 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20794 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20795 # If the export-symbols file already is a .def file (1st line
20796 # is EXPORTS), use it as is; otherwise, prepend...
20797 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20798 cp $export_symbols $output_objdir/$soname.def;
20799 else
20800 echo EXPORTS > $output_objdir/$soname.def;
20801 cat $export_symbols >> $output_objdir/$soname.def;
20802 fi~
20803 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20804 else
20805 ld_shlibs_F77=no
20806 fi
20807 ;;
20808
20809 interix3*)
20810 hardcode_direct_F77=no
20811 hardcode_shlibpath_var_F77=no
20812 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20813 export_dynamic_flag_spec_F77='${wl}-E'
20814 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20815 # Instead, shared libraries are loaded at an image base (0x10000000 by
20816 # default) and relocated if they conflict, which is a slow very memory
20817 # consuming and fragmenting process. To avoid this, we pick a random,
20818 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20819 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20820 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'
20821 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'
20822 ;;
20823
20824 linux*)
20825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20826 tmp_addflag=
20827 case $cc_basename,$host_cpu in
20828 pgcc*) # Portland Group C compiler
20829 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'
20830 tmp_addflag=' $pic_flag'
20831 ;;
20832 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20833 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'
20834 tmp_addflag=' $pic_flag -Mnomain' ;;
20835 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20836 tmp_addflag=' -i_dynamic' ;;
20837 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20838 tmp_addflag=' -i_dynamic -nofor_main' ;;
20839 ifc* | ifort*) # Intel Fortran compiler
20840 tmp_addflag=' -nofor_main' ;;
20841 esac
20842 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20843
20844 if test $supports_anon_versioning = yes; then
20845 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20846 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20847 $echo "local: *; };" >> $output_objdir/$libname.ver~
20848 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20849 fi
20850 else
20851 ld_shlibs_F77=no
20852 fi
20853 ;;
20854
20855 netbsd*)
20856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20857 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20858 wlarc=
20859 else
20860 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20861 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20862 fi
20863 ;;
20864
20865 solaris*)
20866 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20867 ld_shlibs_F77=no
20868 cat <<EOF 1>&2
20869
20870*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20871*** create shared libraries on Solaris systems. Therefore, libtool
20872*** is disabling shared libraries support. We urge you to upgrade GNU
20873*** binutils to release 2.9.1 or newer. Another option is to modify
20874*** your PATH or compiler configuration so that the native linker is
20875*** used, and then restart.
20876
20877EOF
20878 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20879 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20880 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20881 else
20882 ld_shlibs_F77=no
20883 fi
20884 ;;
20885
20886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20887 case `$LD -v 2>&1` in
20888 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20889 ld_shlibs_F77=no
20890 cat <<_LT_EOF 1>&2
20891
20892*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20893*** reliably create shared libraries on SCO systems. Therefore, libtool
20894*** is disabling shared libraries support. We urge you to upgrade GNU
20895*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20896*** your PATH or compiler configuration so that the native linker is
20897*** used, and then restart.
20898
20899_LT_EOF
20900 ;;
20901 *)
20902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20903 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20904 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20905 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20906 else
20907 ld_shlibs_F77=no
20908 fi
20909 ;;
20910 esac
20911 ;;
20912
20913 sunos4*)
20914 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20915 wlarc=
20916 hardcode_direct_F77=yes
20917 hardcode_shlibpath_var_F77=no
20918 ;;
20919
20920 *)
20921 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20924 else
20925 ld_shlibs_F77=no
20926 fi
20927 ;;
20928 esac
20929
20930 if test "$ld_shlibs_F77" = no; then
20931 runpath_var=
20932 hardcode_libdir_flag_spec_F77=
20933 export_dynamic_flag_spec_F77=
20934 whole_archive_flag_spec_F77=
20935 fi
20936 else
20937 # PORTME fill in a description of your system's linker (not GNU ld)
20938 case $host_os in
20939 aix3*)
20940 allow_undefined_flag_F77=unsupported
20941 always_export_symbols_F77=yes
20942 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'
20943 # Note: this linker hardcodes the directories in LIBPATH if there
20944 # are no directories specified by -L.
20945 hardcode_minus_L_F77=yes
20946 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20947 # Neither direct hardcoding nor static linking is supported with a
20948 # broken collect2.
20949 hardcode_direct_F77=unsupported
20950 fi
20951 ;;
20952
20953 aix4* | aix5*)
20954 if test "$host_cpu" = ia64; then
20955 # On IA64, the linker does run time linking by default, so we don't
20956 # have to do anything special.
20957 aix_use_runtimelinking=no
20958 exp_sym_flag='-Bexport'
20959 no_entry_flag=""
20960 else
20961 # If we're using GNU nm, then we don't want the "-C" option.
20962 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20963 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20964 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'
20965 else
20966 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'
20967 fi
20968 aix_use_runtimelinking=no
20969
20970 # Test if we are trying to use run time linking or normal
20971 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20972 # need to do runtime linking.
20973 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20974 for ld_flag in $LDFLAGS; do
20975 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20976 aix_use_runtimelinking=yes
20977 break
20978 fi
20979 done
20980 ;;
20981 esac
20982
20983 exp_sym_flag='-bexport'
20984 no_entry_flag='-bnoentry'
20985 fi
20986
20987 # When large executables or shared objects are built, AIX ld can
20988 # have problems creating the table of contents. If linking a library
20989 # or program results in "error TOC overflow" add -mminimal-toc to
20990 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20991 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20992
20993 archive_cmds_F77=''
20994 hardcode_direct_F77=yes
20995 hardcode_libdir_separator_F77=':'
20996 link_all_deplibs_F77=yes
20997
20998 if test "$GCC" = yes; then
20999 case $host_os in aix4.[012]|aix4.[012].*)
21000 # We only want to do this on AIX 4.2 and lower, the check
21001 # below for broken collect2 doesn't work under 4.3+
21002 collect2name=`${CC} -print-prog-name=collect2`
21003 if test -f "$collect2name" && \
21004 strings "$collect2name" | grep resolve_lib_name >/dev/null
21005 then
21006 # We have reworked collect2
21007 hardcode_direct_F77=yes
21008 else
21009 # We have old collect2
21010 hardcode_direct_F77=unsupported
21011 # It fails to find uninstalled libraries when the uninstalled
21012 # path is not listed in the libpath. Setting hardcode_minus_L
21013 # to unsupported forces relinking
21014 hardcode_minus_L_F77=yes
21015 hardcode_libdir_flag_spec_F77='-L$libdir'
21016 hardcode_libdir_separator_F77=
21017 fi
21018 ;;
21019 esac
21020 shared_flag='-shared'
21021 if test "$aix_use_runtimelinking" = yes; then
21022 shared_flag="$shared_flag "'${wl}-G'
21023 fi
21024 else
21025 # not using gcc
21026 if test "$host_cpu" = ia64; then
21027 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21028 # chokes on -Wl,-G. The following line is correct:
21029 shared_flag='-G'
21030 else
21031 if test "$aix_use_runtimelinking" = yes; then
21032 shared_flag='${wl}-G'
21033 else
21034 shared_flag='${wl}-bM:SRE'
21035 fi
21036 fi
21037 fi
21038
21039 # It seems that -bexpall does not export symbols beginning with
21040 # underscore (_), so it is better to generate a list of symbols to export.
21041 always_export_symbols_F77=yes
21042 if test "$aix_use_runtimelinking" = yes; then
21043 # Warning - without using the other runtime loading flags (-brtl),
21044 # -berok will link without error, but may produce a broken library.
21045 allow_undefined_flag_F77='-berok'
21046 # Determine the default libpath from the value encoded in an empty executable.
21047 cat >conftest.$ac_ext <<_ACEOF
21048 program main
21049
21050 end
21051_ACEOF
21052rm -f conftest.$ac_objext conftest$ac_exeext
21053if { (ac_try="$ac_link"
21054case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057esac
21058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_link") 2>conftest.er1
21060 ac_status=$?
21061 grep -v '^ *+' conftest.er1 >conftest.err
21062 rm -f conftest.er1
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000021065 (exit $ac_status); } && {
21066 test -z "$ac_f77_werror_flag" ||
21067 test ! -s conftest.err
21068 } && test -s conftest$ac_exeext &&
21069 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021070
21071aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21072}'`
21073# Check for a 64-bit object if we didn't find anything.
21074if 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; }
21075}'`; fi
21076else
21077 echo "$as_me: failed program was:" >&5
21078sed 's/^/| /' conftest.$ac_ext >&5
21079
21080
21081fi
21082
Edwin Török20176752008-10-22 09:56:27 +000021083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021084 conftest$ac_exeext conftest.$ac_ext
21085if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21086
21087 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21088 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"
21089 else
21090 if test "$host_cpu" = ia64; then
21091 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21092 allow_undefined_flag_F77="-z nodefs"
21093 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"
21094 else
21095 # Determine the default libpath from the value encoded in an empty executable.
21096 cat >conftest.$ac_ext <<_ACEOF
21097 program main
21098
21099 end
21100_ACEOF
21101rm -f conftest.$ac_objext conftest$ac_exeext
21102if { (ac_try="$ac_link"
21103case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21106esac
21107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_link") 2>conftest.er1
21109 ac_status=$?
21110 grep -v '^ *+' conftest.er1 >conftest.err
21111 rm -f conftest.er1
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000021114 (exit $ac_status); } && {
21115 test -z "$ac_f77_werror_flag" ||
21116 test ! -s conftest.err
21117 } && test -s conftest$ac_exeext &&
21118 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021119
21120aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21121}'`
21122# Check for a 64-bit object if we didn't find anything.
21123if 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; }
21124}'`; fi
21125else
21126 echo "$as_me: failed program was:" >&5
21127sed 's/^/| /' conftest.$ac_ext >&5
21128
21129
21130fi
21131
Edwin Török20176752008-10-22 09:56:27 +000021132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021133 conftest$ac_exeext conftest.$ac_ext
21134if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21135
21136 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21137 # Warning - without using the other run time loading flags,
21138 # -berok will link without error, but may produce a broken library.
21139 no_undefined_flag_F77=' ${wl}-bernotok'
21140 allow_undefined_flag_F77=' ${wl}-berok'
21141 # Exported symbols can be pulled into shared objects from archives
21142 whole_archive_flag_spec_F77='$convenience'
21143 archive_cmds_need_lc_F77=yes
21144 # This is similar to how AIX traditionally builds its shared libraries.
21145 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'
21146 fi
21147 fi
21148 ;;
21149
21150 amigaos*)
21151 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)'
21152 hardcode_libdir_flag_spec_F77='-L$libdir'
21153 hardcode_minus_L_F77=yes
21154 # see comment about different semantics on the GNU ld section
21155 ld_shlibs_F77=no
21156 ;;
21157
21158 bsdi[45]*)
21159 export_dynamic_flag_spec_F77=-rdynamic
21160 ;;
21161
21162 cygwin* | mingw* | pw32*)
21163 # When not using gcc, we currently assume that we are using
21164 # Microsoft Visual C++.
21165 # hardcode_libdir_flag_spec is actually meaningless, as there is
21166 # no search path for DLLs.
21167 hardcode_libdir_flag_spec_F77=' '
21168 allow_undefined_flag_F77=unsupported
21169 # Tell ltmain to make .lib files, not .a files.
21170 libext=lib
21171 # Tell ltmain to make .dll files, not .so files.
21172 shrext_cmds=".dll"
21173 # FIXME: Setting linknames here is a bad hack.
21174 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21175 # The linker will automatically build a .lib file if we build a DLL.
21176 old_archive_From_new_cmds_F77='true'
21177 # FIXME: Should let the user specify the lib program.
21178 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21179 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21180 enable_shared_with_static_runtimes_F77=yes
21181 ;;
21182
21183 darwin* | rhapsody*)
21184 case $host_os in
21185 rhapsody* | darwin1.[012])
21186 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21187 ;;
21188 *) # Darwin 1.3 on
21189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21190 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21191 else
21192 case ${MACOSX_DEPLOYMENT_TARGET} in
21193 10.[012])
21194 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21195 ;;
21196 10.*)
21197 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21198 ;;
21199 esac
21200 fi
21201 ;;
21202 esac
21203 archive_cmds_need_lc_F77=no
21204 hardcode_direct_F77=no
21205 hardcode_automatic_F77=yes
21206 hardcode_shlibpath_var_F77=unsupported
21207 whole_archive_flag_spec_F77=''
21208 link_all_deplibs_F77=yes
21209 if test "$GCC" = yes ; then
21210 output_verbose_link_cmd='echo'
21211 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21212 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21214 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}'
21215 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}'
21216 else
21217 case $cc_basename in
21218 xlc*)
21219 output_verbose_link_cmd='echo'
21220 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21221 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21223 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}'
21224 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}'
21225 ;;
21226 *)
21227 ld_shlibs_F77=no
21228 ;;
21229 esac
21230 fi
21231 ;;
21232
21233 dgux*)
21234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21235 hardcode_libdir_flag_spec_F77='-L$libdir'
21236 hardcode_shlibpath_var_F77=no
21237 ;;
21238
21239 freebsd1*)
21240 ld_shlibs_F77=no
21241 ;;
21242
21243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21244 # support. Future versions do this automatically, but an explicit c++rt0.o
21245 # does not break anything, and helps significantly (at the cost of a little
21246 # extra space).
21247 freebsd2.2*)
21248 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21249 hardcode_libdir_flag_spec_F77='-R$libdir'
21250 hardcode_direct_F77=yes
21251 hardcode_shlibpath_var_F77=no
21252 ;;
21253
21254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21255 freebsd2*)
21256 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21257 hardcode_direct_F77=yes
21258 hardcode_minus_L_F77=yes
21259 hardcode_shlibpath_var_F77=no
21260 ;;
21261
21262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21263 freebsd* | kfreebsd*-gnu | dragonfly*)
21264 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21265 hardcode_libdir_flag_spec_F77='-R$libdir'
21266 hardcode_direct_F77=yes
21267 hardcode_shlibpath_var_F77=no
21268 ;;
21269
21270 hpux9*)
21271 if test "$GCC" = yes; then
21272 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'
21273 else
21274 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'
21275 fi
21276 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21277 hardcode_libdir_separator_F77=:
21278 hardcode_direct_F77=yes
21279
21280 # hardcode_minus_L: Not really in the search PATH,
21281 # but as the default location of the library.
21282 hardcode_minus_L_F77=yes
21283 export_dynamic_flag_spec_F77='${wl}-E'
21284 ;;
21285
21286 hpux10*)
21287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21288 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21289 else
21290 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21291 fi
21292 if test "$with_gnu_ld" = no; then
21293 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21294 hardcode_libdir_separator_F77=:
21295
21296 hardcode_direct_F77=yes
21297 export_dynamic_flag_spec_F77='${wl}-E'
21298
21299 # hardcode_minus_L: Not really in the search PATH,
21300 # but as the default location of the library.
21301 hardcode_minus_L_F77=yes
21302 fi
21303 ;;
21304
21305 hpux11*)
21306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21307 case $host_cpu in
21308 hppa*64*)
21309 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21310 ;;
21311 ia64*)
21312 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21313 ;;
21314 *)
21315 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21316 ;;
21317 esac
21318 else
21319 case $host_cpu in
21320 hppa*64*)
21321 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21322 ;;
21323 ia64*)
21324 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21325 ;;
21326 *)
21327 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21328 ;;
21329 esac
21330 fi
21331 if test "$with_gnu_ld" = no; then
21332 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21333 hardcode_libdir_separator_F77=:
21334
21335 case $host_cpu in
21336 hppa*64*|ia64*)
21337 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21338 hardcode_direct_F77=no
21339 hardcode_shlibpath_var_F77=no
21340 ;;
21341 *)
21342 hardcode_direct_F77=yes
21343 export_dynamic_flag_spec_F77='${wl}-E'
21344
21345 # hardcode_minus_L: Not really in the search PATH,
21346 # but as the default location of the library.
21347 hardcode_minus_L_F77=yes
21348 ;;
21349 esac
21350 fi
21351 ;;
21352
21353 irix5* | irix6* | nonstopux*)
21354 if test "$GCC" = yes; then
21355 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'
21356 else
21357 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'
21358 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21359 fi
21360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21361 hardcode_libdir_separator_F77=:
21362 link_all_deplibs_F77=yes
21363 ;;
21364
21365 netbsd*)
21366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21367 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21368 else
21369 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21370 fi
21371 hardcode_libdir_flag_spec_F77='-R$libdir'
21372 hardcode_direct_F77=yes
21373 hardcode_shlibpath_var_F77=no
21374 ;;
21375
21376 newsos6)
21377 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21378 hardcode_direct_F77=yes
21379 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21380 hardcode_libdir_separator_F77=:
21381 hardcode_shlibpath_var_F77=no
21382 ;;
21383
21384 openbsd*)
21385 hardcode_direct_F77=yes
21386 hardcode_shlibpath_var_F77=no
21387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21388 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21389 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21390 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21391 export_dynamic_flag_spec_F77='${wl}-E'
21392 else
21393 case $host_os in
21394 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21395 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21396 hardcode_libdir_flag_spec_F77='-R$libdir'
21397 ;;
21398 *)
21399 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21400 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21401 ;;
21402 esac
21403 fi
21404 ;;
21405
21406 os2*)
21407 hardcode_libdir_flag_spec_F77='-L$libdir'
21408 hardcode_minus_L_F77=yes
21409 allow_undefined_flag_F77=unsupported
21410 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'
21411 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21412 ;;
21413
21414 osf3*)
21415 if test "$GCC" = yes; then
21416 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21417 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'
21418 else
21419 allow_undefined_flag_F77=' -expect_unresolved \*'
21420 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'
21421 fi
21422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21423 hardcode_libdir_separator_F77=:
21424 ;;
21425
21426 osf4* | osf5*) # as osf3* with the addition of -msym flag
21427 if test "$GCC" = yes; then
21428 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21429 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'
21430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21431 else
21432 allow_undefined_flag_F77=' -expect_unresolved \*'
21433 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'
21434 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~
21435 $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'
21436
21437 # Both c and cxx compiler support -rpath directly
21438 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21439 fi
21440 hardcode_libdir_separator_F77=:
21441 ;;
21442
21443 solaris*)
21444 no_undefined_flag_F77=' -z text'
21445 if test "$GCC" = yes; then
21446 wlarc='${wl}'
21447 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21448 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21449 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21450 else
21451 wlarc=''
21452 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21453 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21454 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21455 fi
21456 hardcode_libdir_flag_spec_F77='-R$libdir'
21457 hardcode_shlibpath_var_F77=no
21458 case $host_os in
21459 solaris2.[0-5] | solaris2.[0-5].*) ;;
21460 *)
21461 # The compiler driver will combine linker options so we
21462 # cannot just pass the convience library names through
21463 # without $wl, iff we do not link with $LD.
21464 # Luckily, gcc supports the same syntax we need for Sun Studio.
21465 # Supported since Solaris 2.6 (maybe 2.5.1?)
21466 case $wlarc in
21467 '')
21468 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21469 *)
21470 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' ;;
21471 esac ;;
21472 esac
21473 link_all_deplibs_F77=yes
21474 ;;
21475
21476 sunos4*)
21477 if test "x$host_vendor" = xsequent; then
21478 # Use $CC to link under sequent, because it throws in some extra .o
21479 # files that make .init and .fini sections work.
21480 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21481 else
21482 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21483 fi
21484 hardcode_libdir_flag_spec_F77='-L$libdir'
21485 hardcode_direct_F77=yes
21486 hardcode_minus_L_F77=yes
21487 hardcode_shlibpath_var_F77=no
21488 ;;
21489
21490 sysv4)
21491 case $host_vendor in
21492 sni)
21493 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21494 hardcode_direct_F77=yes # is this really true???
21495 ;;
21496 siemens)
21497 ## LD is ld it makes a PLAMLIB
21498 ## CC just makes a GrossModule.
21499 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21500 reload_cmds_F77='$CC -r -o $output$reload_objs'
21501 hardcode_direct_F77=no
21502 ;;
21503 motorola)
21504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21505 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21506 ;;
21507 esac
21508 runpath_var='LD_RUN_PATH'
21509 hardcode_shlibpath_var_F77=no
21510 ;;
21511
21512 sysv4.3*)
21513 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21514 hardcode_shlibpath_var_F77=no
21515 export_dynamic_flag_spec_F77='-Bexport'
21516 ;;
21517
21518 sysv4*MP*)
21519 if test -d /usr/nec; then
21520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21521 hardcode_shlibpath_var_F77=no
21522 runpath_var=LD_RUN_PATH
21523 hardcode_runpath_var=yes
21524 ld_shlibs_F77=yes
21525 fi
21526 ;;
21527
21528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21529 no_undefined_flag_F77='${wl}-z,text'
21530 archive_cmds_need_lc_F77=no
21531 hardcode_shlibpath_var_F77=no
21532 runpath_var='LD_RUN_PATH'
21533
21534 if test "$GCC" = yes; then
21535 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21536 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21537 else
21538 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21539 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21540 fi
21541 ;;
21542
21543 sysv5* | sco3.2v5* | sco5v6*)
21544 # Note: We can NOT use -z defs as we might desire, because we do not
21545 # link with -lc, and that would cause any symbols used from libc to
21546 # always be unresolved, which means just about no library would
21547 # ever link correctly. If we're not using GNU ld we use -z text
21548 # though, which does catch some bad symbols but isn't as heavy-handed
21549 # as -z defs.
21550 no_undefined_flag_F77='${wl}-z,text'
21551 allow_undefined_flag_F77='${wl}-z,nodefs'
21552 archive_cmds_need_lc_F77=no
21553 hardcode_shlibpath_var_F77=no
21554 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21555 hardcode_libdir_separator_F77=':'
21556 link_all_deplibs_F77=yes
21557 export_dynamic_flag_spec_F77='${wl}-Bexport'
21558 runpath_var='LD_RUN_PATH'
21559
21560 if test "$GCC" = yes; then
21561 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21562 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21563 else
21564 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21565 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21566 fi
21567 ;;
21568
21569 uts4*)
21570 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21571 hardcode_libdir_flag_spec_F77='-L$libdir'
21572 hardcode_shlibpath_var_F77=no
21573 ;;
21574
21575 *)
21576 ld_shlibs_F77=no
21577 ;;
21578 esac
21579 fi
21580
21581{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21582echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21583test "$ld_shlibs_F77" = no && can_build_shared=no
21584
21585#
21586# Do we need to explicitly link libc?
21587#
21588case "x$archive_cmds_need_lc_F77" in
21589x|xyes)
21590 # Assume -lc should be added
21591 archive_cmds_need_lc_F77=yes
21592
21593 if test "$enable_shared" = yes && test "$GCC" = yes; then
21594 case $archive_cmds_F77 in
21595 *'~'*)
21596 # FIXME: we may have to deal with multi-command sequences.
21597 ;;
21598 '$CC '*)
21599 # Test whether the compiler implicitly links with -lc since on some
21600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21601 # to ld, don't add -lc before -lgcc.
21602 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21603echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21604 $rm conftest*
21605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21606
21607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21608 (eval $ac_compile) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); } 2>conftest.err; then
21612 soname=conftest
21613 lib=conftest
21614 libobjs=conftest.$ac_objext
21615 deplibs=
21616 wl=$lt_prog_compiler_wl_F77
21617 pic_flag=$lt_prog_compiler_pic_F77
21618 compiler_flags=-v
21619 linker_flags=-v
21620 verstring=
21621 output_objdir=.
21622 libname=conftest
21623 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21624 allow_undefined_flag_F77=
21625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21626 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21627 ac_status=$?
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }
21630 then
21631 archive_cmds_need_lc_F77=no
21632 else
21633 archive_cmds_need_lc_F77=yes
21634 fi
21635 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21636 else
21637 cat conftest.err 1>&5
21638 fi
21639 $rm conftest*
21640 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21641echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21642 ;;
21643 esac
21644 fi
21645 ;;
21646esac
21647
21648{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21649echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21650library_names_spec=
21651libname_spec='lib$name'
21652soname_spec=
21653shrext_cmds=".so"
21654postinstall_cmds=
21655postuninstall_cmds=
21656finish_cmds=
21657finish_eval=
21658shlibpath_var=
21659shlibpath_overrides_runpath=unknown
21660version_type=none
21661dynamic_linker="$host_os ld.so"
21662sys_lib_dlsearch_path_spec="/lib /usr/lib"
21663if test "$GCC" = yes; then
21664 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21665 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21666 # if the path contains ";" then we assume it to be the separator
21667 # otherwise default to the standard path separator (i.e. ":") - it is
21668 # assumed that no part of a normal pathname contains ";" but that should
21669 # okay in the real world where ";" in dirpaths is itself problematic.
21670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21671 else
21672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21673 fi
21674else
21675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21676fi
21677need_lib_prefix=unknown
21678hardcode_into_libs=no
21679
21680# when you set need_version to no, make sure it does not cause -set_version
21681# flags to be left without arguments
21682need_version=unknown
21683
21684case $host_os in
21685aix3*)
21686 version_type=linux
21687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21688 shlibpath_var=LIBPATH
21689
21690 # AIX 3 has no versioning support, so we append a major version to the name.
21691 soname_spec='${libname}${release}${shared_ext}$major'
21692 ;;
21693
21694aix4* | aix5*)
21695 version_type=linux
21696 need_lib_prefix=no
21697 need_version=no
21698 hardcode_into_libs=yes
21699 if test "$host_cpu" = ia64; then
21700 # AIX 5 supports IA64
21701 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21702 shlibpath_var=LD_LIBRARY_PATH
21703 else
21704 # With GCC up to 2.95.x, collect2 would create an import file
21705 # for dependence libraries. The import file would start with
21706 # the line `#! .'. This would cause the generated library to
21707 # depend on `.', always an invalid library. This was fixed in
21708 # development snapshots of GCC prior to 3.0.
21709 case $host_os in
21710 aix4 | aix4.[01] | aix4.[01].*)
21711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21712 echo ' yes '
21713 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21714 :
21715 else
21716 can_build_shared=no
21717 fi
21718 ;;
21719 esac
21720 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21721 # soname into executable. Probably we can add versioning support to
21722 # collect2, so additional links can be useful in future.
21723 if test "$aix_use_runtimelinking" = yes; then
21724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21725 # instead of lib<name>.a to let people know that these are not
21726 # typical AIX shared libraries.
21727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21728 else
21729 # We preserve .a as extension for shared libraries through AIX4.2
21730 # and later when we are not doing run time linking.
21731 library_names_spec='${libname}${release}.a $libname.a'
21732 soname_spec='${libname}${release}${shared_ext}$major'
21733 fi
21734 shlibpath_var=LIBPATH
21735 fi
21736 ;;
21737
21738amigaos*)
21739 library_names_spec='$libname.ixlibrary $libname.a'
21740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21741 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'
21742 ;;
21743
21744beos*)
21745 library_names_spec='${libname}${shared_ext}'
21746 dynamic_linker="$host_os ld.so"
21747 shlibpath_var=LIBRARY_PATH
21748 ;;
21749
21750bsdi[45]*)
21751 version_type=linux
21752 need_version=no
21753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21754 soname_spec='${libname}${release}${shared_ext}$major'
21755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21756 shlibpath_var=LD_LIBRARY_PATH
21757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21759 # the default ld.so.conf also contains /usr/contrib/lib and
21760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21761 # libtool to hard-code these into programs
21762 ;;
21763
21764cygwin* | mingw* | pw32*)
21765 version_type=windows
21766 shrext_cmds=".dll"
21767 need_version=no
21768 need_lib_prefix=no
21769
21770 case $GCC,$host_os in
21771 yes,cygwin* | yes,mingw* | yes,pw32*)
21772 library_names_spec='$libname.dll.a'
21773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21774 postinstall_cmds='base_file=`basename \${file}`~
21775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21776 dldir=$destdir/`dirname \$dlpath`~
21777 test -d \$dldir || mkdir -p \$dldir~
21778 $install_prog $dir/$dlname \$dldir/$dlname~
21779 chmod a+x \$dldir/$dlname'
21780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21781 dlpath=$dir/\$dldll~
21782 $rm \$dlpath'
21783 shlibpath_overrides_runpath=yes
21784
21785 case $host_os in
21786 cygwin*)
21787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21789 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21790 ;;
21791 mingw*)
21792 # MinGW DLLs use traditional 'lib' prefix
21793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21795 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21796 # It is most probably a Windows format PATH printed by
21797 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21798 # path with ; separators, and with drive letters. We can handle the
21799 # drive letters (cygwin fileutils understands them), so leave them,
21800 # especially as we might pass files found there to a mingw objdump,
21801 # which wouldn't understand a cygwinified path. Ahh.
21802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21803 else
21804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21805 fi
21806 ;;
21807 pw32*)
21808 # pw32 DLLs use 'pw' prefix rather than 'lib'
21809 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21810 ;;
21811 esac
21812 ;;
21813
21814 *)
21815 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21816 ;;
21817 esac
21818 dynamic_linker='Win32 ld.exe'
21819 # FIXME: first we should search . and the directory the executable is in
21820 shlibpath_var=PATH
21821 ;;
21822
21823darwin* | rhapsody*)
21824 dynamic_linker="$host_os dyld"
21825 version_type=darwin
21826 need_lib_prefix=no
21827 need_version=no
21828 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21829 soname_spec='${libname}${release}${major}$shared_ext'
21830 shlibpath_overrides_runpath=yes
21831 shlibpath_var=DYLD_LIBRARY_PATH
21832 shrext_cmds='.dylib'
21833 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21834 if test "$GCC" = yes; then
21835 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"`
21836 else
21837 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21838 fi
21839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21840 ;;
21841
21842dgux*)
21843 version_type=linux
21844 need_lib_prefix=no
21845 need_version=no
21846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21847 soname_spec='${libname}${release}${shared_ext}$major'
21848 shlibpath_var=LD_LIBRARY_PATH
21849 ;;
21850
21851freebsd1*)
21852 dynamic_linker=no
21853 ;;
21854
21855kfreebsd*-gnu)
21856 version_type=linux
21857 need_lib_prefix=no
21858 need_version=no
21859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21860 soname_spec='${libname}${release}${shared_ext}$major'
21861 shlibpath_var=LD_LIBRARY_PATH
21862 shlibpath_overrides_runpath=no
21863 hardcode_into_libs=yes
21864 dynamic_linker='GNU ld.so'
21865 ;;
21866
21867freebsd* | dragonfly*)
21868 # DragonFly does not have aout. When/if they implement a new
21869 # versioning mechanism, adjust this.
21870 if test -x /usr/bin/objformat; then
21871 objformat=`/usr/bin/objformat`
21872 else
21873 case $host_os in
21874 freebsd[123]*) objformat=aout ;;
21875 *) objformat=elf ;;
21876 esac
21877 fi
21878 version_type=freebsd-$objformat
21879 case $version_type in
21880 freebsd-elf*)
21881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21882 need_version=no
21883 need_lib_prefix=no
21884 ;;
21885 freebsd-*)
21886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21887 need_version=yes
21888 ;;
21889 esac
21890 shlibpath_var=LD_LIBRARY_PATH
21891 case $host_os in
21892 freebsd2*)
21893 shlibpath_overrides_runpath=yes
21894 ;;
21895 freebsd3.[01]* | freebsdelf3.[01]*)
21896 shlibpath_overrides_runpath=yes
21897 hardcode_into_libs=yes
21898 ;;
21899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21901 shlibpath_overrides_runpath=no
21902 hardcode_into_libs=yes
21903 ;;
21904 freebsd*) # from 4.6 on
21905 shlibpath_overrides_runpath=yes
21906 hardcode_into_libs=yes
21907 ;;
21908 esac
21909 ;;
21910
21911gnu*)
21912 version_type=linux
21913 need_lib_prefix=no
21914 need_version=no
21915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21916 soname_spec='${libname}${release}${shared_ext}$major'
21917 shlibpath_var=LD_LIBRARY_PATH
21918 hardcode_into_libs=yes
21919 ;;
21920
21921hpux9* | hpux10* | hpux11*)
21922 # Give a soname corresponding to the major version so that dld.sl refuses to
21923 # link against other versions.
21924 version_type=sunos
21925 need_lib_prefix=no
21926 need_version=no
21927 case $host_cpu in
21928 ia64*)
21929 shrext_cmds='.so'
21930 hardcode_into_libs=yes
21931 dynamic_linker="$host_os dld.so"
21932 shlibpath_var=LD_LIBRARY_PATH
21933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21935 soname_spec='${libname}${release}${shared_ext}$major'
21936 if test "X$HPUX_IA64_MODE" = X32; then
21937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21938 else
21939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21940 fi
21941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21942 ;;
21943 hppa*64*)
21944 shrext_cmds='.sl'
21945 hardcode_into_libs=yes
21946 dynamic_linker="$host_os dld.sl"
21947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21950 soname_spec='${libname}${release}${shared_ext}$major'
21951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21953 ;;
21954 *)
21955 shrext_cmds='.sl'
21956 dynamic_linker="$host_os dld.sl"
21957 shlibpath_var=SHLIB_PATH
21958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21960 soname_spec='${libname}${release}${shared_ext}$major'
21961 ;;
21962 esac
21963 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21964 postinstall_cmds='chmod 555 $lib'
21965 ;;
21966
21967interix3*)
21968 version_type=linux
21969 need_lib_prefix=no
21970 need_version=no
21971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21972 soname_spec='${libname}${release}${shared_ext}$major'
21973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21974 shlibpath_var=LD_LIBRARY_PATH
21975 shlibpath_overrides_runpath=no
21976 hardcode_into_libs=yes
21977 ;;
21978
21979irix5* | irix6* | nonstopux*)
21980 case $host_os in
21981 nonstopux*) version_type=nonstopux ;;
21982 *)
21983 if test "$lt_cv_prog_gnu_ld" = yes; then
21984 version_type=linux
21985 else
21986 version_type=irix
21987 fi ;;
21988 esac
21989 need_lib_prefix=no
21990 need_version=no
21991 soname_spec='${libname}${release}${shared_ext}$major'
21992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21993 case $host_os in
21994 irix5* | nonstopux*)
21995 libsuff= shlibsuff=
21996 ;;
21997 *)
21998 case $LD in # libtool.m4 will add one of these switches to LD
21999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22000 libsuff= shlibsuff= libmagic=32-bit;;
22001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22002 libsuff=32 shlibsuff=N32 libmagic=N32;;
22003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22005 *) libsuff= shlibsuff= libmagic=never-match;;
22006 esac
22007 ;;
22008 esac
22009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22010 shlibpath_overrides_runpath=no
22011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22013 hardcode_into_libs=yes
22014 ;;
22015
22016# No shared lib support for Linux oldld, aout, or coff.
22017linux*oldld* | linux*aout* | linux*coff*)
22018 dynamic_linker=no
22019 ;;
22020
22021# This must be Linux ELF.
22022linux*)
22023 version_type=linux
22024 need_lib_prefix=no
22025 need_version=no
22026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22027 soname_spec='${libname}${release}${shared_ext}$major'
22028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22029 shlibpath_var=LD_LIBRARY_PATH
22030 shlibpath_overrides_runpath=no
22031 # This implies no fast_install, which is unacceptable.
22032 # Some rework will be needed to allow for fast_install
22033 # before this can be enabled.
22034 hardcode_into_libs=yes
22035
22036 # Append ld.so.conf contents to the search path
22037 if test -f /etc/ld.so.conf; then
22038 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' ' '`
22039 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22040 fi
22041
22042 # We used to test for /lib/ld.so.1 and disable shared libraries on
22043 # powerpc, because MkLinux only supported shared libraries with the
22044 # GNU dynamic linker. Since this was broken with cross compilers,
22045 # most powerpc-linux boxes support dynamic linking these days and
22046 # people can always --disable-shared, the test was removed, and we
22047 # assume the GNU/Linux dynamic linker is in use.
22048 dynamic_linker='GNU/Linux ld.so'
22049 ;;
22050
22051knetbsd*-gnu)
22052 version_type=linux
22053 need_lib_prefix=no
22054 need_version=no
22055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22056 soname_spec='${libname}${release}${shared_ext}$major'
22057 shlibpath_var=LD_LIBRARY_PATH
22058 shlibpath_overrides_runpath=no
22059 hardcode_into_libs=yes
22060 dynamic_linker='GNU ld.so'
22061 ;;
22062
22063netbsd*)
22064 version_type=sunos
22065 need_lib_prefix=no
22066 need_version=no
22067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22070 dynamic_linker='NetBSD (a.out) ld.so'
22071 else
22072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22073 soname_spec='${libname}${release}${shared_ext}$major'
22074 dynamic_linker='NetBSD ld.elf_so'
22075 fi
22076 shlibpath_var=LD_LIBRARY_PATH
22077 shlibpath_overrides_runpath=yes
22078 hardcode_into_libs=yes
22079 ;;
22080
22081newsos6)
22082 version_type=linux
22083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22084 shlibpath_var=LD_LIBRARY_PATH
22085 shlibpath_overrides_runpath=yes
22086 ;;
22087
22088nto-qnx*)
22089 version_type=linux
22090 need_lib_prefix=no
22091 need_version=no
22092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22093 soname_spec='${libname}${release}${shared_ext}$major'
22094 shlibpath_var=LD_LIBRARY_PATH
22095 shlibpath_overrides_runpath=yes
22096 ;;
22097
22098openbsd*)
22099 version_type=sunos
22100 sys_lib_dlsearch_path_spec="/usr/lib"
22101 need_lib_prefix=no
22102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22103 case $host_os in
22104 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22105 *) need_version=no ;;
22106 esac
22107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22109 shlibpath_var=LD_LIBRARY_PATH
22110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22111 case $host_os in
22112 openbsd2.[89] | openbsd2.[89].*)
22113 shlibpath_overrides_runpath=no
22114 ;;
22115 *)
22116 shlibpath_overrides_runpath=yes
22117 ;;
22118 esac
22119 else
22120 shlibpath_overrides_runpath=yes
22121 fi
22122 ;;
22123
22124os2*)
22125 libname_spec='$name'
22126 shrext_cmds=".dll"
22127 need_lib_prefix=no
22128 library_names_spec='$libname${shared_ext} $libname.a'
22129 dynamic_linker='OS/2 ld.exe'
22130 shlibpath_var=LIBPATH
22131 ;;
22132
22133osf3* | osf4* | osf5*)
22134 version_type=osf
22135 need_lib_prefix=no
22136 need_version=no
22137 soname_spec='${libname}${release}${shared_ext}$major'
22138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22139 shlibpath_var=LD_LIBRARY_PATH
22140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22142 ;;
22143
22144solaris*)
22145 version_type=linux
22146 need_lib_prefix=no
22147 need_version=no
22148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22149 soname_spec='${libname}${release}${shared_ext}$major'
22150 shlibpath_var=LD_LIBRARY_PATH
22151 shlibpath_overrides_runpath=yes
22152 hardcode_into_libs=yes
22153 # ldd complains unless libraries are executable
22154 postinstall_cmds='chmod +x $lib'
22155 ;;
22156
22157sunos4*)
22158 version_type=sunos
22159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22161 shlibpath_var=LD_LIBRARY_PATH
22162 shlibpath_overrides_runpath=yes
22163 if test "$with_gnu_ld" = yes; then
22164 need_lib_prefix=no
22165 fi
22166 need_version=yes
22167 ;;
22168
22169sysv4 | sysv4.3*)
22170 version_type=linux
22171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22172 soname_spec='${libname}${release}${shared_ext}$major'
22173 shlibpath_var=LD_LIBRARY_PATH
22174 case $host_vendor in
22175 sni)
22176 shlibpath_overrides_runpath=no
22177 need_lib_prefix=no
22178 export_dynamic_flag_spec='${wl}-Blargedynsym'
22179 runpath_var=LD_RUN_PATH
22180 ;;
22181 siemens)
22182 need_lib_prefix=no
22183 ;;
22184 motorola)
22185 need_lib_prefix=no
22186 need_version=no
22187 shlibpath_overrides_runpath=no
22188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22189 ;;
22190 esac
22191 ;;
22192
22193sysv4*MP*)
22194 if test -d /usr/nec ;then
22195 version_type=linux
22196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22197 soname_spec='$libname${shared_ext}.$major'
22198 shlibpath_var=LD_LIBRARY_PATH
22199 fi
22200 ;;
22201
22202sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22203 version_type=freebsd-elf
22204 need_lib_prefix=no
22205 need_version=no
22206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22207 soname_spec='${libname}${release}${shared_ext}$major'
22208 shlibpath_var=LD_LIBRARY_PATH
22209 hardcode_into_libs=yes
22210 if test "$with_gnu_ld" = yes; then
22211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22212 shlibpath_overrides_runpath=no
22213 else
22214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22215 shlibpath_overrides_runpath=yes
22216 case $host_os in
22217 sco3.2v5*)
22218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22219 ;;
22220 esac
22221 fi
22222 sys_lib_dlsearch_path_spec='/usr/lib'
22223 ;;
22224
22225uts4*)
22226 version_type=linux
22227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22228 soname_spec='${libname}${release}${shared_ext}$major'
22229 shlibpath_var=LD_LIBRARY_PATH
22230 ;;
22231
22232*)
22233 dynamic_linker=no
22234 ;;
22235esac
22236{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22237echo "${ECHO_T}$dynamic_linker" >&6; }
22238test "$dynamic_linker" = no && can_build_shared=no
22239
22240variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22241if test "$GCC" = yes; then
22242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22243fi
22244
22245{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22246echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22247hardcode_action_F77=
22248if test -n "$hardcode_libdir_flag_spec_F77" || \
22249 test -n "$runpath_var_F77" || \
22250 test "X$hardcode_automatic_F77" = "Xyes" ; then
22251
22252 # We can hardcode non-existant directories.
22253 if test "$hardcode_direct_F77" != no &&
22254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22255 # have to relink, otherwise we might link with an installed library
22256 # when we should be linking with a yet-to-be-installed one
22257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22258 test "$hardcode_minus_L_F77" != no; then
22259 # Linking always hardcodes the temporary library directory.
22260 hardcode_action_F77=relink
22261 else
22262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22263 hardcode_action_F77=immediate
22264 fi
22265else
22266 # We cannot hardcode anything, or else we can only hardcode existing
22267 # directories.
22268 hardcode_action_F77=unsupported
22269fi
22270{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22271echo "${ECHO_T}$hardcode_action_F77" >&6; }
22272
22273if test "$hardcode_action_F77" = relink; then
22274 # Fast installation is not supported
22275 enable_fast_install=no
22276elif test "$shlibpath_overrides_runpath" = yes ||
22277 test "$enable_shared" = no; then
22278 # Fast installation is not necessary
22279 enable_fast_install=needless
22280fi
22281
22282
22283# The else clause should only fire when bootstrapping the
22284# libtool distribution, otherwise you forgot to ship ltmain.sh
22285# with your package, and you will get complaints that there are
22286# no rules to generate ltmain.sh.
22287if test -f "$ltmain"; then
22288 # See if we are running on zsh, and set the options which allow our commands through
22289 # without removal of \ escapes.
22290 if test -n "${ZSH_VERSION+set}" ; then
22291 setopt NO_GLOB_SUBST
22292 fi
22293 # Now quote all the things that may contain metacharacters while being
22294 # careful not to overquote the AC_SUBSTed values. We take copies of the
22295 # variables and quote the copies for generation of the libtool script.
22296 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22297 SED SHELL STRIP \
22298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22300 deplibs_check_method reload_flag reload_cmds need_locks \
22301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22302 lt_cv_sys_global_symbol_to_c_name_address \
22303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22304 old_postinstall_cmds old_postuninstall_cmds \
22305 compiler_F77 \
22306 CC_F77 \
22307 LD_F77 \
22308 lt_prog_compiler_wl_F77 \
22309 lt_prog_compiler_pic_F77 \
22310 lt_prog_compiler_static_F77 \
22311 lt_prog_compiler_no_builtin_flag_F77 \
22312 export_dynamic_flag_spec_F77 \
22313 thread_safe_flag_spec_F77 \
22314 whole_archive_flag_spec_F77 \
22315 enable_shared_with_static_runtimes_F77 \
22316 old_archive_cmds_F77 \
22317 old_archive_from_new_cmds_F77 \
22318 predep_objects_F77 \
22319 postdep_objects_F77 \
22320 predeps_F77 \
22321 postdeps_F77 \
22322 compiler_lib_search_path_F77 \
22323 archive_cmds_F77 \
22324 archive_expsym_cmds_F77 \
22325 postinstall_cmds_F77 \
22326 postuninstall_cmds_F77 \
22327 old_archive_from_expsyms_cmds_F77 \
22328 allow_undefined_flag_F77 \
22329 no_undefined_flag_F77 \
22330 export_symbols_cmds_F77 \
22331 hardcode_libdir_flag_spec_F77 \
22332 hardcode_libdir_flag_spec_ld_F77 \
22333 hardcode_libdir_separator_F77 \
22334 hardcode_automatic_F77 \
22335 module_cmds_F77 \
22336 module_expsym_cmds_F77 \
22337 lt_cv_prog_compiler_c_o_F77 \
22338 exclude_expsyms_F77 \
22339 include_expsyms_F77; do
22340
22341 case $var in
22342 old_archive_cmds_F77 | \
22343 old_archive_from_new_cmds_F77 | \
22344 archive_cmds_F77 | \
22345 archive_expsym_cmds_F77 | \
22346 module_cmds_F77 | \
22347 module_expsym_cmds_F77 | \
22348 old_archive_from_expsyms_cmds_F77 | \
22349 export_symbols_cmds_F77 | \
22350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22351 postinstall_cmds | postuninstall_cmds | \
22352 old_postinstall_cmds | old_postuninstall_cmds | \
22353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22354 # Double-quote double-evaled strings.
22355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22356 ;;
22357 *)
22358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22359 ;;
22360 esac
22361 done
22362
22363 case $lt_echo in
22364 *'\$0 --fallback-echo"')
22365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22366 ;;
22367 esac
22368
22369cfgfile="$ofile"
22370
22371 cat <<__EOF__ >> "$cfgfile"
22372# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22373
22374# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22375
22376# Shell to use when invoking shell scripts.
22377SHELL=$lt_SHELL
22378
22379# Whether or not to build shared libraries.
22380build_libtool_libs=$enable_shared
22381
22382# Whether or not to build static libraries.
22383build_old_libs=$enable_static
22384
22385# Whether or not to add -lc for building shared libraries.
22386build_libtool_need_lc=$archive_cmds_need_lc_F77
22387
22388# Whether or not to disallow shared libs when runtime libs are static
22389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22390
22391# Whether or not to optimize for fast installation.
22392fast_install=$enable_fast_install
22393
22394# The host system.
22395host_alias=$host_alias
22396host=$host
22397host_os=$host_os
22398
22399# The build system.
22400build_alias=$build_alias
22401build=$build
22402build_os=$build_os
22403
22404# An echo program that does not interpret backslashes.
22405echo=$lt_echo
22406
22407# The archiver.
22408AR=$lt_AR
22409AR_FLAGS=$lt_AR_FLAGS
22410
22411# A C compiler.
22412LTCC=$lt_LTCC
22413
22414# LTCC compiler flags.
22415LTCFLAGS=$lt_LTCFLAGS
22416
22417# A language-specific compiler.
22418CC=$lt_compiler_F77
22419
22420# Is the compiler the GNU C compiler?
22421with_gcc=$GCC_F77
22422
22423# An ERE matcher.
22424EGREP=$lt_EGREP
22425
22426# The linker used to build libraries.
22427LD=$lt_LD_F77
22428
22429# Whether we need hard or soft links.
22430LN_S=$lt_LN_S
22431
22432# A BSD-compatible nm program.
22433NM=$lt_NM
22434
22435# A symbol stripping program
22436STRIP=$lt_STRIP
22437
22438# Used to examine libraries when file_magic_cmd begins "file"
22439MAGIC_CMD=$MAGIC_CMD
22440
22441# Used on cygwin: DLL creation program.
22442DLLTOOL="$DLLTOOL"
22443
22444# Used on cygwin: object dumper.
22445OBJDUMP="$OBJDUMP"
22446
22447# Used on cygwin: assembler.
22448AS="$AS"
22449
22450# The name of the directory that contains temporary libtool files.
22451objdir=$objdir
22452
22453# How to create reloadable object files.
22454reload_flag=$lt_reload_flag
22455reload_cmds=$lt_reload_cmds
22456
22457# How to pass a linker flag through the compiler.
22458wl=$lt_lt_prog_compiler_wl_F77
22459
22460# Object file suffix (normally "o").
22461objext="$ac_objext"
22462
22463# Old archive suffix (normally "a").
22464libext="$libext"
22465
22466# Shared library suffix (normally ".so").
22467shrext_cmds='$shrext_cmds'
22468
22469# Executable file suffix (normally "").
22470exeext="$exeext"
22471
22472# Additional compiler flags for building library objects.
22473pic_flag=$lt_lt_prog_compiler_pic_F77
22474pic_mode=$pic_mode
22475
22476# What is the maximum length of a command?
22477max_cmd_len=$lt_cv_sys_max_cmd_len
22478
22479# Does compiler simultaneously support -c and -o options?
22480compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22481
22482# Must we lock files when doing compilation?
22483need_locks=$lt_need_locks
22484
22485# Do we need the lib prefix for modules?
22486need_lib_prefix=$need_lib_prefix
22487
22488# Do we need a version for libraries?
22489need_version=$need_version
22490
22491# Whether dlopen is supported.
22492dlopen_support=$enable_dlopen
22493
22494# Whether dlopen of programs is supported.
22495dlopen_self=$enable_dlopen_self
22496
22497# Whether dlopen of statically linked programs is supported.
22498dlopen_self_static=$enable_dlopen_self_static
22499
22500# Compiler flag to prevent dynamic linking.
22501link_static_flag=$lt_lt_prog_compiler_static_F77
22502
22503# Compiler flag to turn off builtin functions.
22504no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22505
22506# Compiler flag to allow reflexive dlopens.
22507export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22508
22509# Compiler flag to generate shared objects directly from archives.
22510whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22511
22512# Compiler flag to generate thread-safe objects.
22513thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22514
22515# Library versioning type.
22516version_type=$version_type
22517
22518# Format of library name prefix.
22519libname_spec=$lt_libname_spec
22520
22521# List of archive names. First name is the real one, the rest are links.
22522# The last name is the one that the linker finds with -lNAME.
22523library_names_spec=$lt_library_names_spec
22524
22525# The coded name of the library, if different from the real name.
22526soname_spec=$lt_soname_spec
22527
22528# Commands used to build and install an old-style archive.
22529RANLIB=$lt_RANLIB
22530old_archive_cmds=$lt_old_archive_cmds_F77
22531old_postinstall_cmds=$lt_old_postinstall_cmds
22532old_postuninstall_cmds=$lt_old_postuninstall_cmds
22533
22534# Create an old-style archive from a shared archive.
22535old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22536
22537# Create a temporary old-style archive to link instead of a shared archive.
22538old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22539
22540# Commands used to build and install a shared archive.
22541archive_cmds=$lt_archive_cmds_F77
22542archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22543postinstall_cmds=$lt_postinstall_cmds
22544postuninstall_cmds=$lt_postuninstall_cmds
22545
22546# Commands used to build a loadable module (assumed same as above if empty)
22547module_cmds=$lt_module_cmds_F77
22548module_expsym_cmds=$lt_module_expsym_cmds_F77
22549
22550# Commands to strip libraries.
22551old_striplib=$lt_old_striplib
22552striplib=$lt_striplib
22553
22554# Dependencies to place before the objects being linked to create a
22555# shared library.
22556predep_objects=$lt_predep_objects_F77
22557
22558# Dependencies to place after the objects being linked to create a
22559# shared library.
22560postdep_objects=$lt_postdep_objects_F77
22561
22562# Dependencies to place before the objects being linked to create a
22563# shared library.
22564predeps=$lt_predeps_F77
22565
22566# Dependencies to place after the objects being linked to create a
22567# shared library.
22568postdeps=$lt_postdeps_F77
22569
22570# The library search path used internally by the compiler when linking
22571# a shared library.
22572compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22573
22574# Method to check whether dependent libraries are shared objects.
22575deplibs_check_method=$lt_deplibs_check_method
22576
22577# Command to use when deplibs_check_method == file_magic.
22578file_magic_cmd=$lt_file_magic_cmd
22579
22580# Flag that allows shared libraries with undefined symbols to be built.
22581allow_undefined_flag=$lt_allow_undefined_flag_F77
22582
22583# Flag that forces no undefined symbols.
22584no_undefined_flag=$lt_no_undefined_flag_F77
22585
22586# Commands used to finish a libtool library installation in a directory.
22587finish_cmds=$lt_finish_cmds
22588
22589# Same as above, but a single script fragment to be evaled but not shown.
22590finish_eval=$lt_finish_eval
22591
22592# Take the output of nm and produce a listing of raw symbols and C names.
22593global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22594
22595# Transform the output of nm in a proper C declaration
22596global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22597
22598# Transform the output of nm in a C name address pair
22599global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22600
22601# This is the shared library runtime path variable.
22602runpath_var=$runpath_var
22603
22604# This is the shared library path variable.
22605shlibpath_var=$shlibpath_var
22606
22607# Is shlibpath searched before the hard-coded library search path?
22608shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22609
22610# How to hardcode a shared library path into an executable.
22611hardcode_action=$hardcode_action_F77
22612
22613# Whether we should hardcode library paths into libraries.
22614hardcode_into_libs=$hardcode_into_libs
22615
22616# Flag to hardcode \$libdir into a binary during linking.
22617# This must work even if \$libdir does not exist.
22618hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22619
22620# If ld is used when linking, flag to hardcode \$libdir into
22621# a binary during linking. This must work even if \$libdir does
22622# not exist.
22623hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22624
22625# Whether we need a single -rpath flag with a separated argument.
22626hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22627
22628# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22629# resulting binary.
22630hardcode_direct=$hardcode_direct_F77
22631
22632# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22633# resulting binary.
22634hardcode_minus_L=$hardcode_minus_L_F77
22635
22636# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22637# the resulting binary.
22638hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22639
22640# Set to yes if building a shared library automatically hardcodes DIR into the library
22641# and all subsequent libraries and executables linked against it.
22642hardcode_automatic=$hardcode_automatic_F77
22643
22644# Variables whose values should be saved in libtool wrapper scripts and
22645# restored at relink time.
22646variables_saved_for_relink="$variables_saved_for_relink"
22647
22648# Whether libtool must link a program against all its dependency libraries.
22649link_all_deplibs=$link_all_deplibs_F77
22650
22651# Compile-time system search path for libraries
22652sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22653
22654# Run-time system search path for libraries
22655sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22656
22657# Fix the shell variable \$srcfile for the compiler.
22658fix_srcfile_path="$fix_srcfile_path_F77"
22659
22660# Set to yes if exported symbols are required.
22661always_export_symbols=$always_export_symbols_F77
22662
22663# The commands to list exported symbols.
22664export_symbols_cmds=$lt_export_symbols_cmds_F77
22665
22666# The commands to extract the exported symbol list from a shared archive.
22667extract_expsyms_cmds=$lt_extract_expsyms_cmds
22668
22669# Symbols that should not be listed in the preloaded symbols.
22670exclude_expsyms=$lt_exclude_expsyms_F77
22671
22672# Symbols that must always be exported.
22673include_expsyms=$lt_include_expsyms_F77
22674
22675# ### END LIBTOOL TAG CONFIG: $tagname
22676
22677__EOF__
22678
22679
22680else
22681 # If there is no Makefile yet, we rely on a make rule to execute
22682 # `config.status --recheck' to rerun these tests and create the
22683 # libtool script then.
22684 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22685 if test -f "$ltmain_in"; then
22686 test -f Makefile && make "$ltmain"
22687 fi
22688fi
22689
22690
22691ac_ext=c
22692ac_cpp='$CPP $CPPFLAGS'
22693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22695ac_compiler_gnu=$ac_cv_c_compiler_gnu
22696
22697CC="$lt_save_CC"
22698
22699 else
22700 tagname=""
22701 fi
22702 ;;
22703
22704 GCJ)
22705 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22706 ac_ext=c
22707ac_cpp='$CPP $CPPFLAGS'
22708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22710ac_compiler_gnu=$ac_cv_c_compiler_gnu
22711
22712
22713# Source file extension for Java test sources.
22714ac_ext=java
22715
22716# Object file extension for compiled Java test sources.
22717objext=o
22718objext_GCJ=$objext
22719
22720# Code to be used in simple compile tests
22721lt_simple_compile_test_code="class foo {}\n"
22722
22723# Code to be used in simple link tests
22724lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22725
22726# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22727
22728# If no C compiler was specified, use CC.
22729LTCC=${LTCC-"$CC"}
22730
22731# If no C compiler flags were specified, use CFLAGS.
22732LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22733
22734# Allow CC to be a program name with arguments.
22735compiler=$CC
22736
22737
22738# save warnings/boilerplate of simple test code
22739ac_outfile=conftest.$ac_objext
22740printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22741eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22742_lt_compiler_boilerplate=`cat conftest.err`
22743$rm conftest*
22744
22745ac_outfile=conftest.$ac_objext
22746printf "$lt_simple_link_test_code" >conftest.$ac_ext
22747eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22748_lt_linker_boilerplate=`cat conftest.err`
22749$rm conftest*
22750
22751
22752# Allow CC to be a program name with arguments.
22753lt_save_CC="$CC"
22754CC=${GCJ-"gcj"}
22755compiler=$CC
22756compiler_GCJ=$CC
22757for cc_temp in $compiler""; do
22758 case $cc_temp in
22759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22761 \-*) ;;
22762 *) break;;
22763 esac
22764done
22765cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22766
22767
22768# GCJ did not exist at the time GCC didn't implicitly link libc in.
22769archive_cmds_need_lc_GCJ=no
22770
22771old_archive_cmds_GCJ=$old_archive_cmds
22772
Edwin Török20176752008-10-22 09:56:27 +000022773## CAVEAT EMPTOR:
22774## There is no encapsulation within the following macros, do not change
22775## the running order or otherwise move them around unless you know exactly
22776## what you are doing...
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022777
22778lt_prog_compiler_no_builtin_flag_GCJ=
22779
22780if test "$GCC" = yes; then
22781 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22782
22783
22784{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22785echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22786if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22788else
22789 lt_cv_prog_compiler_rtti_exceptions=no
22790 ac_outfile=conftest.$ac_objext
22791 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22792 lt_compiler_flag="-fno-rtti -fno-exceptions"
22793 # Insert the option either (1) after the last *FLAGS variable, or
22794 # (2) before a word containing "conftest.", or (3) at the end.
22795 # Note that $ac_compile itself does not contain backslashes and begins
22796 # with a dollar sign (not a hyphen), so the echo should work correctly.
22797 # The option is referenced via a variable to avoid confusing sed.
22798 lt_compile=`echo "$ac_compile" | $SED \
22799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22801 -e 's:$: $lt_compiler_flag:'`
Edwin Török20176752008-10-22 09:56:27 +000022802 (eval echo "\"\$as_me:22802: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022803 (eval "$lt_compile" 2>conftest.err)
22804 ac_status=$?
22805 cat conftest.err >&5
Edwin Török20176752008-10-22 09:56:27 +000022806 echo "$as_me:22806: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022807 if (exit $ac_status) && test -s "$ac_outfile"; then
22808 # The compiler can only warn and ignore the option if not recognized
22809 # So say no if there are warnings other than the usual output.
22810 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22813 lt_cv_prog_compiler_rtti_exceptions=yes
22814 fi
22815 fi
22816 $rm conftest*
22817
22818fi
22819{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22820echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22821
22822if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22823 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22824else
22825 :
22826fi
22827
22828fi
22829
22830lt_prog_compiler_wl_GCJ=
22831lt_prog_compiler_pic_GCJ=
22832lt_prog_compiler_static_GCJ=
22833
22834{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22835echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22836
22837 if test "$GCC" = yes; then
22838 lt_prog_compiler_wl_GCJ='-Wl,'
22839 lt_prog_compiler_static_GCJ='-static'
22840
22841 case $host_os in
22842 aix*)
22843 # All AIX code is PIC.
22844 if test "$host_cpu" = ia64; then
22845 # AIX 5 now supports IA64 processor
22846 lt_prog_compiler_static_GCJ='-Bstatic'
22847 fi
22848 ;;
22849
22850 amigaos*)
22851 # FIXME: we need at least 68020 code to build shared libraries, but
22852 # adding the `-m68020' flag to GCC prevents building anything better,
22853 # like `-m68040'.
22854 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22855 ;;
22856
22857 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22858 # PIC is the default for these OSes.
22859 ;;
22860
22861 mingw* | pw32* | os2*)
22862 # This hack is so that the source file can tell whether it is being
22863 # built for inclusion in a dll (and should export symbols for example).
22864 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22865 ;;
22866
22867 darwin* | rhapsody*)
22868 # PIC is the default on this platform
22869 # Common symbols not allowed in MH_DYLIB files
22870 lt_prog_compiler_pic_GCJ='-fno-common'
22871 ;;
22872
22873 interix3*)
22874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22875 # Instead, we relocate shared libraries at runtime.
22876 ;;
22877
22878 msdosdjgpp*)
22879 # Just because we use GCC doesn't mean we suddenly get shared libraries
22880 # on systems that don't support them.
22881 lt_prog_compiler_can_build_shared_GCJ=no
22882 enable_shared=no
22883 ;;
22884
22885 sysv4*MP*)
22886 if test -d /usr/nec; then
22887 lt_prog_compiler_pic_GCJ=-Kconform_pic
22888 fi
22889 ;;
22890
22891 hpux*)
22892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22893 # not for PA HP-UX.
22894 case $host_cpu in
22895 hppa*64*|ia64*)
22896 # +Z the default
22897 ;;
22898 *)
22899 lt_prog_compiler_pic_GCJ='-fPIC'
22900 ;;
22901 esac
22902 ;;
22903
22904 *)
22905 lt_prog_compiler_pic_GCJ='-fPIC'
22906 ;;
22907 esac
22908 else
22909 # PORTME Check for flag to pass linker flags through the system compiler.
22910 case $host_os in
22911 aix*)
22912 lt_prog_compiler_wl_GCJ='-Wl,'
22913 if test "$host_cpu" = ia64; then
22914 # AIX 5 now supports IA64 processor
22915 lt_prog_compiler_static_GCJ='-Bstatic'
22916 else
22917 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22918 fi
22919 ;;
22920 darwin*)
22921 # PIC is the default on this platform
22922 # Common symbols not allowed in MH_DYLIB files
22923 case $cc_basename in
22924 xlc*)
22925 lt_prog_compiler_pic_GCJ='-qnocommon'
22926 lt_prog_compiler_wl_GCJ='-Wl,'
22927 ;;
22928 esac
22929 ;;
22930
22931 mingw* | pw32* | os2*)
22932 # This hack is so that the source file can tell whether it is being
22933 # built for inclusion in a dll (and should export symbols for example).
22934 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22935 ;;
22936
22937 hpux9* | hpux10* | hpux11*)
22938 lt_prog_compiler_wl_GCJ='-Wl,'
22939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22940 # not for PA HP-UX.
22941 case $host_cpu in
22942 hppa*64*|ia64*)
22943 # +Z the default
22944 ;;
22945 *)
22946 lt_prog_compiler_pic_GCJ='+Z'
22947 ;;
22948 esac
22949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22950 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22951 ;;
22952
22953 irix5* | irix6* | nonstopux*)
22954 lt_prog_compiler_wl_GCJ='-Wl,'
22955 # PIC (with -KPIC) is the default.
22956 lt_prog_compiler_static_GCJ='-non_shared'
22957 ;;
22958
22959 newsos6)
22960 lt_prog_compiler_pic_GCJ='-KPIC'
22961 lt_prog_compiler_static_GCJ='-Bstatic'
22962 ;;
22963
22964 linux*)
22965 case $cc_basename in
22966 icc* | ecc*)
22967 lt_prog_compiler_wl_GCJ='-Wl,'
22968 lt_prog_compiler_pic_GCJ='-KPIC'
22969 lt_prog_compiler_static_GCJ='-static'
22970 ;;
22971 pgcc* | pgf77* | pgf90* | pgf95*)
22972 # Portland Group compilers (*not* the Pentium gcc compiler,
22973 # which looks to be a dead project)
22974 lt_prog_compiler_wl_GCJ='-Wl,'
22975 lt_prog_compiler_pic_GCJ='-fpic'
22976 lt_prog_compiler_static_GCJ='-Bstatic'
22977 ;;
22978 ccc*)
22979 lt_prog_compiler_wl_GCJ='-Wl,'
22980 # All Alpha code is PIC.
22981 lt_prog_compiler_static_GCJ='-non_shared'
22982 ;;
22983 esac
22984 ;;
22985
22986 osf3* | osf4* | osf5*)
22987 lt_prog_compiler_wl_GCJ='-Wl,'
22988 # All OSF/1 code is PIC.
22989 lt_prog_compiler_static_GCJ='-non_shared'
22990 ;;
22991
22992 solaris*)
22993 lt_prog_compiler_pic_GCJ='-KPIC'
22994 lt_prog_compiler_static_GCJ='-Bstatic'
22995 case $cc_basename in
22996 f77* | f90* | f95*)
22997 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22998 *)
22999 lt_prog_compiler_wl_GCJ='-Wl,';;
23000 esac
23001 ;;
23002
23003 sunos4*)
23004 lt_prog_compiler_wl_GCJ='-Qoption ld '
23005 lt_prog_compiler_pic_GCJ='-PIC'
23006 lt_prog_compiler_static_GCJ='-Bstatic'
23007 ;;
23008
23009 sysv4 | sysv4.2uw2* | sysv4.3*)
23010 lt_prog_compiler_wl_GCJ='-Wl,'
23011 lt_prog_compiler_pic_GCJ='-KPIC'
23012 lt_prog_compiler_static_GCJ='-Bstatic'
23013 ;;
23014
23015 sysv4*MP*)
23016 if test -d /usr/nec ;then
23017 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23018 lt_prog_compiler_static_GCJ='-Bstatic'
23019 fi
23020 ;;
23021
23022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23023 lt_prog_compiler_wl_GCJ='-Wl,'
23024 lt_prog_compiler_pic_GCJ='-KPIC'
23025 lt_prog_compiler_static_GCJ='-Bstatic'
23026 ;;
23027
23028 unicos*)
23029 lt_prog_compiler_wl_GCJ='-Wl,'
23030 lt_prog_compiler_can_build_shared_GCJ=no
23031 ;;
23032
23033 uts4*)
23034 lt_prog_compiler_pic_GCJ='-pic'
23035 lt_prog_compiler_static_GCJ='-Bstatic'
23036 ;;
23037
23038 *)
23039 lt_prog_compiler_can_build_shared_GCJ=no
23040 ;;
23041 esac
23042 fi
23043
23044{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23045echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23046
23047#
23048# Check to make sure the PIC flag actually works.
23049#
23050if test -n "$lt_prog_compiler_pic_GCJ"; then
23051
23052{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23053echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23054if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23055 echo $ECHO_N "(cached) $ECHO_C" >&6
23056else
23057 lt_prog_compiler_pic_works_GCJ=no
23058 ac_outfile=conftest.$ac_objext
23059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23060 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23061 # Insert the option either (1) after the last *FLAGS variable, or
23062 # (2) before a word containing "conftest.", or (3) at the end.
23063 # Note that $ac_compile itself does not contain backslashes and begins
23064 # with a dollar sign (not a hyphen), so the echo should work correctly.
23065 # The option is referenced via a variable to avoid confusing sed.
23066 lt_compile=`echo "$ac_compile" | $SED \
23067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23069 -e 's:$: $lt_compiler_flag:'`
Edwin Török20176752008-10-22 09:56:27 +000023070 (eval echo "\"\$as_me:23070: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023071 (eval "$lt_compile" 2>conftest.err)
23072 ac_status=$?
23073 cat conftest.err >&5
Edwin Török20176752008-10-22 09:56:27 +000023074 echo "$as_me:23074: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023075 if (exit $ac_status) && test -s "$ac_outfile"; then
23076 # The compiler can only warn and ignore the option if not recognized
23077 # So say no if there are warnings other than the usual output.
23078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23081 lt_prog_compiler_pic_works_GCJ=yes
23082 fi
23083 fi
23084 $rm conftest*
23085
23086fi
23087{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23088echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23089
23090if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23091 case $lt_prog_compiler_pic_GCJ in
23092 "" | " "*) ;;
23093 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23094 esac
23095else
23096 lt_prog_compiler_pic_GCJ=
23097 lt_prog_compiler_can_build_shared_GCJ=no
23098fi
23099
23100fi
23101case $host_os in
23102 # For platforms which do not support PIC, -DPIC is meaningless:
23103 *djgpp*)
23104 lt_prog_compiler_pic_GCJ=
23105 ;;
23106 *)
23107 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23108 ;;
23109esac
23110
23111#
23112# Check to make sure the static flag actually works.
23113#
23114wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23115{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23116echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23117if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23119else
23120 lt_prog_compiler_static_works_GCJ=no
23121 save_LDFLAGS="$LDFLAGS"
23122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23123 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23125 # The linker can only warn and ignore the option if not recognized
23126 # So say no if there are warnings
23127 if test -s conftest.err; then
23128 # Append any errors to the config.log.
23129 cat conftest.err 1>&5
23130 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23132 if diff conftest.exp conftest.er2 >/dev/null; then
23133 lt_prog_compiler_static_works_GCJ=yes
23134 fi
23135 else
23136 lt_prog_compiler_static_works_GCJ=yes
23137 fi
23138 fi
23139 $rm conftest*
23140 LDFLAGS="$save_LDFLAGS"
23141
23142fi
23143{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23144echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23145
23146if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23147 :
23148else
23149 lt_prog_compiler_static_GCJ=
23150fi
23151
23152
23153{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23154echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23155if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23156 echo $ECHO_N "(cached) $ECHO_C" >&6
23157else
23158 lt_cv_prog_compiler_c_o_GCJ=no
23159 $rm -r conftest 2>/dev/null
23160 mkdir conftest
23161 cd conftest
23162 mkdir out
23163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23164
23165 lt_compiler_flag="-o out/conftest2.$ac_objext"
23166 # Insert the option either (1) after the last *FLAGS variable, or
23167 # (2) before a word containing "conftest.", or (3) at the end.
23168 # Note that $ac_compile itself does not contain backslashes and begins
23169 # with a dollar sign (not a hyphen), so the echo should work correctly.
23170 lt_compile=`echo "$ac_compile" | $SED \
23171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23173 -e 's:$: $lt_compiler_flag:'`
Edwin Török20176752008-10-22 09:56:27 +000023174 (eval echo "\"\$as_me:23174: $lt_compile\"" >&5)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023175 (eval "$lt_compile" 2>out/conftest.err)
23176 ac_status=$?
23177 cat out/conftest.err >&5
Edwin Török20176752008-10-22 09:56:27 +000023178 echo "$as_me:23178: \$? = $ac_status" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23180 then
23181 # The compiler can only warn and ignore the option if not recognized
23182 # So say no if there are warnings
23183 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23186 lt_cv_prog_compiler_c_o_GCJ=yes
23187 fi
23188 fi
23189 chmod u+w . 2>&5
23190 $rm conftest*
23191 # SGI C++ compiler will create directory out/ii_files/ for
23192 # template instantiation
23193 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23194 $rm out/* && rmdir out
23195 cd ..
23196 rmdir conftest
23197 $rm conftest*
23198
23199fi
23200{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23201echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23202
23203
23204hard_links="nottested"
23205if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23206 # do not overwrite the value of need_locks provided by the user
23207 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23208echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23209 hard_links=yes
23210 $rm conftest*
23211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23212 touch conftest.a
23213 ln conftest.a conftest.b 2>&5 || hard_links=no
23214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23215 { echo "$as_me:$LINENO: result: $hard_links" >&5
23216echo "${ECHO_T}$hard_links" >&6; }
23217 if test "$hard_links" = no; then
23218 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23219echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23220 need_locks=warn
23221 fi
23222else
23223 need_locks=no
23224fi
23225
23226{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23227echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23228
23229 runpath_var=
23230 allow_undefined_flag_GCJ=
23231 enable_shared_with_static_runtimes_GCJ=no
23232 archive_cmds_GCJ=
23233 archive_expsym_cmds_GCJ=
23234 old_archive_From_new_cmds_GCJ=
23235 old_archive_from_expsyms_cmds_GCJ=
23236 export_dynamic_flag_spec_GCJ=
23237 whole_archive_flag_spec_GCJ=
23238 thread_safe_flag_spec_GCJ=
23239 hardcode_libdir_flag_spec_GCJ=
23240 hardcode_libdir_flag_spec_ld_GCJ=
23241 hardcode_libdir_separator_GCJ=
23242 hardcode_direct_GCJ=no
23243 hardcode_minus_L_GCJ=no
23244 hardcode_shlibpath_var_GCJ=unsupported
23245 link_all_deplibs_GCJ=unknown
23246 hardcode_automatic_GCJ=no
23247 module_cmds_GCJ=
23248 module_expsym_cmds_GCJ=
23249 always_export_symbols_GCJ=no
23250 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23251 # include_expsyms should be a list of space-separated symbols to be *always*
23252 # included in the symbol list
23253 include_expsyms_GCJ=
23254 # exclude_expsyms can be an extended regexp of symbols to exclude
23255 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23257 # as well as any symbol that contains `d'.
23258 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23260 # platforms (ab)use it in PIC code, but their linkers get confused if
23261 # the symbol is explicitly referenced. Since portable code cannot
23262 # rely on this symbol name, it's probably fine to never include it in
23263 # preloaded symbol tables.
23264 extract_expsyms_cmds=
23265 # Just being paranoid about ensuring that cc_basename is set.
23266 for cc_temp in $compiler""; do
23267 case $cc_temp in
23268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23270 \-*) ;;
23271 *) break;;
23272 esac
23273done
23274cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23275
23276 case $host_os in
23277 cygwin* | mingw* | pw32*)
23278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23279 # When not using gcc, we currently assume that we are using
23280 # Microsoft Visual C++.
23281 if test "$GCC" != yes; then
23282 with_gnu_ld=no
23283 fi
23284 ;;
23285 interix*)
23286 # we just hope/assume this is gcc and not c89 (= MSVC++)
23287 with_gnu_ld=yes
23288 ;;
23289 openbsd*)
23290 with_gnu_ld=no
23291 ;;
23292 esac
23293
23294 ld_shlibs_GCJ=yes
23295 if test "$with_gnu_ld" = yes; then
23296 # If archive_cmds runs LD, not CC, wlarc should be empty
23297 wlarc='${wl}'
23298
23299 # Set some defaults for GNU ld with shared library support. These
23300 # are reset later if shared libraries are not supported. Putting them
23301 # here allows them to be overridden if necessary.
23302 runpath_var=LD_RUN_PATH
23303 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23304 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23305 # ancient GNU ld didn't support --whole-archive et. al.
23306 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23307 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23308 else
23309 whole_archive_flag_spec_GCJ=
23310 fi
23311 supports_anon_versioning=no
23312 case `$LD -v 2>/dev/null` in
23313 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23316 *\ 2.11.*) ;; # other 2.11 versions
23317 *) supports_anon_versioning=yes ;;
23318 esac
23319
23320 # See if GNU ld supports shared libraries.
23321 case $host_os in
23322 aix3* | aix4* | aix5*)
23323 # On AIX/PPC, the GNU linker is very broken
23324 if test "$host_cpu" != ia64; then
23325 ld_shlibs_GCJ=no
23326 cat <<EOF 1>&2
23327
23328*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23329*** to be unable to reliably create shared libraries on AIX.
23330*** Therefore, libtool is disabling shared libraries support. If you
23331*** really care for shared libraries, you may want to modify your PATH
23332*** so that a non-GNU linker is found, and then restart.
23333
23334EOF
23335 fi
23336 ;;
23337
23338 amigaos*)
23339 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)'
23340 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23341 hardcode_minus_L_GCJ=yes
23342
23343 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23344 # that the semantics of dynamic libraries on AmigaOS, at least up
23345 # to version 4, is to share data among multiple programs linked
23346 # with the same dynamic library. Since this doesn't match the
23347 # behavior of shared libraries on other platforms, we can't use
23348 # them.
23349 ld_shlibs_GCJ=no
23350 ;;
23351
23352 beos*)
23353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23354 allow_undefined_flag_GCJ=unsupported
23355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23356 # support --undefined. This deserves some investigation. FIXME
23357 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23358 else
23359 ld_shlibs_GCJ=no
23360 fi
23361 ;;
23362
23363 cygwin* | mingw* | pw32*)
23364 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23365 # as there is no search path for DLLs.
23366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23367 allow_undefined_flag_GCJ=unsupported
23368 always_export_symbols_GCJ=no
23369 enable_shared_with_static_runtimes_GCJ=yes
23370 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23371
23372 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23373 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23374 # If the export-symbols file already is a .def file (1st line
23375 # is EXPORTS), use it as is; otherwise, prepend...
23376 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23377 cp $export_symbols $output_objdir/$soname.def;
23378 else
23379 echo EXPORTS > $output_objdir/$soname.def;
23380 cat $export_symbols >> $output_objdir/$soname.def;
23381 fi~
23382 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23383 else
23384 ld_shlibs_GCJ=no
23385 fi
23386 ;;
23387
23388 interix3*)
23389 hardcode_direct_GCJ=no
23390 hardcode_shlibpath_var_GCJ=no
23391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23392 export_dynamic_flag_spec_GCJ='${wl}-E'
23393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23394 # Instead, shared libraries are loaded at an image base (0x10000000 by
23395 # default) and relocated if they conflict, which is a slow very memory
23396 # consuming and fragmenting process. To avoid this, we pick a random,
23397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23398 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23399 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'
23400 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'
23401 ;;
23402
23403 linux*)
23404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23405 tmp_addflag=
23406 case $cc_basename,$host_cpu in
23407 pgcc*) # Portland Group C compiler
23408 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'
23409 tmp_addflag=' $pic_flag'
23410 ;;
23411 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23412 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'
23413 tmp_addflag=' $pic_flag -Mnomain' ;;
23414 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23415 tmp_addflag=' -i_dynamic' ;;
23416 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23417 tmp_addflag=' -i_dynamic -nofor_main' ;;
23418 ifc* | ifort*) # Intel Fortran compiler
23419 tmp_addflag=' -nofor_main' ;;
23420 esac
23421 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23422
23423 if test $supports_anon_versioning = yes; then
23424 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23426 $echo "local: *; };" >> $output_objdir/$libname.ver~
23427 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23428 fi
23429 else
23430 ld_shlibs_GCJ=no
23431 fi
23432 ;;
23433
23434 netbsd*)
23435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23436 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23437 wlarc=
23438 else
23439 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23440 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23441 fi
23442 ;;
23443
23444 solaris*)
23445 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23446 ld_shlibs_GCJ=no
23447 cat <<EOF 1>&2
23448
23449*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23450*** create shared libraries on Solaris systems. Therefore, libtool
23451*** is disabling shared libraries support. We urge you to upgrade GNU
23452*** binutils to release 2.9.1 or newer. Another option is to modify
23453*** your PATH or compiler configuration so that the native linker is
23454*** used, and then restart.
23455
23456EOF
23457 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23458 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23459 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23460 else
23461 ld_shlibs_GCJ=no
23462 fi
23463 ;;
23464
23465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23466 case `$LD -v 2>&1` in
23467 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23468 ld_shlibs_GCJ=no
23469 cat <<_LT_EOF 1>&2
23470
23471*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23472*** reliably create shared libraries on SCO systems. Therefore, libtool
23473*** is disabling shared libraries support. We urge you to upgrade GNU
23474*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23475*** your PATH or compiler configuration so that the native linker is
23476*** used, and then restart.
23477
23478_LT_EOF
23479 ;;
23480 *)
23481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23482 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23483 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23484 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23485 else
23486 ld_shlibs_GCJ=no
23487 fi
23488 ;;
23489 esac
23490 ;;
23491
23492 sunos4*)
23493 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23494 wlarc=
23495 hardcode_direct_GCJ=yes
23496 hardcode_shlibpath_var_GCJ=no
23497 ;;
23498
23499 *)
23500 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23501 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23502 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23503 else
23504 ld_shlibs_GCJ=no
23505 fi
23506 ;;
23507 esac
23508
23509 if test "$ld_shlibs_GCJ" = no; then
23510 runpath_var=
23511 hardcode_libdir_flag_spec_GCJ=
23512 export_dynamic_flag_spec_GCJ=
23513 whole_archive_flag_spec_GCJ=
23514 fi
23515 else
23516 # PORTME fill in a description of your system's linker (not GNU ld)
23517 case $host_os in
23518 aix3*)
23519 allow_undefined_flag_GCJ=unsupported
23520 always_export_symbols_GCJ=yes
23521 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'
23522 # Note: this linker hardcodes the directories in LIBPATH if there
23523 # are no directories specified by -L.
23524 hardcode_minus_L_GCJ=yes
23525 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23526 # Neither direct hardcoding nor static linking is supported with a
23527 # broken collect2.
23528 hardcode_direct_GCJ=unsupported
23529 fi
23530 ;;
23531
23532 aix4* | aix5*)
23533 if test "$host_cpu" = ia64; then
23534 # On IA64, the linker does run time linking by default, so we don't
23535 # have to do anything special.
23536 aix_use_runtimelinking=no
23537 exp_sym_flag='-Bexport'
23538 no_entry_flag=""
23539 else
23540 # If we're using GNU nm, then we don't want the "-C" option.
23541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23542 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23543 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'
23544 else
23545 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'
23546 fi
23547 aix_use_runtimelinking=no
23548
23549 # Test if we are trying to use run time linking or normal
23550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23551 # need to do runtime linking.
23552 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23553 for ld_flag in $LDFLAGS; do
23554 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23555 aix_use_runtimelinking=yes
23556 break
23557 fi
23558 done
23559 ;;
23560 esac
23561
23562 exp_sym_flag='-bexport'
23563 no_entry_flag='-bnoentry'
23564 fi
23565
23566 # When large executables or shared objects are built, AIX ld can
23567 # have problems creating the table of contents. If linking a library
23568 # or program results in "error TOC overflow" add -mminimal-toc to
23569 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23570 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23571
23572 archive_cmds_GCJ=''
23573 hardcode_direct_GCJ=yes
23574 hardcode_libdir_separator_GCJ=':'
23575 link_all_deplibs_GCJ=yes
23576
23577 if test "$GCC" = yes; then
23578 case $host_os in aix4.[012]|aix4.[012].*)
23579 # We only want to do this on AIX 4.2 and lower, the check
23580 # below for broken collect2 doesn't work under 4.3+
23581 collect2name=`${CC} -print-prog-name=collect2`
23582 if test -f "$collect2name" && \
23583 strings "$collect2name" | grep resolve_lib_name >/dev/null
23584 then
23585 # We have reworked collect2
23586 hardcode_direct_GCJ=yes
23587 else
23588 # We have old collect2
23589 hardcode_direct_GCJ=unsupported
23590 # It fails to find uninstalled libraries when the uninstalled
23591 # path is not listed in the libpath. Setting hardcode_minus_L
23592 # to unsupported forces relinking
23593 hardcode_minus_L_GCJ=yes
23594 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23595 hardcode_libdir_separator_GCJ=
23596 fi
23597 ;;
23598 esac
23599 shared_flag='-shared'
23600 if test "$aix_use_runtimelinking" = yes; then
23601 shared_flag="$shared_flag "'${wl}-G'
23602 fi
23603 else
23604 # not using gcc
23605 if test "$host_cpu" = ia64; then
23606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23607 # chokes on -Wl,-G. The following line is correct:
23608 shared_flag='-G'
23609 else
23610 if test "$aix_use_runtimelinking" = yes; then
23611 shared_flag='${wl}-G'
23612 else
23613 shared_flag='${wl}-bM:SRE'
23614 fi
23615 fi
23616 fi
23617
23618 # It seems that -bexpall does not export symbols beginning with
23619 # underscore (_), so it is better to generate a list of symbols to export.
23620 always_export_symbols_GCJ=yes
23621 if test "$aix_use_runtimelinking" = yes; then
23622 # Warning - without using the other runtime loading flags (-brtl),
23623 # -berok will link without error, but may produce a broken library.
23624 allow_undefined_flag_GCJ='-berok'
23625 # Determine the default libpath from the value encoded in an empty executable.
23626 cat >conftest.$ac_ext <<_ACEOF
23627/* confdefs.h. */
23628_ACEOF
23629cat confdefs.h >>conftest.$ac_ext
23630cat >>conftest.$ac_ext <<_ACEOF
23631/* end confdefs.h. */
23632
23633int
23634main ()
23635{
23636
23637 ;
23638 return 0;
23639}
23640_ACEOF
23641rm -f conftest.$ac_objext conftest$ac_exeext
23642if { (ac_try="$ac_link"
23643case "(($ac_try" in
23644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645 *) ac_try_echo=$ac_try;;
23646esac
23647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648 (eval "$ac_link") 2>conftest.er1
23649 ac_status=$?
23650 grep -v '^ *+' conftest.er1 >conftest.err
23651 rm -f conftest.er1
23652 cat conftest.err >&5
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000023654 (exit $ac_status); } && {
23655 test -z "$ac_c_werror_flag" ||
23656 test ! -s conftest.err
23657 } && test -s conftest$ac_exeext &&
23658 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023659
23660aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23661}'`
23662# Check for a 64-bit object if we didn't find anything.
23663if 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; }
23664}'`; fi
23665else
23666 echo "$as_me: failed program was:" >&5
23667sed 's/^/| /' conftest.$ac_ext >&5
23668
23669
23670fi
23671
Edwin Török20176752008-10-22 09:56:27 +000023672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023673 conftest$ac_exeext conftest.$ac_ext
23674if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23675
23676 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23677 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"
23678 else
23679 if test "$host_cpu" = ia64; then
23680 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23681 allow_undefined_flag_GCJ="-z nodefs"
23682 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"
23683 else
23684 # Determine the default libpath from the value encoded in an empty executable.
23685 cat >conftest.$ac_ext <<_ACEOF
23686/* confdefs.h. */
23687_ACEOF
23688cat confdefs.h >>conftest.$ac_ext
23689cat >>conftest.$ac_ext <<_ACEOF
23690/* end confdefs.h. */
23691
23692int
23693main ()
23694{
23695
23696 ;
23697 return 0;
23698}
23699_ACEOF
23700rm -f conftest.$ac_objext conftest$ac_exeext
23701if { (ac_try="$ac_link"
23702case "(($ac_try" in
23703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23705esac
23706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707 (eval "$ac_link") 2>conftest.er1
23708 ac_status=$?
23709 grep -v '^ *+' conftest.er1 >conftest.err
23710 rm -f conftest.er1
23711 cat conftest.err >&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000023713 (exit $ac_status); } && {
23714 test -z "$ac_c_werror_flag" ||
23715 test ! -s conftest.err
23716 } && test -s conftest$ac_exeext &&
23717 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023718
23719aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23720}'`
23721# Check for a 64-bit object if we didn't find anything.
23722if 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; }
23723}'`; fi
23724else
23725 echo "$as_me: failed program was:" >&5
23726sed 's/^/| /' conftest.$ac_ext >&5
23727
23728
23729fi
23730
Edwin Török20176752008-10-22 09:56:27 +000023731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023732 conftest$ac_exeext conftest.$ac_ext
23733if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23734
23735 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23736 # Warning - without using the other run time loading flags,
23737 # -berok will link without error, but may produce a broken library.
23738 no_undefined_flag_GCJ=' ${wl}-bernotok'
23739 allow_undefined_flag_GCJ=' ${wl}-berok'
23740 # Exported symbols can be pulled into shared objects from archives
23741 whole_archive_flag_spec_GCJ='$convenience'
23742 archive_cmds_need_lc_GCJ=yes
23743 # This is similar to how AIX traditionally builds its shared libraries.
23744 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'
23745 fi
23746 fi
23747 ;;
23748
23749 amigaos*)
23750 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)'
23751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23752 hardcode_minus_L_GCJ=yes
23753 # see comment about different semantics on the GNU ld section
23754 ld_shlibs_GCJ=no
23755 ;;
23756
23757 bsdi[45]*)
23758 export_dynamic_flag_spec_GCJ=-rdynamic
23759 ;;
23760
23761 cygwin* | mingw* | pw32*)
23762 # When not using gcc, we currently assume that we are using
23763 # Microsoft Visual C++.
23764 # hardcode_libdir_flag_spec is actually meaningless, as there is
23765 # no search path for DLLs.
23766 hardcode_libdir_flag_spec_GCJ=' '
23767 allow_undefined_flag_GCJ=unsupported
23768 # Tell ltmain to make .lib files, not .a files.
23769 libext=lib
23770 # Tell ltmain to make .dll files, not .so files.
23771 shrext_cmds=".dll"
23772 # FIXME: Setting linknames here is a bad hack.
23773 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23774 # The linker will automatically build a .lib file if we build a DLL.
23775 old_archive_From_new_cmds_GCJ='true'
23776 # FIXME: Should let the user specify the lib program.
23777 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23778 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23779 enable_shared_with_static_runtimes_GCJ=yes
23780 ;;
23781
23782 darwin* | rhapsody*)
23783 case $host_os in
23784 rhapsody* | darwin1.[012])
23785 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23786 ;;
23787 *) # Darwin 1.3 on
23788 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23789 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23790 else
23791 case ${MACOSX_DEPLOYMENT_TARGET} in
23792 10.[012])
23793 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23794 ;;
23795 10.*)
23796 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23797 ;;
23798 esac
23799 fi
23800 ;;
23801 esac
23802 archive_cmds_need_lc_GCJ=no
23803 hardcode_direct_GCJ=no
23804 hardcode_automatic_GCJ=yes
23805 hardcode_shlibpath_var_GCJ=unsupported
23806 whole_archive_flag_spec_GCJ=''
23807 link_all_deplibs_GCJ=yes
23808 if test "$GCC" = yes ; then
23809 output_verbose_link_cmd='echo'
23810 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23811 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23812 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23813 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}'
23814 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}'
23815 else
23816 case $cc_basename in
23817 xlc*)
23818 output_verbose_link_cmd='echo'
23819 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23820 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23821 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23822 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}'
23823 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}'
23824 ;;
23825 *)
23826 ld_shlibs_GCJ=no
23827 ;;
23828 esac
23829 fi
23830 ;;
23831
23832 dgux*)
23833 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23834 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23835 hardcode_shlibpath_var_GCJ=no
23836 ;;
23837
23838 freebsd1*)
23839 ld_shlibs_GCJ=no
23840 ;;
23841
23842 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23843 # support. Future versions do this automatically, but an explicit c++rt0.o
23844 # does not break anything, and helps significantly (at the cost of a little
23845 # extra space).
23846 freebsd2.2*)
23847 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23848 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23849 hardcode_direct_GCJ=yes
23850 hardcode_shlibpath_var_GCJ=no
23851 ;;
23852
23853 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23854 freebsd2*)
23855 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23856 hardcode_direct_GCJ=yes
23857 hardcode_minus_L_GCJ=yes
23858 hardcode_shlibpath_var_GCJ=no
23859 ;;
23860
23861 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23862 freebsd* | kfreebsd*-gnu | dragonfly*)
23863 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23864 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23865 hardcode_direct_GCJ=yes
23866 hardcode_shlibpath_var_GCJ=no
23867 ;;
23868
23869 hpux9*)
23870 if test "$GCC" = yes; then
23871 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'
23872 else
23873 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'
23874 fi
23875 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23876 hardcode_libdir_separator_GCJ=:
23877 hardcode_direct_GCJ=yes
23878
23879 # hardcode_minus_L: Not really in the search PATH,
23880 # but as the default location of the library.
23881 hardcode_minus_L_GCJ=yes
23882 export_dynamic_flag_spec_GCJ='${wl}-E'
23883 ;;
23884
23885 hpux10*)
23886 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23887 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23888 else
23889 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23890 fi
23891 if test "$with_gnu_ld" = no; then
23892 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23893 hardcode_libdir_separator_GCJ=:
23894
23895 hardcode_direct_GCJ=yes
23896 export_dynamic_flag_spec_GCJ='${wl}-E'
23897
23898 # hardcode_minus_L: Not really in the search PATH,
23899 # but as the default location of the library.
23900 hardcode_minus_L_GCJ=yes
23901 fi
23902 ;;
23903
23904 hpux11*)
23905 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23906 case $host_cpu in
23907 hppa*64*)
23908 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23909 ;;
23910 ia64*)
23911 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23912 ;;
23913 *)
23914 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23915 ;;
23916 esac
23917 else
23918 case $host_cpu in
23919 hppa*64*)
23920 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23921 ;;
23922 ia64*)
23923 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23924 ;;
23925 *)
23926 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23927 ;;
23928 esac
23929 fi
23930 if test "$with_gnu_ld" = no; then
23931 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23932 hardcode_libdir_separator_GCJ=:
23933
23934 case $host_cpu in
23935 hppa*64*|ia64*)
23936 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23937 hardcode_direct_GCJ=no
23938 hardcode_shlibpath_var_GCJ=no
23939 ;;
23940 *)
23941 hardcode_direct_GCJ=yes
23942 export_dynamic_flag_spec_GCJ='${wl}-E'
23943
23944 # hardcode_minus_L: Not really in the search PATH,
23945 # but as the default location of the library.
23946 hardcode_minus_L_GCJ=yes
23947 ;;
23948 esac
23949 fi
23950 ;;
23951
23952 irix5* | irix6* | nonstopux*)
23953 if test "$GCC" = yes; then
23954 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'
23955 else
23956 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'
23957 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23958 fi
23959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23960 hardcode_libdir_separator_GCJ=:
23961 link_all_deplibs_GCJ=yes
23962 ;;
23963
23964 netbsd*)
23965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23966 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23967 else
23968 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23969 fi
23970 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23971 hardcode_direct_GCJ=yes
23972 hardcode_shlibpath_var_GCJ=no
23973 ;;
23974
23975 newsos6)
23976 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23977 hardcode_direct_GCJ=yes
23978 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23979 hardcode_libdir_separator_GCJ=:
23980 hardcode_shlibpath_var_GCJ=no
23981 ;;
23982
23983 openbsd*)
23984 hardcode_direct_GCJ=yes
23985 hardcode_shlibpath_var_GCJ=no
23986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23987 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23988 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23990 export_dynamic_flag_spec_GCJ='${wl}-E'
23991 else
23992 case $host_os in
23993 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23994 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23995 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23996 ;;
23997 *)
23998 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24000 ;;
24001 esac
24002 fi
24003 ;;
24004
24005 os2*)
24006 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24007 hardcode_minus_L_GCJ=yes
24008 allow_undefined_flag_GCJ=unsupported
24009 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'
24010 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24011 ;;
24012
24013 osf3*)
24014 if test "$GCC" = yes; then
24015 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24016 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'
24017 else
24018 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24019 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'
24020 fi
24021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24022 hardcode_libdir_separator_GCJ=:
24023 ;;
24024
24025 osf4* | osf5*) # as osf3* with the addition of -msym flag
24026 if test "$GCC" = yes; then
24027 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24028 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'
24029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24030 else
24031 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24032 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'
24033 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~
24034 $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'
24035
24036 # Both c and cxx compiler support -rpath directly
24037 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24038 fi
24039 hardcode_libdir_separator_GCJ=:
24040 ;;
24041
24042 solaris*)
24043 no_undefined_flag_GCJ=' -z text'
24044 if test "$GCC" = yes; then
24045 wlarc='${wl}'
24046 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24047 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24048 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24049 else
24050 wlarc=''
24051 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24052 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24054 fi
24055 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24056 hardcode_shlibpath_var_GCJ=no
24057 case $host_os in
24058 solaris2.[0-5] | solaris2.[0-5].*) ;;
24059 *)
24060 # The compiler driver will combine linker options so we
24061 # cannot just pass the convience library names through
24062 # without $wl, iff we do not link with $LD.
24063 # Luckily, gcc supports the same syntax we need for Sun Studio.
24064 # Supported since Solaris 2.6 (maybe 2.5.1?)
24065 case $wlarc in
24066 '')
24067 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24068 *)
24069 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' ;;
24070 esac ;;
24071 esac
24072 link_all_deplibs_GCJ=yes
24073 ;;
24074
24075 sunos4*)
24076 if test "x$host_vendor" = xsequent; then
24077 # Use $CC to link under sequent, because it throws in some extra .o
24078 # files that make .init and .fini sections work.
24079 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24080 else
24081 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24082 fi
24083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24084 hardcode_direct_GCJ=yes
24085 hardcode_minus_L_GCJ=yes
24086 hardcode_shlibpath_var_GCJ=no
24087 ;;
24088
24089 sysv4)
24090 case $host_vendor in
24091 sni)
24092 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24093 hardcode_direct_GCJ=yes # is this really true???
24094 ;;
24095 siemens)
24096 ## LD is ld it makes a PLAMLIB
24097 ## CC just makes a GrossModule.
24098 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24099 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24100 hardcode_direct_GCJ=no
24101 ;;
24102 motorola)
24103 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24104 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24105 ;;
24106 esac
24107 runpath_var='LD_RUN_PATH'
24108 hardcode_shlibpath_var_GCJ=no
24109 ;;
24110
24111 sysv4.3*)
24112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24113 hardcode_shlibpath_var_GCJ=no
24114 export_dynamic_flag_spec_GCJ='-Bexport'
24115 ;;
24116
24117 sysv4*MP*)
24118 if test -d /usr/nec; then
24119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24120 hardcode_shlibpath_var_GCJ=no
24121 runpath_var=LD_RUN_PATH
24122 hardcode_runpath_var=yes
24123 ld_shlibs_GCJ=yes
24124 fi
24125 ;;
24126
24127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24128 no_undefined_flag_GCJ='${wl}-z,text'
24129 archive_cmds_need_lc_GCJ=no
24130 hardcode_shlibpath_var_GCJ=no
24131 runpath_var='LD_RUN_PATH'
24132
24133 if test "$GCC" = yes; then
24134 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24135 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24136 else
24137 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24138 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24139 fi
24140 ;;
24141
24142 sysv5* | sco3.2v5* | sco5v6*)
24143 # Note: We can NOT use -z defs as we might desire, because we do not
24144 # link with -lc, and that would cause any symbols used from libc to
24145 # always be unresolved, which means just about no library would
24146 # ever link correctly. If we're not using GNU ld we use -z text
24147 # though, which does catch some bad symbols but isn't as heavy-handed
24148 # as -z defs.
24149 no_undefined_flag_GCJ='${wl}-z,text'
24150 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24151 archive_cmds_need_lc_GCJ=no
24152 hardcode_shlibpath_var_GCJ=no
24153 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24154 hardcode_libdir_separator_GCJ=':'
24155 link_all_deplibs_GCJ=yes
24156 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24157 runpath_var='LD_RUN_PATH'
24158
24159 if test "$GCC" = yes; then
24160 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24161 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24162 else
24163 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24164 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24165 fi
24166 ;;
24167
24168 uts4*)
24169 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24170 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24171 hardcode_shlibpath_var_GCJ=no
24172 ;;
24173
24174 *)
24175 ld_shlibs_GCJ=no
24176 ;;
24177 esac
24178 fi
24179
24180{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24181echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24182test "$ld_shlibs_GCJ" = no && can_build_shared=no
24183
24184#
24185# Do we need to explicitly link libc?
24186#
24187case "x$archive_cmds_need_lc_GCJ" in
24188x|xyes)
24189 # Assume -lc should be added
24190 archive_cmds_need_lc_GCJ=yes
24191
24192 if test "$enable_shared" = yes && test "$GCC" = yes; then
24193 case $archive_cmds_GCJ in
24194 *'~'*)
24195 # FIXME: we may have to deal with multi-command sequences.
24196 ;;
24197 '$CC '*)
24198 # Test whether the compiler implicitly links with -lc since on some
24199 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24200 # to ld, don't add -lc before -lgcc.
24201 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24202echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24203 $rm conftest*
24204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24205
24206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24207 (eval $ac_compile) 2>&5
24208 ac_status=$?
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); } 2>conftest.err; then
24211 soname=conftest
24212 lib=conftest
24213 libobjs=conftest.$ac_objext
24214 deplibs=
24215 wl=$lt_prog_compiler_wl_GCJ
24216 pic_flag=$lt_prog_compiler_pic_GCJ
24217 compiler_flags=-v
24218 linker_flags=-v
24219 verstring=
24220 output_objdir=.
24221 libname=conftest
24222 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24223 allow_undefined_flag_GCJ=
24224 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24225 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24226 ac_status=$?
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }
24229 then
24230 archive_cmds_need_lc_GCJ=no
24231 else
24232 archive_cmds_need_lc_GCJ=yes
24233 fi
24234 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24235 else
24236 cat conftest.err 1>&5
24237 fi
24238 $rm conftest*
24239 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24240echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24241 ;;
24242 esac
24243 fi
24244 ;;
24245esac
24246
24247{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24248echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24249library_names_spec=
24250libname_spec='lib$name'
24251soname_spec=
24252shrext_cmds=".so"
24253postinstall_cmds=
24254postuninstall_cmds=
24255finish_cmds=
24256finish_eval=
24257shlibpath_var=
24258shlibpath_overrides_runpath=unknown
24259version_type=none
24260dynamic_linker="$host_os ld.so"
24261sys_lib_dlsearch_path_spec="/lib /usr/lib"
24262if test "$GCC" = yes; then
24263 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24264 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24265 # if the path contains ";" then we assume it to be the separator
24266 # otherwise default to the standard path separator (i.e. ":") - it is
24267 # assumed that no part of a normal pathname contains ";" but that should
24268 # okay in the real world where ";" in dirpaths is itself problematic.
24269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24270 else
24271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24272 fi
24273else
24274 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24275fi
24276need_lib_prefix=unknown
24277hardcode_into_libs=no
24278
24279# when you set need_version to no, make sure it does not cause -set_version
24280# flags to be left without arguments
24281need_version=unknown
24282
24283case $host_os in
24284aix3*)
24285 version_type=linux
24286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24287 shlibpath_var=LIBPATH
24288
24289 # AIX 3 has no versioning support, so we append a major version to the name.
24290 soname_spec='${libname}${release}${shared_ext}$major'
24291 ;;
24292
24293aix4* | aix5*)
24294 version_type=linux
24295 need_lib_prefix=no
24296 need_version=no
24297 hardcode_into_libs=yes
24298 if test "$host_cpu" = ia64; then
24299 # AIX 5 supports IA64
24300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24301 shlibpath_var=LD_LIBRARY_PATH
24302 else
24303 # With GCC up to 2.95.x, collect2 would create an import file
24304 # for dependence libraries. The import file would start with
24305 # the line `#! .'. This would cause the generated library to
24306 # depend on `.', always an invalid library. This was fixed in
24307 # development snapshots of GCC prior to 3.0.
24308 case $host_os in
24309 aix4 | aix4.[01] | aix4.[01].*)
24310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24311 echo ' yes '
24312 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24313 :
24314 else
24315 can_build_shared=no
24316 fi
24317 ;;
24318 esac
24319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24320 # soname into executable. Probably we can add versioning support to
24321 # collect2, so additional links can be useful in future.
24322 if test "$aix_use_runtimelinking" = yes; then
24323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24324 # instead of lib<name>.a to let people know that these are not
24325 # typical AIX shared libraries.
24326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24327 else
24328 # We preserve .a as extension for shared libraries through AIX4.2
24329 # and later when we are not doing run time linking.
24330 library_names_spec='${libname}${release}.a $libname.a'
24331 soname_spec='${libname}${release}${shared_ext}$major'
24332 fi
24333 shlibpath_var=LIBPATH
24334 fi
24335 ;;
24336
24337amigaos*)
24338 library_names_spec='$libname.ixlibrary $libname.a'
24339 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24340 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'
24341 ;;
24342
24343beos*)
24344 library_names_spec='${libname}${shared_ext}'
24345 dynamic_linker="$host_os ld.so"
24346 shlibpath_var=LIBRARY_PATH
24347 ;;
24348
24349bsdi[45]*)
24350 version_type=linux
24351 need_version=no
24352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24353 soname_spec='${libname}${release}${shared_ext}$major'
24354 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24355 shlibpath_var=LD_LIBRARY_PATH
24356 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24357 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24358 # the default ld.so.conf also contains /usr/contrib/lib and
24359 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24360 # libtool to hard-code these into programs
24361 ;;
24362
24363cygwin* | mingw* | pw32*)
24364 version_type=windows
24365 shrext_cmds=".dll"
24366 need_version=no
24367 need_lib_prefix=no
24368
24369 case $GCC,$host_os in
24370 yes,cygwin* | yes,mingw* | yes,pw32*)
24371 library_names_spec='$libname.dll.a'
24372 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24373 postinstall_cmds='base_file=`basename \${file}`~
24374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24375 dldir=$destdir/`dirname \$dlpath`~
24376 test -d \$dldir || mkdir -p \$dldir~
24377 $install_prog $dir/$dlname \$dldir/$dlname~
24378 chmod a+x \$dldir/$dlname'
24379 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24380 dlpath=$dir/\$dldll~
24381 $rm \$dlpath'
24382 shlibpath_overrides_runpath=yes
24383
24384 case $host_os in
24385 cygwin*)
24386 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24387 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24388 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24389 ;;
24390 mingw*)
24391 # MinGW DLLs use traditional 'lib' prefix
24392 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24394 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24395 # It is most probably a Windows format PATH printed by
24396 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24397 # path with ; separators, and with drive letters. We can handle the
24398 # drive letters (cygwin fileutils understands them), so leave them,
24399 # especially as we might pass files found there to a mingw objdump,
24400 # which wouldn't understand a cygwinified path. Ahh.
24401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24402 else
24403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24404 fi
24405 ;;
24406 pw32*)
24407 # pw32 DLLs use 'pw' prefix rather than 'lib'
24408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24409 ;;
24410 esac
24411 ;;
24412
24413 *)
24414 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24415 ;;
24416 esac
24417 dynamic_linker='Win32 ld.exe'
24418 # FIXME: first we should search . and the directory the executable is in
24419 shlibpath_var=PATH
24420 ;;
24421
24422darwin* | rhapsody*)
24423 dynamic_linker="$host_os dyld"
24424 version_type=darwin
24425 need_lib_prefix=no
24426 need_version=no
24427 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24428 soname_spec='${libname}${release}${major}$shared_ext'
24429 shlibpath_overrides_runpath=yes
24430 shlibpath_var=DYLD_LIBRARY_PATH
24431 shrext_cmds='.dylib'
24432 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24433 if test "$GCC" = yes; then
24434 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"`
24435 else
24436 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24437 fi
24438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24439 ;;
24440
24441dgux*)
24442 version_type=linux
24443 need_lib_prefix=no
24444 need_version=no
24445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24446 soname_spec='${libname}${release}${shared_ext}$major'
24447 shlibpath_var=LD_LIBRARY_PATH
24448 ;;
24449
24450freebsd1*)
24451 dynamic_linker=no
24452 ;;
24453
24454kfreebsd*-gnu)
24455 version_type=linux
24456 need_lib_prefix=no
24457 need_version=no
24458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24459 soname_spec='${libname}${release}${shared_ext}$major'
24460 shlibpath_var=LD_LIBRARY_PATH
24461 shlibpath_overrides_runpath=no
24462 hardcode_into_libs=yes
24463 dynamic_linker='GNU ld.so'
24464 ;;
24465
24466freebsd* | dragonfly*)
24467 # DragonFly does not have aout. When/if they implement a new
24468 # versioning mechanism, adjust this.
24469 if test -x /usr/bin/objformat; then
24470 objformat=`/usr/bin/objformat`
24471 else
24472 case $host_os in
24473 freebsd[123]*) objformat=aout ;;
24474 *) objformat=elf ;;
24475 esac
24476 fi
24477 version_type=freebsd-$objformat
24478 case $version_type in
24479 freebsd-elf*)
24480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24481 need_version=no
24482 need_lib_prefix=no
24483 ;;
24484 freebsd-*)
24485 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24486 need_version=yes
24487 ;;
24488 esac
24489 shlibpath_var=LD_LIBRARY_PATH
24490 case $host_os in
24491 freebsd2*)
24492 shlibpath_overrides_runpath=yes
24493 ;;
24494 freebsd3.[01]* | freebsdelf3.[01]*)
24495 shlibpath_overrides_runpath=yes
24496 hardcode_into_libs=yes
24497 ;;
24498 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24499 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24500 shlibpath_overrides_runpath=no
24501 hardcode_into_libs=yes
24502 ;;
24503 freebsd*) # from 4.6 on
24504 shlibpath_overrides_runpath=yes
24505 hardcode_into_libs=yes
24506 ;;
24507 esac
24508 ;;
24509
24510gnu*)
24511 version_type=linux
24512 need_lib_prefix=no
24513 need_version=no
24514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24515 soname_spec='${libname}${release}${shared_ext}$major'
24516 shlibpath_var=LD_LIBRARY_PATH
24517 hardcode_into_libs=yes
24518 ;;
24519
24520hpux9* | hpux10* | hpux11*)
24521 # Give a soname corresponding to the major version so that dld.sl refuses to
24522 # link against other versions.
24523 version_type=sunos
24524 need_lib_prefix=no
24525 need_version=no
24526 case $host_cpu in
24527 ia64*)
24528 shrext_cmds='.so'
24529 hardcode_into_libs=yes
24530 dynamic_linker="$host_os dld.so"
24531 shlibpath_var=LD_LIBRARY_PATH
24532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24534 soname_spec='${libname}${release}${shared_ext}$major'
24535 if test "X$HPUX_IA64_MODE" = X32; then
24536 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24537 else
24538 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24539 fi
24540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24541 ;;
24542 hppa*64*)
24543 shrext_cmds='.sl'
24544 hardcode_into_libs=yes
24545 dynamic_linker="$host_os dld.sl"
24546 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24549 soname_spec='${libname}${release}${shared_ext}$major'
24550 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24552 ;;
24553 *)
24554 shrext_cmds='.sl'
24555 dynamic_linker="$host_os dld.sl"
24556 shlibpath_var=SHLIB_PATH
24557 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24559 soname_spec='${libname}${release}${shared_ext}$major'
24560 ;;
24561 esac
24562 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24563 postinstall_cmds='chmod 555 $lib'
24564 ;;
24565
24566interix3*)
24567 version_type=linux
24568 need_lib_prefix=no
24569 need_version=no
24570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24571 soname_spec='${libname}${release}${shared_ext}$major'
24572 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24573 shlibpath_var=LD_LIBRARY_PATH
24574 shlibpath_overrides_runpath=no
24575 hardcode_into_libs=yes
24576 ;;
24577
24578irix5* | irix6* | nonstopux*)
24579 case $host_os in
24580 nonstopux*) version_type=nonstopux ;;
24581 *)
24582 if test "$lt_cv_prog_gnu_ld" = yes; then
24583 version_type=linux
24584 else
24585 version_type=irix
24586 fi ;;
24587 esac
24588 need_lib_prefix=no
24589 need_version=no
24590 soname_spec='${libname}${release}${shared_ext}$major'
24591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24592 case $host_os in
24593 irix5* | nonstopux*)
24594 libsuff= shlibsuff=
24595 ;;
24596 *)
24597 case $LD in # libtool.m4 will add one of these switches to LD
24598 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24599 libsuff= shlibsuff= libmagic=32-bit;;
24600 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24601 libsuff=32 shlibsuff=N32 libmagic=N32;;
24602 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24603 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24604 *) libsuff= shlibsuff= libmagic=never-match;;
24605 esac
24606 ;;
24607 esac
24608 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24609 shlibpath_overrides_runpath=no
24610 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24611 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24612 hardcode_into_libs=yes
24613 ;;
24614
24615# No shared lib support for Linux oldld, aout, or coff.
24616linux*oldld* | linux*aout* | linux*coff*)
24617 dynamic_linker=no
24618 ;;
24619
24620# This must be Linux ELF.
24621linux*)
24622 version_type=linux
24623 need_lib_prefix=no
24624 need_version=no
24625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24626 soname_spec='${libname}${release}${shared_ext}$major'
24627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24628 shlibpath_var=LD_LIBRARY_PATH
24629 shlibpath_overrides_runpath=no
24630 # This implies no fast_install, which is unacceptable.
24631 # Some rework will be needed to allow for fast_install
24632 # before this can be enabled.
24633 hardcode_into_libs=yes
24634
24635 # Append ld.so.conf contents to the search path
24636 if test -f /etc/ld.so.conf; then
24637 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' ' '`
24638 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24639 fi
24640
24641 # We used to test for /lib/ld.so.1 and disable shared libraries on
24642 # powerpc, because MkLinux only supported shared libraries with the
24643 # GNU dynamic linker. Since this was broken with cross compilers,
24644 # most powerpc-linux boxes support dynamic linking these days and
24645 # people can always --disable-shared, the test was removed, and we
24646 # assume the GNU/Linux dynamic linker is in use.
24647 dynamic_linker='GNU/Linux ld.so'
24648 ;;
24649
24650knetbsd*-gnu)
24651 version_type=linux
24652 need_lib_prefix=no
24653 need_version=no
24654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24655 soname_spec='${libname}${release}${shared_ext}$major'
24656 shlibpath_var=LD_LIBRARY_PATH
24657 shlibpath_overrides_runpath=no
24658 hardcode_into_libs=yes
24659 dynamic_linker='GNU ld.so'
24660 ;;
24661
24662netbsd*)
24663 version_type=sunos
24664 need_lib_prefix=no
24665 need_version=no
24666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24669 dynamic_linker='NetBSD (a.out) ld.so'
24670 else
24671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24672 soname_spec='${libname}${release}${shared_ext}$major'
24673 dynamic_linker='NetBSD ld.elf_so'
24674 fi
24675 shlibpath_var=LD_LIBRARY_PATH
24676 shlibpath_overrides_runpath=yes
24677 hardcode_into_libs=yes
24678 ;;
24679
24680newsos6)
24681 version_type=linux
24682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24683 shlibpath_var=LD_LIBRARY_PATH
24684 shlibpath_overrides_runpath=yes
24685 ;;
24686
24687nto-qnx*)
24688 version_type=linux
24689 need_lib_prefix=no
24690 need_version=no
24691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24692 soname_spec='${libname}${release}${shared_ext}$major'
24693 shlibpath_var=LD_LIBRARY_PATH
24694 shlibpath_overrides_runpath=yes
24695 ;;
24696
24697openbsd*)
24698 version_type=sunos
24699 sys_lib_dlsearch_path_spec="/usr/lib"
24700 need_lib_prefix=no
24701 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24702 case $host_os in
24703 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24704 *) need_version=no ;;
24705 esac
24706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24708 shlibpath_var=LD_LIBRARY_PATH
24709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24710 case $host_os in
24711 openbsd2.[89] | openbsd2.[89].*)
24712 shlibpath_overrides_runpath=no
24713 ;;
24714 *)
24715 shlibpath_overrides_runpath=yes
24716 ;;
24717 esac
24718 else
24719 shlibpath_overrides_runpath=yes
24720 fi
24721 ;;
24722
24723os2*)
24724 libname_spec='$name'
24725 shrext_cmds=".dll"
24726 need_lib_prefix=no
24727 library_names_spec='$libname${shared_ext} $libname.a'
24728 dynamic_linker='OS/2 ld.exe'
24729 shlibpath_var=LIBPATH
24730 ;;
24731
24732osf3* | osf4* | osf5*)
24733 version_type=osf
24734 need_lib_prefix=no
24735 need_version=no
24736 soname_spec='${libname}${release}${shared_ext}$major'
24737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24738 shlibpath_var=LD_LIBRARY_PATH
24739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24740 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24741 ;;
24742
24743solaris*)
24744 version_type=linux
24745 need_lib_prefix=no
24746 need_version=no
24747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24748 soname_spec='${libname}${release}${shared_ext}$major'
24749 shlibpath_var=LD_LIBRARY_PATH
24750 shlibpath_overrides_runpath=yes
24751 hardcode_into_libs=yes
24752 # ldd complains unless libraries are executable
24753 postinstall_cmds='chmod +x $lib'
24754 ;;
24755
24756sunos4*)
24757 version_type=sunos
24758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24760 shlibpath_var=LD_LIBRARY_PATH
24761 shlibpath_overrides_runpath=yes
24762 if test "$with_gnu_ld" = yes; then
24763 need_lib_prefix=no
24764 fi
24765 need_version=yes
24766 ;;
24767
24768sysv4 | sysv4.3*)
24769 version_type=linux
24770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24771 soname_spec='${libname}${release}${shared_ext}$major'
24772 shlibpath_var=LD_LIBRARY_PATH
24773 case $host_vendor in
24774 sni)
24775 shlibpath_overrides_runpath=no
24776 need_lib_prefix=no
24777 export_dynamic_flag_spec='${wl}-Blargedynsym'
24778 runpath_var=LD_RUN_PATH
24779 ;;
24780 siemens)
24781 need_lib_prefix=no
24782 ;;
24783 motorola)
24784 need_lib_prefix=no
24785 need_version=no
24786 shlibpath_overrides_runpath=no
24787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24788 ;;
24789 esac
24790 ;;
24791
24792sysv4*MP*)
24793 if test -d /usr/nec ;then
24794 version_type=linux
24795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24796 soname_spec='$libname${shared_ext}.$major'
24797 shlibpath_var=LD_LIBRARY_PATH
24798 fi
24799 ;;
24800
24801sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24802 version_type=freebsd-elf
24803 need_lib_prefix=no
24804 need_version=no
24805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24806 soname_spec='${libname}${release}${shared_ext}$major'
24807 shlibpath_var=LD_LIBRARY_PATH
24808 hardcode_into_libs=yes
24809 if test "$with_gnu_ld" = yes; then
24810 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24811 shlibpath_overrides_runpath=no
24812 else
24813 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24814 shlibpath_overrides_runpath=yes
24815 case $host_os in
24816 sco3.2v5*)
24817 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24818 ;;
24819 esac
24820 fi
24821 sys_lib_dlsearch_path_spec='/usr/lib'
24822 ;;
24823
24824uts4*)
24825 version_type=linux
24826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24827 soname_spec='${libname}${release}${shared_ext}$major'
24828 shlibpath_var=LD_LIBRARY_PATH
24829 ;;
24830
24831*)
24832 dynamic_linker=no
24833 ;;
24834esac
24835{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24836echo "${ECHO_T}$dynamic_linker" >&6; }
24837test "$dynamic_linker" = no && can_build_shared=no
24838
24839variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24840if test "$GCC" = yes; then
24841 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24842fi
24843
24844{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24845echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24846hardcode_action_GCJ=
24847if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24848 test -n "$runpath_var_GCJ" || \
24849 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24850
24851 # We can hardcode non-existant directories.
24852 if test "$hardcode_direct_GCJ" != no &&
24853 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24854 # have to relink, otherwise we might link with an installed library
24855 # when we should be linking with a yet-to-be-installed one
24856 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24857 test "$hardcode_minus_L_GCJ" != no; then
24858 # Linking always hardcodes the temporary library directory.
24859 hardcode_action_GCJ=relink
24860 else
24861 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24862 hardcode_action_GCJ=immediate
24863 fi
24864else
24865 # We cannot hardcode anything, or else we can only hardcode existing
24866 # directories.
24867 hardcode_action_GCJ=unsupported
24868fi
24869{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24870echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24871
24872if test "$hardcode_action_GCJ" = relink; then
24873 # Fast installation is not supported
24874 enable_fast_install=no
24875elif test "$shlibpath_overrides_runpath" = yes ||
24876 test "$enable_shared" = no; then
24877 # Fast installation is not necessary
24878 enable_fast_install=needless
24879fi
24880
24881
24882# The else clause should only fire when bootstrapping the
24883# libtool distribution, otherwise you forgot to ship ltmain.sh
24884# with your package, and you will get complaints that there are
24885# no rules to generate ltmain.sh.
24886if test -f "$ltmain"; then
24887 # See if we are running on zsh, and set the options which allow our commands through
24888 # without removal of \ escapes.
24889 if test -n "${ZSH_VERSION+set}" ; then
24890 setopt NO_GLOB_SUBST
24891 fi
24892 # Now quote all the things that may contain metacharacters while being
24893 # careful not to overquote the AC_SUBSTed values. We take copies of the
24894 # variables and quote the copies for generation of the libtool script.
24895 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24896 SED SHELL STRIP \
24897 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24898 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24899 deplibs_check_method reload_flag reload_cmds need_locks \
24900 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24901 lt_cv_sys_global_symbol_to_c_name_address \
24902 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24903 old_postinstall_cmds old_postuninstall_cmds \
24904 compiler_GCJ \
24905 CC_GCJ \
24906 LD_GCJ \
24907 lt_prog_compiler_wl_GCJ \
24908 lt_prog_compiler_pic_GCJ \
24909 lt_prog_compiler_static_GCJ \
24910 lt_prog_compiler_no_builtin_flag_GCJ \
24911 export_dynamic_flag_spec_GCJ \
24912 thread_safe_flag_spec_GCJ \
24913 whole_archive_flag_spec_GCJ \
24914 enable_shared_with_static_runtimes_GCJ \
24915 old_archive_cmds_GCJ \
24916 old_archive_from_new_cmds_GCJ \
24917 predep_objects_GCJ \
24918 postdep_objects_GCJ \
24919 predeps_GCJ \
24920 postdeps_GCJ \
24921 compiler_lib_search_path_GCJ \
24922 archive_cmds_GCJ \
24923 archive_expsym_cmds_GCJ \
24924 postinstall_cmds_GCJ \
24925 postuninstall_cmds_GCJ \
24926 old_archive_from_expsyms_cmds_GCJ \
24927 allow_undefined_flag_GCJ \
24928 no_undefined_flag_GCJ \
24929 export_symbols_cmds_GCJ \
24930 hardcode_libdir_flag_spec_GCJ \
24931 hardcode_libdir_flag_spec_ld_GCJ \
24932 hardcode_libdir_separator_GCJ \
24933 hardcode_automatic_GCJ \
24934 module_cmds_GCJ \
24935 module_expsym_cmds_GCJ \
24936 lt_cv_prog_compiler_c_o_GCJ \
24937 exclude_expsyms_GCJ \
24938 include_expsyms_GCJ; do
24939
24940 case $var in
24941 old_archive_cmds_GCJ | \
24942 old_archive_from_new_cmds_GCJ | \
24943 archive_cmds_GCJ | \
24944 archive_expsym_cmds_GCJ | \
24945 module_cmds_GCJ | \
24946 module_expsym_cmds_GCJ | \
24947 old_archive_from_expsyms_cmds_GCJ | \
24948 export_symbols_cmds_GCJ | \
24949 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24950 postinstall_cmds | postuninstall_cmds | \
24951 old_postinstall_cmds | old_postuninstall_cmds | \
24952 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24953 # Double-quote double-evaled strings.
24954 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24955 ;;
24956 *)
24957 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24958 ;;
24959 esac
24960 done
24961
24962 case $lt_echo in
24963 *'\$0 --fallback-echo"')
24964 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24965 ;;
24966 esac
24967
24968cfgfile="$ofile"
24969
24970 cat <<__EOF__ >> "$cfgfile"
24971# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24972
24973# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24974
24975# Shell to use when invoking shell scripts.
24976SHELL=$lt_SHELL
24977
24978# Whether or not to build shared libraries.
24979build_libtool_libs=$enable_shared
24980
24981# Whether or not to build static libraries.
24982build_old_libs=$enable_static
24983
24984# Whether or not to add -lc for building shared libraries.
24985build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24986
24987# Whether or not to disallow shared libs when runtime libs are static
24988allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24989
24990# Whether or not to optimize for fast installation.
24991fast_install=$enable_fast_install
24992
24993# The host system.
24994host_alias=$host_alias
24995host=$host
24996host_os=$host_os
24997
24998# The build system.
24999build_alias=$build_alias
25000build=$build
25001build_os=$build_os
25002
25003# An echo program that does not interpret backslashes.
25004echo=$lt_echo
25005
25006# The archiver.
25007AR=$lt_AR
25008AR_FLAGS=$lt_AR_FLAGS
25009
25010# A C compiler.
25011LTCC=$lt_LTCC
25012
25013# LTCC compiler flags.
25014LTCFLAGS=$lt_LTCFLAGS
25015
25016# A language-specific compiler.
25017CC=$lt_compiler_GCJ
25018
25019# Is the compiler the GNU C compiler?
25020with_gcc=$GCC_GCJ
25021
25022# An ERE matcher.
25023EGREP=$lt_EGREP
25024
25025# The linker used to build libraries.
25026LD=$lt_LD_GCJ
25027
25028# Whether we need hard or soft links.
25029LN_S=$lt_LN_S
25030
25031# A BSD-compatible nm program.
25032NM=$lt_NM
25033
25034# A symbol stripping program
25035STRIP=$lt_STRIP
25036
25037# Used to examine libraries when file_magic_cmd begins "file"
25038MAGIC_CMD=$MAGIC_CMD
25039
25040# Used on cygwin: DLL creation program.
25041DLLTOOL="$DLLTOOL"
25042
25043# Used on cygwin: object dumper.
25044OBJDUMP="$OBJDUMP"
25045
25046# Used on cygwin: assembler.
25047AS="$AS"
25048
25049# The name of the directory that contains temporary libtool files.
25050objdir=$objdir
25051
25052# How to create reloadable object files.
25053reload_flag=$lt_reload_flag
25054reload_cmds=$lt_reload_cmds
25055
25056# How to pass a linker flag through the compiler.
25057wl=$lt_lt_prog_compiler_wl_GCJ
25058
25059# Object file suffix (normally "o").
25060objext="$ac_objext"
25061
25062# Old archive suffix (normally "a").
25063libext="$libext"
25064
25065# Shared library suffix (normally ".so").
25066shrext_cmds='$shrext_cmds'
25067
25068# Executable file suffix (normally "").
25069exeext="$exeext"
25070
25071# Additional compiler flags for building library objects.
25072pic_flag=$lt_lt_prog_compiler_pic_GCJ
25073pic_mode=$pic_mode
25074
25075# What is the maximum length of a command?
25076max_cmd_len=$lt_cv_sys_max_cmd_len
25077
25078# Does compiler simultaneously support -c and -o options?
25079compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25080
25081# Must we lock files when doing compilation?
25082need_locks=$lt_need_locks
25083
25084# Do we need the lib prefix for modules?
25085need_lib_prefix=$need_lib_prefix
25086
25087# Do we need a version for libraries?
25088need_version=$need_version
25089
25090# Whether dlopen is supported.
25091dlopen_support=$enable_dlopen
25092
25093# Whether dlopen of programs is supported.
25094dlopen_self=$enable_dlopen_self
25095
25096# Whether dlopen of statically linked programs is supported.
25097dlopen_self_static=$enable_dlopen_self_static
25098
25099# Compiler flag to prevent dynamic linking.
25100link_static_flag=$lt_lt_prog_compiler_static_GCJ
25101
25102# Compiler flag to turn off builtin functions.
25103no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25104
25105# Compiler flag to allow reflexive dlopens.
25106export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25107
25108# Compiler flag to generate shared objects directly from archives.
25109whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25110
25111# Compiler flag to generate thread-safe objects.
25112thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25113
25114# Library versioning type.
25115version_type=$version_type
25116
25117# Format of library name prefix.
25118libname_spec=$lt_libname_spec
25119
25120# List of archive names. First name is the real one, the rest are links.
25121# The last name is the one that the linker finds with -lNAME.
25122library_names_spec=$lt_library_names_spec
25123
25124# The coded name of the library, if different from the real name.
25125soname_spec=$lt_soname_spec
25126
25127# Commands used to build and install an old-style archive.
25128RANLIB=$lt_RANLIB
25129old_archive_cmds=$lt_old_archive_cmds_GCJ
25130old_postinstall_cmds=$lt_old_postinstall_cmds
25131old_postuninstall_cmds=$lt_old_postuninstall_cmds
25132
25133# Create an old-style archive from a shared archive.
25134old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25135
25136# Create a temporary old-style archive to link instead of a shared archive.
25137old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25138
25139# Commands used to build and install a shared archive.
25140archive_cmds=$lt_archive_cmds_GCJ
25141archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25142postinstall_cmds=$lt_postinstall_cmds
25143postuninstall_cmds=$lt_postuninstall_cmds
25144
25145# Commands used to build a loadable module (assumed same as above if empty)
25146module_cmds=$lt_module_cmds_GCJ
25147module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25148
25149# Commands to strip libraries.
25150old_striplib=$lt_old_striplib
25151striplib=$lt_striplib
25152
25153# Dependencies to place before the objects being linked to create a
25154# shared library.
25155predep_objects=$lt_predep_objects_GCJ
25156
25157# Dependencies to place after the objects being linked to create a
25158# shared library.
25159postdep_objects=$lt_postdep_objects_GCJ
25160
25161# Dependencies to place before the objects being linked to create a
25162# shared library.
25163predeps=$lt_predeps_GCJ
25164
25165# Dependencies to place after the objects being linked to create a
25166# shared library.
25167postdeps=$lt_postdeps_GCJ
25168
25169# The library search path used internally by the compiler when linking
25170# a shared library.
25171compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25172
25173# Method to check whether dependent libraries are shared objects.
25174deplibs_check_method=$lt_deplibs_check_method
25175
25176# Command to use when deplibs_check_method == file_magic.
25177file_magic_cmd=$lt_file_magic_cmd
25178
25179# Flag that allows shared libraries with undefined symbols to be built.
25180allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25181
25182# Flag that forces no undefined symbols.
25183no_undefined_flag=$lt_no_undefined_flag_GCJ
25184
25185# Commands used to finish a libtool library installation in a directory.
25186finish_cmds=$lt_finish_cmds
25187
25188# Same as above, but a single script fragment to be evaled but not shown.
25189finish_eval=$lt_finish_eval
25190
25191# Take the output of nm and produce a listing of raw symbols and C names.
25192global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25193
25194# Transform the output of nm in a proper C declaration
25195global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25196
25197# Transform the output of nm in a C name address pair
25198global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25199
25200# This is the shared library runtime path variable.
25201runpath_var=$runpath_var
25202
25203# This is the shared library path variable.
25204shlibpath_var=$shlibpath_var
25205
25206# Is shlibpath searched before the hard-coded library search path?
25207shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25208
25209# How to hardcode a shared library path into an executable.
25210hardcode_action=$hardcode_action_GCJ
25211
25212# Whether we should hardcode library paths into libraries.
25213hardcode_into_libs=$hardcode_into_libs
25214
25215# Flag to hardcode \$libdir into a binary during linking.
25216# This must work even if \$libdir does not exist.
25217hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25218
25219# If ld is used when linking, flag to hardcode \$libdir into
25220# a binary during linking. This must work even if \$libdir does
25221# not exist.
25222hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25223
25224# Whether we need a single -rpath flag with a separated argument.
25225hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25226
25227# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25228# resulting binary.
25229hardcode_direct=$hardcode_direct_GCJ
25230
25231# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25232# resulting binary.
25233hardcode_minus_L=$hardcode_minus_L_GCJ
25234
25235# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25236# the resulting binary.
25237hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25238
25239# Set to yes if building a shared library automatically hardcodes DIR into the library
25240# and all subsequent libraries and executables linked against it.
25241hardcode_automatic=$hardcode_automatic_GCJ
25242
25243# Variables whose values should be saved in libtool wrapper scripts and
25244# restored at relink time.
25245variables_saved_for_relink="$variables_saved_for_relink"
25246
25247# Whether libtool must link a program against all its dependency libraries.
25248link_all_deplibs=$link_all_deplibs_GCJ
25249
25250# Compile-time system search path for libraries
25251sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25252
25253# Run-time system search path for libraries
25254sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25255
25256# Fix the shell variable \$srcfile for the compiler.
25257fix_srcfile_path="$fix_srcfile_path_GCJ"
25258
25259# Set to yes if exported symbols are required.
25260always_export_symbols=$always_export_symbols_GCJ
25261
25262# The commands to list exported symbols.
25263export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25264
25265# The commands to extract the exported symbol list from a shared archive.
25266extract_expsyms_cmds=$lt_extract_expsyms_cmds
25267
25268# Symbols that should not be listed in the preloaded symbols.
25269exclude_expsyms=$lt_exclude_expsyms_GCJ
25270
25271# Symbols that must always be exported.
25272include_expsyms=$lt_include_expsyms_GCJ
25273
25274# ### END LIBTOOL TAG CONFIG: $tagname
25275
25276__EOF__
25277
25278
25279else
25280 # If there is no Makefile yet, we rely on a make rule to execute
25281 # `config.status --recheck' to rerun these tests and create the
25282 # libtool script then.
25283 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25284 if test -f "$ltmain_in"; then
25285 test -f Makefile && make "$ltmain"
25286 fi
25287fi
25288
25289
25290ac_ext=c
25291ac_cpp='$CPP $CPPFLAGS'
25292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25294ac_compiler_gnu=$ac_cv_c_compiler_gnu
25295
25296CC="$lt_save_CC"
25297
25298 else
25299 tagname=""
25300 fi
25301 ;;
25302
25303 RC)
25304 ac_ext=c
25305ac_cpp='$CPP $CPPFLAGS'
25306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25308ac_compiler_gnu=$ac_cv_c_compiler_gnu
25309
25310
25311# Source file extension for RC test sources.
25312ac_ext=rc
25313
25314# Object file extension for compiled RC test sources.
25315objext=o
25316objext_RC=$objext
25317
25318# Code to be used in simple compile tests
25319lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25320
25321# Code to be used in simple link tests
25322lt_simple_link_test_code="$lt_simple_compile_test_code"
25323
25324# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25325
25326# If no C compiler was specified, use CC.
25327LTCC=${LTCC-"$CC"}
25328
25329# If no C compiler flags were specified, use CFLAGS.
25330LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25331
25332# Allow CC to be a program name with arguments.
25333compiler=$CC
25334
25335
25336# save warnings/boilerplate of simple test code
25337ac_outfile=conftest.$ac_objext
25338printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25339eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25340_lt_compiler_boilerplate=`cat conftest.err`
25341$rm conftest*
25342
25343ac_outfile=conftest.$ac_objext
25344printf "$lt_simple_link_test_code" >conftest.$ac_ext
25345eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25346_lt_linker_boilerplate=`cat conftest.err`
25347$rm conftest*
25348
25349
25350# Allow CC to be a program name with arguments.
25351lt_save_CC="$CC"
25352CC=${RC-"windres"}
25353compiler=$CC
25354compiler_RC=$CC
25355for cc_temp in $compiler""; do
25356 case $cc_temp in
25357 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25358 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25359 \-*) ;;
25360 *) break;;
25361 esac
25362done
25363cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25364
25365lt_cv_prog_compiler_c_o_RC=yes
25366
25367# The else clause should only fire when bootstrapping the
25368# libtool distribution, otherwise you forgot to ship ltmain.sh
25369# with your package, and you will get complaints that there are
25370# no rules to generate ltmain.sh.
25371if test -f "$ltmain"; then
25372 # See if we are running on zsh, and set the options which allow our commands through
25373 # without removal of \ escapes.
25374 if test -n "${ZSH_VERSION+set}" ; then
25375 setopt NO_GLOB_SUBST
25376 fi
25377 # Now quote all the things that may contain metacharacters while being
25378 # careful not to overquote the AC_SUBSTed values. We take copies of the
25379 # variables and quote the copies for generation of the libtool script.
25380 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25381 SED SHELL STRIP \
25382 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25383 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25384 deplibs_check_method reload_flag reload_cmds need_locks \
25385 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25386 lt_cv_sys_global_symbol_to_c_name_address \
25387 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25388 old_postinstall_cmds old_postuninstall_cmds \
25389 compiler_RC \
25390 CC_RC \
25391 LD_RC \
25392 lt_prog_compiler_wl_RC \
25393 lt_prog_compiler_pic_RC \
25394 lt_prog_compiler_static_RC \
25395 lt_prog_compiler_no_builtin_flag_RC \
25396 export_dynamic_flag_spec_RC \
25397 thread_safe_flag_spec_RC \
25398 whole_archive_flag_spec_RC \
25399 enable_shared_with_static_runtimes_RC \
25400 old_archive_cmds_RC \
25401 old_archive_from_new_cmds_RC \
25402 predep_objects_RC \
25403 postdep_objects_RC \
25404 predeps_RC \
25405 postdeps_RC \
25406 compiler_lib_search_path_RC \
25407 archive_cmds_RC \
25408 archive_expsym_cmds_RC \
25409 postinstall_cmds_RC \
25410 postuninstall_cmds_RC \
25411 old_archive_from_expsyms_cmds_RC \
25412 allow_undefined_flag_RC \
25413 no_undefined_flag_RC \
25414 export_symbols_cmds_RC \
25415 hardcode_libdir_flag_spec_RC \
25416 hardcode_libdir_flag_spec_ld_RC \
25417 hardcode_libdir_separator_RC \
25418 hardcode_automatic_RC \
25419 module_cmds_RC \
25420 module_expsym_cmds_RC \
25421 lt_cv_prog_compiler_c_o_RC \
25422 exclude_expsyms_RC \
25423 include_expsyms_RC; do
25424
25425 case $var in
25426 old_archive_cmds_RC | \
25427 old_archive_from_new_cmds_RC | \
25428 archive_cmds_RC | \
25429 archive_expsym_cmds_RC | \
25430 module_cmds_RC | \
25431 module_expsym_cmds_RC | \
25432 old_archive_from_expsyms_cmds_RC | \
25433 export_symbols_cmds_RC | \
25434 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25435 postinstall_cmds | postuninstall_cmds | \
25436 old_postinstall_cmds | old_postuninstall_cmds | \
25437 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25438 # Double-quote double-evaled strings.
25439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25440 ;;
25441 *)
25442 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25443 ;;
25444 esac
25445 done
25446
25447 case $lt_echo in
25448 *'\$0 --fallback-echo"')
25449 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25450 ;;
25451 esac
25452
25453cfgfile="$ofile"
25454
25455 cat <<__EOF__ >> "$cfgfile"
25456# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25457
25458# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25459
25460# Shell to use when invoking shell scripts.
25461SHELL=$lt_SHELL
25462
25463# Whether or not to build shared libraries.
25464build_libtool_libs=$enable_shared
25465
25466# Whether or not to build static libraries.
25467build_old_libs=$enable_static
25468
25469# Whether or not to add -lc for building shared libraries.
25470build_libtool_need_lc=$archive_cmds_need_lc_RC
25471
25472# Whether or not to disallow shared libs when runtime libs are static
25473allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25474
25475# Whether or not to optimize for fast installation.
25476fast_install=$enable_fast_install
25477
25478# The host system.
25479host_alias=$host_alias
25480host=$host
25481host_os=$host_os
25482
25483# The build system.
25484build_alias=$build_alias
25485build=$build
25486build_os=$build_os
25487
25488# An echo program that does not interpret backslashes.
25489echo=$lt_echo
25490
25491# The archiver.
25492AR=$lt_AR
25493AR_FLAGS=$lt_AR_FLAGS
25494
25495# A C compiler.
25496LTCC=$lt_LTCC
25497
25498# LTCC compiler flags.
25499LTCFLAGS=$lt_LTCFLAGS
25500
25501# A language-specific compiler.
25502CC=$lt_compiler_RC
25503
25504# Is the compiler the GNU C compiler?
25505with_gcc=$GCC_RC
25506
25507# An ERE matcher.
25508EGREP=$lt_EGREP
25509
25510# The linker used to build libraries.
25511LD=$lt_LD_RC
25512
25513# Whether we need hard or soft links.
25514LN_S=$lt_LN_S
25515
25516# A BSD-compatible nm program.
25517NM=$lt_NM
25518
25519# A symbol stripping program
25520STRIP=$lt_STRIP
25521
25522# Used to examine libraries when file_magic_cmd begins "file"
25523MAGIC_CMD=$MAGIC_CMD
25524
25525# Used on cygwin: DLL creation program.
25526DLLTOOL="$DLLTOOL"
25527
25528# Used on cygwin: object dumper.
25529OBJDUMP="$OBJDUMP"
25530
25531# Used on cygwin: assembler.
25532AS="$AS"
25533
25534# The name of the directory that contains temporary libtool files.
25535objdir=$objdir
25536
25537# How to create reloadable object files.
25538reload_flag=$lt_reload_flag
25539reload_cmds=$lt_reload_cmds
25540
25541# How to pass a linker flag through the compiler.
25542wl=$lt_lt_prog_compiler_wl_RC
25543
25544# Object file suffix (normally "o").
25545objext="$ac_objext"
25546
25547# Old archive suffix (normally "a").
25548libext="$libext"
25549
25550# Shared library suffix (normally ".so").
25551shrext_cmds='$shrext_cmds'
25552
25553# Executable file suffix (normally "").
25554exeext="$exeext"
25555
25556# Additional compiler flags for building library objects.
25557pic_flag=$lt_lt_prog_compiler_pic_RC
25558pic_mode=$pic_mode
25559
25560# What is the maximum length of a command?
25561max_cmd_len=$lt_cv_sys_max_cmd_len
25562
25563# Does compiler simultaneously support -c and -o options?
25564compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25565
25566# Must we lock files when doing compilation?
25567need_locks=$lt_need_locks
25568
25569# Do we need the lib prefix for modules?
25570need_lib_prefix=$need_lib_prefix
25571
25572# Do we need a version for libraries?
25573need_version=$need_version
25574
25575# Whether dlopen is supported.
25576dlopen_support=$enable_dlopen
25577
25578# Whether dlopen of programs is supported.
25579dlopen_self=$enable_dlopen_self
25580
25581# Whether dlopen of statically linked programs is supported.
25582dlopen_self_static=$enable_dlopen_self_static
25583
25584# Compiler flag to prevent dynamic linking.
25585link_static_flag=$lt_lt_prog_compiler_static_RC
25586
25587# Compiler flag to turn off builtin functions.
25588no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25589
25590# Compiler flag to allow reflexive dlopens.
25591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25592
25593# Compiler flag to generate shared objects directly from archives.
25594whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25595
25596# Compiler flag to generate thread-safe objects.
25597thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25598
25599# Library versioning type.
25600version_type=$version_type
25601
25602# Format of library name prefix.
25603libname_spec=$lt_libname_spec
25604
25605# List of archive names. First name is the real one, the rest are links.
25606# The last name is the one that the linker finds with -lNAME.
25607library_names_spec=$lt_library_names_spec
25608
25609# The coded name of the library, if different from the real name.
25610soname_spec=$lt_soname_spec
25611
25612# Commands used to build and install an old-style archive.
25613RANLIB=$lt_RANLIB
25614old_archive_cmds=$lt_old_archive_cmds_RC
25615old_postinstall_cmds=$lt_old_postinstall_cmds
25616old_postuninstall_cmds=$lt_old_postuninstall_cmds
25617
25618# Create an old-style archive from a shared archive.
25619old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25620
25621# Create a temporary old-style archive to link instead of a shared archive.
25622old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25623
25624# Commands used to build and install a shared archive.
25625archive_cmds=$lt_archive_cmds_RC
25626archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25627postinstall_cmds=$lt_postinstall_cmds
25628postuninstall_cmds=$lt_postuninstall_cmds
25629
25630# Commands used to build a loadable module (assumed same as above if empty)
25631module_cmds=$lt_module_cmds_RC
25632module_expsym_cmds=$lt_module_expsym_cmds_RC
25633
25634# Commands to strip libraries.
25635old_striplib=$lt_old_striplib
25636striplib=$lt_striplib
25637
25638# Dependencies to place before the objects being linked to create a
25639# shared library.
25640predep_objects=$lt_predep_objects_RC
25641
25642# Dependencies to place after the objects being linked to create a
25643# shared library.
25644postdep_objects=$lt_postdep_objects_RC
25645
25646# Dependencies to place before the objects being linked to create a
25647# shared library.
25648predeps=$lt_predeps_RC
25649
25650# Dependencies to place after the objects being linked to create a
25651# shared library.
25652postdeps=$lt_postdeps_RC
25653
25654# The library search path used internally by the compiler when linking
25655# a shared library.
25656compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25657
25658# Method to check whether dependent libraries are shared objects.
25659deplibs_check_method=$lt_deplibs_check_method
25660
25661# Command to use when deplibs_check_method == file_magic.
25662file_magic_cmd=$lt_file_magic_cmd
25663
25664# Flag that allows shared libraries with undefined symbols to be built.
25665allow_undefined_flag=$lt_allow_undefined_flag_RC
25666
25667# Flag that forces no undefined symbols.
25668no_undefined_flag=$lt_no_undefined_flag_RC
25669
25670# Commands used to finish a libtool library installation in a directory.
25671finish_cmds=$lt_finish_cmds
25672
25673# Same as above, but a single script fragment to be evaled but not shown.
25674finish_eval=$lt_finish_eval
25675
25676# Take the output of nm and produce a listing of raw symbols and C names.
25677global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25678
25679# Transform the output of nm in a proper C declaration
25680global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25681
25682# Transform the output of nm in a C name address pair
25683global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25684
25685# This is the shared library runtime path variable.
25686runpath_var=$runpath_var
25687
25688# This is the shared library path variable.
25689shlibpath_var=$shlibpath_var
25690
25691# Is shlibpath searched before the hard-coded library search path?
25692shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25693
25694# How to hardcode a shared library path into an executable.
25695hardcode_action=$hardcode_action_RC
25696
25697# Whether we should hardcode library paths into libraries.
25698hardcode_into_libs=$hardcode_into_libs
25699
25700# Flag to hardcode \$libdir into a binary during linking.
25701# This must work even if \$libdir does not exist.
25702hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25703
25704# If ld is used when linking, flag to hardcode \$libdir into
25705# a binary during linking. This must work even if \$libdir does
25706# not exist.
25707hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25708
25709# Whether we need a single -rpath flag with a separated argument.
25710hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25711
25712# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25713# resulting binary.
25714hardcode_direct=$hardcode_direct_RC
25715
25716# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25717# resulting binary.
25718hardcode_minus_L=$hardcode_minus_L_RC
25719
25720# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25721# the resulting binary.
25722hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25723
25724# Set to yes if building a shared library automatically hardcodes DIR into the library
25725# and all subsequent libraries and executables linked against it.
25726hardcode_automatic=$hardcode_automatic_RC
25727
25728# Variables whose values should be saved in libtool wrapper scripts and
25729# restored at relink time.
25730variables_saved_for_relink="$variables_saved_for_relink"
25731
25732# Whether libtool must link a program against all its dependency libraries.
25733link_all_deplibs=$link_all_deplibs_RC
25734
25735# Compile-time system search path for libraries
25736sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25737
25738# Run-time system search path for libraries
25739sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25740
25741# Fix the shell variable \$srcfile for the compiler.
25742fix_srcfile_path="$fix_srcfile_path_RC"
25743
25744# Set to yes if exported symbols are required.
25745always_export_symbols=$always_export_symbols_RC
25746
25747# The commands to list exported symbols.
25748export_symbols_cmds=$lt_export_symbols_cmds_RC
25749
25750# The commands to extract the exported symbol list from a shared archive.
25751extract_expsyms_cmds=$lt_extract_expsyms_cmds
25752
25753# Symbols that should not be listed in the preloaded symbols.
25754exclude_expsyms=$lt_exclude_expsyms_RC
25755
25756# Symbols that must always be exported.
25757include_expsyms=$lt_include_expsyms_RC
25758
25759# ### END LIBTOOL TAG CONFIG: $tagname
25760
25761__EOF__
25762
25763
25764else
25765 # If there is no Makefile yet, we rely on a make rule to execute
25766 # `config.status --recheck' to rerun these tests and create the
25767 # libtool script then.
25768 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25769 if test -f "$ltmain_in"; then
25770 test -f Makefile && make "$ltmain"
25771 fi
25772fi
25773
25774
25775ac_ext=c
25776ac_cpp='$CPP $CPPFLAGS'
25777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25779ac_compiler_gnu=$ac_cv_c_compiler_gnu
25780
25781CC="$lt_save_CC"
25782
25783 ;;
25784
25785 *)
25786 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25787echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25788 { (exit 1); exit 1; }; }
25789 ;;
25790 esac
25791
25792 # Append the new tag name to the list of available tags.
25793 if test -n "$tagname" ; then
25794 available_tags="$available_tags $tagname"
25795 fi
25796 fi
25797 done
25798 IFS="$lt_save_ifs"
25799
25800 # Now substitute the updated list of available tags.
25801 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25802 mv "${ofile}T" "$ofile"
25803 chmod +x "$ofile"
25804 else
25805 rm -f "${ofile}T"
25806 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25807echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25808 { (exit 1); exit 1; }; }
25809 fi
25810fi
25811
25812
25813
25814# This can be used to rebuild libtool when needed
25815LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25816
25817# Always use our own libtool.
25818LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25819
25820# Prevent multiple expansion
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842if test "$lt_cv_dlopen_self" = "yes" ; then
25843
25844cat >>confdefs.h <<\_ACEOF
25845#define CAN_DLOPEN_SELF 1
25846_ACEOF
25847
25848fi
25849
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025850if test "$WITH_LLVMGCCDIR" = "default" ; then
25851 LLVMGCC="llvm-gcc${EXEEXT}"
25852 LLVMGXX="llvm-g++${EXEEXT}"
25853 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25854set dummy $LLVMGCC; ac_word=$2
25855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25857if test "${ac_cv_path_LLVMGCC+set}" = set; then
25858 echo $ECHO_N "(cached) $ECHO_C" >&6
25859else
25860 case $LLVMGCC in
25861 [\\/]* | ?:[\\/]*)
25862 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25863 ;;
25864 *)
25865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25866for as_dir in $PATH
25867do
25868 IFS=$as_save_IFS
25869 test -z "$as_dir" && as_dir=.
25870 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +000025871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025872 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25874 break 2
25875 fi
25876done
25877done
25878IFS=$as_save_IFS
25879
25880 ;;
25881esac
25882fi
25883LLVMGCC=$ac_cv_path_LLVMGCC
25884if test -n "$LLVMGCC"; then
25885 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25886echo "${ECHO_T}$LLVMGCC" >&6; }
25887else
25888 { echo "$as_me:$LINENO: result: no" >&5
25889echo "${ECHO_T}no" >&6; }
25890fi
25891
25892
25893 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25894set dummy $LLVMGXX; ac_word=$2
25895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25897if test "${ac_cv_path_LLVMGXX+set}" = set; then
25898 echo $ECHO_N "(cached) $ECHO_C" >&6
25899else
25900 case $LLVMGXX in
25901 [\\/]* | ?:[\\/]*)
25902 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25903 ;;
25904 *)
25905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25906for as_dir in $PATH
25907do
25908 IFS=$as_save_IFS
25909 test -z "$as_dir" && as_dir=.
25910 for ac_exec_ext in '' $ac_executable_extensions; do
Edwin Török20176752008-10-22 09:56:27 +000025911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025912 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25914 break 2
25915 fi
25916done
25917done
25918IFS=$as_save_IFS
25919
25920 ;;
25921esac
25922fi
25923LLVMGXX=$ac_cv_path_LLVMGXX
25924if test -n "$LLVMGXX"; then
25925 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25926echo "${ECHO_T}$LLVMGXX" >&6; }
25927else
25928 { echo "$as_me:$LINENO: result: no" >&5
25929echo "${ECHO_T}no" >&6; }
25930fi
25931
25932
25933else
Devang Pateld84ba7b2007-12-04 22:54:47 +000025934 if test -z "$LLVMGCC"; then
25935 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25936 fi
25937 if test -z "$LLVMGXX"; then
25938 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25939 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025940 LLVMGCC=$LLVMGCC
25941
25942 LLVMGXX=$LLVMGXX
25943
25944fi
25945
25946{ echo "$as_me:$LINENO: checking tool compatibility" >&5
25947echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25948
25949ICC=no
25950IXX=no
25951case $CC in
25952 icc*|icpc*)
25953 ICC=yes
25954 IXX=yes
25955 ;;
25956 *)
25957 ;;
25958esac
25959
25960if test "$GCC" != "yes" && test "$ICC" != "yes"
25961then
25962 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25963echo "$as_me: error: gcc|icc required but not found" >&2;}
25964 { (exit 1); exit 1; }; }
25965fi
25966
25967if test "$GXX" != "yes" && test "$IXX" != "yes"
25968then
25969 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25970echo "$as_me: error: g++|icc required but not found" >&2;}
25971 { (exit 1); exit 1; }; }
25972fi
25973
25974if test "$GCC" = "yes"
25975then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000025976 cat >conftest.$ac_ext <<_ACEOF
25977#if !defined(__GNUC__) || __GNUC__ < 3
25978#error Unsupported GCC version
25979#endif
25980
25981_ACEOF
25982rm -f conftest.$ac_objext
25983if { (ac_try="$ac_compile"
25984case "(($ac_try" in
25985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986 *) ac_try_echo=$ac_try;;
25987esac
25988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989 (eval "$ac_compile") 2>conftest.er1
25990 ac_status=$?
25991 grep -v '^ *+' conftest.er1 >conftest.err
25992 rm -f conftest.er1
25993 cat conftest.err >&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000025995 (exit $ac_status); } && {
25996 test -z "$ac_c_werror_flag" ||
25997 test ! -s conftest.err
25998 } && test -s conftest.$ac_objext; then
Chris Lattnerf0ddba82008-02-05 19:43:53 +000025999 :
26000else
26001 echo "$as_me: failed program was:" >&5
26002sed 's/^/| /' conftest.$ac_ext >&5
26003
26004 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026005echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26006 { (exit 1); exit 1; }; }
Chris Lattnerf0ddba82008-02-05 19:43:53 +000026007fi
26008
26009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026010fi
26011
26012if test -z "$llvm_cv_gnu_make_command"
26013then
26014 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26015echo "$as_me: error: GNU Make required but not found" >&2;}
26016 { (exit 1); exit 1; }; }
26017fi
26018
26019{ echo "$as_me:$LINENO: result: ok" >&5
26020echo "${ECHO_T}ok" >&6; }
26021
26022
26023
26024{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26025echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26026if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26027 echo $ECHO_N "(cached) $ECHO_C" >&6
26028else
26029 ac_check_lib_save_LIBS=$LIBS
26030LIBS="-lelf $LIBS"
26031cat >conftest.$ac_ext <<_ACEOF
26032/* confdefs.h. */
26033_ACEOF
26034cat confdefs.h >>conftest.$ac_ext
26035cat >>conftest.$ac_ext <<_ACEOF
26036/* end confdefs.h. */
26037
26038/* Override any GCC internal prototype to avoid an error.
26039 Use char because int might match the return type of a GCC
26040 builtin and then its argument prototype would still apply. */
26041#ifdef __cplusplus
26042extern "C"
26043#endif
26044char elf_begin ();
26045int
26046main ()
26047{
26048return elf_begin ();
26049 ;
26050 return 0;
26051}
26052_ACEOF
26053rm -f conftest.$ac_objext conftest$ac_exeext
26054if { (ac_try="$ac_link"
26055case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26058esac
26059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_link") 2>conftest.er1
26061 ac_status=$?
26062 grep -v '^ *+' conftest.er1 >conftest.err
26063 rm -f conftest.er1
26064 cat conftest.err >&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026066 (exit $ac_status); } && {
26067 test -z "$ac_c_werror_flag" ||
26068 test ! -s conftest.err
26069 } && test -s conftest$ac_exeext &&
26070 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026071 ac_cv_lib_elf_elf_begin=yes
26072else
26073 echo "$as_me: failed program was:" >&5
26074sed 's/^/| /' conftest.$ac_ext >&5
26075
26076 ac_cv_lib_elf_elf_begin=no
26077fi
26078
Edwin Török20176752008-10-22 09:56:27 +000026079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026080 conftest$ac_exeext conftest.$ac_ext
26081LIBS=$ac_check_lib_save_LIBS
26082fi
26083{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26084echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26085if test $ac_cv_lib_elf_elf_begin = yes; then
26086 cat >>confdefs.h <<_ACEOF
26087#define HAVE_LIBELF 1
26088_ACEOF
26089
26090 LIBS="-lelf $LIBS"
26091
26092fi
26093
26094
26095{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26096echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26097if test "${ac_cv_lib_m_sin+set}" = set; then
26098 echo $ECHO_N "(cached) $ECHO_C" >&6
26099else
26100 ac_check_lib_save_LIBS=$LIBS
26101LIBS="-lm $LIBS"
26102cat >conftest.$ac_ext <<_ACEOF
26103/* confdefs.h. */
26104_ACEOF
26105cat confdefs.h >>conftest.$ac_ext
26106cat >>conftest.$ac_ext <<_ACEOF
26107/* end confdefs.h. */
26108
26109/* Override any GCC internal prototype to avoid an error.
26110 Use char because int might match the return type of a GCC
26111 builtin and then its argument prototype would still apply. */
26112#ifdef __cplusplus
26113extern "C"
26114#endif
26115char sin ();
26116int
26117main ()
26118{
26119return sin ();
26120 ;
26121 return 0;
26122}
26123_ACEOF
26124rm -f conftest.$ac_objext conftest$ac_exeext
26125if { (ac_try="$ac_link"
26126case "(($ac_try" in
26127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128 *) ac_try_echo=$ac_try;;
26129esac
26130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131 (eval "$ac_link") 2>conftest.er1
26132 ac_status=$?
26133 grep -v '^ *+' conftest.er1 >conftest.err
26134 rm -f conftest.er1
26135 cat conftest.err >&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026137 (exit $ac_status); } && {
26138 test -z "$ac_c_werror_flag" ||
26139 test ! -s conftest.err
26140 } && test -s conftest$ac_exeext &&
26141 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026142 ac_cv_lib_m_sin=yes
26143else
26144 echo "$as_me: failed program was:" >&5
26145sed 's/^/| /' conftest.$ac_ext >&5
26146
26147 ac_cv_lib_m_sin=no
26148fi
26149
Edwin Török20176752008-10-22 09:56:27 +000026150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026151 conftest$ac_exeext conftest.$ac_ext
26152LIBS=$ac_check_lib_save_LIBS
26153fi
26154{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26155echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26156if test $ac_cv_lib_m_sin = yes; then
26157 cat >>confdefs.h <<_ACEOF
26158#define HAVE_LIBM 1
26159_ACEOF
26160
26161 LIBS="-lm $LIBS"
26162
26163fi
26164
26165if test "$llvm_cv_os_type" = "MingW" ; then
26166
26167{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26168echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26169if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26170 echo $ECHO_N "(cached) $ECHO_C" >&6
26171else
26172 ac_check_lib_save_LIBS=$LIBS
26173LIBS="-limagehlp $LIBS"
26174cat >conftest.$ac_ext <<_ACEOF
26175/* confdefs.h. */
26176_ACEOF
26177cat confdefs.h >>conftest.$ac_ext
26178cat >>conftest.$ac_ext <<_ACEOF
26179/* end confdefs.h. */
26180
26181
26182int
26183main ()
26184{
26185return main ();
26186 ;
26187 return 0;
26188}
26189_ACEOF
26190rm -f conftest.$ac_objext conftest$ac_exeext
26191if { (ac_try="$ac_link"
26192case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26195esac
26196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_link") 2>conftest.er1
26198 ac_status=$?
26199 grep -v '^ *+' conftest.er1 >conftest.err
26200 rm -f conftest.er1
26201 cat conftest.err >&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026203 (exit $ac_status); } && {
26204 test -z "$ac_c_werror_flag" ||
26205 test ! -s conftest.err
26206 } && test -s conftest$ac_exeext &&
26207 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026208 ac_cv_lib_imagehlp_main=yes
26209else
26210 echo "$as_me: failed program was:" >&5
26211sed 's/^/| /' conftest.$ac_ext >&5
26212
26213 ac_cv_lib_imagehlp_main=no
26214fi
26215
Edwin Török20176752008-10-22 09:56:27 +000026216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026217 conftest$ac_exeext conftest.$ac_ext
26218LIBS=$ac_check_lib_save_LIBS
26219fi
26220{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26221echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26222if test $ac_cv_lib_imagehlp_main = yes; then
26223 cat >>confdefs.h <<_ACEOF
26224#define HAVE_LIBIMAGEHLP 1
26225_ACEOF
26226
26227 LIBS="-limagehlp $LIBS"
26228
26229fi
26230
26231
26232{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26233echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26234if test "${ac_cv_lib_psapi_main+set}" = set; then
26235 echo $ECHO_N "(cached) $ECHO_C" >&6
26236else
26237 ac_check_lib_save_LIBS=$LIBS
26238LIBS="-lpsapi $LIBS"
26239cat >conftest.$ac_ext <<_ACEOF
26240/* confdefs.h. */
26241_ACEOF
26242cat confdefs.h >>conftest.$ac_ext
26243cat >>conftest.$ac_ext <<_ACEOF
26244/* end confdefs.h. */
26245
26246
26247int
26248main ()
26249{
26250return main ();
26251 ;
26252 return 0;
26253}
26254_ACEOF
26255rm -f conftest.$ac_objext conftest$ac_exeext
26256if { (ac_try="$ac_link"
26257case "(($ac_try" in
26258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259 *) ac_try_echo=$ac_try;;
26260esac
26261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262 (eval "$ac_link") 2>conftest.er1
26263 ac_status=$?
26264 grep -v '^ *+' conftest.er1 >conftest.err
26265 rm -f conftest.er1
26266 cat conftest.err >&5
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026268 (exit $ac_status); } && {
26269 test -z "$ac_c_werror_flag" ||
26270 test ! -s conftest.err
26271 } && test -s conftest$ac_exeext &&
26272 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026273 ac_cv_lib_psapi_main=yes
26274else
26275 echo "$as_me: failed program was:" >&5
26276sed 's/^/| /' conftest.$ac_ext >&5
26277
26278 ac_cv_lib_psapi_main=no
26279fi
26280
Edwin Török20176752008-10-22 09:56:27 +000026281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026282 conftest$ac_exeext conftest.$ac_ext
26283LIBS=$ac_check_lib_save_LIBS
26284fi
26285{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26286echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26287if test $ac_cv_lib_psapi_main = yes; then
26288 cat >>confdefs.h <<_ACEOF
26289#define HAVE_LIBPSAPI 1
26290_ACEOF
26291
26292 LIBS="-lpsapi $LIBS"
26293
26294fi
26295
26296fi
26297
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026298{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26299echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26300if test "${ac_cv_search_dlopen+set}" = set; then
26301 echo $ECHO_N "(cached) $ECHO_C" >&6
26302else
26303 ac_func_search_save_LIBS=$LIBS
26304cat >conftest.$ac_ext <<_ACEOF
26305/* confdefs.h. */
26306_ACEOF
26307cat confdefs.h >>conftest.$ac_ext
26308cat >>conftest.$ac_ext <<_ACEOF
26309/* end confdefs.h. */
26310
26311/* Override any GCC internal prototype to avoid an error.
26312 Use char because int might match the return type of a GCC
26313 builtin and then its argument prototype would still apply. */
26314#ifdef __cplusplus
26315extern "C"
26316#endif
26317char dlopen ();
26318int
26319main ()
26320{
26321return dlopen ();
26322 ;
26323 return 0;
26324}
26325_ACEOF
26326for ac_lib in '' dl; do
26327 if test -z "$ac_lib"; then
26328 ac_res="none required"
26329 else
26330 ac_res=-l$ac_lib
26331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26332 fi
26333 rm -f conftest.$ac_objext conftest$ac_exeext
26334if { (ac_try="$ac_link"
26335case "(($ac_try" in
26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337 *) ac_try_echo=$ac_try;;
26338esac
26339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340 (eval "$ac_link") 2>conftest.er1
26341 ac_status=$?
26342 grep -v '^ *+' conftest.er1 >conftest.err
26343 rm -f conftest.er1
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026346 (exit $ac_status); } && {
26347 test -z "$ac_c_werror_flag" ||
26348 test ! -s conftest.err
26349 } && test -s conftest$ac_exeext &&
26350 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026351 ac_cv_search_dlopen=$ac_res
26352else
26353 echo "$as_me: failed program was:" >&5
26354sed 's/^/| /' conftest.$ac_ext >&5
26355
26356
26357fi
26358
Edwin Török20176752008-10-22 09:56:27 +000026359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026360 conftest$ac_exeext
26361 if test "${ac_cv_search_dlopen+set}" = set; then
26362 break
26363fi
26364done
26365if test "${ac_cv_search_dlopen+set}" = set; then
26366 :
26367else
26368 ac_cv_search_dlopen=no
26369fi
26370rm conftest.$ac_ext
26371LIBS=$ac_func_search_save_LIBS
26372fi
26373{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26374echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26375ac_res=$ac_cv_search_dlopen
26376if test "$ac_res" != no; then
26377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26378
26379cat >>confdefs.h <<\_ACEOF
26380#define HAVE_DLOPEN 1
26381_ACEOF
26382
26383else
26384 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26385echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26386fi
26387
26388
26389{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26390echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26391if test "${ac_cv_search_mallinfo+set}" = set; then
26392 echo $ECHO_N "(cached) $ECHO_C" >&6
26393else
26394 ac_func_search_save_LIBS=$LIBS
26395cat >conftest.$ac_ext <<_ACEOF
26396/* confdefs.h. */
26397_ACEOF
26398cat confdefs.h >>conftest.$ac_ext
26399cat >>conftest.$ac_ext <<_ACEOF
26400/* end confdefs.h. */
26401
26402/* Override any GCC internal prototype to avoid an error.
26403 Use char because int might match the return type of a GCC
26404 builtin and then its argument prototype would still apply. */
26405#ifdef __cplusplus
26406extern "C"
26407#endif
26408char mallinfo ();
26409int
26410main ()
26411{
26412return mallinfo ();
26413 ;
26414 return 0;
26415}
26416_ACEOF
26417for ac_lib in '' malloc; do
26418 if test -z "$ac_lib"; then
26419 ac_res="none required"
26420 else
26421 ac_res=-l$ac_lib
26422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26423 fi
26424 rm -f conftest.$ac_objext conftest$ac_exeext
26425if { (ac_try="$ac_link"
26426case "(($ac_try" in
26427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26428 *) ac_try_echo=$ac_try;;
26429esac
26430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26431 (eval "$ac_link") 2>conftest.er1
26432 ac_status=$?
26433 grep -v '^ *+' conftest.er1 >conftest.err
26434 rm -f conftest.er1
26435 cat conftest.err >&5
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026437 (exit $ac_status); } && {
26438 test -z "$ac_c_werror_flag" ||
26439 test ! -s conftest.err
26440 } && test -s conftest$ac_exeext &&
26441 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026442 ac_cv_search_mallinfo=$ac_res
26443else
26444 echo "$as_me: failed program was:" >&5
26445sed 's/^/| /' conftest.$ac_ext >&5
26446
26447
26448fi
26449
Edwin Török20176752008-10-22 09:56:27 +000026450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026451 conftest$ac_exeext
26452 if test "${ac_cv_search_mallinfo+set}" = set; then
26453 break
26454fi
26455done
26456if test "${ac_cv_search_mallinfo+set}" = set; then
26457 :
26458else
26459 ac_cv_search_mallinfo=no
26460fi
26461rm conftest.$ac_ext
26462LIBS=$ac_func_search_save_LIBS
26463fi
26464{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26465echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26466ac_res=$ac_cv_search_mallinfo
26467if test "$ac_res" != no; then
26468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26469
26470cat >>confdefs.h <<\_ACEOF
26471#define HAVE_MALLINFO 1
26472_ACEOF
26473
26474fi
26475
26476
26477if test "$ENABLE_THREADS" -eq 1 ; then
26478
26479{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26480echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26481if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26482 echo $ECHO_N "(cached) $ECHO_C" >&6
26483else
26484 ac_check_lib_save_LIBS=$LIBS
26485LIBS="-lpthread $LIBS"
26486cat >conftest.$ac_ext <<_ACEOF
26487/* confdefs.h. */
26488_ACEOF
26489cat confdefs.h >>conftest.$ac_ext
26490cat >>conftest.$ac_ext <<_ACEOF
26491/* end confdefs.h. */
26492
26493/* Override any GCC internal prototype to avoid an error.
26494 Use char because int might match the return type of a GCC
26495 builtin and then its argument prototype would still apply. */
26496#ifdef __cplusplus
26497extern "C"
26498#endif
26499char pthread_mutex_init ();
26500int
26501main ()
26502{
26503return pthread_mutex_init ();
26504 ;
26505 return 0;
26506}
26507_ACEOF
26508rm -f conftest.$ac_objext conftest$ac_exeext
26509if { (ac_try="$ac_link"
26510case "(($ac_try" in
26511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26512 *) ac_try_echo=$ac_try;;
26513esac
26514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26515 (eval "$ac_link") 2>conftest.er1
26516 ac_status=$?
26517 grep -v '^ *+' conftest.er1 >conftest.err
26518 rm -f conftest.er1
26519 cat conftest.err >&5
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026521 (exit $ac_status); } && {
26522 test -z "$ac_c_werror_flag" ||
26523 test ! -s conftest.err
26524 } && test -s conftest$ac_exeext &&
26525 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026526 ac_cv_lib_pthread_pthread_mutex_init=yes
26527else
26528 echo "$as_me: failed program was:" >&5
26529sed 's/^/| /' conftest.$ac_ext >&5
26530
26531 ac_cv_lib_pthread_pthread_mutex_init=no
26532fi
26533
Edwin Török20176752008-10-22 09:56:27 +000026534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026535 conftest$ac_exeext conftest.$ac_ext
26536LIBS=$ac_check_lib_save_LIBS
26537fi
26538{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26539echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26540if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26541 cat >>confdefs.h <<_ACEOF
26542#define HAVE_LIBPTHREAD 1
26543_ACEOF
26544
26545 LIBS="-lpthread $LIBS"
26546
26547fi
26548
26549 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26550echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26551if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
26553else
26554 ac_func_search_save_LIBS=$LIBS
26555cat >conftest.$ac_ext <<_ACEOF
26556/* confdefs.h. */
26557_ACEOF
26558cat confdefs.h >>conftest.$ac_ext
26559cat >>conftest.$ac_ext <<_ACEOF
26560/* end confdefs.h. */
26561
26562/* Override any GCC internal prototype to avoid an error.
26563 Use char because int might match the return type of a GCC
26564 builtin and then its argument prototype would still apply. */
26565#ifdef __cplusplus
26566extern "C"
26567#endif
26568char pthread_mutex_lock ();
26569int
26570main ()
26571{
26572return pthread_mutex_lock ();
26573 ;
26574 return 0;
26575}
26576_ACEOF
26577for ac_lib in '' pthread; do
26578 if test -z "$ac_lib"; then
26579 ac_res="none required"
26580 else
26581 ac_res=-l$ac_lib
26582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26583 fi
26584 rm -f conftest.$ac_objext conftest$ac_exeext
26585if { (ac_try="$ac_link"
26586case "(($ac_try" in
26587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588 *) ac_try_echo=$ac_try;;
26589esac
26590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26591 (eval "$ac_link") 2>conftest.er1
26592 ac_status=$?
26593 grep -v '^ *+' conftest.er1 >conftest.err
26594 rm -f conftest.er1
26595 cat conftest.err >&5
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026597 (exit $ac_status); } && {
26598 test -z "$ac_c_werror_flag" ||
26599 test ! -s conftest.err
26600 } && test -s conftest$ac_exeext &&
26601 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026602 ac_cv_search_pthread_mutex_lock=$ac_res
26603else
26604 echo "$as_me: failed program was:" >&5
26605sed 's/^/| /' conftest.$ac_ext >&5
26606
26607
26608fi
26609
Edwin Török20176752008-10-22 09:56:27 +000026610rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026611 conftest$ac_exeext
26612 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26613 break
26614fi
26615done
26616if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26617 :
26618else
26619 ac_cv_search_pthread_mutex_lock=no
26620fi
26621rm conftest.$ac_ext
26622LIBS=$ac_func_search_save_LIBS
26623fi
26624{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26625echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26626ac_res=$ac_cv_search_pthread_mutex_lock
26627if test "$ac_res" != no; then
26628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26629
26630cat >>confdefs.h <<\_ACEOF
26631#define HAVE_PTHREAD_MUTEX_LOCK 1
26632_ACEOF
26633
26634fi
26635
26636fi
26637
26638
26639# Check whether --with-udis86 was given.
26640if test "${with_udis86+set}" = set; then
26641 withval=$with_udis86;
26642 USE_UDIS86=1
26643
26644 case "$withval" in
26645 /usr/lib|yes) ;;
26646 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26647 esac
26648
26649{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26650echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26651if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26653else
26654 ac_check_lib_save_LIBS=$LIBS
26655LIBS="-ludis86 $LIBS"
26656cat >conftest.$ac_ext <<_ACEOF
26657/* confdefs.h. */
26658_ACEOF
26659cat confdefs.h >>conftest.$ac_ext
26660cat >>conftest.$ac_ext <<_ACEOF
26661/* end confdefs.h. */
26662
26663/* Override any GCC internal prototype to avoid an error.
26664 Use char because int might match the return type of a GCC
26665 builtin and then its argument prototype would still apply. */
26666#ifdef __cplusplus
26667extern "C"
26668#endif
26669char ud_init ();
26670int
26671main ()
26672{
26673return ud_init ();
26674 ;
26675 return 0;
26676}
26677_ACEOF
26678rm -f conftest.$ac_objext conftest$ac_exeext
26679if { (ac_try="$ac_link"
26680case "(($ac_try" in
26681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26682 *) ac_try_echo=$ac_try;;
26683esac
26684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26685 (eval "$ac_link") 2>conftest.er1
26686 ac_status=$?
26687 grep -v '^ *+' conftest.er1 >conftest.err
26688 rm -f conftest.er1
26689 cat conftest.err >&5
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026691 (exit $ac_status); } && {
26692 test -z "$ac_c_werror_flag" ||
26693 test ! -s conftest.err
26694 } && test -s conftest$ac_exeext &&
26695 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026696 ac_cv_lib_udis86_ud_init=yes
26697else
26698 echo "$as_me: failed program was:" >&5
26699sed 's/^/| /' conftest.$ac_ext >&5
26700
26701 ac_cv_lib_udis86_ud_init=no
26702fi
26703
Edwin Török20176752008-10-22 09:56:27 +000026704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026705 conftest$ac_exeext conftest.$ac_ext
26706LIBS=$ac_check_lib_save_LIBS
26707fi
26708{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26709echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26710if test $ac_cv_lib_udis86_ud_init = yes; then
26711 cat >>confdefs.h <<_ACEOF
26712#define HAVE_LIBUDIS86 1
26713_ACEOF
26714
26715 LIBS="-ludis86 $LIBS"
26716
26717else
26718
26719 echo "Error! You need to have libudis86 around."
26720 exit -1
26721
26722fi
26723
26724
26725else
26726 USE_UDIS86=0
26727
26728fi
26729
26730
26731cat >>confdefs.h <<_ACEOF
26732#define USE_UDIS86 $USE_UDIS86
26733_ACEOF
26734
26735
26736
26737
26738
26739
26740
26741
26742ac_header_dirent=no
26743for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26744 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26745{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26746echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26748 echo $ECHO_N "(cached) $ECHO_C" >&6
26749else
26750 cat >conftest.$ac_ext <<_ACEOF
26751/* confdefs.h. */
26752_ACEOF
26753cat confdefs.h >>conftest.$ac_ext
26754cat >>conftest.$ac_ext <<_ACEOF
26755/* end confdefs.h. */
26756#include <sys/types.h>
26757#include <$ac_hdr>
26758
26759int
26760main ()
26761{
26762if ((DIR *) 0)
26763return 0;
26764 ;
26765 return 0;
26766}
26767_ACEOF
26768rm -f conftest.$ac_objext
26769if { (ac_try="$ac_compile"
26770case "(($ac_try" in
26771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26772 *) ac_try_echo=$ac_try;;
26773esac
26774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26775 (eval "$ac_compile") 2>conftest.er1
26776 ac_status=$?
26777 grep -v '^ *+' conftest.er1 >conftest.err
26778 rm -f conftest.er1
26779 cat conftest.err >&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026781 (exit $ac_status); } && {
26782 test -z "$ac_c_werror_flag" ||
26783 test ! -s conftest.err
26784 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026785 eval "$as_ac_Header=yes"
26786else
26787 echo "$as_me: failed program was:" >&5
26788sed 's/^/| /' conftest.$ac_ext >&5
26789
26790 eval "$as_ac_Header=no"
26791fi
26792
26793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26794fi
26795ac_res=`eval echo '${'$as_ac_Header'}'`
26796 { echo "$as_me:$LINENO: result: $ac_res" >&5
26797echo "${ECHO_T}$ac_res" >&6; }
26798if test `eval echo '${'$as_ac_Header'}'` = yes; then
26799 cat >>confdefs.h <<_ACEOF
26800#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26801_ACEOF
26802
26803ac_header_dirent=$ac_hdr; break
26804fi
26805
26806done
26807# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26808if test $ac_header_dirent = dirent.h; then
26809 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26810echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26811if test "${ac_cv_search_opendir+set}" = set; then
26812 echo $ECHO_N "(cached) $ECHO_C" >&6
26813else
26814 ac_func_search_save_LIBS=$LIBS
26815cat >conftest.$ac_ext <<_ACEOF
26816/* confdefs.h. */
26817_ACEOF
26818cat confdefs.h >>conftest.$ac_ext
26819cat >>conftest.$ac_ext <<_ACEOF
26820/* end confdefs.h. */
26821
26822/* Override any GCC internal prototype to avoid an error.
26823 Use char because int might match the return type of a GCC
26824 builtin and then its argument prototype would still apply. */
26825#ifdef __cplusplus
26826extern "C"
26827#endif
26828char opendir ();
26829int
26830main ()
26831{
26832return opendir ();
26833 ;
26834 return 0;
26835}
26836_ACEOF
26837for ac_lib in '' dir; do
26838 if test -z "$ac_lib"; then
26839 ac_res="none required"
26840 else
26841 ac_res=-l$ac_lib
26842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26843 fi
26844 rm -f conftest.$ac_objext conftest$ac_exeext
26845if { (ac_try="$ac_link"
26846case "(($ac_try" in
26847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848 *) ac_try_echo=$ac_try;;
26849esac
26850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851 (eval "$ac_link") 2>conftest.er1
26852 ac_status=$?
26853 grep -v '^ *+' conftest.er1 >conftest.err
26854 rm -f conftest.er1
26855 cat conftest.err >&5
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026857 (exit $ac_status); } && {
26858 test -z "$ac_c_werror_flag" ||
26859 test ! -s conftest.err
26860 } && test -s conftest$ac_exeext &&
26861 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026862 ac_cv_search_opendir=$ac_res
26863else
26864 echo "$as_me: failed program was:" >&5
26865sed 's/^/| /' conftest.$ac_ext >&5
26866
26867
26868fi
26869
Edwin Török20176752008-10-22 09:56:27 +000026870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026871 conftest$ac_exeext
26872 if test "${ac_cv_search_opendir+set}" = set; then
26873 break
26874fi
26875done
26876if test "${ac_cv_search_opendir+set}" = set; then
26877 :
26878else
26879 ac_cv_search_opendir=no
26880fi
26881rm conftest.$ac_ext
26882LIBS=$ac_func_search_save_LIBS
26883fi
26884{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26885echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26886ac_res=$ac_cv_search_opendir
26887if test "$ac_res" != no; then
26888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26889
26890fi
26891
26892else
26893 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26894echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26895if test "${ac_cv_search_opendir+set}" = set; then
26896 echo $ECHO_N "(cached) $ECHO_C" >&6
26897else
26898 ac_func_search_save_LIBS=$LIBS
26899cat >conftest.$ac_ext <<_ACEOF
26900/* confdefs.h. */
26901_ACEOF
26902cat confdefs.h >>conftest.$ac_ext
26903cat >>conftest.$ac_ext <<_ACEOF
26904/* end confdefs.h. */
26905
26906/* Override any GCC internal prototype to avoid an error.
26907 Use char because int might match the return type of a GCC
26908 builtin and then its argument prototype would still apply. */
26909#ifdef __cplusplus
26910extern "C"
26911#endif
26912char opendir ();
26913int
26914main ()
26915{
26916return opendir ();
26917 ;
26918 return 0;
26919}
26920_ACEOF
26921for ac_lib in '' x; do
26922 if test -z "$ac_lib"; then
26923 ac_res="none required"
26924 else
26925 ac_res=-l$ac_lib
26926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26927 fi
26928 rm -f conftest.$ac_objext conftest$ac_exeext
26929if { (ac_try="$ac_link"
26930case "(($ac_try" in
26931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26933esac
26934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26935 (eval "$ac_link") 2>conftest.er1
26936 ac_status=$?
26937 grep -v '^ *+' conftest.er1 >conftest.err
26938 rm -f conftest.er1
26939 cat conftest.err >&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000026941 (exit $ac_status); } && {
26942 test -z "$ac_c_werror_flag" ||
26943 test ! -s conftest.err
26944 } && test -s conftest$ac_exeext &&
26945 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026946 ac_cv_search_opendir=$ac_res
26947else
26948 echo "$as_me: failed program was:" >&5
26949sed 's/^/| /' conftest.$ac_ext >&5
26950
26951
26952fi
26953
Edwin Török20176752008-10-22 09:56:27 +000026954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026955 conftest$ac_exeext
26956 if test "${ac_cv_search_opendir+set}" = set; then
26957 break
26958fi
26959done
26960if test "${ac_cv_search_opendir+set}" = set; then
26961 :
26962else
26963 ac_cv_search_opendir=no
26964fi
26965rm conftest.$ac_ext
26966LIBS=$ac_func_search_save_LIBS
26967fi
26968{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26969echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26970ac_res=$ac_cv_search_opendir
26971if test "$ac_res" != no; then
26972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26973
26974fi
26975
26976fi
26977
26978{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26979echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26980if test "${ac_cv_header_mmap_anon+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26982else
26983 ac_ext=c
26984ac_cpp='$CPP $CPPFLAGS'
26985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26987ac_compiler_gnu=$ac_cv_c_compiler_gnu
26988
26989 cat >conftest.$ac_ext <<_ACEOF
26990/* confdefs.h. */
26991_ACEOF
26992cat confdefs.h >>conftest.$ac_ext
26993cat >>conftest.$ac_ext <<_ACEOF
26994/* end confdefs.h. */
26995#include <sys/mman.h>
26996#include <unistd.h>
26997#include <fcntl.h>
26998int
26999main ()
27000{
27001mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27002 ;
27003 return 0;
27004}
27005_ACEOF
27006rm -f conftest.$ac_objext
27007if { (ac_try="$ac_compile"
27008case "(($ac_try" in
27009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010 *) ac_try_echo=$ac_try;;
27011esac
27012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013 (eval "$ac_compile") 2>conftest.er1
27014 ac_status=$?
27015 grep -v '^ *+' conftest.er1 >conftest.err
27016 rm -f conftest.er1
27017 cat conftest.err >&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000027019 (exit $ac_status); } && {
27020 test -z "$ac_c_werror_flag" ||
27021 test ! -s conftest.err
27022 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027023 ac_cv_header_mmap_anon=yes
27024else
27025 echo "$as_me: failed program was:" >&5
27026sed 's/^/| /' conftest.$ac_ext >&5
27027
27028 ac_cv_header_mmap_anon=no
27029fi
27030
27031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27032 ac_ext=c
27033ac_cpp='$CPP $CPPFLAGS'
27034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27036ac_compiler_gnu=$ac_cv_c_compiler_gnu
27037
27038
27039fi
27040{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27041echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27042if test "$ac_cv_header_mmap_anon" = yes; then
27043
27044cat >>confdefs.h <<\_ACEOF
27045#define HAVE_MMAP_ANONYMOUS 1
27046_ACEOF
27047
27048fi
27049
27050{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27051echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27052if test "${ac_cv_header_stat_broken+set}" = set; then
27053 echo $ECHO_N "(cached) $ECHO_C" >&6
27054else
27055 cat >conftest.$ac_ext <<_ACEOF
27056/* confdefs.h. */
27057_ACEOF
27058cat confdefs.h >>conftest.$ac_ext
27059cat >>conftest.$ac_ext <<_ACEOF
27060/* end confdefs.h. */
27061#include <sys/types.h>
27062#include <sys/stat.h>
27063
27064#if defined S_ISBLK && defined S_IFDIR
Edwin Török20176752008-10-22 09:56:27 +000027065extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027066#endif
27067
27068#if defined S_ISBLK && defined S_IFCHR
Edwin Török20176752008-10-22 09:56:27 +000027069extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027070#endif
27071
27072#if defined S_ISLNK && defined S_IFREG
Edwin Török20176752008-10-22 09:56:27 +000027073extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027074#endif
27075
27076#if defined S_ISSOCK && defined S_IFREG
Edwin Török20176752008-10-22 09:56:27 +000027077extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027078#endif
27079
27080_ACEOF
Edwin Török20176752008-10-22 09:56:27 +000027081rm -f conftest.$ac_objext
27082if { (ac_try="$ac_compile"
27083case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27086esac
27087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_compile") 2>conftest.er1
27089 ac_status=$?
27090 grep -v '^ *+' conftest.er1 >conftest.err
27091 rm -f conftest.er1
27092 cat conftest.err >&5
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); } && {
27095 test -z "$ac_c_werror_flag" ||
27096 test ! -s conftest.err
27097 } && test -s conftest.$ac_objext; then
Tanya Lattnerf4644302008-01-17 05:57:22 +000027098 ac_cv_header_stat_broken=no
Edwin Török20176752008-10-22 09:56:27 +000027099else
27100 echo "$as_me: failed program was:" >&5
27101sed 's/^/| /' conftest.$ac_ext >&5
Scott Michelbf31f8b2007-12-05 21:24:02 +000027102
Edwin Török20176752008-10-22 09:56:27 +000027103 ac_cv_header_stat_broken=yes
27104fi
27105
27106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027107fi
27108{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27109echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27110if test $ac_cv_header_stat_broken = yes; then
27111
27112cat >>confdefs.h <<\_ACEOF
27113#define STAT_MACROS_BROKEN 1
27114_ACEOF
27115
27116fi
27117
27118{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27119echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27120if test "${ac_cv_header_stdc+set}" = set; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27122else
27123 cat >conftest.$ac_ext <<_ACEOF
27124/* confdefs.h. */
27125_ACEOF
27126cat confdefs.h >>conftest.$ac_ext
27127cat >>conftest.$ac_ext <<_ACEOF
27128/* end confdefs.h. */
27129#include <stdlib.h>
27130#include <stdarg.h>
27131#include <string.h>
27132#include <float.h>
27133
27134int
27135main ()
27136{
27137
27138 ;
27139 return 0;
27140}
27141_ACEOF
27142rm -f conftest.$ac_objext
27143if { (ac_try="$ac_compile"
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_compile") 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
Edwin Török20176752008-10-22 09:56:27 +000027155 (exit $ac_status); } && {
27156 test -z "$ac_c_werror_flag" ||
27157 test ! -s conftest.err
27158 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027159 ac_cv_header_stdc=yes
27160else
27161 echo "$as_me: failed program was:" >&5
27162sed 's/^/| /' conftest.$ac_ext >&5
27163
27164 ac_cv_header_stdc=no
27165fi
27166
27167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27168
27169if test $ac_cv_header_stdc = yes; then
27170 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27171 cat >conftest.$ac_ext <<_ACEOF
27172/* confdefs.h. */
27173_ACEOF
27174cat confdefs.h >>conftest.$ac_ext
27175cat >>conftest.$ac_ext <<_ACEOF
27176/* end confdefs.h. */
27177#include <string.h>
27178
27179_ACEOF
27180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27181 $EGREP "memchr" >/dev/null 2>&1; then
27182 :
27183else
27184 ac_cv_header_stdc=no
27185fi
27186rm -f conftest*
27187
27188fi
27189
27190if test $ac_cv_header_stdc = yes; then
27191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27192 cat >conftest.$ac_ext <<_ACEOF
27193/* confdefs.h. */
27194_ACEOF
27195cat confdefs.h >>conftest.$ac_ext
27196cat >>conftest.$ac_ext <<_ACEOF
27197/* end confdefs.h. */
27198#include <stdlib.h>
27199
27200_ACEOF
27201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27202 $EGREP "free" >/dev/null 2>&1; then
27203 :
27204else
27205 ac_cv_header_stdc=no
27206fi
27207rm -f conftest*
27208
27209fi
27210
27211if test $ac_cv_header_stdc = yes; then
27212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27213 if test "$cross_compiling" = yes; then
27214 :
27215else
27216 cat >conftest.$ac_ext <<_ACEOF
27217/* confdefs.h. */
27218_ACEOF
27219cat confdefs.h >>conftest.$ac_ext
27220cat >>conftest.$ac_ext <<_ACEOF
27221/* end confdefs.h. */
27222#include <ctype.h>
27223#include <stdlib.h>
27224#if ((' ' & 0x0FF) == 0x020)
27225# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27226# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27227#else
27228# define ISLOWER(c) \
27229 (('a' <= (c) && (c) <= 'i') \
27230 || ('j' <= (c) && (c) <= 'r') \
27231 || ('s' <= (c) && (c) <= 'z'))
27232# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27233#endif
27234
27235#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27236int
27237main ()
27238{
27239 int i;
27240 for (i = 0; i < 256; i++)
27241 if (XOR (islower (i), ISLOWER (i))
27242 || toupper (i) != TOUPPER (i))
27243 return 2;
27244 return 0;
27245}
27246_ACEOF
27247rm -f conftest$ac_exeext
27248if { (ac_try="$ac_link"
27249case "(($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_link") 2>&5
27255 ac_status=$?
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27258 { (case "(($ac_try" in
27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260 *) ac_try_echo=$ac_try;;
27261esac
27262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263 (eval "$ac_try") 2>&5
27264 ac_status=$?
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; }; then
27267 :
27268else
27269 echo "$as_me: program exited with status $ac_status" >&5
27270echo "$as_me: failed program was:" >&5
27271sed 's/^/| /' conftest.$ac_ext >&5
27272
27273( exit $ac_status )
27274ac_cv_header_stdc=no
27275fi
27276rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27277fi
27278
27279
27280fi
27281fi
27282{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27283echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27284if test $ac_cv_header_stdc = yes; then
27285
27286cat >>confdefs.h <<\_ACEOF
27287#define STDC_HEADERS 1
27288_ACEOF
27289
27290fi
27291
27292{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27293echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27294if test "${ac_cv_header_sys_wait_h+set}" = set; then
27295 echo $ECHO_N "(cached) $ECHO_C" >&6
27296else
27297 cat >conftest.$ac_ext <<_ACEOF
27298/* confdefs.h. */
27299_ACEOF
27300cat confdefs.h >>conftest.$ac_ext
27301cat >>conftest.$ac_ext <<_ACEOF
27302/* end confdefs.h. */
27303#include <sys/types.h>
27304#include <sys/wait.h>
27305#ifndef WEXITSTATUS
27306# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27307#endif
27308#ifndef WIFEXITED
27309# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27310#endif
27311
27312int
27313main ()
27314{
27315 int s;
27316 wait (&s);
27317 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27318 ;
27319 return 0;
27320}
27321_ACEOF
27322rm -f conftest.$ac_objext
27323if { (ac_try="$ac_compile"
27324case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27327esac
27328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_compile") 2>conftest.er1
27330 ac_status=$?
27331 grep -v '^ *+' conftest.er1 >conftest.err
27332 rm -f conftest.er1
27333 cat conftest.err >&5
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000027335 (exit $ac_status); } && {
27336 test -z "$ac_c_werror_flag" ||
27337 test ! -s conftest.err
27338 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027339 ac_cv_header_sys_wait_h=yes
27340else
27341 echo "$as_me: failed program was:" >&5
27342sed 's/^/| /' conftest.$ac_ext >&5
27343
27344 ac_cv_header_sys_wait_h=no
27345fi
27346
27347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27348fi
27349{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27350echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27351if test $ac_cv_header_sys_wait_h = yes; then
27352
27353cat >>confdefs.h <<\_ACEOF
27354#define HAVE_SYS_WAIT_H 1
27355_ACEOF
27356
27357fi
27358
27359{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27360echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27361if test "${ac_cv_header_time+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27363else
27364 cat >conftest.$ac_ext <<_ACEOF
27365/* confdefs.h. */
27366_ACEOF
27367cat confdefs.h >>conftest.$ac_ext
27368cat >>conftest.$ac_ext <<_ACEOF
27369/* end confdefs.h. */
27370#include <sys/types.h>
27371#include <sys/time.h>
27372#include <time.h>
27373
27374int
27375main ()
27376{
27377if ((struct tm *) 0)
27378return 0;
27379 ;
27380 return 0;
27381}
27382_ACEOF
27383rm -f conftest.$ac_objext
27384if { (ac_try="$ac_compile"
27385case "(($ac_try" in
27386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387 *) ac_try_echo=$ac_try;;
27388esac
27389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27390 (eval "$ac_compile") 2>conftest.er1
27391 ac_status=$?
27392 grep -v '^ *+' conftest.er1 >conftest.err
27393 rm -f conftest.er1
27394 cat conftest.err >&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000027396 (exit $ac_status); } && {
27397 test -z "$ac_c_werror_flag" ||
27398 test ! -s conftest.err
27399 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027400 ac_cv_header_time=yes
27401else
27402 echo "$as_me: failed program was:" >&5
27403sed 's/^/| /' conftest.$ac_ext >&5
27404
27405 ac_cv_header_time=no
27406fi
27407
27408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27409fi
27410{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27411echo "${ECHO_T}$ac_cv_header_time" >&6; }
27412if test $ac_cv_header_time = yes; then
27413
27414cat >>confdefs.h <<\_ACEOF
27415#define TIME_WITH_SYS_TIME 1
27416_ACEOF
27417
27418fi
27419
27420
27421
27422
27423
27424
27425
27426
27427for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27428do
27429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27434 echo $ECHO_N "(cached) $ECHO_C" >&6
27435fi
27436ac_res=`eval echo '${'$as_ac_Header'}'`
27437 { echo "$as_me:$LINENO: result: $ac_res" >&5
27438echo "${ECHO_T}$ac_res" >&6; }
27439else
27440 # Is the header compilable?
27441{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27443cat >conftest.$ac_ext <<_ACEOF
27444/* confdefs.h. */
27445_ACEOF
27446cat confdefs.h >>conftest.$ac_ext
27447cat >>conftest.$ac_ext <<_ACEOF
27448/* end confdefs.h. */
27449$ac_includes_default
27450#include <$ac_header>
27451_ACEOF
27452rm -f conftest.$ac_objext
27453if { (ac_try="$ac_compile"
27454case "(($ac_try" in
27455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27456 *) ac_try_echo=$ac_try;;
27457esac
27458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27459 (eval "$ac_compile") 2>conftest.er1
27460 ac_status=$?
27461 grep -v '^ *+' conftest.er1 >conftest.err
27462 rm -f conftest.er1
27463 cat conftest.err >&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000027465 (exit $ac_status); } && {
27466 test -z "$ac_c_werror_flag" ||
27467 test ! -s conftest.err
27468 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027469 ac_header_compiler=yes
27470else
27471 echo "$as_me: failed program was:" >&5
27472sed 's/^/| /' conftest.$ac_ext >&5
27473
27474 ac_header_compiler=no
27475fi
27476
27477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27478{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27479echo "${ECHO_T}$ac_header_compiler" >&6; }
27480
27481# Is the header present?
27482{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27484cat >conftest.$ac_ext <<_ACEOF
27485/* confdefs.h. */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h. */
27490#include <$ac_header>
27491_ACEOF
27492if { (ac_try="$ac_cpp conftest.$ac_ext"
27493case "(($ac_try" in
27494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27495 *) ac_try_echo=$ac_try;;
27496esac
27497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27499 ac_status=$?
27500 grep -v '^ *+' conftest.er1 >conftest.err
27501 rm -f conftest.er1
27502 cat conftest.err >&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000027504 (exit $ac_status); } >/dev/null && {
27505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27506 test ! -s conftest.err
27507 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027508 ac_header_preproc=yes
27509else
27510 echo "$as_me: failed program was:" >&5
27511sed 's/^/| /' conftest.$ac_ext >&5
27512
27513 ac_header_preproc=no
27514fi
27515
27516rm -f conftest.err conftest.$ac_ext
27517{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27518echo "${ECHO_T}$ac_header_preproc" >&6; }
27519
27520# So? What about this header?
27521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27522 yes:no: )
27523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27526echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27527 ac_header_preproc=yes
27528 ;;
27529 no:yes:* )
27530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27531echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27533echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27535echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27537echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27541echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27542 ( cat <<\_ASBOX
27543## ----------------------------------- ##
27544## Report this to llvmbugs@cs.uiuc.edu ##
27545## ----------------------------------- ##
27546_ASBOX
27547 ) | sed "s/^/$as_me: WARNING: /" >&2
27548 ;;
27549esac
27550{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27553 echo $ECHO_N "(cached) $ECHO_C" >&6
27554else
27555 eval "$as_ac_Header=\$ac_header_preproc"
27556fi
27557ac_res=`eval echo '${'$as_ac_Header'}'`
27558 { echo "$as_me:$LINENO: result: $ac_res" >&5
27559echo "${ECHO_T}$ac_res" >&6; }
27560
27561fi
27562if test `eval echo '${'$as_ac_Header'}'` = yes; then
27563 cat >>confdefs.h <<_ACEOF
27564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27565_ACEOF
27566
27567fi
27568
27569done
27570
27571
27572
27573
27574
27575
27576
27577for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27578do
27579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27584 echo $ECHO_N "(cached) $ECHO_C" >&6
27585fi
27586ac_res=`eval echo '${'$as_ac_Header'}'`
27587 { echo "$as_me:$LINENO: result: $ac_res" >&5
27588echo "${ECHO_T}$ac_res" >&6; }
27589else
27590 # Is the header compilable?
27591{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27592echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27593cat >conftest.$ac_ext <<_ACEOF
27594/* confdefs.h. */
27595_ACEOF
27596cat confdefs.h >>conftest.$ac_ext
27597cat >>conftest.$ac_ext <<_ACEOF
27598/* end confdefs.h. */
27599$ac_includes_default
27600#include <$ac_header>
27601_ACEOF
27602rm -f conftest.$ac_objext
27603if { (ac_try="$ac_compile"
27604case "(($ac_try" in
27605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27606 *) ac_try_echo=$ac_try;;
27607esac
27608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27609 (eval "$ac_compile") 2>conftest.er1
27610 ac_status=$?
27611 grep -v '^ *+' conftest.er1 >conftest.err
27612 rm -f conftest.er1
27613 cat conftest.err >&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000027615 (exit $ac_status); } && {
27616 test -z "$ac_c_werror_flag" ||
27617 test ! -s conftest.err
27618 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027619 ac_header_compiler=yes
27620else
27621 echo "$as_me: failed program was:" >&5
27622sed 's/^/| /' conftest.$ac_ext >&5
27623
27624 ac_header_compiler=no
27625fi
27626
27627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27628{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27629echo "${ECHO_T}$ac_header_compiler" >&6; }
27630
27631# Is the header present?
27632{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27634cat >conftest.$ac_ext <<_ACEOF
27635/* confdefs.h. */
27636_ACEOF
27637cat confdefs.h >>conftest.$ac_ext
27638cat >>conftest.$ac_ext <<_ACEOF
27639/* end confdefs.h. */
27640#include <$ac_header>
27641_ACEOF
27642if { (ac_try="$ac_cpp conftest.$ac_ext"
27643case "(($ac_try" in
27644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645 *) ac_try_echo=$ac_try;;
27646esac
27647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27649 ac_status=$?
27650 grep -v '^ *+' conftest.er1 >conftest.err
27651 rm -f conftest.er1
27652 cat conftest.err >&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000027654 (exit $ac_status); } >/dev/null && {
27655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27656 test ! -s conftest.err
27657 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027658 ac_header_preproc=yes
27659else
27660 echo "$as_me: failed program was:" >&5
27661sed 's/^/| /' conftest.$ac_ext >&5
27662
27663 ac_header_preproc=no
27664fi
27665
27666rm -f conftest.err conftest.$ac_ext
27667{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27668echo "${ECHO_T}$ac_header_preproc" >&6; }
27669
27670# So? What about this header?
27671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27672 yes:no: )
27673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27677 ac_header_preproc=yes
27678 ;;
27679 no:yes:* )
27680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27692 ( cat <<\_ASBOX
27693## ----------------------------------- ##
27694## Report this to llvmbugs@cs.uiuc.edu ##
27695## ----------------------------------- ##
27696_ASBOX
27697 ) | sed "s/^/$as_me: WARNING: /" >&2
27698 ;;
27699esac
27700{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27703 echo $ECHO_N "(cached) $ECHO_C" >&6
27704else
27705 eval "$as_ac_Header=\$ac_header_preproc"
27706fi
27707ac_res=`eval echo '${'$as_ac_Header'}'`
27708 { echo "$as_me:$LINENO: result: $ac_res" >&5
27709echo "${ECHO_T}$ac_res" >&6; }
27710
27711fi
27712if test `eval echo '${'$as_ac_Header'}'` = yes; then
27713 cat >>confdefs.h <<_ACEOF
27714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27715_ACEOF
27716
27717fi
27718
27719done
27720
27721
Reid Spencer096a8142007-08-17 05:45:26 +000027722for ac_header in windows.h
27723do
27724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27729 echo $ECHO_N "(cached) $ECHO_C" >&6
27730fi
27731ac_res=`eval echo '${'$as_ac_Header'}'`
27732 { echo "$as_me:$LINENO: result: $ac_res" >&5
27733echo "${ECHO_T}$ac_res" >&6; }
27734else
27735 # Is the header compilable?
27736{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27738cat >conftest.$ac_ext <<_ACEOF
27739/* confdefs.h. */
27740_ACEOF
27741cat confdefs.h >>conftest.$ac_ext
27742cat >>conftest.$ac_ext <<_ACEOF
27743/* end confdefs.h. */
27744$ac_includes_default
27745#include <$ac_header>
27746_ACEOF
27747rm -f conftest.$ac_objext
27748if { (ac_try="$ac_compile"
27749case "(($ac_try" in
27750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751 *) ac_try_echo=$ac_try;;
27752esac
27753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27754 (eval "$ac_compile") 2>conftest.er1
27755 ac_status=$?
27756 grep -v '^ *+' conftest.er1 >conftest.err
27757 rm -f conftest.er1
27758 cat conftest.err >&5
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000027760 (exit $ac_status); } && {
27761 test -z "$ac_c_werror_flag" ||
27762 test ! -s conftest.err
27763 } && test -s conftest.$ac_objext; then
Reid Spencer096a8142007-08-17 05:45:26 +000027764 ac_header_compiler=yes
27765else
27766 echo "$as_me: failed program was:" >&5
27767sed 's/^/| /' conftest.$ac_ext >&5
27768
27769 ac_header_compiler=no
27770fi
27771
27772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27774echo "${ECHO_T}$ac_header_compiler" >&6; }
27775
27776# Is the header present?
27777{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27778echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27779cat >conftest.$ac_ext <<_ACEOF
27780/* confdefs.h. */
27781_ACEOF
27782cat confdefs.h >>conftest.$ac_ext
27783cat >>conftest.$ac_ext <<_ACEOF
27784/* end confdefs.h. */
27785#include <$ac_header>
27786_ACEOF
27787if { (ac_try="$ac_cpp conftest.$ac_ext"
27788case "(($ac_try" in
27789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790 *) ac_try_echo=$ac_try;;
27791esac
27792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27794 ac_status=$?
27795 grep -v '^ *+' conftest.er1 >conftest.err
27796 rm -f conftest.er1
27797 cat conftest.err >&5
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000027799 (exit $ac_status); } >/dev/null && {
27800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27801 test ! -s conftest.err
27802 }; then
Reid Spencer096a8142007-08-17 05:45:26 +000027803 ac_header_preproc=yes
27804else
27805 echo "$as_me: failed program was:" >&5
27806sed 's/^/| /' conftest.$ac_ext >&5
27807
27808 ac_header_preproc=no
27809fi
27810
27811rm -f conftest.err conftest.$ac_ext
27812{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27813echo "${ECHO_T}$ac_header_preproc" >&6; }
27814
27815# So? What about this header?
27816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27817 yes:no: )
27818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27822 ac_header_preproc=yes
27823 ;;
27824 no:yes:* )
27825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27828echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27832echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27837 ( cat <<\_ASBOX
27838## ----------------------------------- ##
27839## Report this to llvmbugs@cs.uiuc.edu ##
27840## ----------------------------------- ##
27841_ASBOX
27842 ) | sed "s/^/$as_me: WARNING: /" >&2
27843 ;;
27844esac
27845{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27848 echo $ECHO_N "(cached) $ECHO_C" >&6
27849else
27850 eval "$as_ac_Header=\$ac_header_preproc"
27851fi
27852ac_res=`eval echo '${'$as_ac_Header'}'`
27853 { echo "$as_me:$LINENO: result: $ac_res" >&5
27854echo "${ECHO_T}$ac_res" >&6; }
27855
27856fi
27857if test `eval echo '${'$as_ac_Header'}'` = yes; then
27858 cat >>confdefs.h <<_ACEOF
27859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27860_ACEOF
27861
27862fi
27863
27864done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027865
27866
27867
27868
Reid Spencer096a8142007-08-17 05:45:26 +000027869
27870for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027871do
27872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27877 echo $ECHO_N "(cached) $ECHO_C" >&6
27878fi
27879ac_res=`eval echo '${'$as_ac_Header'}'`
27880 { echo "$as_me:$LINENO: result: $ac_res" >&5
27881echo "${ECHO_T}$ac_res" >&6; }
27882else
27883 # Is the header compilable?
27884{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27886cat >conftest.$ac_ext <<_ACEOF
27887/* confdefs.h. */
27888_ACEOF
27889cat confdefs.h >>conftest.$ac_ext
27890cat >>conftest.$ac_ext <<_ACEOF
27891/* end confdefs.h. */
27892$ac_includes_default
27893#include <$ac_header>
27894_ACEOF
27895rm -f conftest.$ac_objext
27896if { (ac_try="$ac_compile"
27897case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27900esac
27901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_compile") 2>conftest.er1
27903 ac_status=$?
27904 grep -v '^ *+' conftest.er1 >conftest.err
27905 rm -f conftest.er1
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000027908 (exit $ac_status); } && {
27909 test -z "$ac_c_werror_flag" ||
27910 test ! -s conftest.err
27911 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027912 ac_header_compiler=yes
27913else
27914 echo "$as_me: failed program was:" >&5
27915sed 's/^/| /' conftest.$ac_ext >&5
27916
27917 ac_header_compiler=no
27918fi
27919
27920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27922echo "${ECHO_T}$ac_header_compiler" >&6; }
27923
27924# Is the header present?
27925{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27926echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27927cat >conftest.$ac_ext <<_ACEOF
27928/* confdefs.h. */
27929_ACEOF
27930cat confdefs.h >>conftest.$ac_ext
27931cat >>conftest.$ac_ext <<_ACEOF
27932/* end confdefs.h. */
27933#include <$ac_header>
27934_ACEOF
27935if { (ac_try="$ac_cpp conftest.$ac_ext"
27936case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27939esac
27940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27942 ac_status=$?
27943 grep -v '^ *+' conftest.er1 >conftest.err
27944 rm -f conftest.er1
27945 cat conftest.err >&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000027947 (exit $ac_status); } >/dev/null && {
27948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27949 test ! -s conftest.err
27950 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027951 ac_header_preproc=yes
27952else
27953 echo "$as_me: failed program was:" >&5
27954sed 's/^/| /' conftest.$ac_ext >&5
27955
27956 ac_header_preproc=no
27957fi
27958
27959rm -f conftest.err conftest.$ac_ext
27960{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27961echo "${ECHO_T}$ac_header_preproc" >&6; }
27962
27963# So? What about this header?
27964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27965 yes:no: )
27966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27967echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27969echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27970 ac_header_preproc=yes
27971 ;;
27972 no:yes:* )
27973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27974echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27976echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27978echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27980echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27982echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27984echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27985 ( cat <<\_ASBOX
27986## ----------------------------------- ##
27987## Report this to llvmbugs@cs.uiuc.edu ##
27988## ----------------------------------- ##
27989_ASBOX
27990 ) | sed "s/^/$as_me: WARNING: /" >&2
27991 ;;
27992esac
27993{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27996 echo $ECHO_N "(cached) $ECHO_C" >&6
27997else
27998 eval "$as_ac_Header=\$ac_header_preproc"
27999fi
28000ac_res=`eval echo '${'$as_ac_Header'}'`
28001 { echo "$as_me:$LINENO: result: $ac_res" >&5
28002echo "${ECHO_T}$ac_res" >&6; }
28003
28004fi
28005if test `eval echo '${'$as_ac_Header'}'` = yes; then
28006 cat >>confdefs.h <<_ACEOF
28007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28008_ACEOF
28009
28010fi
28011
28012done
28013
28014
28015
28016
28017for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28018do
28019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28025fi
28026ac_res=`eval echo '${'$as_ac_Header'}'`
28027 { echo "$as_me:$LINENO: result: $ac_res" >&5
28028echo "${ECHO_T}$ac_res" >&6; }
28029else
28030 # Is the header compilable?
28031{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28032echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28033cat >conftest.$ac_ext <<_ACEOF
28034/* confdefs.h. */
28035_ACEOF
28036cat confdefs.h >>conftest.$ac_ext
28037cat >>conftest.$ac_ext <<_ACEOF
28038/* end confdefs.h. */
28039$ac_includes_default
28040#include <$ac_header>
28041_ACEOF
28042rm -f conftest.$ac_objext
28043if { (ac_try="$ac_compile"
28044case "(($ac_try" in
28045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046 *) ac_try_echo=$ac_try;;
28047esac
28048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049 (eval "$ac_compile") 2>conftest.er1
28050 ac_status=$?
28051 grep -v '^ *+' conftest.er1 >conftest.err
28052 rm -f conftest.er1
28053 cat conftest.err >&5
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028055 (exit $ac_status); } && {
28056 test -z "$ac_c_werror_flag" ||
28057 test ! -s conftest.err
28058 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028059 ac_header_compiler=yes
28060else
28061 echo "$as_me: failed program was:" >&5
28062sed 's/^/| /' conftest.$ac_ext >&5
28063
28064 ac_header_compiler=no
28065fi
28066
28067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28068{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28069echo "${ECHO_T}$ac_header_compiler" >&6; }
28070
28071# Is the header present?
28072{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28073echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28074cat >conftest.$ac_ext <<_ACEOF
28075/* confdefs.h. */
28076_ACEOF
28077cat confdefs.h >>conftest.$ac_ext
28078cat >>conftest.$ac_ext <<_ACEOF
28079/* end confdefs.h. */
28080#include <$ac_header>
28081_ACEOF
28082if { (ac_try="$ac_cpp conftest.$ac_ext"
28083case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28086esac
28087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28089 ac_status=$?
28090 grep -v '^ *+' conftest.er1 >conftest.err
28091 rm -f conftest.er1
28092 cat conftest.err >&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028094 (exit $ac_status); } >/dev/null && {
28095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28096 test ! -s conftest.err
28097 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028098 ac_header_preproc=yes
28099else
28100 echo "$as_me: failed program was:" >&5
28101sed 's/^/| /' conftest.$ac_ext >&5
28102
28103 ac_header_preproc=no
28104fi
28105
28106rm -f conftest.err conftest.$ac_ext
28107{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28108echo "${ECHO_T}$ac_header_preproc" >&6; }
28109
28110# So? What about this header?
28111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28112 yes:no: )
28113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28114echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28116echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28117 ac_header_preproc=yes
28118 ;;
28119 no:yes:* )
28120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28121echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28123echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28125echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28127echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28129echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28131echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28132 ( cat <<\_ASBOX
28133## ----------------------------------- ##
28134## Report this to llvmbugs@cs.uiuc.edu ##
28135## ----------------------------------- ##
28136_ASBOX
28137 ) | sed "s/^/$as_me: WARNING: /" >&2
28138 ;;
28139esac
28140{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28143 echo $ECHO_N "(cached) $ECHO_C" >&6
28144else
28145 eval "$as_ac_Header=\$ac_header_preproc"
28146fi
28147ac_res=`eval echo '${'$as_ac_Header'}'`
28148 { echo "$as_me:$LINENO: result: $ac_res" >&5
28149echo "${ECHO_T}$ac_res" >&6; }
28150
28151fi
28152if test `eval echo '${'$as_ac_Header'}'` = yes; then
28153 cat >>confdefs.h <<_ACEOF
28154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28155_ACEOF
28156
28157fi
28158
28159done
28160
28161if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer096a8142007-08-17 05:45:26 +000028162
28163for ac_header in pthread.h
28164do
28165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028170 echo $ECHO_N "(cached) $ECHO_C" >&6
28171fi
Reid Spencer096a8142007-08-17 05:45:26 +000028172ac_res=`eval echo '${'$as_ac_Header'}'`
28173 { echo "$as_me:$LINENO: result: $ac_res" >&5
28174echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028175else
28176 # Is the header compilable?
Reid Spencer096a8142007-08-17 05:45:26 +000028177{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028179cat >conftest.$ac_ext <<_ACEOF
28180/* confdefs.h. */
28181_ACEOF
28182cat confdefs.h >>conftest.$ac_ext
28183cat >>conftest.$ac_ext <<_ACEOF
28184/* end confdefs.h. */
28185$ac_includes_default
Reid Spencer096a8142007-08-17 05:45:26 +000028186#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028187_ACEOF
28188rm -f conftest.$ac_objext
28189if { (ac_try="$ac_compile"
28190case "(($ac_try" in
28191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192 *) ac_try_echo=$ac_try;;
28193esac
28194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195 (eval "$ac_compile") 2>conftest.er1
28196 ac_status=$?
28197 grep -v '^ *+' conftest.er1 >conftest.err
28198 rm -f conftest.er1
28199 cat conftest.err >&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028201 (exit $ac_status); } && {
28202 test -z "$ac_c_werror_flag" ||
28203 test ! -s conftest.err
28204 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028205 ac_header_compiler=yes
28206else
28207 echo "$as_me: failed program was:" >&5
28208sed 's/^/| /' conftest.$ac_ext >&5
28209
28210 ac_header_compiler=no
28211fi
28212
28213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28215echo "${ECHO_T}$ac_header_compiler" >&6; }
28216
28217# Is the header present?
Reid Spencer096a8142007-08-17 05:45:26 +000028218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028220cat >conftest.$ac_ext <<_ACEOF
28221/* confdefs.h. */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h. */
Reid Spencer096a8142007-08-17 05:45:26 +000028226#include <$ac_header>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028227_ACEOF
28228if { (ac_try="$ac_cpp conftest.$ac_ext"
28229case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
28235 ac_status=$?
28236 grep -v '^ *+' conftest.er1 >conftest.err
28237 rm -f conftest.er1
28238 cat conftest.err >&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028240 (exit $ac_status); } >/dev/null && {
28241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28242 test ! -s conftest.err
28243 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028244 ac_header_preproc=yes
28245else
28246 echo "$as_me: failed program was:" >&5
28247sed 's/^/| /' conftest.$ac_ext >&5
28248
28249 ac_header_preproc=no
28250fi
28251
28252rm -f conftest.err conftest.$ac_ext
28253{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28254echo "${ECHO_T}$ac_header_preproc" >&6; }
28255
28256# So? What about this header?
28257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28258 yes:no: )
Reid Spencer096a8142007-08-17 05:45:26 +000028259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028263 ac_header_preproc=yes
28264 ;;
28265 no:yes:* )
Reid Spencer096a8142007-08-17 05:45:26 +000028266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28269echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28273echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028278 ( cat <<\_ASBOX
28279## ----------------------------------- ##
28280## Report this to llvmbugs@cs.uiuc.edu ##
28281## ----------------------------------- ##
28282_ASBOX
28283 ) | sed "s/^/$as_me: WARNING: /" >&2
28284 ;;
28285esac
Reid Spencer096a8142007-08-17 05:45:26 +000028286{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028289 echo $ECHO_N "(cached) $ECHO_C" >&6
28290else
Reid Spencer096a8142007-08-17 05:45:26 +000028291 eval "$as_ac_Header=\$ac_header_preproc"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028292fi
Reid Spencer096a8142007-08-17 05:45:26 +000028293ac_res=`eval echo '${'$as_ac_Header'}'`
28294 { echo "$as_me:$LINENO: result: $ac_res" >&5
28295echo "${ECHO_T}$ac_res" >&6; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028296
28297fi
Reid Spencer096a8142007-08-17 05:45:26 +000028298if test `eval echo '${'$as_ac_Header'}'` = yes; then
28299 cat >>confdefs.h <<_ACEOF
28300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28301_ACEOF
28302 HAVE_PTHREAD=1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028303
28304else
28305 HAVE_PTHREAD=0
28306
28307fi
28308
Reid Spencer096a8142007-08-17 05:45:26 +000028309done
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028310
28311else
28312 HAVE_PTHREAD=0
28313
28314fi
28315
28316
28317
28318 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28319echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28320if test "${ac_cv_huge_val_sanity+set}" = set; then
28321 echo $ECHO_N "(cached) $ECHO_C" >&6
28322else
28323
28324 ac_ext=cpp
28325ac_cpp='$CXXCPP $CPPFLAGS'
28326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28329
28330 CXXFLAGS=-pedantic
28331 if test "$cross_compiling" = yes; then
28332 ac_cv_huge_val_sanity=yes
28333else
28334 cat >conftest.$ac_ext <<_ACEOF
28335/* confdefs.h. */
28336_ACEOF
28337cat confdefs.h >>conftest.$ac_ext
28338cat >>conftest.$ac_ext <<_ACEOF
28339/* end confdefs.h. */
28340#include <math.h>
28341int
28342main ()
28343{
28344double x = HUGE_VAL; return x != x;
28345 ;
28346 return 0;
28347}
28348_ACEOF
28349rm -f conftest$ac_exeext
28350if { (ac_try="$ac_link"
28351case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28354esac
28355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356 (eval "$ac_link") 2>&5
28357 ac_status=$?
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28360 { (case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28363esac
28364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_try") 2>&5
28366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 ac_cv_huge_val_sanity=yes
28370else
28371 echo "$as_me: program exited with status $ac_status" >&5
28372echo "$as_me: failed program was:" >&5
28373sed 's/^/| /' conftest.$ac_ext >&5
28374
28375( exit $ac_status )
28376ac_cv_huge_val_sanity=no
28377fi
28378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28379fi
28380
28381
28382 ac_ext=c
28383ac_cpp='$CPP $CPPFLAGS'
28384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386ac_compiler_gnu=$ac_cv_c_compiler_gnu
28387
28388
28389fi
28390{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28391echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28392 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28393
28394
28395{ echo "$as_me:$LINENO: checking for pid_t" >&5
28396echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28397if test "${ac_cv_type_pid_t+set}" = set; then
28398 echo $ECHO_N "(cached) $ECHO_C" >&6
28399else
28400 cat >conftest.$ac_ext <<_ACEOF
28401/* confdefs.h. */
28402_ACEOF
28403cat confdefs.h >>conftest.$ac_ext
28404cat >>conftest.$ac_ext <<_ACEOF
28405/* end confdefs.h. */
28406$ac_includes_default
28407typedef pid_t ac__type_new_;
28408int
28409main ()
28410{
28411if ((ac__type_new_ *) 0)
28412 return 0;
28413if (sizeof (ac__type_new_))
28414 return 0;
28415 ;
28416 return 0;
28417}
28418_ACEOF
28419rm -f conftest.$ac_objext
28420if { (ac_try="$ac_compile"
28421case "(($ac_try" in
28422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423 *) ac_try_echo=$ac_try;;
28424esac
28425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426 (eval "$ac_compile") 2>conftest.er1
28427 ac_status=$?
28428 grep -v '^ *+' conftest.er1 >conftest.err
28429 rm -f conftest.er1
28430 cat conftest.err >&5
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028432 (exit $ac_status); } && {
28433 test -z "$ac_c_werror_flag" ||
28434 test ! -s conftest.err
28435 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028436 ac_cv_type_pid_t=yes
28437else
28438 echo "$as_me: failed program was:" >&5
28439sed 's/^/| /' conftest.$ac_ext >&5
28440
28441 ac_cv_type_pid_t=no
28442fi
28443
28444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28445fi
28446{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28447echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28448if test $ac_cv_type_pid_t = yes; then
28449 :
28450else
28451
28452cat >>confdefs.h <<_ACEOF
28453#define pid_t int
28454_ACEOF
28455
28456fi
28457
28458{ echo "$as_me:$LINENO: checking for size_t" >&5
28459echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28460if test "${ac_cv_type_size_t+set}" = set; then
28461 echo $ECHO_N "(cached) $ECHO_C" >&6
28462else
28463 cat >conftest.$ac_ext <<_ACEOF
28464/* confdefs.h. */
28465_ACEOF
28466cat confdefs.h >>conftest.$ac_ext
28467cat >>conftest.$ac_ext <<_ACEOF
28468/* end confdefs.h. */
28469$ac_includes_default
28470typedef size_t ac__type_new_;
28471int
28472main ()
28473{
28474if ((ac__type_new_ *) 0)
28475 return 0;
28476if (sizeof (ac__type_new_))
28477 return 0;
28478 ;
28479 return 0;
28480}
28481_ACEOF
28482rm -f conftest.$ac_objext
28483if { (ac_try="$ac_compile"
28484case "(($ac_try" in
28485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28486 *) ac_try_echo=$ac_try;;
28487esac
28488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28489 (eval "$ac_compile") 2>conftest.er1
28490 ac_status=$?
28491 grep -v '^ *+' conftest.er1 >conftest.err
28492 rm -f conftest.er1
28493 cat conftest.err >&5
28494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028495 (exit $ac_status); } && {
28496 test -z "$ac_c_werror_flag" ||
28497 test ! -s conftest.err
28498 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028499 ac_cv_type_size_t=yes
28500else
28501 echo "$as_me: failed program was:" >&5
28502sed 's/^/| /' conftest.$ac_ext >&5
28503
28504 ac_cv_type_size_t=no
28505fi
28506
28507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28508fi
28509{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28510echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28511if test $ac_cv_type_size_t = yes; then
28512 :
28513else
28514
28515cat >>confdefs.h <<_ACEOF
28516#define size_t unsigned int
28517_ACEOF
28518
28519fi
28520
28521{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28522echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28523if test "${ac_cv_type_signal+set}" = set; then
28524 echo $ECHO_N "(cached) $ECHO_C" >&6
28525else
28526 cat >conftest.$ac_ext <<_ACEOF
28527/* confdefs.h. */
28528_ACEOF
28529cat confdefs.h >>conftest.$ac_ext
28530cat >>conftest.$ac_ext <<_ACEOF
28531/* end confdefs.h. */
28532#include <sys/types.h>
28533#include <signal.h>
28534
28535int
28536main ()
28537{
28538return *(signal (0, 0)) (0) == 1;
28539 ;
28540 return 0;
28541}
28542_ACEOF
28543rm -f conftest.$ac_objext
28544if { (ac_try="$ac_compile"
28545case "(($ac_try" in
28546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547 *) ac_try_echo=$ac_try;;
28548esac
28549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550 (eval "$ac_compile") 2>conftest.er1
28551 ac_status=$?
28552 grep -v '^ *+' conftest.er1 >conftest.err
28553 rm -f conftest.er1
28554 cat conftest.err >&5
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028556 (exit $ac_status); } && {
28557 test -z "$ac_c_werror_flag" ||
28558 test ! -s conftest.err
28559 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028560 ac_cv_type_signal=int
28561else
28562 echo "$as_me: failed program was:" >&5
28563sed 's/^/| /' conftest.$ac_ext >&5
28564
28565 ac_cv_type_signal=void
28566fi
28567
28568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569fi
28570{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28571echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28572
28573cat >>confdefs.h <<_ACEOF
28574#define RETSIGTYPE $ac_cv_type_signal
28575_ACEOF
28576
28577
28578{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28579echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28580if test "${ac_cv_struct_tm+set}" = set; then
28581 echo $ECHO_N "(cached) $ECHO_C" >&6
28582else
28583 cat >conftest.$ac_ext <<_ACEOF
28584/* confdefs.h. */
28585_ACEOF
28586cat confdefs.h >>conftest.$ac_ext
28587cat >>conftest.$ac_ext <<_ACEOF
28588/* end confdefs.h. */
28589#include <sys/types.h>
28590#include <time.h>
28591
28592int
28593main ()
28594{
Edwin Török20176752008-10-22 09:56:27 +000028595struct tm tm;
28596 int *p = &tm.tm_sec;
28597 return !p;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028598 ;
28599 return 0;
28600}
28601_ACEOF
28602rm -f conftest.$ac_objext
28603if { (ac_try="$ac_compile"
28604case "(($ac_try" in
28605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606 *) ac_try_echo=$ac_try;;
28607esac
28608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28609 (eval "$ac_compile") 2>conftest.er1
28610 ac_status=$?
28611 grep -v '^ *+' conftest.er1 >conftest.err
28612 rm -f conftest.er1
28613 cat conftest.err >&5
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028615 (exit $ac_status); } && {
28616 test -z "$ac_c_werror_flag" ||
28617 test ! -s conftest.err
28618 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028619 ac_cv_struct_tm=time.h
28620else
28621 echo "$as_me: failed program was:" >&5
28622sed 's/^/| /' conftest.$ac_ext >&5
28623
28624 ac_cv_struct_tm=sys/time.h
28625fi
28626
28627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28628fi
28629{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28630echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28631if test $ac_cv_struct_tm = sys/time.h; then
28632
28633cat >>confdefs.h <<\_ACEOF
28634#define TM_IN_SYS_TIME 1
28635_ACEOF
28636
28637fi
28638
28639{ echo "$as_me:$LINENO: checking for int64_t" >&5
28640echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28641if test "${ac_cv_type_int64_t+set}" = set; then
28642 echo $ECHO_N "(cached) $ECHO_C" >&6
28643else
28644 cat >conftest.$ac_ext <<_ACEOF
28645/* confdefs.h. */
28646_ACEOF
28647cat confdefs.h >>conftest.$ac_ext
28648cat >>conftest.$ac_ext <<_ACEOF
28649/* end confdefs.h. */
28650$ac_includes_default
28651typedef int64_t ac__type_new_;
28652int
28653main ()
28654{
28655if ((ac__type_new_ *) 0)
28656 return 0;
28657if (sizeof (ac__type_new_))
28658 return 0;
28659 ;
28660 return 0;
28661}
28662_ACEOF
28663rm -f conftest.$ac_objext
28664if { (ac_try="$ac_compile"
28665case "(($ac_try" in
28666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667 *) ac_try_echo=$ac_try;;
28668esac
28669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28670 (eval "$ac_compile") 2>conftest.er1
28671 ac_status=$?
28672 grep -v '^ *+' conftest.er1 >conftest.err
28673 rm -f conftest.er1
28674 cat conftest.err >&5
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028676 (exit $ac_status); } && {
28677 test -z "$ac_c_werror_flag" ||
28678 test ! -s conftest.err
28679 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028680 ac_cv_type_int64_t=yes
28681else
28682 echo "$as_me: failed program was:" >&5
28683sed 's/^/| /' conftest.$ac_ext >&5
28684
28685 ac_cv_type_int64_t=no
28686fi
28687
28688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28689fi
28690{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28691echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28692if test $ac_cv_type_int64_t = yes; then
28693
28694cat >>confdefs.h <<_ACEOF
28695#define HAVE_INT64_T 1
28696_ACEOF
28697
28698
28699else
28700 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28701echo "$as_me: error: Type int64_t required but not found" >&2;}
28702 { (exit 1); exit 1; }; }
28703fi
28704
28705{ echo "$as_me:$LINENO: checking for uint64_t" >&5
28706echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28707if test "${ac_cv_type_uint64_t+set}" = set; then
28708 echo $ECHO_N "(cached) $ECHO_C" >&6
28709else
28710 cat >conftest.$ac_ext <<_ACEOF
28711/* confdefs.h. */
28712_ACEOF
28713cat confdefs.h >>conftest.$ac_ext
28714cat >>conftest.$ac_ext <<_ACEOF
28715/* end confdefs.h. */
28716$ac_includes_default
28717typedef uint64_t ac__type_new_;
28718int
28719main ()
28720{
28721if ((ac__type_new_ *) 0)
28722 return 0;
28723if (sizeof (ac__type_new_))
28724 return 0;
28725 ;
28726 return 0;
28727}
28728_ACEOF
28729rm -f conftest.$ac_objext
28730if { (ac_try="$ac_compile"
28731case "(($ac_try" in
28732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733 *) ac_try_echo=$ac_try;;
28734esac
28735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736 (eval "$ac_compile") 2>conftest.er1
28737 ac_status=$?
28738 grep -v '^ *+' conftest.er1 >conftest.err
28739 rm -f conftest.er1
28740 cat conftest.err >&5
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028742 (exit $ac_status); } && {
28743 test -z "$ac_c_werror_flag" ||
28744 test ! -s conftest.err
28745 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028746 ac_cv_type_uint64_t=yes
28747else
28748 echo "$as_me: failed program was:" >&5
28749sed 's/^/| /' conftest.$ac_ext >&5
28750
28751 ac_cv_type_uint64_t=no
28752fi
28753
28754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28755fi
28756{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28757echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28758if test $ac_cv_type_uint64_t = yes; then
28759
28760cat >>confdefs.h <<_ACEOF
28761#define HAVE_UINT64_T 1
28762_ACEOF
28763
28764
28765else
28766 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28767echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28768if test "${ac_cv_type_u_int64_t+set}" = set; then
28769 echo $ECHO_N "(cached) $ECHO_C" >&6
28770else
28771 cat >conftest.$ac_ext <<_ACEOF
28772/* confdefs.h. */
28773_ACEOF
28774cat confdefs.h >>conftest.$ac_ext
28775cat >>conftest.$ac_ext <<_ACEOF
28776/* end confdefs.h. */
28777$ac_includes_default
28778typedef u_int64_t ac__type_new_;
28779int
28780main ()
28781{
28782if ((ac__type_new_ *) 0)
28783 return 0;
28784if (sizeof (ac__type_new_))
28785 return 0;
28786 ;
28787 return 0;
28788}
28789_ACEOF
28790rm -f conftest.$ac_objext
28791if { (ac_try="$ac_compile"
28792case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28795esac
28796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797 (eval "$ac_compile") 2>conftest.er1
28798 ac_status=$?
28799 grep -v '^ *+' conftest.er1 >conftest.err
28800 rm -f conftest.er1
28801 cat conftest.err >&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028803 (exit $ac_status); } && {
28804 test -z "$ac_c_werror_flag" ||
28805 test ! -s conftest.err
28806 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028807 ac_cv_type_u_int64_t=yes
28808else
28809 echo "$as_me: failed program was:" >&5
28810sed 's/^/| /' conftest.$ac_ext >&5
28811
28812 ac_cv_type_u_int64_t=no
28813fi
28814
28815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28816fi
28817{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28818echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28819if test $ac_cv_type_u_int64_t = yes; then
28820
28821cat >>confdefs.h <<_ACEOF
28822#define HAVE_U_INT64_T 1
28823_ACEOF
28824
28825
28826else
28827 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28828echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28829 { (exit 1); exit 1; }; }
28830fi
28831
28832fi
28833
28834
28835
28836
28837
28838
28839
28840
28841
28842
28843for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28844do
28845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28846{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28848if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28849 echo $ECHO_N "(cached) $ECHO_C" >&6
28850else
28851 cat >conftest.$ac_ext <<_ACEOF
28852/* confdefs.h. */
28853_ACEOF
28854cat confdefs.h >>conftest.$ac_ext
28855cat >>conftest.$ac_ext <<_ACEOF
28856/* end confdefs.h. */
28857/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28859#define $ac_func innocuous_$ac_func
28860
28861/* System header to define __stub macros and hopefully few prototypes,
28862 which can conflict with char $ac_func (); below.
28863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28864 <limits.h> exists even on freestanding compilers. */
28865
28866#ifdef __STDC__
28867# include <limits.h>
28868#else
28869# include <assert.h>
28870#endif
28871
28872#undef $ac_func
28873
28874/* Override any GCC internal prototype to avoid an error.
28875 Use char because int might match the return type of a GCC
28876 builtin and then its argument prototype would still apply. */
28877#ifdef __cplusplus
28878extern "C"
28879#endif
28880char $ac_func ();
28881/* The GNU C library defines this for functions which it implements
28882 to always fail with ENOSYS. Some functions are actually named
28883 something starting with __ and the normal name is an alias. */
28884#if defined __stub_$ac_func || defined __stub___$ac_func
28885choke me
28886#endif
28887
28888int
28889main ()
28890{
28891return $ac_func ();
28892 ;
28893 return 0;
28894}
28895_ACEOF
28896rm -f conftest.$ac_objext conftest$ac_exeext
28897if { (ac_try="$ac_link"
28898case "(($ac_try" in
28899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28900 *) ac_try_echo=$ac_try;;
28901esac
28902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28903 (eval "$ac_link") 2>conftest.er1
28904 ac_status=$?
28905 grep -v '^ *+' conftest.er1 >conftest.err
28906 rm -f conftest.er1
28907 cat conftest.err >&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000028909 (exit $ac_status); } && {
28910 test -z "$ac_c_werror_flag" ||
28911 test ! -s conftest.err
28912 } && test -s conftest$ac_exeext &&
28913 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028914 eval "$as_ac_var=yes"
28915else
28916 echo "$as_me: failed program was:" >&5
28917sed 's/^/| /' conftest.$ac_ext >&5
28918
28919 eval "$as_ac_var=no"
28920fi
28921
Edwin Török20176752008-10-22 09:56:27 +000028922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000028923 conftest$ac_exeext conftest.$ac_ext
28924fi
28925ac_res=`eval echo '${'$as_ac_var'}'`
28926 { echo "$as_me:$LINENO: result: $ac_res" >&5
28927echo "${ECHO_T}$ac_res" >&6; }
28928if test `eval echo '${'$as_ac_var'}'` = yes; then
28929 cat >>confdefs.h <<_ACEOF
28930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28931_ACEOF
28932
28933fi
28934done
28935
28936
28937
28938
28939
28940for ac_func in powf fmodf strtof round
28941do
28942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28943{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28945if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28946 echo $ECHO_N "(cached) $ECHO_C" >&6
28947else
28948 cat >conftest.$ac_ext <<_ACEOF
28949/* confdefs.h. */
28950_ACEOF
28951cat confdefs.h >>conftest.$ac_ext
28952cat >>conftest.$ac_ext <<_ACEOF
28953/* end confdefs.h. */
28954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28956#define $ac_func innocuous_$ac_func
28957
28958/* System header to define __stub macros and hopefully few prototypes,
28959 which can conflict with char $ac_func (); below.
28960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28961 <limits.h> exists even on freestanding compilers. */
28962
28963#ifdef __STDC__
28964# include <limits.h>
28965#else
28966# include <assert.h>
28967#endif
28968
28969#undef $ac_func
28970
28971/* Override any GCC internal prototype to avoid an error.
28972 Use char because int might match the return type of a GCC
28973 builtin and then its argument prototype would still apply. */
28974#ifdef __cplusplus
28975extern "C"
28976#endif
28977char $ac_func ();
28978/* The GNU C library defines this for functions which it implements
28979 to always fail with ENOSYS. Some functions are actually named
28980 something starting with __ and the normal name is an alias. */
28981#if defined __stub_$ac_func || defined __stub___$ac_func
28982choke me
28983#endif
28984
28985int
28986main ()
28987{
28988return $ac_func ();
28989 ;
28990 return 0;
28991}
28992_ACEOF
28993rm -f conftest.$ac_objext conftest$ac_exeext
28994if { (ac_try="$ac_link"
28995case "(($ac_try" in
28996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28997 *) ac_try_echo=$ac_try;;
28998esac
28999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29000 (eval "$ac_link") 2>conftest.er1
29001 ac_status=$?
29002 grep -v '^ *+' conftest.er1 >conftest.err
29003 rm -f conftest.er1
29004 cat conftest.err >&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000029006 (exit $ac_status); } && {
29007 test -z "$ac_c_werror_flag" ||
29008 test ! -s conftest.err
29009 } && test -s conftest$ac_exeext &&
29010 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029011 eval "$as_ac_var=yes"
29012else
29013 echo "$as_me: failed program was:" >&5
29014sed 's/^/| /' conftest.$ac_ext >&5
29015
29016 eval "$as_ac_var=no"
29017fi
29018
Edwin Török20176752008-10-22 09:56:27 +000029019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029020 conftest$ac_exeext conftest.$ac_ext
29021fi
29022ac_res=`eval echo '${'$as_ac_var'}'`
29023 { echo "$as_me:$LINENO: result: $ac_res" >&5
29024echo "${ECHO_T}$ac_res" >&6; }
29025if test `eval echo '${'$as_ac_var'}'` = yes; then
29026 cat >>confdefs.h <<_ACEOF
29027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29028_ACEOF
29029
29030fi
29031done
29032
29033
29034
29035
29036
29037
29038for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
29039do
29040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29041{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29043if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29044 echo $ECHO_N "(cached) $ECHO_C" >&6
29045else
29046 cat >conftest.$ac_ext <<_ACEOF
29047/* confdefs.h. */
29048_ACEOF
29049cat confdefs.h >>conftest.$ac_ext
29050cat >>conftest.$ac_ext <<_ACEOF
29051/* end confdefs.h. */
29052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29054#define $ac_func innocuous_$ac_func
29055
29056/* System header to define __stub macros and hopefully few prototypes,
29057 which can conflict with char $ac_func (); below.
29058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29059 <limits.h> exists even on freestanding compilers. */
29060
29061#ifdef __STDC__
29062# include <limits.h>
29063#else
29064# include <assert.h>
29065#endif
29066
29067#undef $ac_func
29068
29069/* Override any GCC internal prototype to avoid an error.
29070 Use char because int might match the return type of a GCC
29071 builtin and then its argument prototype would still apply. */
29072#ifdef __cplusplus
29073extern "C"
29074#endif
29075char $ac_func ();
29076/* The GNU C library defines this for functions which it implements
29077 to always fail with ENOSYS. Some functions are actually named
29078 something starting with __ and the normal name is an alias. */
29079#if defined __stub_$ac_func || defined __stub___$ac_func
29080choke me
29081#endif
29082
29083int
29084main ()
29085{
29086return $ac_func ();
29087 ;
29088 return 0;
29089}
29090_ACEOF
29091rm -f conftest.$ac_objext conftest$ac_exeext
29092if { (ac_try="$ac_link"
29093case "(($ac_try" in
29094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095 *) ac_try_echo=$ac_try;;
29096esac
29097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29098 (eval "$ac_link") 2>conftest.er1
29099 ac_status=$?
29100 grep -v '^ *+' conftest.er1 >conftest.err
29101 rm -f conftest.er1
29102 cat conftest.err >&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000029104 (exit $ac_status); } && {
29105 test -z "$ac_c_werror_flag" ||
29106 test ! -s conftest.err
29107 } && test -s conftest$ac_exeext &&
29108 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029109 eval "$as_ac_var=yes"
29110else
29111 echo "$as_me: failed program was:" >&5
29112sed 's/^/| /' conftest.$ac_ext >&5
29113
29114 eval "$as_ac_var=no"
29115fi
29116
Edwin Török20176752008-10-22 09:56:27 +000029117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029118 conftest$ac_exeext conftest.$ac_ext
29119fi
29120ac_res=`eval echo '${'$as_ac_var'}'`
29121 { echo "$as_me:$LINENO: result: $ac_res" >&5
29122echo "${ECHO_T}$ac_res" >&6; }
29123if test `eval echo '${'$as_ac_var'}'` = yes; then
29124 cat >>confdefs.h <<_ACEOF
29125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29126_ACEOF
29127
29128fi
29129done
29130
29131
29132
29133
29134for ac_func in isatty mkdtemp mkstemp
29135do
29136as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29137{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29138echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29139if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29141else
29142 cat >conftest.$ac_ext <<_ACEOF
29143/* confdefs.h. */
29144_ACEOF
29145cat confdefs.h >>conftest.$ac_ext
29146cat >>conftest.$ac_ext <<_ACEOF
29147/* end confdefs.h. */
29148/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29150#define $ac_func innocuous_$ac_func
29151
29152/* System header to define __stub macros and hopefully few prototypes,
29153 which can conflict with char $ac_func (); below.
29154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29155 <limits.h> exists even on freestanding compilers. */
29156
29157#ifdef __STDC__
29158# include <limits.h>
29159#else
29160# include <assert.h>
29161#endif
29162
29163#undef $ac_func
29164
29165/* Override any GCC internal prototype to avoid an error.
29166 Use char because int might match the return type of a GCC
29167 builtin and then its argument prototype would still apply. */
29168#ifdef __cplusplus
29169extern "C"
29170#endif
29171char $ac_func ();
29172/* The GNU C library defines this for functions which it implements
29173 to always fail with ENOSYS. Some functions are actually named
29174 something starting with __ and the normal name is an alias. */
29175#if defined __stub_$ac_func || defined __stub___$ac_func
29176choke me
29177#endif
29178
29179int
29180main ()
29181{
29182return $ac_func ();
29183 ;
29184 return 0;
29185}
29186_ACEOF
29187rm -f conftest.$ac_objext conftest$ac_exeext
29188if { (ac_try="$ac_link"
29189case "(($ac_try" in
29190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29191 *) ac_try_echo=$ac_try;;
29192esac
29193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29194 (eval "$ac_link") 2>conftest.er1
29195 ac_status=$?
29196 grep -v '^ *+' conftest.er1 >conftest.err
29197 rm -f conftest.er1
29198 cat conftest.err >&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000029200 (exit $ac_status); } && {
29201 test -z "$ac_c_werror_flag" ||
29202 test ! -s conftest.err
29203 } && test -s conftest$ac_exeext &&
29204 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029205 eval "$as_ac_var=yes"
29206else
29207 echo "$as_me: failed program was:" >&5
29208sed 's/^/| /' conftest.$ac_ext >&5
29209
29210 eval "$as_ac_var=no"
29211fi
29212
Edwin Török20176752008-10-22 09:56:27 +000029213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029214 conftest$ac_exeext conftest.$ac_ext
29215fi
29216ac_res=`eval echo '${'$as_ac_var'}'`
29217 { echo "$as_me:$LINENO: result: $ac_res" >&5
29218echo "${ECHO_T}$ac_res" >&6; }
29219if test `eval echo '${'$as_ac_var'}'` = yes; then
29220 cat >>confdefs.h <<_ACEOF
29221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29222_ACEOF
29223
29224fi
29225done
29226
29227
29228
29229
29230
29231
29232
29233
29234for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29235do
29236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29237{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29239if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29240 echo $ECHO_N "(cached) $ECHO_C" >&6
29241else
29242 cat >conftest.$ac_ext <<_ACEOF
29243/* confdefs.h. */
29244_ACEOF
29245cat confdefs.h >>conftest.$ac_ext
29246cat >>conftest.$ac_ext <<_ACEOF
29247/* end confdefs.h. */
29248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29250#define $ac_func innocuous_$ac_func
29251
29252/* System header to define __stub macros and hopefully few prototypes,
29253 which can conflict with char $ac_func (); below.
29254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29255 <limits.h> exists even on freestanding compilers. */
29256
29257#ifdef __STDC__
29258# include <limits.h>
29259#else
29260# include <assert.h>
29261#endif
29262
29263#undef $ac_func
29264
29265/* Override any GCC internal prototype to avoid an error.
29266 Use char because int might match the return type of a GCC
29267 builtin and then its argument prototype would still apply. */
29268#ifdef __cplusplus
29269extern "C"
29270#endif
29271char $ac_func ();
29272/* The GNU C library defines this for functions which it implements
29273 to always fail with ENOSYS. Some functions are actually named
29274 something starting with __ and the normal name is an alias. */
29275#if defined __stub_$ac_func || defined __stub___$ac_func
29276choke me
29277#endif
29278
29279int
29280main ()
29281{
29282return $ac_func ();
29283 ;
29284 return 0;
29285}
29286_ACEOF
29287rm -f conftest.$ac_objext conftest$ac_exeext
29288if { (ac_try="$ac_link"
29289case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29292esac
29293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_link") 2>conftest.er1
29295 ac_status=$?
29296 grep -v '^ *+' conftest.er1 >conftest.err
29297 rm -f conftest.er1
29298 cat conftest.err >&5
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000029300 (exit $ac_status); } && {
29301 test -z "$ac_c_werror_flag" ||
29302 test ! -s conftest.err
29303 } && test -s conftest$ac_exeext &&
29304 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029305 eval "$as_ac_var=yes"
29306else
29307 echo "$as_me: failed program was:" >&5
29308sed 's/^/| /' conftest.$ac_ext >&5
29309
29310 eval "$as_ac_var=no"
29311fi
29312
Edwin Török20176752008-10-22 09:56:27 +000029313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029314 conftest$ac_exeext conftest.$ac_ext
29315fi
29316ac_res=`eval echo '${'$as_ac_var'}'`
29317 { echo "$as_me:$LINENO: result: $ac_res" >&5
29318echo "${ECHO_T}$ac_res" >&6; }
29319if test `eval echo '${'$as_ac_var'}'` = yes; then
29320 cat >>confdefs.h <<_ACEOF
29321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29322_ACEOF
29323
29324fi
29325done
29326
29327
29328
29329
29330
29331for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29332do
29333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29334{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29336if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29337 echo $ECHO_N "(cached) $ECHO_C" >&6
29338else
29339 cat >conftest.$ac_ext <<_ACEOF
29340/* confdefs.h. */
29341_ACEOF
29342cat confdefs.h >>conftest.$ac_ext
29343cat >>conftest.$ac_ext <<_ACEOF
29344/* end confdefs.h. */
29345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29347#define $ac_func innocuous_$ac_func
29348
29349/* System header to define __stub macros and hopefully few prototypes,
29350 which can conflict with char $ac_func (); below.
29351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29352 <limits.h> exists even on freestanding compilers. */
29353
29354#ifdef __STDC__
29355# include <limits.h>
29356#else
29357# include <assert.h>
29358#endif
29359
29360#undef $ac_func
29361
29362/* Override any GCC internal prototype to avoid an error.
29363 Use char because int might match the return type of a GCC
29364 builtin and then its argument prototype would still apply. */
29365#ifdef __cplusplus
29366extern "C"
29367#endif
29368char $ac_func ();
29369/* The GNU C library defines this for functions which it implements
29370 to always fail with ENOSYS. Some functions are actually named
29371 something starting with __ and the normal name is an alias. */
29372#if defined __stub_$ac_func || defined __stub___$ac_func
29373choke me
29374#endif
29375
29376int
29377main ()
29378{
29379return $ac_func ();
29380 ;
29381 return 0;
29382}
29383_ACEOF
29384rm -f conftest.$ac_objext conftest$ac_exeext
29385if { (ac_try="$ac_link"
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_link") 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
Edwin Török20176752008-10-22 09:56:27 +000029397 (exit $ac_status); } && {
29398 test -z "$ac_c_werror_flag" ||
29399 test ! -s conftest.err
29400 } && test -s conftest$ac_exeext &&
29401 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029402 eval "$as_ac_var=yes"
29403else
29404 echo "$as_me: failed program was:" >&5
29405sed 's/^/| /' conftest.$ac_ext >&5
29406
29407 eval "$as_ac_var=no"
29408fi
29409
Edwin Török20176752008-10-22 09:56:27 +000029410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029411 conftest$ac_exeext conftest.$ac_ext
29412fi
29413ac_res=`eval echo '${'$as_ac_var'}'`
29414 { echo "$as_me:$LINENO: result: $ac_res" >&5
29415echo "${ECHO_T}$ac_res" >&6; }
29416if test `eval echo '${'$as_ac_var'}'` = yes; then
29417 cat >>confdefs.h <<_ACEOF
29418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29419_ACEOF
29420
29421fi
29422done
29423
29424
29425
29426
29427
29428for ac_func in setjmp longjmp sigsetjmp siglongjmp
29429do
29430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29431{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29433if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29434 echo $ECHO_N "(cached) $ECHO_C" >&6
29435else
29436 cat >conftest.$ac_ext <<_ACEOF
29437/* confdefs.h. */
29438_ACEOF
29439cat confdefs.h >>conftest.$ac_ext
29440cat >>conftest.$ac_ext <<_ACEOF
29441/* end confdefs.h. */
29442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29444#define $ac_func innocuous_$ac_func
29445
29446/* System header to define __stub macros and hopefully few prototypes,
29447 which can conflict with char $ac_func (); below.
29448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29449 <limits.h> exists even on freestanding compilers. */
29450
29451#ifdef __STDC__
29452# include <limits.h>
29453#else
29454# include <assert.h>
29455#endif
29456
29457#undef $ac_func
29458
29459/* Override any GCC internal prototype to avoid an error.
29460 Use char because int might match the return type of a GCC
29461 builtin and then its argument prototype would still apply. */
29462#ifdef __cplusplus
29463extern "C"
29464#endif
29465char $ac_func ();
29466/* The GNU C library defines this for functions which it implements
29467 to always fail with ENOSYS. Some functions are actually named
29468 something starting with __ and the normal name is an alias. */
29469#if defined __stub_$ac_func || defined __stub___$ac_func
29470choke me
29471#endif
29472
29473int
29474main ()
29475{
29476return $ac_func ();
29477 ;
29478 return 0;
29479}
29480_ACEOF
29481rm -f conftest.$ac_objext conftest$ac_exeext
29482if { (ac_try="$ac_link"
29483case "(($ac_try" in
29484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485 *) ac_try_echo=$ac_try;;
29486esac
29487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29488 (eval "$ac_link") 2>conftest.er1
29489 ac_status=$?
29490 grep -v '^ *+' conftest.er1 >conftest.err
29491 rm -f conftest.er1
29492 cat conftest.err >&5
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000029494 (exit $ac_status); } && {
29495 test -z "$ac_c_werror_flag" ||
29496 test ! -s conftest.err
29497 } && test -s conftest$ac_exeext &&
29498 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029499 eval "$as_ac_var=yes"
29500else
29501 echo "$as_me: failed program was:" >&5
29502sed 's/^/| /' conftest.$ac_ext >&5
29503
29504 eval "$as_ac_var=no"
29505fi
29506
Edwin Török20176752008-10-22 09:56:27 +000029507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029508 conftest$ac_exeext conftest.$ac_ext
29509fi
29510ac_res=`eval echo '${'$as_ac_var'}'`
29511 { echo "$as_me:$LINENO: result: $ac_res" >&5
29512echo "${ECHO_T}$ac_res" >&6; }
29513if test `eval echo '${'$as_ac_var'}'` = yes; then
29514 cat >>confdefs.h <<_ACEOF
29515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29516_ACEOF
29517
29518fi
29519done
29520
29521{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29522echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29523if test "${llvm_cv_c_printf_a+set}" = set; then
29524 echo $ECHO_N "(cached) $ECHO_C" >&6
29525else
29526 ac_ext=c
29527ac_cpp='$CPP $CPPFLAGS'
29528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29530ac_compiler_gnu=$ac_cv_c_compiler_gnu
29531
29532 if test "$cross_compiling" = yes; then
29533 llvmac_cv_c_printf_a=no
29534else
29535 cat >conftest.$ac_ext <<_ACEOF
29536
29537 /* confdefs.h. */
29538_ACEOF
29539cat confdefs.h >>conftest.$ac_ext
29540cat >>conftest.$ac_ext <<_ACEOF
29541/* end confdefs.h. */
29542
29543#include <stdio.h>
29544#include <stdlib.h>
29545
29546int
29547main ()
29548{
29549
29550volatile double A, B;
29551char Buffer[100];
29552A = 1;
29553A /= 10.0;
29554sprintf(Buffer, "%a", A);
29555B = atof(Buffer);
29556if (A != B)
29557 return (1);
29558if (A != 0x1.999999999999ap-4)
29559 return (1);
29560return (0);
29561 ;
29562 return 0;
29563}
29564_ACEOF
29565rm -f conftest$ac_exeext
29566if { (ac_try="$ac_link"
29567case "(($ac_try" in
29568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569 *) ac_try_echo=$ac_try;;
29570esac
29571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572 (eval "$ac_link") 2>&5
29573 ac_status=$?
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29576 { (case "(($ac_try" in
29577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29578 *) ac_try_echo=$ac_try;;
29579esac
29580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29581 (eval "$ac_try") 2>&5
29582 ac_status=$?
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); }; }; then
29585 llvm_cv_c_printf_a=yes
29586else
29587 echo "$as_me: program exited with status $ac_status" >&5
29588echo "$as_me: failed program was:" >&5
29589sed 's/^/| /' conftest.$ac_ext >&5
29590
29591( exit $ac_status )
29592llvmac_cv_c_printf_a=no
29593fi
29594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29595fi
29596
29597
29598 ac_ext=c
29599ac_cpp='$CPP $CPPFLAGS'
29600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29602ac_compiler_gnu=$ac_cv_c_compiler_gnu
29603
29604fi
29605{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29606echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29607 if test "$llvm_cv_c_printf_a" = "yes"; then
29608
29609cat >>confdefs.h <<\_ACEOF
29610#define HAVE_PRINTF_A 1
29611_ACEOF
29612
29613 fi
29614
29615# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29616# for constant arguments. Useless!
29617{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
29618echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29619if test "${ac_cv_working_alloca_h+set}" = set; then
29620 echo $ECHO_N "(cached) $ECHO_C" >&6
29621else
29622 cat >conftest.$ac_ext <<_ACEOF
29623/* confdefs.h. */
29624_ACEOF
29625cat confdefs.h >>conftest.$ac_ext
29626cat >>conftest.$ac_ext <<_ACEOF
29627/* end confdefs.h. */
29628#include <alloca.h>
29629int
29630main ()
29631{
29632char *p = (char *) alloca (2 * sizeof (int));
29633 if (p) return 0;
29634 ;
29635 return 0;
29636}
29637_ACEOF
29638rm -f conftest.$ac_objext conftest$ac_exeext
29639if { (ac_try="$ac_link"
29640case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29643esac
29644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_link") 2>conftest.er1
29646 ac_status=$?
29647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000029651 (exit $ac_status); } && {
29652 test -z "$ac_c_werror_flag" ||
29653 test ! -s conftest.err
29654 } && test -s conftest$ac_exeext &&
29655 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029656 ac_cv_working_alloca_h=yes
29657else
29658 echo "$as_me: failed program was:" >&5
29659sed 's/^/| /' conftest.$ac_ext >&5
29660
29661 ac_cv_working_alloca_h=no
29662fi
29663
Edwin Török20176752008-10-22 09:56:27 +000029664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029665 conftest$ac_exeext conftest.$ac_ext
29666fi
29667{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29668echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29669if test $ac_cv_working_alloca_h = yes; then
29670
29671cat >>confdefs.h <<\_ACEOF
29672#define HAVE_ALLOCA_H 1
29673_ACEOF
29674
29675fi
29676
29677{ echo "$as_me:$LINENO: checking for alloca" >&5
29678echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29679if test "${ac_cv_func_alloca_works+set}" = set; then
29680 echo $ECHO_N "(cached) $ECHO_C" >&6
29681else
29682 cat >conftest.$ac_ext <<_ACEOF
29683/* confdefs.h. */
29684_ACEOF
29685cat confdefs.h >>conftest.$ac_ext
29686cat >>conftest.$ac_ext <<_ACEOF
29687/* end confdefs.h. */
29688#ifdef __GNUC__
29689# define alloca __builtin_alloca
29690#else
29691# ifdef _MSC_VER
29692# include <malloc.h>
29693# define alloca _alloca
29694# else
Edwin Török20176752008-10-22 09:56:27 +000029695# ifdef HAVE_ALLOCA_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029696# include <alloca.h>
29697# else
29698# ifdef _AIX
29699 #pragma alloca
29700# else
29701# ifndef alloca /* predefined by HP cc +Olibcalls */
29702char *alloca ();
29703# endif
29704# endif
29705# endif
29706# endif
29707#endif
29708
29709int
29710main ()
29711{
29712char *p = (char *) alloca (1);
29713 if (p) return 0;
29714 ;
29715 return 0;
29716}
29717_ACEOF
29718rm -f conftest.$ac_objext conftest$ac_exeext
29719if { (ac_try="$ac_link"
29720case "(($ac_try" in
29721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722 *) ac_try_echo=$ac_try;;
29723esac
29724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725 (eval "$ac_link") 2>conftest.er1
29726 ac_status=$?
29727 grep -v '^ *+' conftest.er1 >conftest.err
29728 rm -f conftest.er1
29729 cat conftest.err >&5
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000029731 (exit $ac_status); } && {
29732 test -z "$ac_c_werror_flag" ||
29733 test ! -s conftest.err
29734 } && test -s conftest$ac_exeext &&
29735 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029736 ac_cv_func_alloca_works=yes
29737else
29738 echo "$as_me: failed program was:" >&5
29739sed 's/^/| /' conftest.$ac_ext >&5
29740
29741 ac_cv_func_alloca_works=no
29742fi
29743
Edwin Török20176752008-10-22 09:56:27 +000029744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029745 conftest$ac_exeext conftest.$ac_ext
29746fi
29747{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29748echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29749
29750if test $ac_cv_func_alloca_works = yes; then
29751
29752cat >>confdefs.h <<\_ACEOF
29753#define HAVE_ALLOCA 1
29754_ACEOF
29755
29756else
29757 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29758# that cause trouble. Some versions do not even contain alloca or
29759# contain a buggy version. If you still want to use their alloca,
29760# use ar to extract alloca.o from them instead of compiling alloca.c.
29761
29762ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29763
29764cat >>confdefs.h <<\_ACEOF
29765#define C_ALLOCA 1
29766_ACEOF
29767
29768
29769{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29770echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29771if test "${ac_cv_os_cray+set}" = set; then
29772 echo $ECHO_N "(cached) $ECHO_C" >&6
29773else
29774 cat >conftest.$ac_ext <<_ACEOF
29775/* confdefs.h. */
29776_ACEOF
29777cat confdefs.h >>conftest.$ac_ext
29778cat >>conftest.$ac_ext <<_ACEOF
29779/* end confdefs.h. */
29780#if defined CRAY && ! defined CRAY2
29781webecray
29782#else
29783wenotbecray
29784#endif
29785
29786_ACEOF
29787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29788 $EGREP "webecray" >/dev/null 2>&1; then
29789 ac_cv_os_cray=yes
29790else
29791 ac_cv_os_cray=no
29792fi
29793rm -f conftest*
29794
29795fi
29796{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29797echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29798if test $ac_cv_os_cray = yes; then
29799 for ac_func in _getb67 GETB67 getb67; do
29800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29801{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29802echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29803if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29805else
29806 cat >conftest.$ac_ext <<_ACEOF
29807/* confdefs.h. */
29808_ACEOF
29809cat confdefs.h >>conftest.$ac_ext
29810cat >>conftest.$ac_ext <<_ACEOF
29811/* end confdefs.h. */
29812/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29814#define $ac_func innocuous_$ac_func
29815
29816/* System header to define __stub macros and hopefully few prototypes,
29817 which can conflict with char $ac_func (); below.
29818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29819 <limits.h> exists even on freestanding compilers. */
29820
29821#ifdef __STDC__
29822# include <limits.h>
29823#else
29824# include <assert.h>
29825#endif
29826
29827#undef $ac_func
29828
29829/* Override any GCC internal prototype to avoid an error.
29830 Use char because int might match the return type of a GCC
29831 builtin and then its argument prototype would still apply. */
29832#ifdef __cplusplus
29833extern "C"
29834#endif
29835char $ac_func ();
29836/* The GNU C library defines this for functions which it implements
29837 to always fail with ENOSYS. Some functions are actually named
29838 something starting with __ and the normal name is an alias. */
29839#if defined __stub_$ac_func || defined __stub___$ac_func
29840choke me
29841#endif
29842
29843int
29844main ()
29845{
29846return $ac_func ();
29847 ;
29848 return 0;
29849}
29850_ACEOF
29851rm -f conftest.$ac_objext conftest$ac_exeext
29852if { (ac_try="$ac_link"
29853case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29856esac
29857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858 (eval "$ac_link") 2>conftest.er1
29859 ac_status=$?
29860 grep -v '^ *+' conftest.er1 >conftest.err
29861 rm -f conftest.er1
29862 cat conftest.err >&5
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000029864 (exit $ac_status); } && {
29865 test -z "$ac_c_werror_flag" ||
29866 test ! -s conftest.err
29867 } && test -s conftest$ac_exeext &&
29868 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029869 eval "$as_ac_var=yes"
29870else
29871 echo "$as_me: failed program was:" >&5
29872sed 's/^/| /' conftest.$ac_ext >&5
29873
29874 eval "$as_ac_var=no"
29875fi
29876
Edwin Török20176752008-10-22 09:56:27 +000029877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029878 conftest$ac_exeext conftest.$ac_ext
29879fi
29880ac_res=`eval echo '${'$as_ac_var'}'`
29881 { echo "$as_me:$LINENO: result: $ac_res" >&5
29882echo "${ECHO_T}$ac_res" >&6; }
29883if test `eval echo '${'$as_ac_var'}'` = yes; then
29884
29885cat >>confdefs.h <<_ACEOF
29886#define CRAY_STACKSEG_END $ac_func
29887_ACEOF
29888
29889 break
29890fi
29891
29892 done
29893fi
29894
29895{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29896echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29897if test "${ac_cv_c_stack_direction+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29899else
29900 if test "$cross_compiling" = yes; then
29901 ac_cv_c_stack_direction=0
29902else
29903 cat >conftest.$ac_ext <<_ACEOF
29904/* confdefs.h. */
29905_ACEOF
29906cat confdefs.h >>conftest.$ac_ext
29907cat >>conftest.$ac_ext <<_ACEOF
29908/* end confdefs.h. */
29909$ac_includes_default
29910int
29911find_stack_direction ()
29912{
29913 static char *addr = 0;
29914 auto char dummy;
29915 if (addr == 0)
29916 {
29917 addr = &dummy;
29918 return find_stack_direction ();
29919 }
29920 else
29921 return (&dummy > addr) ? 1 : -1;
29922}
29923
29924int
29925main ()
29926{
29927 return find_stack_direction () < 0;
29928}
29929_ACEOF
29930rm -f conftest$ac_exeext
29931if { (ac_try="$ac_link"
29932case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29935esac
29936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_link") 2>&5
29938 ac_status=$?
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29941 { (case "(($ac_try" in
29942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29943 *) ac_try_echo=$ac_try;;
29944esac
29945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29946 (eval "$ac_try") 2>&5
29947 ac_status=$?
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; }; then
29950 ac_cv_c_stack_direction=1
29951else
29952 echo "$as_me: program exited with status $ac_status" >&5
29953echo "$as_me: failed program was:" >&5
29954sed 's/^/| /' conftest.$ac_ext >&5
29955
29956( exit $ac_status )
29957ac_cv_c_stack_direction=-1
29958fi
29959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29960fi
29961
29962
29963fi
29964{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29965echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29966
29967cat >>confdefs.h <<_ACEOF
29968#define STACK_DIRECTION $ac_cv_c_stack_direction
29969_ACEOF
29970
29971
29972fi
29973
29974
29975{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29976echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
29977if test "${ac_cv_func_rand48+set}" = set; then
29978 echo $ECHO_N "(cached) $ECHO_C" >&6
29979else
29980 ac_ext=cpp
29981ac_cpp='$CXXCPP $CPPFLAGS'
29982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29985
29986 cat >conftest.$ac_ext <<_ACEOF
29987/* confdefs.h. */
29988_ACEOF
29989cat confdefs.h >>conftest.$ac_ext
29990cat >>conftest.$ac_ext <<_ACEOF
29991/* end confdefs.h. */
29992#include <stdlib.h>
29993int
29994main ()
29995{
29996srand48(0);lrand48();drand48();
29997 ;
29998 return 0;
29999}
30000_ACEOF
30001rm -f conftest.$ac_objext
30002if { (ac_try="$ac_compile"
30003case "(($ac_try" in
30004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30005 *) ac_try_echo=$ac_try;;
30006esac
30007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30008 (eval "$ac_compile") 2>conftest.er1
30009 ac_status=$?
30010 grep -v '^ *+' conftest.er1 >conftest.err
30011 rm -f conftest.er1
30012 cat conftest.err >&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030014 (exit $ac_status); } && {
30015 test -z "$ac_cxx_werror_flag" ||
30016 test ! -s conftest.err
30017 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030018 ac_cv_func_rand48=yes
30019else
30020 echo "$as_me: failed program was:" >&5
30021sed 's/^/| /' conftest.$ac_ext >&5
30022
30023 ac_cv_func_rand48=no
30024fi
30025
30026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30027 ac_ext=c
30028ac_cpp='$CPP $CPPFLAGS'
30029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30031ac_compiler_gnu=$ac_cv_c_compiler_gnu
30032
30033fi
30034{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30035echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30036
30037if test "$ac_cv_func_rand48" = "yes" ; then
30038
30039cat >>confdefs.h <<\_ACEOF
30040#define HAVE_RAND48 1
30041_ACEOF
30042
30043fi
30044
30045
30046{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30047echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30048if test "${ac_cv_cxx_namespaces+set}" = set; then
30049 echo $ECHO_N "(cached) $ECHO_C" >&6
30050else
30051 ac_ext=cpp
30052ac_cpp='$CXXCPP $CPPFLAGS'
30053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30056
30057 cat >conftest.$ac_ext <<_ACEOF
30058/* confdefs.h. */
30059_ACEOF
30060cat confdefs.h >>conftest.$ac_ext
30061cat >>conftest.$ac_ext <<_ACEOF
30062/* end confdefs.h. */
30063namespace Outer { namespace Inner { int i = 0; }}
30064int
30065main ()
30066{
30067using namespace Outer::Inner; return i;
30068 ;
30069 return 0;
30070}
30071_ACEOF
30072rm -f conftest.$ac_objext
30073if { (ac_try="$ac_compile"
30074case "(($ac_try" in
30075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076 *) ac_try_echo=$ac_try;;
30077esac
30078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079 (eval "$ac_compile") 2>conftest.er1
30080 ac_status=$?
30081 grep -v '^ *+' conftest.er1 >conftest.err
30082 rm -f conftest.er1
30083 cat conftest.err >&5
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030085 (exit $ac_status); } && {
30086 test -z "$ac_cxx_werror_flag" ||
30087 test ! -s conftest.err
30088 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030089 ac_cv_cxx_namespaces=yes
30090else
30091 echo "$as_me: failed program was:" >&5
30092sed 's/^/| /' conftest.$ac_ext >&5
30093
30094 ac_cv_cxx_namespaces=no
30095fi
30096
30097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30098 ac_ext=c
30099ac_cpp='$CPP $CPPFLAGS'
30100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30102ac_compiler_gnu=$ac_cv_c_compiler_gnu
30103
30104
30105fi
30106{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30107echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
30108if test "$ac_cv_cxx_namespaces" = yes; then
30109
30110cat >>confdefs.h <<\_ACEOF
30111#define HAVE_NAMESPACES
30112_ACEOF
30113
30114fi
30115
30116{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
30117echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
30118if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
30119 echo $ECHO_N "(cached) $ECHO_C" >&6
30120else
30121
30122 ac_ext=cpp
30123ac_cpp='$CXXCPP $CPPFLAGS'
30124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30127
30128 cat >conftest.$ac_ext <<_ACEOF
30129/* confdefs.h. */
30130_ACEOF
30131cat confdefs.h >>conftest.$ac_ext
30132cat >>conftest.$ac_ext <<_ACEOF
30133/* end confdefs.h. */
30134#include <ext/hash_map>
30135#ifdef HAVE_NAMESPACES
30136using namespace std;
30137#endif
30138int
30139main ()
30140{
30141hash_map<int, int> t;
30142 ;
30143 return 0;
30144}
30145_ACEOF
30146rm -f conftest.$ac_objext
30147if { (ac_try="$ac_compile"
30148case "(($ac_try" in
30149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150 *) ac_try_echo=$ac_try;;
30151esac
30152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153 (eval "$ac_compile") 2>conftest.er1
30154 ac_status=$?
30155 grep -v '^ *+' conftest.er1 >conftest.err
30156 rm -f conftest.er1
30157 cat conftest.err >&5
30158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030159 (exit $ac_status); } && {
30160 test -z "$ac_cxx_werror_flag" ||
30161 test ! -s conftest.err
30162 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030163 ac_cv_cxx_have_std_ext_hash_map=yes
30164else
30165 echo "$as_me: failed program was:" >&5
30166sed 's/^/| /' conftest.$ac_ext >&5
30167
30168 ac_cv_cxx_have_std_ext_hash_map=no
30169fi
30170
30171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30172 ac_ext=c
30173ac_cpp='$CPP $CPPFLAGS'
30174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30176ac_compiler_gnu=$ac_cv_c_compiler_gnu
30177
30178fi
30179{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
30180echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
30181 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
30182 then
30183
30184cat >>confdefs.h <<\_ACEOF
30185#define HAVE_STD_EXT_HASH_MAP 1
30186_ACEOF
30187
30188 else
30189
30190cat >>confdefs.h <<\_ACEOF
30191#define HAVE_STD_EXT_HASH_MAP 0
30192_ACEOF
30193
30194 fi
30195
30196 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30197echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
30198if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30199 echo $ECHO_N "(cached) $ECHO_C" >&6
30200else
30201
30202 ac_ext=cpp
30203ac_cpp='$CXXCPP $CPPFLAGS'
30204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30207
30208 cat >conftest.$ac_ext <<_ACEOF
30209/* confdefs.h. */
30210_ACEOF
30211cat confdefs.h >>conftest.$ac_ext
30212cat >>conftest.$ac_ext <<_ACEOF
30213/* end confdefs.h. */
30214#include <ext/hash_map>
30215#ifdef HAVE_NAMESPACES
30216using namespace __gnu_cxx;
30217#endif
30218int
30219main ()
30220{
30221hash_map<int,int> t;
30222 ;
30223 return 0;
30224}
30225_ACEOF
30226rm -f conftest.$ac_objext
30227if { (ac_try="$ac_compile"
30228case "(($ac_try" in
30229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230 *) ac_try_echo=$ac_try;;
30231esac
30232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233 (eval "$ac_compile") 2>conftest.er1
30234 ac_status=$?
30235 grep -v '^ *+' conftest.er1 >conftest.err
30236 rm -f conftest.er1
30237 cat conftest.err >&5
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030239 (exit $ac_status); } && {
30240 test -z "$ac_cxx_werror_flag" ||
30241 test ! -s conftest.err
30242 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030243 ac_cv_cxx_have_gnu_ext_hash_map=yes
30244else
30245 echo "$as_me: failed program was:" >&5
30246sed 's/^/| /' conftest.$ac_ext >&5
30247
30248 ac_cv_cxx_have_gnu_ext_hash_map=no
30249fi
30250
30251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30252 ac_ext=c
30253ac_cpp='$CPP $CPPFLAGS'
30254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30256ac_compiler_gnu=$ac_cv_c_compiler_gnu
30257
30258fi
30259{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30260echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30261 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30262 then
30263
30264cat >>confdefs.h <<\_ACEOF
30265#define HAVE_GNU_EXT_HASH_MAP 1
30266_ACEOF
30267
30268 else
30269
30270cat >>confdefs.h <<\_ACEOF
30271#define HAVE_GNU_EXT_HASH_MAP 0
30272_ACEOF
30273
30274 fi
30275
30276 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30277echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
30278if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30279 echo $ECHO_N "(cached) $ECHO_C" >&6
30280else
30281
30282 ac_ext=cpp
30283ac_cpp='$CXXCPP $CPPFLAGS'
30284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30287
30288 cat >conftest.$ac_ext <<_ACEOF
30289/* confdefs.h. */
30290_ACEOF
30291cat confdefs.h >>conftest.$ac_ext
30292cat >>conftest.$ac_ext <<_ACEOF
30293/* end confdefs.h. */
30294#include <hash_map>
30295int
30296main ()
30297{
30298hash_map<int,int> t;
30299 ;
30300 return 0;
30301}
30302_ACEOF
30303rm -f conftest.$ac_objext
30304if { (ac_try="$ac_compile"
30305case "(($ac_try" in
30306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307 *) ac_try_echo=$ac_try;;
30308esac
30309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30310 (eval "$ac_compile") 2>conftest.er1
30311 ac_status=$?
30312 grep -v '^ *+' conftest.er1 >conftest.err
30313 rm -f conftest.er1
30314 cat conftest.err >&5
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030316 (exit $ac_status); } && {
30317 test -z "$ac_cxx_werror_flag" ||
30318 test ! -s conftest.err
30319 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030320 ac_cv_cxx_have_global_hash_map=yes
30321else
30322 echo "$as_me: failed program was:" >&5
30323sed 's/^/| /' conftest.$ac_ext >&5
30324
30325 ac_cv_cxx_have_global_hash_map=no
30326fi
30327
30328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30329 ac_ext=c
30330ac_cpp='$CPP $CPPFLAGS'
30331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30333ac_compiler_gnu=$ac_cv_c_compiler_gnu
30334
30335fi
30336{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30337echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30338 if test "$ac_cv_cxx_have_global_hash_map" = yes
30339 then
30340
30341cat >>confdefs.h <<\_ACEOF
30342#define HAVE_GLOBAL_HASH_MAP 1
30343_ACEOF
30344
30345 else
30346
30347cat >>confdefs.h <<\_ACEOF
30348#define HAVE_GLOBAL_HASH_MAP 0
30349_ACEOF
30350
30351 fi
30352
30353{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30354echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
30355if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30356 echo $ECHO_N "(cached) $ECHO_C" >&6
30357else
30358
30359 ac_ext=cpp
30360ac_cpp='$CXXCPP $CPPFLAGS'
30361ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30362ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30364
30365 cat >conftest.$ac_ext <<_ACEOF
30366/* confdefs.h. */
30367_ACEOF
30368cat confdefs.h >>conftest.$ac_ext
30369cat >>conftest.$ac_ext <<_ACEOF
30370/* end confdefs.h. */
30371#include <ext/hash_set>
30372#ifdef HAVE_NAMESPACES
30373using namespace std;
30374#endif
30375int
30376main ()
30377{
30378hash_set<int> t;
30379 ;
30380 return 0;
30381}
30382_ACEOF
30383rm -f conftest.$ac_objext
30384if { (ac_try="$ac_compile"
30385case "(($ac_try" in
30386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30387 *) ac_try_echo=$ac_try;;
30388esac
30389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30390 (eval "$ac_compile") 2>conftest.er1
30391 ac_status=$?
30392 grep -v '^ *+' conftest.er1 >conftest.err
30393 rm -f conftest.er1
30394 cat conftest.err >&5
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030396 (exit $ac_status); } && {
30397 test -z "$ac_cxx_werror_flag" ||
30398 test ! -s conftest.err
30399 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030400 ac_cv_cxx_have_std_ext_hash_set=yes
30401else
30402 echo "$as_me: failed program was:" >&5
30403sed 's/^/| /' conftest.$ac_ext >&5
30404
30405 ac_cv_cxx_have_std_ext_hash_set=no
30406fi
30407
30408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30409 ac_ext=c
30410ac_cpp='$CPP $CPPFLAGS'
30411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30413ac_compiler_gnu=$ac_cv_c_compiler_gnu
30414
30415fi
30416{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30417echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30418 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30419 then
30420
30421cat >>confdefs.h <<\_ACEOF
30422#define HAVE_STD_EXT_HASH_SET 1
30423_ACEOF
30424
30425 else
30426
30427cat >>confdefs.h <<\_ACEOF
30428#define HAVE_STD_EXT_HASH_SET 0
30429_ACEOF
30430
30431 fi
30432
30433 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30434echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
30435if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30436 echo $ECHO_N "(cached) $ECHO_C" >&6
30437else
30438
30439 ac_ext=cpp
30440ac_cpp='$CXXCPP $CPPFLAGS'
30441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30444
30445 cat >conftest.$ac_ext <<_ACEOF
30446/* confdefs.h. */
30447_ACEOF
30448cat confdefs.h >>conftest.$ac_ext
30449cat >>conftest.$ac_ext <<_ACEOF
30450/* end confdefs.h. */
30451#include <ext/hash_set>
30452#ifdef HAVE_NAMESPACES
30453using namespace __gnu_cxx;
30454#endif
30455int
30456main ()
30457{
30458hash_set<int> t;
30459 ;
30460 return 0;
30461}
30462_ACEOF
30463rm -f conftest.$ac_objext
30464if { (ac_try="$ac_compile"
30465case "(($ac_try" in
30466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467 *) ac_try_echo=$ac_try;;
30468esac
30469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30470 (eval "$ac_compile") 2>conftest.er1
30471 ac_status=$?
30472 grep -v '^ *+' conftest.er1 >conftest.err
30473 rm -f conftest.er1
30474 cat conftest.err >&5
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030476 (exit $ac_status); } && {
30477 test -z "$ac_cxx_werror_flag" ||
30478 test ! -s conftest.err
30479 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030480 ac_cv_cxx_have_gnu_ext_hash_set=yes
30481else
30482 echo "$as_me: failed program was:" >&5
30483sed 's/^/| /' conftest.$ac_ext >&5
30484
30485 ac_cv_cxx_have_gnu_ext_hash_set=no
30486fi
30487
30488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30489 ac_ext=c
30490ac_cpp='$CPP $CPPFLAGS'
30491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30493ac_compiler_gnu=$ac_cv_c_compiler_gnu
30494
30495fi
30496{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30497echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30498 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30499 then
30500
30501cat >>confdefs.h <<\_ACEOF
30502#define HAVE_GNU_EXT_HASH_SET 1
30503_ACEOF
30504
30505 else
30506
30507cat >>confdefs.h <<\_ACEOF
30508#define HAVE_GNU_EXT_HASH_SET 0
30509_ACEOF
30510
30511 fi
30512
30513 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30514echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
30515if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30516 echo $ECHO_N "(cached) $ECHO_C" >&6
30517else
30518
30519 ac_ext=cpp
30520ac_cpp='$CXXCPP $CPPFLAGS'
30521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30524
30525 cat >conftest.$ac_ext <<_ACEOF
30526/* confdefs.h. */
30527_ACEOF
30528cat confdefs.h >>conftest.$ac_ext
30529cat >>conftest.$ac_ext <<_ACEOF
30530/* end confdefs.h. */
30531#include <hash_set>
30532int
30533main ()
30534{
30535hash_set<int> t; return 0;
30536 ;
30537 return 0;
30538}
30539_ACEOF
30540rm -f conftest.$ac_objext
30541if { (ac_try="$ac_compile"
30542case "(($ac_try" in
30543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544 *) ac_try_echo=$ac_try;;
30545esac
30546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547 (eval "$ac_compile") 2>conftest.er1
30548 ac_status=$?
30549 grep -v '^ *+' conftest.er1 >conftest.err
30550 rm -f conftest.er1
30551 cat conftest.err >&5
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030553 (exit $ac_status); } && {
30554 test -z "$ac_cxx_werror_flag" ||
30555 test ! -s conftest.err
30556 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030557 ac_cv_cxx_have_global_hash_set=yes
30558else
30559 echo "$as_me: failed program was:" >&5
30560sed 's/^/| /' conftest.$ac_ext >&5
30561
30562 ac_cv_cxx_have_global_hash_set=no
30563fi
30564
30565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30566 ac_ext=c
30567ac_cpp='$CPP $CPPFLAGS'
30568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30570ac_compiler_gnu=$ac_cv_c_compiler_gnu
30571
30572fi
30573{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30574echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30575 if test "$ac_cv_cxx_have_global_hash_set" = yes
30576 then
30577
30578cat >>confdefs.h <<\_ACEOF
30579#define HAVE_GLOBAL_HASH_SET 1
30580_ACEOF
30581
30582 else
30583
30584cat >>confdefs.h <<\_ACEOF
30585#define HAVE_GLOBAL_HASH_SET 0
30586_ACEOF
30587
30588 fi
30589
30590{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30591echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30592if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30594else
30595
30596 ac_ext=cpp
30597ac_cpp='$CXXCPP $CPPFLAGS'
30598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30601
30602 cat >conftest.$ac_ext <<_ACEOF
30603/* confdefs.h. */
30604_ACEOF
30605cat confdefs.h >>conftest.$ac_ext
30606cat >>conftest.$ac_ext <<_ACEOF
30607/* end confdefs.h. */
30608#include <iterator>
30609#ifdef HAVE_NAMESPACES
30610using namespace std;
30611#endif
30612int
30613main ()
30614{
30615iterator<int,int,int> t; return 0;
30616 ;
30617 return 0;
30618}
30619_ACEOF
30620rm -f conftest.$ac_objext
30621if { (ac_try="$ac_compile"
30622case "(($ac_try" in
30623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30624 *) ac_try_echo=$ac_try;;
30625esac
30626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30627 (eval "$ac_compile") 2>conftest.er1
30628 ac_status=$?
30629 grep -v '^ *+' conftest.er1 >conftest.err
30630 rm -f conftest.er1
30631 cat conftest.err >&5
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030633 (exit $ac_status); } && {
30634 test -z "$ac_cxx_werror_flag" ||
30635 test ! -s conftest.err
30636 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030637 ac_cv_cxx_have_std_iterator=yes
30638else
30639 echo "$as_me: failed program was:" >&5
30640sed 's/^/| /' conftest.$ac_ext >&5
30641
30642 ac_cv_cxx_have_std_iterator=no
30643fi
30644
30645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30646 ac_ext=c
30647ac_cpp='$CPP $CPPFLAGS'
30648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30650ac_compiler_gnu=$ac_cv_c_compiler_gnu
30651
30652
30653fi
30654{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30655echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30656if test "$ac_cv_cxx_have_std_iterator" = yes
30657then
30658
30659cat >>confdefs.h <<\_ACEOF
30660#define HAVE_STD_ITERATOR 1
30661_ACEOF
30662
30663else
30664
30665cat >>confdefs.h <<\_ACEOF
30666#define HAVE_STD_ITERATOR 0
30667_ACEOF
30668
30669fi
30670
30671{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30672echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30673if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30674 echo $ECHO_N "(cached) $ECHO_C" >&6
30675else
30676
30677 ac_ext=cpp
30678ac_cpp='$CXXCPP $CPPFLAGS'
30679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30682
30683 cat >conftest.$ac_ext <<_ACEOF
30684/* confdefs.h. */
30685_ACEOF
30686cat confdefs.h >>conftest.$ac_ext
30687cat >>conftest.$ac_ext <<_ACEOF
30688/* end confdefs.h. */
30689#include <iterator>
30690#ifdef HAVE_NAMESPACES
30691using namespace std;
30692#endif
30693int
30694main ()
30695{
30696bidirectional_iterator<int,int> t; return 0;
30697 ;
30698 return 0;
30699}
30700_ACEOF
30701rm -f conftest.$ac_objext
30702if { (ac_try="$ac_compile"
30703case "(($ac_try" in
30704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30705 *) ac_try_echo=$ac_try;;
30706esac
30707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30708 (eval "$ac_compile") 2>conftest.er1
30709 ac_status=$?
30710 grep -v '^ *+' conftest.er1 >conftest.err
30711 rm -f conftest.er1
30712 cat conftest.err >&5
30713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030714 (exit $ac_status); } && {
30715 test -z "$ac_cxx_werror_flag" ||
30716 test ! -s conftest.err
30717 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030718 ac_cv_cxx_have_bi_iterator=yes
30719else
30720 echo "$as_me: failed program was:" >&5
30721sed 's/^/| /' conftest.$ac_ext >&5
30722
30723 ac_cv_cxx_have_bi_iterator=no
30724fi
30725
30726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30727 ac_ext=c
30728ac_cpp='$CPP $CPPFLAGS'
30729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30731ac_compiler_gnu=$ac_cv_c_compiler_gnu
30732
30733
30734fi
30735{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30736echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30737if test "$ac_cv_cxx_have_bi_iterator" = yes
30738then
30739
30740cat >>confdefs.h <<\_ACEOF
30741#define HAVE_BI_ITERATOR 1
30742_ACEOF
30743
30744else
30745
30746cat >>confdefs.h <<\_ACEOF
30747#define HAVE_BI_ITERATOR 0
30748_ACEOF
30749
30750fi
30751
30752{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30753echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30754if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30755 echo $ECHO_N "(cached) $ECHO_C" >&6
30756else
30757
30758 ac_ext=cpp
30759ac_cpp='$CXXCPP $CPPFLAGS'
30760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30763
30764 cat >conftest.$ac_ext <<_ACEOF
30765/* confdefs.h. */
30766_ACEOF
30767cat confdefs.h >>conftest.$ac_ext
30768cat >>conftest.$ac_ext <<_ACEOF
30769/* end confdefs.h. */
30770#include <iterator>
30771#ifdef HAVE_NAMESPACES
30772using namespace std;
30773#endif
30774int
30775main ()
30776{
30777forward_iterator<int,int> t; return 0;
30778 ;
30779 return 0;
30780}
30781_ACEOF
30782rm -f conftest.$ac_objext
30783if { (ac_try="$ac_compile"
30784case "(($ac_try" in
30785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30786 *) ac_try_echo=$ac_try;;
30787esac
30788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30789 (eval "$ac_compile") 2>conftest.er1
30790 ac_status=$?
30791 grep -v '^ *+' conftest.er1 >conftest.err
30792 rm -f conftest.er1
30793 cat conftest.err >&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030795 (exit $ac_status); } && {
30796 test -z "$ac_cxx_werror_flag" ||
30797 test ! -s conftest.err
30798 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030799 ac_cv_cxx_have_fwd_iterator=yes
30800else
30801 echo "$as_me: failed program was:" >&5
30802sed 's/^/| /' conftest.$ac_ext >&5
30803
30804 ac_cv_cxx_have_fwd_iterator=no
30805fi
30806
30807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30808 ac_ext=c
30809ac_cpp='$CPP $CPPFLAGS'
30810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30812ac_compiler_gnu=$ac_cv_c_compiler_gnu
30813
30814
30815fi
30816{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30817echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30818if test "$ac_cv_cxx_have_fwd_iterator" = yes
30819then
30820
30821cat >>confdefs.h <<\_ACEOF
30822#define HAVE_FWD_ITERATOR 1
30823_ACEOF
30824
30825else
30826
30827cat >>confdefs.h <<\_ACEOF
30828#define HAVE_FWD_ITERATOR 0
30829_ACEOF
30830
30831fi
30832
30833
30834{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30835echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30836if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30837 echo $ECHO_N "(cached) $ECHO_C" >&6
30838else
30839 ac_ext=cpp
30840ac_cpp='$CXXCPP $CPPFLAGS'
30841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30844
30845 cat >conftest.$ac_ext <<_ACEOF
30846/* confdefs.h. */
30847_ACEOF
30848cat confdefs.h >>conftest.$ac_ext
30849cat >>conftest.$ac_ext <<_ACEOF
30850/* end confdefs.h. */
30851#include <math.h>
30852int
30853main ()
30854{
30855float f; isnan(f);
30856 ;
30857 return 0;
30858}
30859_ACEOF
30860rm -f conftest.$ac_objext
30861if { (ac_try="$ac_compile"
30862case "(($ac_try" in
30863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30864 *) ac_try_echo=$ac_try;;
30865esac
30866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30867 (eval "$ac_compile") 2>conftest.er1
30868 ac_status=$?
30869 grep -v '^ *+' conftest.er1 >conftest.err
30870 rm -f conftest.er1
30871 cat conftest.err >&5
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030873 (exit $ac_status); } && {
30874 test -z "$ac_cxx_werror_flag" ||
30875 test ! -s conftest.err
30876 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030877 ac_cv_func_isnan_in_math_h=yes
30878else
30879 echo "$as_me: failed program was:" >&5
30880sed 's/^/| /' conftest.$ac_ext >&5
30881
30882 ac_cv_func_isnan_in_math_h=no
30883fi
30884
30885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30886 ac_ext=c
30887ac_cpp='$CPP $CPPFLAGS'
30888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30890ac_compiler_gnu=$ac_cv_c_compiler_gnu
30891
30892fi
30893{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30894echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30895
30896
30897if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30898
30899cat >>confdefs.h <<\_ACEOF
30900#define HAVE_ISNAN_IN_MATH_H 1
30901_ACEOF
30902
30903fi
30904
30905{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30906echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30907if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30908 echo $ECHO_N "(cached) $ECHO_C" >&6
30909else
30910 ac_ext=cpp
30911ac_cpp='$CXXCPP $CPPFLAGS'
30912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30915
30916 cat >conftest.$ac_ext <<_ACEOF
30917/* confdefs.h. */
30918_ACEOF
30919cat confdefs.h >>conftest.$ac_ext
30920cat >>conftest.$ac_ext <<_ACEOF
30921/* end confdefs.h. */
30922#include <cmath>
30923int
30924main ()
30925{
30926float f; isnan(f);
30927 ;
30928 return 0;
30929}
30930_ACEOF
30931rm -f conftest.$ac_objext
30932if { (ac_try="$ac_compile"
30933case "(($ac_try" in
30934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935 *) ac_try_echo=$ac_try;;
30936esac
30937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938 (eval "$ac_compile") 2>conftest.er1
30939 ac_status=$?
30940 grep -v '^ *+' conftest.er1 >conftest.err
30941 rm -f conftest.er1
30942 cat conftest.err >&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000030944 (exit $ac_status); } && {
30945 test -z "$ac_cxx_werror_flag" ||
30946 test ! -s conftest.err
30947 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030948 ac_cv_func_isnan_in_cmath=yes
30949else
30950 echo "$as_me: failed program was:" >&5
30951sed 's/^/| /' conftest.$ac_ext >&5
30952
30953 ac_cv_func_isnan_in_cmath=no
30954fi
30955
30956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30957 ac_ext=c
30958ac_cpp='$CPP $CPPFLAGS'
30959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30961ac_compiler_gnu=$ac_cv_c_compiler_gnu
30962
30963fi
30964{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30965echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30966
30967if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30968
30969cat >>confdefs.h <<\_ACEOF
30970#define HAVE_ISNAN_IN_CMATH 1
30971_ACEOF
30972
30973fi
30974
30975{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30976echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30977if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30978 echo $ECHO_N "(cached) $ECHO_C" >&6
30979else
30980 ac_ext=cpp
30981ac_cpp='$CXXCPP $CPPFLAGS'
30982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30985
30986 cat >conftest.$ac_ext <<_ACEOF
30987/* confdefs.h. */
30988_ACEOF
30989cat confdefs.h >>conftest.$ac_ext
30990cat >>conftest.$ac_ext <<_ACEOF
30991/* end confdefs.h. */
30992#include <cmath>
30993int
30994main ()
30995{
30996float f; std::isnan(f);
30997 ;
30998 return 0;
30999}
31000_ACEOF
31001rm -f conftest.$ac_objext
31002if { (ac_try="$ac_compile"
31003case "(($ac_try" in
31004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005 *) ac_try_echo=$ac_try;;
31006esac
31007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008 (eval "$ac_compile") 2>conftest.er1
31009 ac_status=$?
31010 grep -v '^ *+' conftest.er1 >conftest.err
31011 rm -f conftest.er1
31012 cat conftest.err >&5
31013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000031014 (exit $ac_status); } && {
31015 test -z "$ac_cxx_werror_flag" ||
31016 test ! -s conftest.err
31017 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031018 ac_cv_func_std_isnan_in_cmath=yes
31019else
31020 echo "$as_me: failed program was:" >&5
31021sed 's/^/| /' conftest.$ac_ext >&5
31022
31023 ac_cv_func_std_isnan_in_cmath=no
31024fi
31025
31026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31027 ac_ext=c
31028ac_cpp='$CPP $CPPFLAGS'
31029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31031ac_compiler_gnu=$ac_cv_c_compiler_gnu
31032
31033fi
31034{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
31035echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
31036
31037if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
31038
31039cat >>confdefs.h <<\_ACEOF
31040#define HAVE_STD_ISNAN_IN_CMATH 1
31041_ACEOF
31042
31043fi
31044
31045
31046{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
31047echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
31048if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
31049 echo $ECHO_N "(cached) $ECHO_C" >&6
31050else
31051 ac_ext=cpp
31052ac_cpp='$CXXCPP $CPPFLAGS'
31053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31056
31057 cat >conftest.$ac_ext <<_ACEOF
31058/* confdefs.h. */
31059_ACEOF
31060cat confdefs.h >>conftest.$ac_ext
31061cat >>conftest.$ac_ext <<_ACEOF
31062/* end confdefs.h. */
31063#include <math.h>
31064int
31065main ()
31066{
31067float f; isinf(f);
31068 ;
31069 return 0;
31070}
31071_ACEOF
31072rm -f conftest.$ac_objext
31073if { (ac_try="$ac_compile"
31074case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31077esac
31078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_compile") 2>conftest.er1
31080 ac_status=$?
31081 grep -v '^ *+' conftest.er1 >conftest.err
31082 rm -f conftest.er1
31083 cat conftest.err >&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000031085 (exit $ac_status); } && {
31086 test -z "$ac_cxx_werror_flag" ||
31087 test ! -s conftest.err
31088 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031089 ac_cv_func_isinf_in_math_h=yes
31090else
31091 echo "$as_me: failed program was:" >&5
31092sed 's/^/| /' conftest.$ac_ext >&5
31093
31094 ac_cv_func_isinf_in_math_h=no
31095fi
31096
31097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31098 ac_ext=c
31099ac_cpp='$CPP $CPPFLAGS'
31100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31102ac_compiler_gnu=$ac_cv_c_compiler_gnu
31103
31104fi
31105{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
31106echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
31107
31108if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
31109
31110cat >>confdefs.h <<\_ACEOF
31111#define HAVE_ISINF_IN_MATH_H 1
31112_ACEOF
31113
31114fi
31115
31116{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
31117echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
31118if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
31119 echo $ECHO_N "(cached) $ECHO_C" >&6
31120else
31121 ac_ext=cpp
31122ac_cpp='$CXXCPP $CPPFLAGS'
31123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31126
31127 cat >conftest.$ac_ext <<_ACEOF
31128/* confdefs.h. */
31129_ACEOF
31130cat confdefs.h >>conftest.$ac_ext
31131cat >>conftest.$ac_ext <<_ACEOF
31132/* end confdefs.h. */
31133#include <cmath>
31134int
31135main ()
31136{
31137float f; isinf(f);
31138 ;
31139 return 0;
31140}
31141_ACEOF
31142rm -f conftest.$ac_objext
31143if { (ac_try="$ac_compile"
31144case "(($ac_try" in
31145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146 *) ac_try_echo=$ac_try;;
31147esac
31148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31149 (eval "$ac_compile") 2>conftest.er1
31150 ac_status=$?
31151 grep -v '^ *+' conftest.er1 >conftest.err
31152 rm -f conftest.er1
31153 cat conftest.err >&5
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000031155 (exit $ac_status); } && {
31156 test -z "$ac_cxx_werror_flag" ||
31157 test ! -s conftest.err
31158 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031159 ac_cv_func_isinf_in_cmath=yes
31160else
31161 echo "$as_me: failed program was:" >&5
31162sed 's/^/| /' conftest.$ac_ext >&5
31163
31164 ac_cv_func_isinf_in_cmath=no
31165fi
31166
31167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31168 ac_ext=c
31169ac_cpp='$CPP $CPPFLAGS'
31170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31172ac_compiler_gnu=$ac_cv_c_compiler_gnu
31173
31174fi
31175{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
31176echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
31177
31178if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
31179
31180cat >>confdefs.h <<\_ACEOF
31181#define HAVE_ISINF_IN_CMATH 1
31182_ACEOF
31183
31184fi
31185
31186{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
31187echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
31188if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31189 echo $ECHO_N "(cached) $ECHO_C" >&6
31190else
31191 ac_ext=cpp
31192ac_cpp='$CXXCPP $CPPFLAGS'
31193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31196
31197 cat >conftest.$ac_ext <<_ACEOF
31198/* confdefs.h. */
31199_ACEOF
31200cat confdefs.h >>conftest.$ac_ext
31201cat >>conftest.$ac_ext <<_ACEOF
31202/* end confdefs.h. */
31203#include <cmath>
31204int
31205main ()
31206{
31207float f; std::isinf(f)}
31208 ;
31209 return 0;
31210}
31211_ACEOF
31212rm -f conftest.$ac_objext
31213if { (ac_try="$ac_compile"
31214case "(($ac_try" in
31215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 *) ac_try_echo=$ac_try;;
31217esac
31218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 (eval "$ac_compile") 2>conftest.er1
31220 ac_status=$?
31221 grep -v '^ *+' conftest.er1 >conftest.err
31222 rm -f conftest.er1
31223 cat conftest.err >&5
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000031225 (exit $ac_status); } && {
31226 test -z "$ac_cxx_werror_flag" ||
31227 test ! -s conftest.err
31228 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031229 ac_cv_func_std_isinf_in_cmath=yes
31230else
31231 echo "$as_me: failed program was:" >&5
31232sed 's/^/| /' conftest.$ac_ext >&5
31233
31234 ac_cv_func_std_isinf_in_cmath=no
31235fi
31236
31237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31238 ac_ext=c
31239ac_cpp='$CPP $CPPFLAGS'
31240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31242ac_compiler_gnu=$ac_cv_c_compiler_gnu
31243
31244fi
31245{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31246echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31247
31248if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31249
31250cat >>confdefs.h <<\_ACEOF
31251#define HAVE_STD_ISINF_IN_CMATH 1
31252_ACEOF
31253
31254fi
31255
31256{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31257echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
31258if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31260else
31261 ac_ext=cpp
31262ac_cpp='$CXXCPP $CPPFLAGS'
31263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31266
31267 cat >conftest.$ac_ext <<_ACEOF
31268/* confdefs.h. */
31269_ACEOF
31270cat confdefs.h >>conftest.$ac_ext
31271cat >>conftest.$ac_ext <<_ACEOF
31272/* end confdefs.h. */
31273#include <ieeefp.h>
31274int
31275main ()
31276{
31277float f; finite(f);
31278 ;
31279 return 0;
31280}
31281_ACEOF
31282rm -f conftest.$ac_objext
31283if { (ac_try="$ac_compile"
31284case "(($ac_try" in
31285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31286 *) ac_try_echo=$ac_try;;
31287esac
31288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31289 (eval "$ac_compile") 2>conftest.er1
31290 ac_status=$?
31291 grep -v '^ *+' conftest.er1 >conftest.err
31292 rm -f conftest.er1
31293 cat conftest.err >&5
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000031295 (exit $ac_status); } && {
31296 test -z "$ac_cxx_werror_flag" ||
31297 test ! -s conftest.err
31298 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031299 ac_cv_func_finite_in_ieeefp_h=yes
31300else
31301 echo "$as_me: failed program was:" >&5
31302sed 's/^/| /' conftest.$ac_ext >&5
31303
31304 ac_cv_func_finite_in_ieeefp_h=no
31305fi
31306
31307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31308 ac_ext=c
31309ac_cpp='$CPP $CPPFLAGS'
31310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31312ac_compiler_gnu=$ac_cv_c_compiler_gnu
31313
31314fi
31315{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31316echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31317
31318if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31319
31320cat >>confdefs.h <<\_ACEOF
31321#define HAVE_FINITE_IN_IEEEFP_H 1
31322_ACEOF
31323
31324fi
31325
31326
31327
31328if test "$llvm_cv_platform_type" = "Unix" ; then
31329
31330
31331for ac_header in stdlib.h unistd.h
31332do
31333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31338 echo $ECHO_N "(cached) $ECHO_C" >&6
31339fi
31340ac_res=`eval echo '${'$as_ac_Header'}'`
31341 { echo "$as_me:$LINENO: result: $ac_res" >&5
31342echo "${ECHO_T}$ac_res" >&6; }
31343else
31344 # Is the header compilable?
31345{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31347cat >conftest.$ac_ext <<_ACEOF
31348/* confdefs.h. */
31349_ACEOF
31350cat confdefs.h >>conftest.$ac_ext
31351cat >>conftest.$ac_ext <<_ACEOF
31352/* end confdefs.h. */
31353$ac_includes_default
31354#include <$ac_header>
31355_ACEOF
31356rm -f conftest.$ac_objext
31357if { (ac_try="$ac_compile"
31358case "(($ac_try" in
31359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31360 *) ac_try_echo=$ac_try;;
31361esac
31362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31363 (eval "$ac_compile") 2>conftest.er1
31364 ac_status=$?
31365 grep -v '^ *+' conftest.er1 >conftest.err
31366 rm -f conftest.er1
31367 cat conftest.err >&5
31368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000031369 (exit $ac_status); } && {
31370 test -z "$ac_c_werror_flag" ||
31371 test ! -s conftest.err
31372 } && test -s conftest.$ac_objext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031373 ac_header_compiler=yes
31374else
31375 echo "$as_me: failed program was:" >&5
31376sed 's/^/| /' conftest.$ac_ext >&5
31377
31378 ac_header_compiler=no
31379fi
31380
31381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31382{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31383echo "${ECHO_T}$ac_header_compiler" >&6; }
31384
31385# Is the header present?
31386{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31388cat >conftest.$ac_ext <<_ACEOF
31389/* confdefs.h. */
31390_ACEOF
31391cat confdefs.h >>conftest.$ac_ext
31392cat >>conftest.$ac_ext <<_ACEOF
31393/* end confdefs.h. */
31394#include <$ac_header>
31395_ACEOF
31396if { (ac_try="$ac_cpp conftest.$ac_ext"
31397case "(($ac_try" in
31398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31399 *) ac_try_echo=$ac_try;;
31400esac
31401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31403 ac_status=$?
31404 grep -v '^ *+' conftest.er1 >conftest.err
31405 rm -f conftest.er1
31406 cat conftest.err >&5
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000031408 (exit $ac_status); } >/dev/null && {
31409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31410 test ! -s conftest.err
31411 }; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031412 ac_header_preproc=yes
31413else
31414 echo "$as_me: failed program was:" >&5
31415sed 's/^/| /' conftest.$ac_ext >&5
31416
31417 ac_header_preproc=no
31418fi
31419
31420rm -f conftest.err conftest.$ac_ext
31421{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31422echo "${ECHO_T}$ac_header_preproc" >&6; }
31423
31424# So? What about this header?
31425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31426 yes:no: )
31427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31430echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31431 ac_header_preproc=yes
31432 ;;
31433 no:yes:* )
31434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31437echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31439echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31441echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31443echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31445echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31446 ( cat <<\_ASBOX
31447## ----------------------------------- ##
31448## Report this to llvmbugs@cs.uiuc.edu ##
31449## ----------------------------------- ##
31450_ASBOX
31451 ) | sed "s/^/$as_me: WARNING: /" >&2
31452 ;;
31453esac
31454{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31457 echo $ECHO_N "(cached) $ECHO_C" >&6
31458else
31459 eval "$as_ac_Header=\$ac_header_preproc"
31460fi
31461ac_res=`eval echo '${'$as_ac_Header'}'`
31462 { echo "$as_me:$LINENO: result: $ac_res" >&5
31463echo "${ECHO_T}$ac_res" >&6; }
31464
31465fi
31466if test `eval echo '${'$as_ac_Header'}'` = yes; then
31467 cat >>confdefs.h <<_ACEOF
31468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31469_ACEOF
31470
31471fi
31472
31473done
31474
31475
31476for ac_func in getpagesize
31477do
31478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31479{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31481if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31482 echo $ECHO_N "(cached) $ECHO_C" >&6
31483else
31484 cat >conftest.$ac_ext <<_ACEOF
31485/* confdefs.h. */
31486_ACEOF
31487cat confdefs.h >>conftest.$ac_ext
31488cat >>conftest.$ac_ext <<_ACEOF
31489/* end confdefs.h. */
31490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31492#define $ac_func innocuous_$ac_func
31493
31494/* System header to define __stub macros and hopefully few prototypes,
31495 which can conflict with char $ac_func (); below.
31496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31497 <limits.h> exists even on freestanding compilers. */
31498
31499#ifdef __STDC__
31500# include <limits.h>
31501#else
31502# include <assert.h>
31503#endif
31504
31505#undef $ac_func
31506
31507/* Override any GCC internal prototype to avoid an error.
31508 Use char because int might match the return type of a GCC
31509 builtin and then its argument prototype would still apply. */
31510#ifdef __cplusplus
31511extern "C"
31512#endif
31513char $ac_func ();
31514/* The GNU C library defines this for functions which it implements
31515 to always fail with ENOSYS. Some functions are actually named
31516 something starting with __ and the normal name is an alias. */
31517#if defined __stub_$ac_func || defined __stub___$ac_func
31518choke me
31519#endif
31520
31521int
31522main ()
31523{
31524return $ac_func ();
31525 ;
31526 return 0;
31527}
31528_ACEOF
31529rm -f conftest.$ac_objext conftest$ac_exeext
31530if { (ac_try="$ac_link"
31531case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31534esac
31535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_link") 2>conftest.er1
31537 ac_status=$?
31538 grep -v '^ *+' conftest.er1 >conftest.err
31539 rm -f conftest.er1
31540 cat conftest.err >&5
31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000031542 (exit $ac_status); } && {
31543 test -z "$ac_c_werror_flag" ||
31544 test ! -s conftest.err
31545 } && test -s conftest$ac_exeext &&
31546 $as_test_x conftest$ac_exeext; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031547 eval "$as_ac_var=yes"
31548else
31549 echo "$as_me: failed program was:" >&5
31550sed 's/^/| /' conftest.$ac_ext >&5
31551
31552 eval "$as_ac_var=no"
31553fi
31554
Edwin Török20176752008-10-22 09:56:27 +000031555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031556 conftest$ac_exeext conftest.$ac_ext
31557fi
31558ac_res=`eval echo '${'$as_ac_var'}'`
31559 { echo "$as_me:$LINENO: result: $ac_res" >&5
31560echo "${ECHO_T}$ac_res" >&6; }
31561if test `eval echo '${'$as_ac_var'}'` = yes; then
31562 cat >>confdefs.h <<_ACEOF
31563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31564_ACEOF
31565
31566fi
31567done
31568
31569{ echo "$as_me:$LINENO: checking for working mmap" >&5
31570echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31571if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31572 echo $ECHO_N "(cached) $ECHO_C" >&6
31573else
31574 if test "$cross_compiling" = yes; then
31575 ac_cv_func_mmap_fixed_mapped=no
31576else
31577 cat >conftest.$ac_ext <<_ACEOF
31578/* confdefs.h. */
31579_ACEOF
31580cat confdefs.h >>conftest.$ac_ext
31581cat >>conftest.$ac_ext <<_ACEOF
31582/* end confdefs.h. */
31583$ac_includes_default
31584/* malloc might have been renamed as rpl_malloc. */
31585#undef malloc
31586
31587/* Thanks to Mike Haertel and Jim Avera for this test.
31588 Here is a matrix of mmap possibilities:
31589 mmap private not fixed
31590 mmap private fixed at somewhere currently unmapped
31591 mmap private fixed at somewhere already mapped
31592 mmap shared not fixed
31593 mmap shared fixed at somewhere currently unmapped
31594 mmap shared fixed at somewhere already mapped
31595 For private mappings, we should verify that changes cannot be read()
31596 back from the file, nor mmap's back from the file at a different
31597 address. (There have been systems where private was not correctly
31598 implemented like the infamous i386 svr4.0, and systems where the
31599 VM page cache was not coherent with the file system buffer cache
31600 like early versions of FreeBSD and possibly contemporary NetBSD.)
31601 For shared mappings, we should conversely verify that changes get
31602 propagated back to all the places they're supposed to be.
31603
31604 Grep wants private fixed already mapped.
31605 The main things grep needs to know about mmap are:
31606 * does it exist and is it safe to write into the mmap'd area
31607 * how to use it (BSD variants) */
31608
31609#include <fcntl.h>
31610#include <sys/mman.h>
31611
Edwin Török20176752008-10-22 09:56:27 +000031612#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031613char *malloc ();
31614#endif
31615
31616/* This mess was copied from the GNU getpagesize.h. */
Edwin Török20176752008-10-22 09:56:27 +000031617#ifndef HAVE_GETPAGESIZE
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031618/* Assume that all systems that can run configure have sys/param.h. */
Edwin Török20176752008-10-22 09:56:27 +000031619# ifndef HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031620# define HAVE_SYS_PARAM_H 1
31621# endif
31622
31623# ifdef _SC_PAGESIZE
31624# define getpagesize() sysconf(_SC_PAGESIZE)
31625# else /* no _SC_PAGESIZE */
Edwin Török20176752008-10-22 09:56:27 +000031626# ifdef HAVE_SYS_PARAM_H
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031627# include <sys/param.h>
31628# ifdef EXEC_PAGESIZE
31629# define getpagesize() EXEC_PAGESIZE
31630# else /* no EXEC_PAGESIZE */
31631# ifdef NBPG
31632# define getpagesize() NBPG * CLSIZE
31633# ifndef CLSIZE
31634# define CLSIZE 1
31635# endif /* no CLSIZE */
31636# else /* no NBPG */
31637# ifdef NBPC
31638# define getpagesize() NBPC
31639# else /* no NBPC */
31640# ifdef PAGESIZE
31641# define getpagesize() PAGESIZE
31642# endif /* PAGESIZE */
31643# endif /* no NBPC */
31644# endif /* no NBPG */
31645# endif /* no EXEC_PAGESIZE */
31646# else /* no HAVE_SYS_PARAM_H */
31647# define getpagesize() 8192 /* punt totally */
31648# endif /* no HAVE_SYS_PARAM_H */
31649# endif /* no _SC_PAGESIZE */
31650
31651#endif /* no HAVE_GETPAGESIZE */
31652
31653int
31654main ()
31655{
31656 char *data, *data2, *data3;
31657 int i, pagesize;
31658 int fd;
31659
31660 pagesize = getpagesize ();
31661
31662 /* First, make a file with some known garbage in it. */
31663 data = (char *) malloc (pagesize);
31664 if (!data)
31665 return 1;
31666 for (i = 0; i < pagesize; ++i)
31667 *(data + i) = rand ();
31668 umask (0);
31669 fd = creat ("conftest.mmap", 0600);
31670 if (fd < 0)
31671 return 1;
31672 if (write (fd, data, pagesize) != pagesize)
31673 return 1;
31674 close (fd);
31675
31676 /* Next, try to mmap the file at a fixed address which already has
31677 something else allocated at it. If we can, also make sure that
31678 we see the same garbage. */
31679 fd = open ("conftest.mmap", O_RDWR);
31680 if (fd < 0)
31681 return 1;
31682 data2 = (char *) malloc (2 * pagesize);
31683 if (!data2)
31684 return 1;
31685 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31686 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31687 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31688 return 1;
31689 for (i = 0; i < pagesize; ++i)
31690 if (*(data + i) != *(data2 + i))
31691 return 1;
31692
31693 /* Finally, make sure that changes to the mapped area do not
31694 percolate back to the file as seen by read(). (This is a bug on
31695 some variants of i386 svr4.0.) */
31696 for (i = 0; i < pagesize; ++i)
31697 *(data2 + i) = *(data2 + i) + 1;
31698 data3 = (char *) malloc (pagesize);
31699 if (!data3)
31700 return 1;
31701 if (read (fd, data3, pagesize) != pagesize)
31702 return 1;
31703 for (i = 0; i < pagesize; ++i)
31704 if (*(data + i) != *(data3 + i))
31705 return 1;
31706 close (fd);
31707 return 0;
31708}
31709_ACEOF
31710rm -f conftest$ac_exeext
31711if { (ac_try="$ac_link"
31712case "(($ac_try" in
31713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31714 *) ac_try_echo=$ac_try;;
31715esac
31716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31717 (eval "$ac_link") 2>&5
31718 ac_status=$?
31719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31721 { (case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31724esac
31725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_try") 2>&5
31727 ac_status=$?
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; }; then
31730 ac_cv_func_mmap_fixed_mapped=yes
31731else
31732 echo "$as_me: program exited with status $ac_status" >&5
31733echo "$as_me: failed program was:" >&5
31734sed 's/^/| /' conftest.$ac_ext >&5
31735
31736( exit $ac_status )
31737ac_cv_func_mmap_fixed_mapped=no
31738fi
31739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31740fi
31741
31742
31743fi
31744{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31745echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31746if test $ac_cv_func_mmap_fixed_mapped = yes; then
31747
31748cat >>confdefs.h <<\_ACEOF
31749#define HAVE_MMAP 1
31750_ACEOF
31751
31752fi
31753rm -f conftest.mmap
31754
31755 { echo "$as_me:$LINENO: checking for mmap of files" >&5
31756echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31757if test "${ac_cv_func_mmap_file+set}" = set; then
31758 echo $ECHO_N "(cached) $ECHO_C" >&6
31759else
31760 ac_ext=c
31761ac_cpp='$CPP $CPPFLAGS'
31762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31764ac_compiler_gnu=$ac_cv_c_compiler_gnu
31765
31766 if test "$cross_compiling" = yes; then
31767 ac_cv_func_mmap_file=no
31768else
31769 cat >conftest.$ac_ext <<_ACEOF
31770
31771 /* confdefs.h. */
31772_ACEOF
31773cat confdefs.h >>conftest.$ac_ext
31774cat >>conftest.$ac_ext <<_ACEOF
31775/* end confdefs.h. */
31776
31777#include <sys/types.h>
31778#include <sys/mman.h>
31779#include <fcntl.h>
31780
31781int
31782main ()
31783{
31784
31785 int fd;
31786 fd = creat ("foo",0777);
31787 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31788 unlink ("foo");
31789 return (fd != (int) MAP_FAILED);
31790 ;
31791 return 0;
31792}
31793_ACEOF
31794rm -f conftest$ac_exeext
31795if { (ac_try="$ac_link"
31796case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31799esac
31800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_link") 2>&5
31802 ac_status=$?
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31805 { (case "(($ac_try" in
31806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31807 *) ac_try_echo=$ac_try;;
31808esac
31809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31810 (eval "$ac_try") 2>&5
31811 ac_status=$?
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); }; }; then
31814 ac_cv_func_mmap_file=yes
31815else
31816 echo "$as_me: program exited with status $ac_status" >&5
31817echo "$as_me: failed program was:" >&5
31818sed 's/^/| /' conftest.$ac_ext >&5
31819
31820( exit $ac_status )
31821ac_cv_func_mmap_file=no
31822fi
31823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31824fi
31825
31826
31827 ac_ext=c
31828ac_cpp='$CPP $CPPFLAGS'
31829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31831ac_compiler_gnu=$ac_cv_c_compiler_gnu
31832
31833
31834fi
31835{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31836echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31837if test "$ac_cv_func_mmap_file" = yes; then
31838
31839cat >>confdefs.h <<\_ACEOF
31840#define HAVE_MMAP_FILE
31841_ACEOF
31842
31843 MMAP_FILE=yes
31844
31845fi
31846
31847 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31848echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31849if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31850 echo $ECHO_N "(cached) $ECHO_C" >&6
31851else
31852 if test "$llvm_cv_os_type" = "Interix" ; then
31853 ac_cv_need_dev_zero_for_mmap=yes
31854 else
31855 ac_cv_need_dev_zero_for_mmap=no
31856 fi
31857
31858fi
31859{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31860echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31861if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31862
31863cat >>confdefs.h <<\_ACEOF
31864#define NEED_DEV_ZERO_FOR_MMAP 1
31865_ACEOF
31866
31867fi
31868
31869 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31870 then
31871 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31872echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31873 fi
31874 if test "$ac_cv_func_mmap_file" = "no"
31875 then
31876 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31877echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31878 fi
31879fi
31880
31881
Reid Spencer59c09b32007-07-30 20:13:24 +000031882
31883for ac_func in __dso_handle
31884do
31885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31886{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31888if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31889 echo $ECHO_N "(cached) $ECHO_C" >&6
31890else
31891 cat >conftest.$ac_ext <<_ACEOF
31892/* confdefs.h. */
31893_ACEOF
31894cat confdefs.h >>conftest.$ac_ext
31895cat >>conftest.$ac_ext <<_ACEOF
31896/* end confdefs.h. */
31897/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31899#define $ac_func innocuous_$ac_func
31900
31901/* System header to define __stub macros and hopefully few prototypes,
31902 which can conflict with char $ac_func (); below.
31903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31904 <limits.h> exists even on freestanding compilers. */
31905
31906#ifdef __STDC__
31907# include <limits.h>
31908#else
31909# include <assert.h>
31910#endif
31911
31912#undef $ac_func
31913
31914/* Override any GCC internal prototype to avoid an error.
31915 Use char because int might match the return type of a GCC
31916 builtin and then its argument prototype would still apply. */
31917#ifdef __cplusplus
31918extern "C"
31919#endif
31920char $ac_func ();
31921/* The GNU C library defines this for functions which it implements
31922 to always fail with ENOSYS. Some functions are actually named
31923 something starting with __ and the normal name is an alias. */
31924#if defined __stub_$ac_func || defined __stub___$ac_func
31925choke me
31926#endif
31927
31928int
31929main ()
31930{
31931return $ac_func ();
31932 ;
31933 return 0;
31934}
31935_ACEOF
31936rm -f conftest.$ac_objext conftest$ac_exeext
31937if { (ac_try="$ac_link"
31938case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31941esac
31942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_link") 2>conftest.er1
31944 ac_status=$?
31945 grep -v '^ *+' conftest.er1 >conftest.err
31946 rm -f conftest.er1
31947 cat conftest.err >&5
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000031949 (exit $ac_status); } && {
31950 test -z "$ac_c_werror_flag" ||
31951 test ! -s conftest.err
31952 } && test -s conftest$ac_exeext &&
31953 $as_test_x conftest$ac_exeext; then
Reid Spencer59c09b32007-07-30 20:13:24 +000031954 eval "$as_ac_var=yes"
31955else
31956 echo "$as_me: failed program was:" >&5
31957sed 's/^/| /' conftest.$ac_ext >&5
31958
31959 eval "$as_ac_var=no"
31960fi
31961
Edwin Török20176752008-10-22 09:56:27 +000031962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Reid Spencer59c09b32007-07-30 20:13:24 +000031963 conftest$ac_exeext conftest.$ac_ext
31964fi
31965ac_res=`eval echo '${'$as_ac_var'}'`
31966 { echo "$as_me:$LINENO: result: $ac_res" >&5
31967echo "${ECHO_T}$ac_res" >&6; }
31968if test `eval echo '${'$as_ac_var'}'` = yes; then
31969 cat >>confdefs.h <<_ACEOF
31970#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31971_ACEOF
31972
31973fi
31974done
31975
31976
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031977{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31978echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31979if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31980 echo $ECHO_N "(cached) $ECHO_C" >&6
31981else
31982 llvm_cv_llvmgcc_sanity="no"
31983if test -x "$LLVMGCC" ; then
31984 cp /dev/null conftest.c
31985 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31986 grep 'target datalayout =' > /dev/null 2>&1
31987 if test $? -eq 0 ; then
31988 llvm_cv_llvmgcc_sanity="yes"
31989 fi
31990 rm conftest.c
31991fi
31992fi
31993{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31994echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31995
31996if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31997 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31998echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31999 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
32000 LLVMCC1=$llvmcc1path
32001
32002 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
32003 LLVMCC1PLUS=$llvmcc1pluspath
32004
32005 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
32006 LLVMGCCDIR=$llvmgccdir
32007
32008 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
32009 LLVMGCCLIBEXEC=$llvmgcclibexec
32010
32011 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
32012 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
32013 LLVMGCC_VERSION=$llvmgccversion
32014
32015 LLVMGCC_MAJVERS=$llvmgccmajvers
32016
Tanya Lattner9894c2c2008-10-07 22:21:03 +000032017 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032018 LLVMGCC_LANGS=$llvmgcclangs
32019
32020 { echo "$as_me:$LINENO: result: ok" >&5
32021echo "${ECHO_T}ok" >&6; }
32022fi
32023
32024SHLIBEXT=$libltdl_cv_shlibext
32025
32026
32027# Translate the various configuration directories and other basic
32028# information into substitutions that will end up in Makefile.config.in
32029# that these configured values can be used by the makefiles
32030if test "${prefix}" = "NONE" ; then
32031 prefix="/usr/local"
32032fi
32033eval LLVM_PREFIX="${prefix}";
32034eval LLVM_BINDIR="${prefix}/bin";
32035eval LLVM_LIBDIR="${prefix}/lib";
32036eval LLVM_DATADIR="${prefix}/share/llvm";
32037eval LLVM_DOCSDIR="${prefix}/docs/llvm";
32038eval LLVM_ETCDIR="${prefix}/etc/llvm";
32039eval LLVM_INCLUDEDIR="${prefix}/include";
32040eval LLVM_INFODIR="${prefix}/info";
32041eval LLVM_MANDIR="${prefix}/man";
32042LLVM_CONFIGTIME=`date`
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
32053
32054# Place the various directores into the config.h file as #defines so that we
32055# can know about the installation paths within LLVM.
32056
32057cat >>confdefs.h <<_ACEOF
32058#define LLVM_PREFIX "$LLVM_PREFIX"
32059_ACEOF
32060
32061
32062cat >>confdefs.h <<_ACEOF
32063#define LLVM_BINDIR "$LLVM_BINDIR"
32064_ACEOF
32065
32066
32067cat >>confdefs.h <<_ACEOF
32068#define LLVM_LIBDIR "$LLVM_LIBDIR"
32069_ACEOF
32070
32071
32072cat >>confdefs.h <<_ACEOF
32073#define LLVM_DATADIR "$LLVM_DATADIR"
32074_ACEOF
32075
32076
32077cat >>confdefs.h <<_ACEOF
Gordon Henriksen7419c3e2007-10-03 12:07:14 +000032078#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032079_ACEOF
32080
32081
32082cat >>confdefs.h <<_ACEOF
32083#define LLVM_ETCDIR "$LLVM_ETCDIR"
32084_ACEOF
32085
32086
32087cat >>confdefs.h <<_ACEOF
32088#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
32089_ACEOF
32090
32091
32092cat >>confdefs.h <<_ACEOF
32093#define LLVM_INFODIR "$LLVM_INFODIR"
32094_ACEOF
32095
32096
32097cat >>confdefs.h <<_ACEOF
32098#define LLVM_MANDIR "$LLVM_MANDIR"
32099_ACEOF
32100
32101
32102cat >>confdefs.h <<_ACEOF
32103#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
32104_ACEOF
32105
32106
Eric Christopher8b274472007-12-01 00:34:39 +000032107cat >>confdefs.h <<_ACEOF
32108#define LLVM_HOSTTRIPLE "$host"
32109_ACEOF
32110
32111
Gordon Henriksen016ec472007-10-02 09:50:32 +000032112# Determine which bindings to build.
32113if test "$BINDINGS_TO_BUILD" = auto ; then
32114 BINDINGS_TO_BUILD=""
32115 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
32116 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
32117 fi
32118fi
32119BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
32120
32121
32122# This isn't really configurey, but it avoids having to repeat the list in
32123# other files.
32124ALL_BINDINGS=ocaml
32125
32126
Gordon Henriksen058a4c62007-10-02 16:42:22 +000032127# Do any work necessary to ensure that bindings have what they need.
32128binding_prereqs_failed=0
32129for a_binding in $BINDINGS_TO_BUILD ; do
32130 case "$a_binding" in
32131 ocaml)
32132 if test "x$OCAMLC" = x ; then
32133 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
32134echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
32135 binding_prereqs_failed=1
32136 fi
32137 if test "x$OCAMLDEP" = x ; then
32138 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
32139echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
32140 binding_prereqs_failed=1
32141 fi
32142 if test "x$OCAMLOPT" = x ; then
32143 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
32144echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
32145 fi
32146 if test "x$with_ocaml_libdir" != xauto ; then
32147 OCAML_LIBDIR=$with_ocaml_libdir
32148
32149 else
32150 ocaml_stdlib="`"$OCAMLC" -where`"
32151 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
32152 then
32153 # ocaml stdlib is beneath our prefix; use stdlib
32154 OCAML_LIBDIR=$ocaml_stdlib
32155
32156 else
32157 # ocaml stdlib is outside our prefix; use libdir/ocaml
32158 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
32159
32160 fi
32161 fi
32162 ;;
32163 esac
32164done
32165if test "$binding_prereqs_failed" = 1 ; then
32166 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
32167echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
32168 { (exit 1); exit 1; }; }
32169fi
32170
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000032171{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
32172echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
32173if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
32174 echo $ECHO_N "(cached) $ECHO_C" >&6
32175else
32176 ac_ext=cpp
32177ac_cpp='$CXXCPP $CPPFLAGS'
32178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32181
32182 oldcxxflags="$CXXFLAGS"
32183 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
32184 cat >conftest.$ac_ext <<_ACEOF
32185/* confdefs.h. */
32186_ACEOF
32187cat confdefs.h >>conftest.$ac_ext
32188cat >>conftest.$ac_ext <<_ACEOF
32189/* end confdefs.h. */
32190
32191int
32192main ()
32193{
32194
32195 ;
32196 return 0;
32197}
32198_ACEOF
32199rm -f conftest.$ac_objext
32200if { (ac_try="$ac_compile"
32201case "(($ac_try" in
32202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32203 *) ac_try_echo=$ac_try;;
32204esac
32205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206 (eval "$ac_compile") 2>conftest.er1
32207 ac_status=$?
32208 grep -v '^ *+' conftest.er1 >conftest.err
32209 rm -f conftest.er1
32210 cat conftest.err >&5
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Edwin Török20176752008-10-22 09:56:27 +000032212 (exit $ac_status); } && {
32213 test -z "$ac_cxx_werror_flag" ||
32214 test ! -s conftest.err
32215 } && test -s conftest.$ac_objext; then
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000032216 llvm_cv_cxx_visibility_inlines_hidden=yes
32217else
32218 echo "$as_me: failed program was:" >&5
32219sed 's/^/| /' conftest.$ac_ext >&5
32220
32221 llvm_cv_cxx_visibility_inlines_hidden=no
32222fi
32223
32224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32225 CXXFLAGS="$oldcxxflags"
32226 ac_ext=c
32227ac_cpp='$CPP $CPPFLAGS'
32228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32230ac_compiler_gnu=$ac_cv_c_compiler_gnu
32231
32232
32233fi
32234{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
32235echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
32236if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
32237 ENABLE_VISIBILITY_INLINES_HIDDEN=1
32238
32239else
32240 ENABLE_VISIBILITY_INLINES_HIDDEN=0
32241
32242fi
32243
Gordon Henriksen058a4c62007-10-02 16:42:22 +000032244
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032245
32246ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
32247
32248ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
32249
Anton Korobeynikov5124f282008-05-29 17:41:34 +000032250ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032251
Anton Korobeynikov5124f282008-05-29 17:41:34 +000032252ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032253
Anton Korobeynikov5124f282008-05-29 17:41:34 +000032254ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032255
32256
32257ac_config_files="$ac_config_files Makefile.config"
32258
32259
32260ac_config_files="$ac_config_files llvm.spec"
32261
32262
32263ac_config_files="$ac_config_files docs/doxygen.cfg"
32264
32265
32266ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
32267
32268
32269ac_config_commands="$ac_config_commands setup"
32270
32271ac_config_commands="$ac_config_commands Makefile"
32272
32273
32274ac_config_commands="$ac_config_commands Makefile.common"
32275
32276
32277ac_config_commands="$ac_config_commands examples/Makefile"
32278
32279
32280ac_config_commands="$ac_config_commands lib/Makefile"
32281
32282
32283ac_config_commands="$ac_config_commands runtime/Makefile"
32284
32285
32286ac_config_commands="$ac_config_commands test/Makefile"
32287
32288
32289ac_config_commands="$ac_config_commands test/Makefile.tests"
32290
32291
32292ac_config_commands="$ac_config_commands tools/Makefile"
32293
32294
32295ac_config_commands="$ac_config_commands utils/Makefile"
32296
32297
32298ac_config_commands="$ac_config_commands projects/Makefile"
32299
32300
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000032301ac_config_commands="$ac_config_commands bindings/Makefile"
32302
32303
32304ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32305
32306
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032307
32308cat >confcache <<\_ACEOF
32309# This file is a shell script that caches the results of configure
32310# tests run on this system so they can be shared between configure
32311# scripts and configure runs, see configure's option --config-cache.
32312# It is not useful on other systems. If it contains results you don't
32313# want to keep, you may remove or edit it.
32314#
32315# config.status only pays attention to the cache file if you give it
32316# the --recheck option to rerun configure.
32317#
32318# `ac_cv_env_foo' variables (set or unset) will be overridden when
32319# loading this file, other *unset* `ac_cv_foo' will be assigned the
32320# following values.
32321
32322_ACEOF
32323
32324# The following way of writing the cache mishandles newlines in values,
32325# but we know of no workaround that is simple, portable, and efficient.
32326# So, we kill variables containing newlines.
32327# Ultrix sh set writes to stderr and can't be redirected directly,
32328# and sets the high bit in the cache file unless we assign to the vars.
32329(
32330 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32331 eval ac_val=\$$ac_var
32332 case $ac_val in #(
32333 *${as_nl}*)
32334 case $ac_var in #(
32335 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32336echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32337 esac
32338 case $ac_var in #(
32339 _ | IFS | as_nl) ;; #(
32340 *) $as_unset $ac_var ;;
32341 esac ;;
32342 esac
32343 done
32344
32345 (set) 2>&1 |
32346 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32347 *${as_nl}ac_space=\ *)
32348 # `set' does not quote correctly, so add quotes (double-quote
32349 # substitution turns \\\\ into \\, and sed turns \\ into \).
32350 sed -n \
32351 "s/'/'\\\\''/g;
32352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32353 ;; #(
32354 *)
32355 # `set' quotes correctly as required by POSIX, so do not add quotes.
32356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32357 ;;
32358 esac |
32359 sort
32360) |
32361 sed '
32362 /^ac_cv_env_/b end
32363 t clear
32364 :clear
32365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32366 t end
32367 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32368 :end' >>confcache
32369if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32370 if test -w "$cache_file"; then
32371 test "x$cache_file" != "x/dev/null" &&
32372 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32373echo "$as_me: updating cache $cache_file" >&6;}
32374 cat confcache >$cache_file
32375 else
32376 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32377echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32378 fi
32379fi
32380rm -f confcache
32381
32382test "x$prefix" = xNONE && prefix=$ac_default_prefix
32383# Let make expand exec_prefix.
32384test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32385
32386DEFS=-DHAVE_CONFIG_H
32387
32388ac_libobjs=
32389ac_ltlibobjs=
32390for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32391 # 1. Remove the extension, and $U if already installed.
32392 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32393 ac_i=`echo "$ac_i" | sed "$ac_script"`
32394 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32395 # will be set to the directory where LIBOBJS objects are built.
32396 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32397 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32398done
32399LIBOBJS=$ac_libobjs
32400
32401LTLIBOBJS=$ac_ltlibobjs
32402
32403
32404if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32405 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32406Usually this means the macro was only invoked conditionally." >&5
32407echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32408Usually this means the macro was only invoked conditionally." >&2;}
32409 { (exit 1); exit 1; }; }
32410fi
32411if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32412 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32413Usually this means the macro was only invoked conditionally." >&5
32414echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32415Usually this means the macro was only invoked conditionally." >&2;}
32416 { (exit 1); exit 1; }; }
32417fi
32418
32419: ${CONFIG_STATUS=./config.status}
32420ac_clean_files_save=$ac_clean_files
32421ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32422{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32423echo "$as_me: creating $CONFIG_STATUS" >&6;}
32424cat >$CONFIG_STATUS <<_ACEOF
32425#! $SHELL
32426# Generated by $as_me.
32427# Run this file to recreate the current configuration.
32428# Compiler output produced by configure, useful for debugging
32429# configure, is in config.log if it exists.
32430
32431debug=false
32432ac_cs_recheck=false
32433ac_cs_silent=false
32434SHELL=\${CONFIG_SHELL-$SHELL}
32435_ACEOF
32436
32437cat >>$CONFIG_STATUS <<\_ACEOF
32438## --------------------- ##
32439## M4sh Initialization. ##
32440## --------------------- ##
32441
Edwin Török20176752008-10-22 09:56:27 +000032442# Be more Bourne compatible
32443DUALCASE=1; export DUALCASE # for MKS sh
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032444if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32445 emulate sh
32446 NULLCMD=:
32447 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32448 # is contrary to our usage. Disable this feature.
32449 alias -g '${1+"$@"}'='"$@"'
32450 setopt NO_GLOB_SUBST
32451else
Edwin Török20176752008-10-22 09:56:27 +000032452 case `(set -o) 2>/dev/null` in
32453 *posix*) set -o posix ;;
32454esac
32455
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032456fi
Edwin Török20176752008-10-22 09:56:27 +000032457
32458
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032459
32460
32461# PATH needs CR
32462# Avoid depending upon Character Ranges.
32463as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32465as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32466as_cr_digits='0123456789'
32467as_cr_alnum=$as_cr_Letters$as_cr_digits
32468
32469# The user is always right.
32470if test "${PATH_SEPARATOR+set}" != set; then
32471 echo "#! /bin/sh" >conf$$.sh
32472 echo "exit 0" >>conf$$.sh
32473 chmod +x conf$$.sh
32474 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32475 PATH_SEPARATOR=';'
32476 else
32477 PATH_SEPARATOR=:
32478 fi
32479 rm -f conf$$.sh
32480fi
32481
32482# Support unset when possible.
32483if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32484 as_unset=unset
32485else
32486 as_unset=false
32487fi
32488
32489
32490# IFS
32491# We need space, tab and new line, in precisely that order. Quoting is
32492# there to prevent editors from complaining about space-tab.
32493# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32494# splitting by setting IFS to empty value.)
32495as_nl='
32496'
32497IFS=" "" $as_nl"
32498
32499# Find who we are. Look in the path if we contain no directory separator.
32500case $0 in
32501 *[\\/]* ) as_myself=$0 ;;
32502 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32503for as_dir in $PATH
32504do
32505 IFS=$as_save_IFS
32506 test -z "$as_dir" && as_dir=.
32507 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32508done
32509IFS=$as_save_IFS
32510
32511 ;;
32512esac
32513# We did not find ourselves, most probably we were run as `sh COMMAND'
32514# in which case we are not to be found in the path.
32515if test "x$as_myself" = x; then
32516 as_myself=$0
32517fi
32518if test ! -f "$as_myself"; then
32519 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32520 { (exit 1); exit 1; }
32521fi
32522
32523# Work around bugs in pre-3.0 UWIN ksh.
32524for as_var in ENV MAIL MAILPATH
32525do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32526done
32527PS1='$ '
32528PS2='> '
32529PS4='+ '
32530
32531# NLS nuisances.
32532for as_var in \
32533 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32534 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32535 LC_TELEPHONE LC_TIME
32536do
32537 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32538 eval $as_var=C; export $as_var
32539 else
32540 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32541 fi
32542done
32543
32544# Required to use basename.
32545if expr a : '\(a\)' >/dev/null 2>&1 &&
32546 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32547 as_expr=expr
32548else
32549 as_expr=false
32550fi
32551
32552if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32553 as_basename=basename
32554else
32555 as_basename=false
32556fi
32557
32558
32559# Name of the executable.
32560as_me=`$as_basename -- "$0" ||
32561$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32562 X"$0" : 'X\(//\)$' \| \
32563 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32564echo X/"$0" |
32565 sed '/^.*\/\([^/][^/]*\)\/*$/{
32566 s//\1/
32567 q
32568 }
32569 /^X\/\(\/\/\)$/{
32570 s//\1/
32571 q
32572 }
32573 /^X\/\(\/\).*/{
32574 s//\1/
32575 q
32576 }
32577 s/.*/./; q'`
32578
32579# CDPATH.
32580$as_unset CDPATH
32581
32582
32583
32584 as_lineno_1=$LINENO
32585 as_lineno_2=$LINENO
32586 test "x$as_lineno_1" != "x$as_lineno_2" &&
32587 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32588
32589 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32590 # uniformly replaced by the line number. The first 'sed' inserts a
32591 # line-number line after each line using $LINENO; the second 'sed'
32592 # does the real work. The second script uses 'N' to pair each
32593 # line-number line with the line containing $LINENO, and appends
32594 # trailing '-' during substitution so that $LINENO is not a special
32595 # case at line end.
32596 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32597 # scripts with optimization help from Paolo Bonzini. Blame Lee
32598 # E. McMahon (1931-1989) for sed's syntax. :-)
32599 sed -n '
32600 p
32601 /[$]LINENO/=
32602 ' <$as_myself |
32603 sed '
32604 s/[$]LINENO.*/&-/
32605 t lineno
32606 b
32607 :lineno
32608 N
32609 :loop
32610 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32611 t loop
32612 s/-\n.*//
32613 ' >$as_me.lineno &&
32614 chmod +x "$as_me.lineno" ||
32615 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32616 { (exit 1); exit 1; }; }
32617
32618 # Don't try to exec as it changes $[0], causing all sort of problems
32619 # (the dirname of $[0] is not the place where we might find the
32620 # original and so on. Autoconf is especially sensitive to this).
32621 . "./$as_me.lineno"
32622 # Exit status is that of the last command.
32623 exit
32624}
32625
32626
32627if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32628 as_dirname=dirname
32629else
32630 as_dirname=false
32631fi
32632
32633ECHO_C= ECHO_N= ECHO_T=
32634case `echo -n x` in
32635-n*)
32636 case `echo 'x\c'` in
32637 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32638 *) ECHO_C='\c';;
32639 esac;;
32640*)
32641 ECHO_N='-n';;
32642esac
32643
32644if expr a : '\(a\)' >/dev/null 2>&1 &&
32645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32646 as_expr=expr
32647else
32648 as_expr=false
32649fi
32650
32651rm -f conf$$ conf$$.exe conf$$.file
32652if test -d conf$$.dir; then
32653 rm -f conf$$.dir/conf$$.file
32654else
32655 rm -f conf$$.dir
32656 mkdir conf$$.dir
32657fi
32658echo >conf$$.file
32659if ln -s conf$$.file conf$$ 2>/dev/null; then
32660 as_ln_s='ln -s'
32661 # ... but there are two gotchas:
32662 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32663 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32664 # In both cases, we have to default to `cp -p'.
32665 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32666 as_ln_s='cp -p'
32667elif ln conf$$.file conf$$ 2>/dev/null; then
32668 as_ln_s=ln
32669else
32670 as_ln_s='cp -p'
32671fi
32672rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32673rmdir conf$$.dir 2>/dev/null
32674
32675if mkdir -p . 2>/dev/null; then
32676 as_mkdir_p=:
32677else
32678 test -d ./-p && rmdir ./-p
32679 as_mkdir_p=false
32680fi
32681
Edwin Török20176752008-10-22 09:56:27 +000032682if test -x / >/dev/null 2>&1; then
32683 as_test_x='test -x'
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032684else
Edwin Török20176752008-10-22 09:56:27 +000032685 if ls -dL / >/dev/null 2>&1; then
32686 as_ls_L_option=L
32687 else
32688 as_ls_L_option=
32689 fi
32690 as_test_x='
32691 eval sh -c '\''
32692 if test -d "$1"; then
32693 test -d "$1/.";
32694 else
32695 case $1 in
32696 -*)set "./$1";;
32697 esac;
32698 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32699 ???[sx]*):;;*)false;;esac;fi
32700 '\'' sh
32701 '
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032702fi
Edwin Török20176752008-10-22 09:56:27 +000032703as_executable_p=$as_test_x
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032704
32705# Sed expression to map a string onto a valid CPP name.
32706as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32707
32708# Sed expression to map a string onto a valid variable name.
32709as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32710
32711
32712exec 6>&1
32713
32714# Save the log message, to keep $[0] and so on meaningful, and to
32715# report actual input values of CONFIG_FILES etc. instead of their
32716# values after options handling.
32717ac_log="
Tanya Lattner23493c62008-10-07 04:35:08 +000032718This file was extended by llvm $as_me 2.5svn, which was
Edwin Török20176752008-10-22 09:56:27 +000032719generated by GNU Autoconf 2.61. Invocation command line was
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032720
32721 CONFIG_FILES = $CONFIG_FILES
32722 CONFIG_HEADERS = $CONFIG_HEADERS
32723 CONFIG_LINKS = $CONFIG_LINKS
32724 CONFIG_COMMANDS = $CONFIG_COMMANDS
32725 $ $0 $@
32726
32727on `(hostname || uname -n) 2>/dev/null | sed 1q`
32728"
32729
32730_ACEOF
32731
32732cat >>$CONFIG_STATUS <<_ACEOF
32733# Files that config.status was made for.
32734config_files="$ac_config_files"
32735config_headers="$ac_config_headers"
32736config_commands="$ac_config_commands"
32737
32738_ACEOF
32739
32740cat >>$CONFIG_STATUS <<\_ACEOF
32741ac_cs_usage="\
32742\`$as_me' instantiates files from templates according to the
32743current configuration.
32744
32745Usage: $0 [OPTIONS] [FILE]...
32746
32747 -h, --help print this help, then exit
Edwin Török20176752008-10-22 09:56:27 +000032748 -V, --version print version number and configuration settings, then exit
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032749 -q, --quiet do not print progress messages
32750 -d, --debug don't remove temporary files
32751 --recheck update $as_me by reconfiguring in the same conditions
32752 --file=FILE[:TEMPLATE]
32753 instantiate the configuration file FILE
32754 --header=FILE[:TEMPLATE]
32755 instantiate the configuration header FILE
32756
32757Configuration files:
32758$config_files
32759
32760Configuration headers:
32761$config_headers
32762
32763Configuration commands:
32764$config_commands
32765
32766Report bugs to <bug-autoconf@gnu.org>."
32767
32768_ACEOF
32769cat >>$CONFIG_STATUS <<_ACEOF
32770ac_cs_version="\\
Tanya Lattner23493c62008-10-07 04:35:08 +000032771llvm config.status 2.5svn
Edwin Török20176752008-10-22 09:56:27 +000032772configured by $0, generated by GNU Autoconf 2.61,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032773 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32774
32775Copyright (C) 2006 Free Software Foundation, Inc.
32776This config.status script is free software; the Free Software Foundation
32777gives unlimited permission to copy, distribute and modify it."
32778
32779ac_pwd='$ac_pwd'
32780srcdir='$srcdir'
32781INSTALL='$INSTALL'
32782_ACEOF
32783
32784cat >>$CONFIG_STATUS <<\_ACEOF
32785# If no file are specified by the user, then we need to provide default
32786# value. By we need to know if files were specified by the user.
32787ac_need_defaults=:
32788while test $# != 0
32789do
32790 case $1 in
32791 --*=*)
32792 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32793 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32794 ac_shift=:
32795 ;;
32796 *)
32797 ac_option=$1
32798 ac_optarg=$2
32799 ac_shift=shift
32800 ;;
32801 esac
32802
32803 case $ac_option in
32804 # Handling of the options.
32805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32806 ac_cs_recheck=: ;;
32807 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32808 echo "$ac_cs_version"; exit ;;
32809 --debug | --debu | --deb | --de | --d | -d )
32810 debug=: ;;
32811 --file | --fil | --fi | --f )
32812 $ac_shift
32813 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32814 ac_need_defaults=false;;
32815 --header | --heade | --head | --hea )
32816 $ac_shift
32817 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32818 ac_need_defaults=false;;
32819 --he | --h)
32820 # Conflict between --help and --header
32821 { echo "$as_me: error: ambiguous option: $1
32822Try \`$0 --help' for more information." >&2
32823 { (exit 1); exit 1; }; };;
32824 --help | --hel | -h )
32825 echo "$ac_cs_usage"; exit ;;
32826 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32827 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32828 ac_cs_silent=: ;;
32829
32830 # This is an error.
32831 -*) { echo "$as_me: error: unrecognized option: $1
32832Try \`$0 --help' for more information." >&2
32833 { (exit 1); exit 1; }; } ;;
32834
32835 *) ac_config_targets="$ac_config_targets $1"
32836 ac_need_defaults=false ;;
32837
32838 esac
32839 shift
32840done
32841
32842ac_configure_extra_args=
32843
32844if $ac_cs_silent; then
32845 exec 6>/dev/null
32846 ac_configure_extra_args="$ac_configure_extra_args --silent"
32847fi
32848
32849_ACEOF
32850cat >>$CONFIG_STATUS <<_ACEOF
32851if \$ac_cs_recheck; then
32852 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32853 CONFIG_SHELL=$SHELL
32854 export CONFIG_SHELL
32855 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32856fi
32857
32858_ACEOF
32859cat >>$CONFIG_STATUS <<\_ACEOF
32860exec 5>>config.log
32861{
32862 echo
32863 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32864## Running $as_me. ##
32865_ASBOX
32866 echo "$ac_log"
32867} >&5
32868
32869_ACEOF
32870cat >>$CONFIG_STATUS <<_ACEOF
32871#
32872# INIT-COMMANDS
32873#
32874llvm_src="${srcdir}"
32875
32876_ACEOF
32877
32878cat >>$CONFIG_STATUS <<\_ACEOF
32879
32880# Handling of arguments.
32881for ac_config_target in $ac_config_targets
32882do
32883 case $ac_config_target in
32884 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32885 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikov5124f282008-05-29 17:41:34 +000032886 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
32887 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
32888 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032889 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32890 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32891 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32892 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32893 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32894 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32895 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32896 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32897 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32898 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32899 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32900 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32901 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32902 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32903 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000032904 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32905 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032906
32907 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32908echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32909 { (exit 1); exit 1; }; };;
32910 esac
32911done
32912
32913
32914# If the user did not use the arguments to specify the items to instantiate,
32915# then the envvar interface is used. Set only those that are not.
32916# We use the long form for the default assignment because of an extremely
32917# bizarre bug on SunOS 4.1.3.
32918if $ac_need_defaults; then
32919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32921 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32922fi
32923
32924# Have a temporary directory for convenience. Make it in the build tree
32925# simply because there is no reason against having it here, and in addition,
32926# creating and moving files from /tmp can sometimes cause problems.
32927# Hook for its removal unless debugging.
32928# Note that there is a small window in which the directory will not be cleaned:
32929# after its creation but before its name has been assigned to `$tmp'.
32930$debug ||
32931{
32932 tmp=
32933 trap 'exit_status=$?
32934 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32935' 0
32936 trap '{ (exit 1); exit 1; }' 1 2 13 15
32937}
32938# Create a (secure) tmp directory for tmp files.
32939
32940{
32941 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32942 test -n "$tmp" && test -d "$tmp"
32943} ||
32944{
32945 tmp=./conf$$-$RANDOM
32946 (umask 077 && mkdir "$tmp")
32947} ||
32948{
32949 echo "$me: cannot create a temporary directory in ." >&2
32950 { (exit 1); exit 1; }
32951}
32952
32953#
32954# Set up the sed scripts for CONFIG_FILES section.
32955#
32956
32957# No need to generate the scripts if there are no CONFIG_FILES.
32958# This happens for instance when ./config.status config.h
32959if test -n "$CONFIG_FILES"; then
32960
32961_ACEOF
32962
32963
32964
32965ac_delim='%!_!# '
32966for ac_last_try in false false false false false :; do
32967 cat >conf$$subs.sed <<_ACEOF
32968SHELL!$SHELL$ac_delim
32969PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32970PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32971PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32972PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32973PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32974PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32975exec_prefix!$exec_prefix$ac_delim
32976prefix!$prefix$ac_delim
32977program_transform_name!$program_transform_name$ac_delim
32978bindir!$bindir$ac_delim
32979sbindir!$sbindir$ac_delim
32980libexecdir!$libexecdir$ac_delim
32981datarootdir!$datarootdir$ac_delim
32982datadir!$datadir$ac_delim
32983sysconfdir!$sysconfdir$ac_delim
32984sharedstatedir!$sharedstatedir$ac_delim
32985localstatedir!$localstatedir$ac_delim
32986includedir!$includedir$ac_delim
32987oldincludedir!$oldincludedir$ac_delim
32988docdir!$docdir$ac_delim
32989infodir!$infodir$ac_delim
32990htmldir!$htmldir$ac_delim
32991dvidir!$dvidir$ac_delim
32992pdfdir!$pdfdir$ac_delim
32993psdir!$psdir$ac_delim
32994libdir!$libdir$ac_delim
32995localedir!$localedir$ac_delim
32996mandir!$mandir$ac_delim
32997DEFS!$DEFS$ac_delim
32998ECHO_C!$ECHO_C$ac_delim
32999ECHO_N!$ECHO_N$ac_delim
33000ECHO_T!$ECHO_T$ac_delim
33001LIBS!$LIBS$ac_delim
33002build_alias!$build_alias$ac_delim
33003host_alias!$host_alias$ac_delim
33004target_alias!$target_alias$ac_delim
33005LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
33006subdirs!$subdirs$ac_delim
33007build!$build$ac_delim
33008build_cpu!$build_cpu$ac_delim
33009build_vendor!$build_vendor$ac_delim
33010build_os!$build_os$ac_delim
33011host!$host$ac_delim
33012host_cpu!$host_cpu$ac_delim
33013host_vendor!$host_vendor$ac_delim
33014host_os!$host_os$ac_delim
33015target!$target$ac_delim
33016target_cpu!$target_cpu$ac_delim
33017target_vendor!$target_vendor$ac_delim
33018target_os!$target_os$ac_delim
33019OS!$OS$ac_delim
33020LINKALL!$LINKALL$ac_delim
33021NOLINKALL!$NOLINKALL$ac_delim
33022LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
33023LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
33024ARCH!$ARCH$ac_delim
Duncan Sands2e6d3422007-12-12 23:03:45 +000033025ENDIAN!$ENDIAN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033026CC!$CC$ac_delim
33027CFLAGS!$CFLAGS$ac_delim
33028LDFLAGS!$LDFLAGS$ac_delim
33029CPPFLAGS!$CPPFLAGS$ac_delim
33030ac_ct_CC!$ac_ct_CC$ac_delim
33031EXEEXT!$EXEEXT$ac_delim
33032OBJEXT!$OBJEXT$ac_delim
33033CPP!$CPP$ac_delim
33034GREP!$GREP$ac_delim
33035EGREP!$EGREP$ac_delim
33036LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
33037BUILD_CC!$BUILD_CC$ac_delim
33038BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbache4c032e2008-10-02 22:56:44 +000033039BUILD_CXX!$BUILD_CXX$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033040CVSBUILD!$CVSBUILD$ac_delim
33041ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
33042DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
33043ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
33044EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
33045DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
33046JIT!$JIT$ac_delim
33047TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
33048ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
33049ENABLE_THREADS!$ENABLE_THREADS$ac_delim
33050ENABLE_PIC!$ENABLE_PIC$ac_delim
33051TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
33052ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
33053EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
33054CXX!$CXX$ac_delim
33055CXXFLAGS!$CXXFLAGS$ac_delim
33056ac_ct_CXX!$ac_ct_CXX$ac_delim
33057LEX!$LEX$ac_delim
Tanya Lattnerf4644302008-01-17 05:57:22 +000033058LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Edwin Török20176752008-10-22 09:56:27 +000033059LEXLIB!$LEXLIB$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033060FLEX!$FLEX$ac_delim
33061YACC!$YACC$ac_delim
33062YFLAGS!$YFLAGS$ac_delim
33063BISON!$BISON$ac_delim
33064NM!$NM$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033065_ACEOF
33066
33067 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33068 break
33069 elif $ac_last_try; then
33070 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33071echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33072 { (exit 1); exit 1; }; }
33073 else
33074 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33075 fi
33076done
33077
33078ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33079if test -n "$ac_eof"; then
33080 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33081 ac_eof=`expr $ac_eof + 1`
33082fi
33083
33084cat >>$CONFIG_STATUS <<_ACEOF
33085cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33086/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33087_ACEOF
33088sed '
33089s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33090s/^/s,@/; s/!/@,|#_!!_#|/
33091:n
33092t n
33093s/'"$ac_delim"'$/,g/; t
33094s/$/\\/; p
33095N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33096' >>$CONFIG_STATUS <conf$$subs.sed
33097rm -f conf$$subs.sed
33098cat >>$CONFIG_STATUS <<_ACEOF
33099CEOF$ac_eof
33100_ACEOF
33101
33102
33103ac_delim='%!_!# '
33104for ac_last_try in false false false false false :; do
33105 cat >conf$$subs.sed <<_ACEOF
Jim Grosbache4c032e2008-10-02 22:56:44 +000033106ifGNUmake!$ifGNUmake$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033107LN_S!$LN_S$ac_delim
33108CMP!$CMP$ac_delim
33109CP!$CP$ac_delim
33110DATE!$DATE$ac_delim
33111FIND!$FIND$ac_delim
33112MKDIR!$MKDIR$ac_delim
33113MV!$MV$ac_delim
33114RANLIB!$RANLIB$ac_delim
33115RM!$RM$ac_delim
33116SED!$SED$ac_delim
33117TAR!$TAR$ac_delim
33118BINPWD!$BINPWD$ac_delim
33119GRAPHVIZ!$GRAPHVIZ$ac_delim
33120DOT!$DOT$ac_delim
33121GV!$GV$ac_delim
33122DOTTY!$DOTTY$ac_delim
33123PERL!$PERL$ac_delim
33124HAVE_PERL!$HAVE_PERL$ac_delim
33125INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33126INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33127INSTALL_DATA!$INSTALL_DATA$ac_delim
33128BZIP2!$BZIP2$ac_delim
33129DOXYGEN!$DOXYGEN$ac_delim
33130GROFF!$GROFF$ac_delim
33131GZIP!$GZIP$ac_delim
33132POD2HTML!$POD2HTML$ac_delim
33133POD2MAN!$POD2MAN$ac_delim
33134RUNTEST!$RUNTEST$ac_delim
33135TCLSH!$TCLSH$ac_delim
33136ZIP!$ZIP$ac_delim
Gordon Henriksen4ac92092007-09-18 12:27:13 +000033137OCAMLC!$OCAMLC$ac_delim
33138OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksen38eefac2007-09-20 16:48:18 +000033139OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen8af51f62008-03-10 15:49:38 +000033140OCAMLDOC!$OCAMLDOC$ac_delim
Edwin Török20176752008-10-22 09:56:27 +000033141GAS!$GAS$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033142INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
33143INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
33144CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
33145CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
33146LIBADD_DL!$LIBADD_DL$ac_delim
33147ECHO!$ECHO$ac_delim
33148AR!$AR$ac_delim
33149STRIP!$STRIP$ac_delim
33150CXXCPP!$CXXCPP$ac_delim
33151F77!$F77$ac_delim
33152FFLAGS!$FFLAGS$ac_delim
33153ac_ct_F77!$ac_ct_F77$ac_delim
33154LIBTOOL!$LIBTOOL$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033155LLVMGCC!$LLVMGCC$ac_delim
33156LLVMGXX!$LLVMGXX$ac_delim
33157USE_UDIS86!$USE_UDIS86$ac_delim
33158HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
33159HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
33160ALLOCA!$ALLOCA$ac_delim
33161MMAP_FILE!$MMAP_FILE$ac_delim
33162LLVMCC1!$LLVMCC1$ac_delim
33163LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
33164LLVMGCCDIR!$LLVMGCCDIR$ac_delim
33165LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
33166LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
33167LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
33168LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
33169SHLIBEXT!$SHLIBEXT$ac_delim
33170LLVM_PREFIX!$LLVM_PREFIX$ac_delim
33171LLVM_BINDIR!$LLVM_BINDIR$ac_delim
33172LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
33173LLVM_DATADIR!$LLVM_DATADIR$ac_delim
33174LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
33175LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
33176LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
33177LLVM_INFODIR!$LLVM_INFODIR$ac_delim
33178LLVM_MANDIR!$LLVM_MANDIR$ac_delim
33179LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksen016ec472007-10-02 09:50:32 +000033180BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
33181ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksen058a4c62007-10-02 16:42:22 +000033182OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbard9e5d8b2008-08-30 01:16:19 +000033183ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033184LIBOBJS!$LIBOBJS$ac_delim
33185LTLIBOBJS!$LTLIBOBJS$ac_delim
33186_ACEOF
33187
Edwin Török20176752008-10-22 09:56:27 +000033188 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033189 break
33190 elif $ac_last_try; then
33191 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33192echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33193 { (exit 1); exit 1; }; }
33194 else
33195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33196 fi
33197done
33198
33199ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33200if test -n "$ac_eof"; then
33201 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33202 ac_eof=`expr $ac_eof + 1`
33203fi
33204
33205cat >>$CONFIG_STATUS <<_ACEOF
33206cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33207/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33208_ACEOF
33209sed '
33210s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33211s/^/s,@/; s/!/@,|#_!!_#|/
33212:n
33213t n
33214s/'"$ac_delim"'$/,g/; t
33215s/$/\\/; p
33216N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33217' >>$CONFIG_STATUS <conf$$subs.sed
33218rm -f conf$$subs.sed
33219cat >>$CONFIG_STATUS <<_ACEOF
33220:end
33221s/|#_!!_#|//g
33222CEOF$ac_eof
33223_ACEOF
33224
33225
33226# VPATH may cause trouble with some makes, so we remove $(srcdir),
33227# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33228# trailing colons and then remove the whole line if VPATH becomes empty
33229# (actually we leave an empty line to preserve line numbers).
33230if test "x$srcdir" = x.; then
33231 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33232s/:*\$(srcdir):*/:/
33233s/:*\${srcdir}:*/:/
33234s/:*@srcdir@:*/:/
33235s/^\([^=]*=[ ]*\):*/\1/
33236s/:*$//
33237s/^[^=]*=[ ]*$//
33238}'
33239fi
33240
33241cat >>$CONFIG_STATUS <<\_ACEOF
33242fi # test -n "$CONFIG_FILES"
33243
33244
33245for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
33246do
33247 case $ac_tag in
33248 :[FHLC]) ac_mode=$ac_tag; continue;;
33249 esac
33250 case $ac_mode$ac_tag in
33251 :[FHL]*:*);;
33252 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33253echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33254 { (exit 1); exit 1; }; };;
33255 :[FH]-) ac_tag=-:-;;
33256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33257 esac
33258 ac_save_IFS=$IFS
33259 IFS=:
33260 set x $ac_tag
33261 IFS=$ac_save_IFS
33262 shift
33263 ac_file=$1
33264 shift
33265
33266 case $ac_mode in
33267 :L) ac_source=$1;;
33268 :[FH])
33269 ac_file_inputs=
33270 for ac_f
33271 do
33272 case $ac_f in
33273 -) ac_f="$tmp/stdin";;
33274 *) # Look for the file first in the build tree, then in the source tree
33275 # (if the path is not absolute). The absolute path cannot be DOS-style,
33276 # because $ac_f cannot contain `:'.
33277 test -f "$ac_f" ||
33278 case $ac_f in
33279 [\\/$]*) false;;
33280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33281 esac ||
33282 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33283echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33284 { (exit 1); exit 1; }; };;
33285 esac
33286 ac_file_inputs="$ac_file_inputs $ac_f"
33287 done
33288
33289 # Let's still pretend it is `configure' which instantiates (i.e., don't
33290 # use $as_me), people would be surprised to read:
33291 # /* config.h. Generated by config.status. */
33292 configure_input="Generated from "`IFS=:
33293 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33294 if test x"$ac_file" != x-; then
33295 configure_input="$ac_file. $configure_input"
33296 { echo "$as_me:$LINENO: creating $ac_file" >&5
33297echo "$as_me: creating $ac_file" >&6;}
33298 fi
33299
33300 case $ac_tag in
33301 *:-:* | *:-) cat >"$tmp/stdin";;
33302 esac
33303 ;;
33304 esac
33305
33306 ac_dir=`$as_dirname -- "$ac_file" ||
33307$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33308 X"$ac_file" : 'X\(//\)[^/]' \| \
33309 X"$ac_file" : 'X\(//\)$' \| \
33310 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33311echo X"$ac_file" |
33312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33313 s//\1/
33314 q
33315 }
33316 /^X\(\/\/\)[^/].*/{
33317 s//\1/
33318 q
33319 }
33320 /^X\(\/\/\)$/{
33321 s//\1/
33322 q
33323 }
33324 /^X\(\/\).*/{
33325 s//\1/
33326 q
33327 }
33328 s/.*/./; q'`
33329 { as_dir="$ac_dir"
33330 case $as_dir in #(
33331 -*) as_dir=./$as_dir;;
33332 esac
33333 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33334 as_dirs=
33335 while :; do
33336 case $as_dir in #(
33337 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33338 *) as_qdir=$as_dir;;
33339 esac
33340 as_dirs="'$as_qdir' $as_dirs"
33341 as_dir=`$as_dirname -- "$as_dir" ||
33342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33343 X"$as_dir" : 'X\(//\)[^/]' \| \
33344 X"$as_dir" : 'X\(//\)$' \| \
33345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33346echo X"$as_dir" |
33347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33348 s//\1/
33349 q
33350 }
33351 /^X\(\/\/\)[^/].*/{
33352 s//\1/
33353 q
33354 }
33355 /^X\(\/\/\)$/{
33356 s//\1/
33357 q
33358 }
33359 /^X\(\/\).*/{
33360 s//\1/
33361 q
33362 }
33363 s/.*/./; q'`
33364 test -d "$as_dir" && break
33365 done
33366 test -z "$as_dirs" || eval "mkdir $as_dirs"
33367 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33368echo "$as_me: error: cannot create directory $as_dir" >&2;}
33369 { (exit 1); exit 1; }; }; }
33370 ac_builddir=.
33371
33372case "$ac_dir" in
33373.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33374*)
33375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33376 # A ".." for each directory in $ac_dir_suffix.
33377 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33378 case $ac_top_builddir_sub in
33379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33381 esac ;;
33382esac
33383ac_abs_top_builddir=$ac_pwd
33384ac_abs_builddir=$ac_pwd$ac_dir_suffix
33385# for backward compatibility:
33386ac_top_builddir=$ac_top_build_prefix
33387
33388case $srcdir in
33389 .) # We are building in place.
33390 ac_srcdir=.
33391 ac_top_srcdir=$ac_top_builddir_sub
33392 ac_abs_top_srcdir=$ac_pwd ;;
33393 [\\/]* | ?:[\\/]* ) # Absolute name.
33394 ac_srcdir=$srcdir$ac_dir_suffix;
33395 ac_top_srcdir=$srcdir
33396 ac_abs_top_srcdir=$srcdir ;;
33397 *) # Relative name.
33398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33399 ac_top_srcdir=$ac_top_build_prefix$srcdir
33400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33401esac
33402ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33403
33404
33405 case $ac_mode in
33406 :F)
33407 #
33408 # CONFIG_FILE
33409 #
33410
33411 case $INSTALL in
33412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33413 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33414 esac
33415_ACEOF
33416
33417cat >>$CONFIG_STATUS <<\_ACEOF
33418# If the template does not know about datarootdir, expand it.
33419# FIXME: This hack should be removed a few years after 2.60.
33420ac_datarootdir_hack=; ac_datarootdir_seen=
33421
33422case `sed -n '/datarootdir/ {
33423 p
33424 q
33425}
33426/@datadir@/p
33427/@docdir@/p
33428/@infodir@/p
33429/@localedir@/p
33430/@mandir@/p
33431' $ac_file_inputs` in
33432*datarootdir*) ac_datarootdir_seen=yes;;
33433*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33434 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33435echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33436_ACEOF
33437cat >>$CONFIG_STATUS <<_ACEOF
33438 ac_datarootdir_hack='
33439 s&@datadir@&$datadir&g
33440 s&@docdir@&$docdir&g
33441 s&@infodir@&$infodir&g
33442 s&@localedir@&$localedir&g
33443 s&@mandir@&$mandir&g
33444 s&\\\${datarootdir}&$datarootdir&g' ;;
33445esac
33446_ACEOF
33447
33448# Neutralize VPATH when `$srcdir' = `.'.
33449# Shell code in configure.ac might set extrasub.
33450# FIXME: do we really want to maintain this feature?
33451cat >>$CONFIG_STATUS <<_ACEOF
33452 sed "$ac_vpsub
33453$extrasub
33454_ACEOF
33455cat >>$CONFIG_STATUS <<\_ACEOF
33456:t
33457/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33458s&@configure_input@&$configure_input&;t t
33459s&@top_builddir@&$ac_top_builddir_sub&;t t
33460s&@srcdir@&$ac_srcdir&;t t
33461s&@abs_srcdir@&$ac_abs_srcdir&;t t
33462s&@top_srcdir@&$ac_top_srcdir&;t t
33463s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33464s&@builddir@&$ac_builddir&;t t
33465s&@abs_builddir@&$ac_abs_builddir&;t t
33466s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33467s&@INSTALL@&$ac_INSTALL&;t t
33468$ac_datarootdir_hack
33469" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33470
33471test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33472 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33474 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33475which seems to be undefined. Please make sure it is defined." >&5
33476echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33477which seems to be undefined. Please make sure it is defined." >&2;}
33478
33479 rm -f "$tmp/stdin"
33480 case $ac_file in
33481 -) cat "$tmp/out"; rm -f "$tmp/out";;
33482 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33483 esac
33484 ;;
33485 :H)
33486 #
33487 # CONFIG_HEADER
33488 #
33489_ACEOF
33490
33491# Transform confdefs.h into a sed script `conftest.defines', that
33492# substitutes the proper values into config.h.in to produce config.h.
33493rm -f conftest.defines conftest.tail
33494# First, append a space to every undef/define line, to ease matching.
33495echo 's/$/ /' >conftest.defines
33496# Then, protect against being on the right side of a sed subst, or in
33497# an unquoted here document, in config.status. If some macros were
33498# called several times there might be several #defines for the same
33499# symbol, which is useless. But do not sort them, since the last
33500# AC_DEFINE must be honored.
33501ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33502# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33503# NAME is the cpp macro being defined, VALUE is the value it is being given.
33504# PARAMS is the parameter list in the macro definition--in most cases, it's
33505# just an empty string.
33506ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33507ac_dB='\\)[ (].*,\\1define\\2'
33508ac_dC=' '
33509ac_dD=' ,'
33510
33511uniq confdefs.h |
33512 sed -n '
33513 t rset
33514 :rset
33515 s/^[ ]*#[ ]*define[ ][ ]*//
33516 t ok
33517 d
33518 :ok
33519 s/[\\&,]/\\&/g
33520 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33521 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33522 ' >>conftest.defines
33523
33524# Remove the space that was appended to ease matching.
33525# Then replace #undef with comments. This is necessary, for
33526# example, in the case of _POSIX_SOURCE, which is predefined and required
33527# on some systems where configure will not decide to define it.
33528# (The regexp can be short, since the line contains either #define or #undef.)
33529echo 's/ $//
33530s,^[ #]*u.*,/* & */,' >>conftest.defines
33531
33532# Break up conftest.defines:
33533ac_max_sed_lines=50
33534
33535# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33536# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33537# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33538# et cetera.
33539ac_in='$ac_file_inputs'
33540ac_out='"$tmp/out1"'
33541ac_nxt='"$tmp/out2"'
33542
33543while :
33544do
33545 # Write a here document:
33546 cat >>$CONFIG_STATUS <<_ACEOF
33547 # First, check the format of the line:
33548 cat >"\$tmp/defines.sed" <<\\CEOF
33549/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33550/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33551b
33552:def
33553_ACEOF
33554 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33555 echo 'CEOF
33556 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33557 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33558 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33559 grep . conftest.tail >/dev/null || break
33560 rm -f conftest.defines
33561 mv conftest.tail conftest.defines
33562done
33563rm -f conftest.defines conftest.tail
33564
33565echo "ac_result=$ac_in" >>$CONFIG_STATUS
33566cat >>$CONFIG_STATUS <<\_ACEOF
33567 if test x"$ac_file" != x-; then
33568 echo "/* $configure_input */" >"$tmp/config.h"
33569 cat "$ac_result" >>"$tmp/config.h"
33570 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33571 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33572echo "$as_me: $ac_file is unchanged" >&6;}
33573 else
33574 rm -f $ac_file
33575 mv "$tmp/config.h" $ac_file
33576 fi
33577 else
33578 echo "/* $configure_input */"
33579 cat "$ac_result"
33580 fi
33581 rm -f "$tmp/out12"
33582 ;;
33583
33584 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33585echo "$as_me: executing $ac_file commands" >&6;}
33586 ;;
33587 esac
33588
33589
33590 case $ac_file$ac_mode in
33591 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33593 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33595 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33596 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33597 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33598 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33599 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33601 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33603 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33605 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33607 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33608 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33609 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33610 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen5d52e4c2007-09-22 21:36:59 +000033611 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33612 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33613 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33614 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033615
33616 esac
33617done # for ac_tag
33618
33619
33620{ (exit 0); exit 0; }
33621_ACEOF
33622chmod +x $CONFIG_STATUS
33623ac_clean_files=$ac_clean_files_save
33624
33625
33626# configure is writing to config.log, and then calls config.status.
33627# config.status does its own redirection, appending to config.log.
33628# Unfortunately, on DOS this fails, as config.log is still kept open
33629# by configure, so config.status won't be able to write to it; its
33630# output is simply discarded. So we exec the FD to /dev/null,
33631# effectively closing config.log, so it can be properly (re)opened and
33632# appended to by config.status. When coming back to configure, we
33633# need to make the FD available again.
33634if test "$no_create" != yes; then
33635 ac_cs_success=:
33636 ac_config_status_args=
33637 test "$silent" = yes &&
33638 ac_config_status_args="$ac_config_status_args --quiet"
33639 exec 5>/dev/null
33640 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33641 exec 5>>config.log
33642 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33643 # would make configure fail if this is the last instruction.
33644 $ac_cs_success || { (exit 1); exit 1; }
33645fi
33646
33647#
33648# CONFIG_SUBDIRS section.
33649#
33650if test "$no_recursion" != yes; then
33651
33652 # Remove --cache-file and --srcdir arguments so they do not pile up.
33653 ac_sub_configure_args=
33654 ac_prev=
33655 eval "set x $ac_configure_args"
33656 shift
33657 for ac_arg
33658 do
33659 if test -n "$ac_prev"; then
33660 ac_prev=
33661 continue
33662 fi
33663 case $ac_arg in
33664 -cache-file | --cache-file | --cache-fil | --cache-fi \
33665 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33666 ac_prev=cache_file ;;
33667 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33668 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33669 | --c=*)
33670 ;;
33671 --config-cache | -C)
33672 ;;
33673 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33674 ac_prev=srcdir ;;
33675 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33676 ;;
33677 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33678 ac_prev=prefix ;;
33679 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33680 ;;
33681 *)
33682 case $ac_arg in
33683 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33684 esac
33685 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33686 esac
33687 done
33688
33689 # Always prepend --prefix to ensure using the same prefix
33690 # in subdir configurations.
33691 ac_arg="--prefix=$prefix"
33692 case $ac_arg in
33693 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33694 esac
Edwin Török20176752008-10-22 09:56:27 +000033695 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33696
33697 # Pass --silent
33698 if test "$silent" = yes; then
33699 ac_sub_configure_args="--silent $ac_sub_configure_args"
33700 fi
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033701
33702 ac_popdir=`pwd`
33703 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33704
33705 # Do not complain, so a configure script can configure whichever
33706 # parts of a large source tree are present.
33707 test -d "$srcdir/$ac_dir" || continue
33708
33709 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33710 echo "$as_me:$LINENO: $ac_msg" >&5
33711 echo "$ac_msg" >&6
33712 { as_dir="$ac_dir"
33713 case $as_dir in #(
33714 -*) as_dir=./$as_dir;;
33715 esac
33716 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33717 as_dirs=
33718 while :; do
33719 case $as_dir in #(
33720 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33721 *) as_qdir=$as_dir;;
33722 esac
33723 as_dirs="'$as_qdir' $as_dirs"
33724 as_dir=`$as_dirname -- "$as_dir" ||
33725$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33726 X"$as_dir" : 'X\(//\)[^/]' \| \
33727 X"$as_dir" : 'X\(//\)$' \| \
33728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33729echo X"$as_dir" |
33730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33731 s//\1/
33732 q
33733 }
33734 /^X\(\/\/\)[^/].*/{
33735 s//\1/
33736 q
33737 }
33738 /^X\(\/\/\)$/{
33739 s//\1/
33740 q
33741 }
33742 /^X\(\/\).*/{
33743 s//\1/
33744 q
33745 }
33746 s/.*/./; q'`
33747 test -d "$as_dir" && break
33748 done
33749 test -z "$as_dirs" || eval "mkdir $as_dirs"
33750 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33751echo "$as_me: error: cannot create directory $as_dir" >&2;}
33752 { (exit 1); exit 1; }; }; }
33753 ac_builddir=.
33754
33755case "$ac_dir" in
33756.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33757*)
33758 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33759 # A ".." for each directory in $ac_dir_suffix.
33760 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33761 case $ac_top_builddir_sub in
33762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33764 esac ;;
33765esac
33766ac_abs_top_builddir=$ac_pwd
33767ac_abs_builddir=$ac_pwd$ac_dir_suffix
33768# for backward compatibility:
33769ac_top_builddir=$ac_top_build_prefix
33770
33771case $srcdir in
33772 .) # We are building in place.
33773 ac_srcdir=.
33774 ac_top_srcdir=$ac_top_builddir_sub
33775 ac_abs_top_srcdir=$ac_pwd ;;
33776 [\\/]* | ?:[\\/]* ) # Absolute name.
33777 ac_srcdir=$srcdir$ac_dir_suffix;
33778 ac_top_srcdir=$srcdir
33779 ac_abs_top_srcdir=$srcdir ;;
33780 *) # Relative name.
33781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33782 ac_top_srcdir=$ac_top_build_prefix$srcdir
33783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33784esac
33785ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33786
33787
33788 cd "$ac_dir"
33789
33790 # Check for guested configure; otherwise get Cygnus style configure.
33791 if test -f "$ac_srcdir/configure.gnu"; then
33792 ac_sub_configure=$ac_srcdir/configure.gnu
33793 elif test -f "$ac_srcdir/configure"; then
33794 ac_sub_configure=$ac_srcdir/configure
33795 elif test -f "$ac_srcdir/configure.in"; then
33796 # This should be Cygnus configure.
33797 ac_sub_configure=$ac_aux_dir/configure
33798 else
33799 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33800echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33801 ac_sub_configure=
33802 fi
33803
33804 # The recursion is here.
33805 if test -n "$ac_sub_configure"; then
33806 # Make the cache file name correct relative to the subdirectory.
33807 case $cache_file in
33808 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33809 *) # Relative name.
33810 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33811 esac
33812
33813 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33814echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33815 # The eval makes quoting arguments work.
33816 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33817 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33818 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33819echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33820 { (exit 1); exit 1; }; }
33821 fi
33822
33823 cd "$ac_popdir"
33824 done
33825fi
33826